> ## 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: Webhook Subscriptions Create

> Create a webhook subscription. Includes SDK V2 and CLI requests, input constraints, response fields, and Deepline credit cost.

Create a webhook subscription.

<Info>
  Tool ID: `salesloft_webhook_subscriptions_create`
</Info>

## Run this action

Use the TypeScript SDK for a single call. Put `ctx.tools.execute(...)` inside a Play when the call should be durable, scheduled, or run across a CSV.

```ts theme={null}
import { Deepline } from 'deepline';

const deepline = await Deepline.connect();
const result = await deepline.tools.execute(
  'salesloft_webhook_subscriptions_create',
  {
    "event_type": "example",
    "callback_url": "https://example.com",
    "callback_token": "example"
  },
);

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

### CLI

```bash theme={null}
deepline tools execute salesloft_webhook_subscriptions_create --input '{
  "event_type": "example",
  "callback_url": "https://example.com",
  "callback_token": "example"
}' --json
```

## Example response

The SDK exposes this shape at `result.toolResponse.raw`. Values below are representative.

```json theme={null}
{
  "data": {
    "user_guid": "user_123",
    "tenant_id": 123,
    "id": 123
  }
}
```

Use `deepline tools get salesloft_webhook_subscriptions_create --json` for the latest machine-readable contract.

## Input reference

Creates a webhook subscription. Visit the webhooks page for additional details and a list of available webhooks. Request must be made with a valid Oauth token or API key. Scope requirements for this endpoint vary based on what 'event\_type' you are requesting to subscribe to. Visit the webhook event types page for a list of available event types and their required scopes.

| Name                     | Type     | Required | Default | Details                                                                                                                                                                                                                                                                                     |
| ------------------------ | -------- | -------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `payload.event_type`     | `string` | Yes      | —       | Type of event the subscription is for. Visit the "Event Types" section of the webhooks page to find a list of supported event types.                                                                                                                                                        |
| `payload.callback_url`   | `string` | Yes      | —       | URL for your callback handler                                                                                                                                                                                                                                                               |
| `payload.callback_token` | `string` | Yes      | —       | Any string to be used as a shared secret when subscription events are published. SalesLoft will send the value of this callback\_token in the payload of each event so the receiver may verify it matches the original value. This ensures webhook events are being delivered by SalesLoft. |

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

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Creates a webhook subscription. Visit the webhooks page for additional details and a list of available webhooks. Request must be made with a valid Oauth token or API key. Scope requirements for this endpoint vary based on what 'event_type' you are requesting to subscribe to. Visit the webhook event types page for a list of available event types and their required scopes.",
    "properties": {
      "event_type": {
        "type": "string",
        "description": "Type of event the subscription is for. Visit the \"Event Types\" section of the webhooks page to find a list of supported event types."
      },
      "callback_url": {
        "type": "string",
        "description": "URL for your callback handler"
      },
      "callback_token": {
        "type": "string",
        "description": "Any string to be used as a shared secret when subscription events are published. SalesLoft will send the value of this callback_token in the payload of each event so the receiver may verify it matches the original value. This ensures webhook events are being delivered by SalesLoft."
      }
    },
    "required": [
      "callback_url",
      "callback_token",
      "event_type"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name                         | Type      | Required | Default | Details                                                                                                                                                                                                             |
| ---------------------------- | --------- | -------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `result.data`                | `object`  | Yes      | —       | Provider response payload.                                                                                                                                                                                          |
| `result.data.user_guid`      | `string`  | No       | —       | UUID of the user the token is associated with                                                                                                                                                                       |
| `result.data.tenant_id`      | `integer` | No       | —       | ID for the tenant to which user is assigned                                                                                                                                                                         |
| `result.data.id`             | `integer` | No       | —       | ID for the Webhook Subscription                                                                                                                                                                                     |
| `result.data.event_type`     | `string`  | No       | —       | Type of event the subscription is for                                                                                                                                                                               |
| `result.data.enabled`        | `boolean` | No       | —       | Is the Webhook Subscription enabled or not                                                                                                                                                                          |
| `result.data.callback_url`   | `string`  | No       | —       | URL for your callback handler                                                                                                                                                                                       |
| `result.data.callback_token` | `string`  | No       | —       | SalesLoft will include this token in the webhook event payload when calling your callback\_url. It is strongly encouraged for your handler to verify this value in order to ensure the request came from SalesLoft. |
| `result.meta`                | `object`  | No       | —       | Additional response metadata (status, paging).                                                                                                                                                                      |

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

  ### Output JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Standard tool result payload.",
    "properties": {
      "data": {
        "type": "object",
        "description": "Provider response payload.",
        "properties": {
          "user_guid": {
            "type": "string",
            "description": "UUID of the user the token is associated with"
          },
          "tenant_id": {
            "type": "integer",
            "description": "ID for the tenant to which user is assigned"
          },
          "id": {
            "type": "integer",
            "description": "ID for the Webhook Subscription"
          },
          "event_type": {
            "type": "string",
            "description": "Type of event the subscription is for"
          },
          "enabled": {
            "type": "boolean",
            "description": "Is the Webhook Subscription enabled or not"
          },
          "callback_url": {
            "type": "string",
            "description": "URL for your callback handler"
          },
          "callback_token": {
            "type": "string",
            "description": "SalesLoft will include this token in the webhook event payload when calling your callback_url. It is strongly encouraged for your handler to verify this value in order to ensure the request came from SalesLoft."
          }
        },
        "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](/docs/providers/salesloft/guide)
* [SDK V2 quickstart](/docs/sdk-v2/quickstart)
* [SDK reference](/docs/sdk-v2/sdk-reference)
* [Run tools across a CSV](/docs/sdk-v2/batch-csv)
