> ## Documentation Index
> Fetch the complete documentation index at: https://deepline.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Close CRM: Close Get Opportunity

> Retrieve a single Close CRM sales deal by opportunity id, including deal amount, currency, owner and pipeline status. Close CRM Close Get Opportunity reference.

Retrieve a single Close CRM sales deal by opportunity id, including deal amount, currency, owner and pipeline status.

> [!NOTE]
>
> Tool ID: `close_get_opportunity`

## Run this action

Use the TypeScript SDK for one call. Use `ctx.tools.execute(...)` inside a Play for durable calls, scheduled calls, or CSV processing.

```ts theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
import { Deepline } from 'deepline';

const deepline = await Deepline.connect();
const result = await deepline.tools.execute(
  'close_get_opportunity',
  {
    "id": "id_123"
  },
);

console.log(result.toolResponse.raw);
```

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline run close_get_opportunity --input '{
  "id": "id_123"
}'
```

## Example response

The SDK returns this shape at `result.toolResponse.raw`. The example values illustrate the response.

```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
{
  "data": {
    "annualized_expected_value": 1,
    "annualized_value": 1,
    "attachments": [
      {
        "content_type": "example",
        "filename": "example",
        "size": 1,
        "url": "https://example.com"
      }
    ]
  }
}
```

Use `deepline describe close_get_opportunity --json` for the latest machine-readable contract.

## Input reference

Read one Close CRM opportunity (sales deal) by its Close opportunity id. Monetary values are in cents. Use \_fields to request selected fields. Read-only. This does not change the sales pipeline.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.id` | `string` | Yes | — | — |
| `payload._fields` | `string` | No | — | Comma-separated list of fields to include in the response. |

<details>
  <summary>Show raw input schema</summary>

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Read one Close CRM opportunity (sales deal) by its Close opportunity id. Monetary values are in cents. Use _fields to request selected fields. Read-only; this does not change the sales pipeline.",
    "properties": {
      "id": {
        "type": "string"
      },
      "_fields": {
        "type": "string",
        "description": "Comma-separated list of fields to include in the response."
      }
    },
    "required": [
      "id"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | Provider response payload. |
| `result.data.annualized_expected_value` | `integer \| null` | No | — | Annualized expected value in cents. |
| `result.data.annualized_value` | `integer \| null` | No | — | Annualized value in cents. |
| `result.data.attachments` | `array` | No | — | — |
| `result.data.attachments[].content_type` | `string \| null` | Yes | — | — |
| `result.data.attachments[].filename` | `string \| null` | Yes | — | — |
| `result.data.attachments[].size` | `integer \| null` | Yes | — | — |
| `result.data.attachments[].thumbnail_url` | `string \| null` | No | — | — |
| `result.data.attachments[].url` | `string` | Yes | — | — |
| `result.data.comment_summary` | `object \| null` | No | — | — |
| `result.data.comment_summary.comment_count` | `integer` | Yes | — | — |
| `result.data.comment_summary.thread_id` | `string` | Yes | — | — |
| `result.data.confidence` | `integer` | No | — | — |
| `result.data.contact_id` | `string \| null` | No | — | — |
| `result.data.contact_name` | `string \| null` | No | — | — |
| `result.data.created_by` | `string \| null` | No | — | — |
| `result.data.created_by_name` | `string \| null` | No | — | — |
| `result.data.date_created` | `string` | No | — | Format: `date-time`. |
| `result.data.date_lost` | `string \| null` | No | — | Format: `date-time`. |
| `result.data.date_updated` | `string` | No | — | Format: `date-time`. |
| `result.data.date_won` | `string \| null` | No | — | Format: `date`. |
| `result.data.expected_value` | `integer \| null` | No | — | Value multiplied by confidence, in cents. |
| `result.data.id` | `string` | No | — | — |
| `result.data.integration_links` | `array` | No | — | — |
| `result.data.integration_links[].name` | `string` | Yes | — | — |
| `result.data.integration_links[].url` | `string` | Yes | — | — |
| `result.data.is_stalled` | `boolean` | No | — | — |
| `result.data.lead_id` | `string` | No | — | — |
| `result.data.lead_name` | `string \| null` | No | — | — |
| `result.data.lead_primary_email` | `object \| null` | No | — | — |
| `result.data.lead_primary_email.email` | `string` | Yes | — | — |
| `result.data.lead_primary_email.is_unsubscribed` | `boolean` | Yes | — | — |
| `result.data.lead_primary_email.type` | `string` | Yes | — | — |
| `result.data.lead_primary_phone` | `array \| null` | No | — | — |
| `result.data.lead_primary_phone[].country` | `string \| null` | No | — | — |
| `result.data.lead_primary_phone[].outbound_sms_blocked` | `boolean` | No | — | — |
| `result.data.lead_primary_phone[].phone` | `string` | Yes | — | — |
| `result.data.lead_primary_phone[].phone_formatted` | `string` | No | — | — |
| `result.data.lead_primary_phone[].type` | `string` | Yes | — | — |
| `result.data.lead_primary_phone[].tz_ids` | `array` | No | — | — |
| `result.data.note` | `string \| null` | No | — | — |
| `result.data.note_html` | `string \| null` | No | — | — |
| `result.data.organization_id` | `string` | No | — | — |
| `result.data.pipeline_id` | `string \| null` | No | — | — |
| `result.data.pipeline_name` | `string \| null` | No | — | — |
| `result.data.stall_status` | `object \| null` | No | — | — |
| `result.data.stall_status.communication_issue` | `"no_issue" \| "cant_get_in_touch" \| "no_communication_attempts"` | Yes | — | Allowed: `no_issue`, `cant_get_in_touch`, `no_communication_attempts`. |
| `result.data.stall_status.next_action` | `object` | Yes | — | — |
| `result.data.stall_status.next_action.action` | `"mark_as_lost" \| "change_status" \| "follow_up" \| "adjust_close_date" \| "ask_someone_else_to_reach_out" \| "change_communication_method"` | Yes | — | Allowed: `mark_as_lost`, `change_status`, `follow_up`, `adjust_close_date`, `ask_someone_else_to_reach_out`, `change_communication_method`. |
| `result.data.stall_status.next_action.justification` | `string` | Yes | — | A short justification for the recommended action in the sales pipeline. Maximum 2 sentences. |

The table shows the first 50 fields. Expand the raw schema below for every field.

> [!NOTE]
>
> This output schema is too large for an inline display. Read the complete live contract with `deepline describe close_get_opportunity --json`.

## Deepline cost

* Pricing model: `fixed` (per call).
* Estimated Deepline credits: `0` per pricing unit.
* Provider-native pricing may still exist outside Deepline credit billing.

## Related documentation

* [Connect integrations](https://deepline.com/docs/integrations.md)
* [SDK V2 quickstart](https://deepline.com/docs/sdk-v2/quickstart.md)
* [SDK reference](https://deepline.com/docs/sdk-v2/sdk-reference.md)
* [Run tools across a CSV](https://deepline.com/docs/sdk-v2/batch-csv.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.