> ## 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.

# Salesloft: Opportunities Show

> Get one Salesloft opportunity synced from your CRM by its ID. Includes SDK V2 guidance, input constraints, response fields, and Deepline credit cost.

Get one Salesloft opportunity synced from your CRM by its ID.

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

## 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(
  'salesloft_opportunities_show',
  {
    "id": "id_123"
  },
);

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

### CLI

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

## 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": {
    "id": 123,
    "name": "Example",
    "amount": "example"
  }
}
```

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

## Input reference

Fetches a single Opportunity record. Returns Opportunity records synced from the CRM and created via API. To Create, Update and Delete opportunities, refer to this External Mapping guide [here](https://developer.salesloft.com/docs/platform/guides/import-opportunities/).

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.id` | `string` | Yes | — | Opportunity ID |

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

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Fetches a single Opportunity record. Returns Opportunity records synced from the CRM and created via API. To Create, Update and Delete opportunities, refer to this External Mapping guide [here](https://developer.salesloft.com/docs/platform/guides/import-opportunities/).",
    "properties": {
      "id": {
        "type": "string",
        "description": "Opportunity ID"
      }
    },
    "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.id` | `integer` | No | — | ID of Opportunity |
| `result.data.name` | `string` | No | — | Opportunity Name |
| `result.data.amount` | `string` | No | — | Estimated total sale amount |
| `result.data.stage_name` | `string` | No | — | Stage name |
| `result.data.probability` | `string` | No | — | Probability |
| `result.data.crm_id` | `string` | No | — | The identifier for this record in the CRM |
| `result.data.crm_type` | `string` | No | — | CRM type |
| `result.data.account_crm_id` | `string` | No | — | Account CRM id |
| `result.data.owner_crm_id` | `string` | No | — | Owner CRM id |
| `result.data.account_name` | `string` | No | — | Account Full Name |
| `result.data.created_by_crm_id` | `string` | No | — | Created By CRM id |
| `result.data.opportunity_type` | `string` | No | — | Opportunity Type |
| `result.data.owner_crm_name` | `string` | No | — | Owner CRM Name |
| `result.data.crm_last_updated_date` | `string` | No | — | Datetime of when the Opportunity was most recently updated in CRM Format: `date-time`. |
| `result.data.close_date` | `string` | No | — | Date when the opportunity is expected to close Format: `date-time`. |
| `result.data.is_closed` | `boolean` | No | — | Whether the opportunity is closed |
| `result.data.is_won` | `boolean` | No | — | Whether the opportunity is closed won |
| `result.data.crm_url` | `string` | No | — | CRM url, currently Salesforce.com only |
| `result.data.created_at` | `string` | No | — | Datetime of when the Opportunity was created Format: `date-time`. |
| `result.data.updated_at` | `string` | No | — | Datetime of when the Opportunity was last updated Format: `date-time`. |
| `result.data.created_date` | `string` | No | — | Datetime of when the Opportunity was created in CRM Format: `date-time`. |
| `result.data.opportunity_window_person_id` | `integer` | No | — | ID of when the attributed person was created in Salesloft |
| `result.data.opportunity_window_started_at` | `string` | No | — | Datetime of when the attributed person was created in Salesloft Format: `date-time`. |
| `result.data.custom_fields` | `record` | No | — | Custom fields are defined by the user's team. Only fields with values are presented in the API. |
| `result.data.currency_iso_code` | `string` | No | — | Currency ISO Code |
| `result.data.tags` | `array` | No | — | All tags applied to this Opportunities |
| `result.data.most_recent_cadence` | `object` | No | — | The most recent cadence associated with the Opportunity |
| `result.data.most_recent_cadence.id` | `integer` | No | — | — |
| `result.data.most_recent_cadence._href` | `string` | No | — | — |
| `result.data.most_recent_step` | `object` | No | — | The most recent step associated with the Opportunity |
| `result.data.most_recent_step.id` | `integer` | No | — | — |
| `result.data.most_recent_step._href` | `string` | No | — | — |
| `result.data.most_recent_step_number` | `integer` | No | — | The most recent step number associated with the Opportunity |
| `result.data.most_recent_step_account` | `object` | No | — | The most recent step account id associated with the Opportunity |
| `result.data.most_recent_step_account.id` | `integer` | No | — | — |
| `result.data.most_recent_step_account._href` | `string` | No | — | — |
| `result.data.owner` | `object` | No | — | The owner associated with the Opportunity |
| `result.data.owner.id` | `integer` | No | — | — |
| `result.data.owner._href` | `string` | No | — | — |
| `result.data.creator` | `object` | No | — | The creator associated with the Opportunity |
| `result.data.creator.id` | `integer` | No | — | — |
| `result.data.creator._href` | `string` | No | — | — |
| `result.data.account` | `object` | No | — | The account that this opportunity is associated to |
| `result.data.account.id` | `integer` | No | — | — |
| `result.data.account._href` | `string` | No | — | — |
| `result.meta` | `object` | No | — | Additional response metadata (status, paging). |

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

  ### Output JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Standard tool result payload.",
    "properties": {
      "data": {
        "type": "object",
        "description": "Provider response payload.",
        "properties": {
          "id": {
            "type": "integer",
            "description": "ID of Opportunity"
          },
          "name": {
            "type": "string",
            "description": "Opportunity Name"
          },
          "amount": {
            "type": "string",
            "description": "Estimated total sale amount"
          },
          "stage_name": {
            "type": "string",
            "description": "Stage name"
          },
          "probability": {
            "type": "string",
            "description": "Probability"
          },
          "crm_id": {
            "type": "string",
            "description": "The identifier for this record in the CRM"
          },
          "crm_type": {
            "type": "string",
            "description": "CRM type"
          },
          "account_crm_id": {
            "type": "string",
            "description": "Account CRM id"
          },
          "owner_crm_id": {
            "type": "string",
            "description": "Owner CRM id"
          },
          "account_name": {
            "type": "string",
            "description": "Account Full Name"
          },
          "created_by_crm_id": {
            "type": "string",
            "description": "Created By CRM id"
          },
          "opportunity_type": {
            "type": "string",
            "description": "Opportunity Type"
          },
          "owner_crm_name": {
            "type": "string",
            "description": "Owner CRM Name"
          },
          "crm_last_updated_date": {
            "type": "string",
            "description": "Datetime of when the Opportunity was most recently updated in CRM",
            "format": "date-time"
          },
          "close_date": {
            "type": "string",
            "description": "Date when the opportunity is expected to close",
            "format": "date-time"
          },
          "is_closed": {
            "type": "boolean",
            "description": "Whether the opportunity is closed"
          },
          "is_won": {
            "type": "boolean",
            "description": "Whether the opportunity is closed won"
          },
          "crm_url": {
            "type": "string",
            "description": "CRM url, currently Salesforce.com only"
          },
          "created_at": {
            "type": "string",
            "description": "Datetime of when the Opportunity was created",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "description": "Datetime of when the Opportunity was last updated",
            "format": "date-time"
          },
          "created_date": {
            "type": "string",
            "description": "Datetime of when the Opportunity was created in CRM",
            "format": "date-time"
          },
          "opportunity_window_person_id": {
            "type": "integer",
            "description": "ID of when the attributed person was created in Salesloft"
          },
          "opportunity_window_started_at": {
            "type": "string",
            "description": "Datetime of when the attributed person was created in Salesloft",
            "format": "date-time"
          },
          "custom_fields": {
            "type": "object",
            "description": "Custom fields are defined by the user's team. Only fields with values are presented in the API."
          },
          "currency_iso_code": {
            "type": "string",
            "description": "Currency ISO Code"
          },
          "tags": {
            "type": "array",
            "description": "All tags applied to this Opportunities",
            "items": {
              "type": "string"
            }
          },
          "most_recent_cadence": {
            "type": "object",
            "description": "The most recent cadence associated with the Opportunity",
            "properties": {
              "id": {
                "type": "integer"
              },
              "_href": {
                "type": "string"
              }
            },
            "additionalProperties": false
          },
          "most_recent_step": {
            "type": "object",
            "description": "The most recent step associated with the Opportunity",
            "properties": {
              "id": {
                "type": "integer"
              },
              "_href": {
                "type": "string"
              }
            },
            "additionalProperties": false
          },
          "most_recent_step_number": {
            "type": "integer",
            "description": "The most recent step number associated with the Opportunity"
          },
          "most_recent_step_account": {
            "type": "object",
            "description": "The most recent step account id associated with the Opportunity",
            "properties": {
              "id": {
                "type": "integer"
              },
              "_href": {
                "type": "string"
              }
            },
            "additionalProperties": false
          },
          "owner": {
            "type": "object",
            "description": "The owner associated with the Opportunity",
            "properties": {
              "id": {
                "type": "integer"
              },
              "_href": {
                "type": "string"
              }
            },
            "additionalProperties": false
          },
          "creator": {
            "type": "object",
            "description": "The creator associated with the Opportunity",
            "properties": {
              "id": {
                "type": "integer"
              },
              "_href": {
                "type": "string"
              }
            },
            "additionalProperties": false
          },
          "account": {
            "type": "object",
            "description": "The account that this opportunity is associated to",
            "properties": {
              "id": {
                "type": "integer"
              },
              "_href": {
                "type": "string"
              }
            },
            "additionalProperties": false
          }
        },
        "additionalProperties": false
      },
      "meta": {
        "type": "object",
        "description": "Additional response metadata (status, paging).",
        "additionalProperties": true
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## 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

* [Salesloft provider guide](https://deepline.com/docs/providers/salesloft/guide.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.