> ## 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: Activities Calls Create

> Log a call in Salesloft for a person, with duration, disposition, sentiment and notes, optionally completing its action.

Log a call in Salesloft for a person, with duration, disposition, sentiment and notes, optionally completing its action.

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

## 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_activities_calls_create',
  {
    "person_id": 123,
    "to": "example",
    "duration": 123
  },
);

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

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline run salesloft_activities_calls_create --input '{
  "person_id": 123,
  "to": "example",
  "duration": 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": {
    "id": 123,
    "to": "example",
    "duration": 123
  }
}
```

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

## Input reference

Creates a call. The parameters of this endpoint can be used to create an action and ensure that the CRM Task is mapped correctly.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.person_id` | `integer` | No | — | The ID of the person whom this call will be logged for |
| `payload.to` | `string` | No | — | The phone number that was called |
| `payload.duration` | `integer` | No | — | The length of the call, in seconds |
| `payload.disposition` | `string` | No | — | The disposition of the call. Can be required on a per-team basis. Must be present in the disposition list. |
| `payload.sentiment` | `string` | No | — | The sentiment of the call. Can be required on a per-team basis. Must be present in the sentiment list. |
| `payload.notes` | `string` | No | — | Notes to log for the call. This is similar to the notes endpoint, but ensures that the notes get synced to the user's CRM |
| `payload.user_guid` | `string` | No | — | Guid of the user whom this call should be logged for. Defaults to the authenticated user. Only team admins can pass another user's guid |
| `payload.action_id` | `integer` | No | — | Action that this call is being logged for. This will validate that the action is still valid before completing it. The same action can never be successfully passed twice to this endpoint. The action must have a type of 'phone'. |
| `payload.task_id` | `integer` | No | — | Task that this call is being logged for. This will validate that the task is still valid before completing it. The same task can never be successfully passed twice to this endpoint. The task must have a type of 'call.' Can not be present if action\_id was also provided. |
| `payload.crm_params` | `object` | No | — | CRM specific parameters. Some parameters are required on a per-team basis. Consume the CrmActivityFields endpoint to receive a list of valid parameters. The "field" property is passed as the key of this object, and the value of this object is the value that you would like to set. If CrmActivityField has a non-null value, then that value must be submitted, or excluded from API calls, as these values are automatically applied. |
| `payload.linked_call_data_record_ids` | `array` | No | — | CallDataRecord associations that will become linked to the created call. It is possible to pass multiple CallDataRecord ids in this field. This can be used to represent multiple phone calls that made up a single call. Any call data record that is used must not already be linked to a call. It is not possible to link a call data record to multiple calls, and it is not possible to re-assign a call data record to a different call. |
| `payload.crm_activity_metadata` | `object` | No | — | Sets the CRM activity metadata on the call log |

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

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Creates a call. The parameters of this endpoint can be used to create an action and ensure that the CRM Task is mapped correctly.",
    "properties": {
      "person_id": {
        "type": "integer",
        "description": "The ID of the person whom this call will be logged for"
      },
      "to": {
        "type": "string",
        "description": "The phone number that was called"
      },
      "duration": {
        "type": "integer",
        "description": "The length of the call, in seconds"
      },
      "disposition": {
        "type": "string",
        "description": "The disposition of the call. Can be required on a per-team basis. Must be present in the disposition list."
      },
      "sentiment": {
        "type": "string",
        "description": "The sentiment of the call. Can be required on a per-team basis. Must be present in the sentiment list."
      },
      "notes": {
        "type": "string",
        "description": "Notes to log for the call. This is similar to the notes endpoint, but ensures that the notes get synced to the user's CRM"
      },
      "user_guid": {
        "type": "string",
        "description": "Guid of the user whom this call should be logged for. Defaults to the authenticated user. Only team admins can pass another user's guid"
      },
      "action_id": {
        "type": "integer",
        "description": "Action that this call is being logged for. This will validate that the action is still valid before completing it. The same action can never be successfully passed twice to this endpoint. The action must have a type of 'phone'."
      },
      "task_id": {
        "type": "integer",
        "description": "Task that this call is being logged for. This will validate that the task is still valid before completing it. The same task can never be successfully passed twice to this endpoint. The task must have a type of 'call.' Can not be present if action_id was also provided."
      },
      "crm_params": {
        "type": "object",
        "description": "CRM specific parameters. Some parameters are required on a per-team basis. Consume the CrmActivityFields endpoint to receive a list of valid parameters. The \"field\" property is passed as the key of this object, and the value of this object is the value that you would like to set. If CrmActivityField has a non-null value, then that value must be submitted, or excluded from API calls, as these values are automatically applied."
      },
      "linked_call_data_record_ids": {
        "type": "array",
        "description": "CallDataRecord associations that will become linked to the created call. It is possible to pass multiple CallDataRecord ids in this field; this can be used to represent multiple phone calls that made up a single call. Any call data record that is used must not already be linked to a call. It is not possible to link a call data record to multiple calls, and it is not possible to re-assign a call data record to a different call.",
        "items": {
          "type": "integer"
        }
      },
      "crm_activity_metadata": {
        "type": "object",
        "description": "Sets the CRM activity metadata on the call log"
      }
    },
    "required": [],
    "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 Call |
| `result.data.to` | `string` | No | — | Phone number that received the call |
| `result.data.duration` | `integer` | No | — | Length of the call in seconds |
| `result.data.sentiment` | `string` | No | — | Outcome of the conversation |
| `result.data.disposition` | `string` | No | — | Result of the call |
| `result.data.positive` | `boolean` | No | — | Indicates if the call is positive (according to current Positive Calls metric configuration) |
| `result.data.connected` | `boolean` | No | — | Indicates if the call is connected (according to current Connected Calls metric configuration) |
| `result.data.call_data_record_ids` | `array` | No | — | IDs of associated CallDataRecords |
| `result.data.direction` | `string` | No | — | Direction of the call. Can be one of: inbound, outbound |
| `result.data.log_source` | `string` | No | — | Source of the call log |
| `result.data.created_at` | `string` | No | — | Datetime of when the call was created Format: `date-time`. |
| `result.data.updated_at` | `string` | No | — | Datetime of when the call was last updated Format: `date-time`. |
| `result.data.recordings` | `array` | No | — | The recordings for this this call and their status |
| `result.data.recordings[].url` | `string` | No | — | The url of the recording |
| `result.data.recordings[].status` | `string` | No | — | The status of the call that produced this recording. Possible values are (but not limited to): no-answer: The call was not answered failed: The call was not able to be placed busy: The call was busy ringing: The call is ringing in-progress: The call is ongoing completed: The call is finished |
| `result.data.recordings[].recording_status` | `string` | No | — | The processing status of the recording. Possible values are (but not limited to): not\_recorded: there is no recording available, and there will not be one becoming available pending: the recording is currently being processed by the system processing: the recording is currently being processed by the system completed: the recording processing has been completed |
| `result.data.user` | `object` | No | — | User that made the call |
| `result.data.user.id` | `integer` | No | — | — |
| `result.data.user._href` | `string` | No | — | — |
| `result.data.action` | `object` | No | — | Action associated to the call |
| `result.data.action.id` | `integer` | No | — | — |
| `result.data.task` | `object` | No | — | Task that this call was loged from, or null if not sent through a cadence |
| `result.data.task.id` | `integer` | No | — | — |
| `result.data.called_person` | `object` | No | — | The person called |
| `result.data.called_person.id` | `integer` | No | — | — |
| `result.data.called_person._href` | `string` | No | — | — |
| `result.data.crm_activity` | `object` | No | — | CRM Activity associated with the call |
| `result.data.crm_activity.id` | `integer` | No | — | — |
| `result.data.crm_activity._href` | `string` | No | — | — |
| `result.data.note` | `object` | No | — | Note for this call |
| `result.data.note.id` | `integer` | No | — | — |
| `result.data.note._href` | `string` | No | — | — |
| `result.data.cadence` | `object` | No | — | Cadence the call was made on |
| `result.data.cadence.id` | `integer` | No | — | — |
| `result.data.cadence._href` | `string` | No | — | — |
| `result.data.step` | `object` | No | — | Step the call was made on |
| `result.data.step.id` | `integer` | No | — | — |
| `result.data.step._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 Call"
          },
          "to": {
            "type": "string",
            "description": "Phone number that received the call"
          },
          "duration": {
            "type": "integer",
            "description": "Length of the call in seconds"
          },
          "sentiment": {
            "type": "string",
            "description": "Outcome of the conversation"
          },
          "disposition": {
            "type": "string",
            "description": "Result of the call"
          },
          "positive": {
            "type": "boolean",
            "description": "Indicates if the call is positive (according to current Positive Calls metric configuration)"
          },
          "connected": {
            "type": "boolean",
            "description": "Indicates if the call is connected (according to current Connected Calls metric configuration)"
          },
          "call_data_record_ids": {
            "type": "array",
            "description": "IDs of associated CallDataRecords",
            "items": {
              "type": "integer"
            }
          },
          "direction": {
            "type": "string",
            "description": "Direction of the call. Can be one of: inbound, outbound"
          },
          "log_source": {
            "type": "string",
            "description": "Source of the call log"
          },
          "created_at": {
            "type": "string",
            "description": "Datetime of when the call was created",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "description": "Datetime of when the call was last updated",
            "format": "date-time"
          },
          "recordings": {
            "type": "array",
            "description": "The recordings for this this call and their status",
            "items": {
              "type": "object",
              "properties": {
                "url": {
                  "type": "string",
                  "description": "The url of the recording"
                },
                "status": {
                  "type": "string",
                  "description": "The status of the call that produced this recording. Possible values are (but not limited to): no-answer: The call was not answered failed: The call was not able to be placed busy: The call was busy ringing: The call is ringing in-progress: The call is ongoing completed: The call is finished"
                },
                "recording_status": {
                  "type": "string",
                  "description": "The processing status of the recording. Possible values are (but not limited to): not_recorded: there is no recording available, and there will not be one becoming available pending: the recording is currently being processed by the system processing: the recording is currently being processed by the system completed: the recording processing has been completed"
                }
              },
              "additionalProperties": false
            }
          },
          "user": {
            "type": "object",
            "description": "User that made the call",
            "properties": {
              "id": {
                "type": "integer"
              },
              "_href": {
                "type": "string"
              }
            },
            "additionalProperties": false
          },
          "action": {
            "type": "object",
            "description": "Action associated to the call",
            "properties": {
              "id": {
                "type": "integer"
              }
            },
            "additionalProperties": false
          },
          "task": {
            "type": "object",
            "description": "Task that this call was loged from, or null if not sent through a cadence",
            "properties": {
              "id": {
                "type": "integer"
              }
            },
            "additionalProperties": false
          },
          "called_person": {
            "type": "object",
            "description": "The person called",
            "properties": {
              "id": {
                "type": "integer"
              },
              "_href": {
                "type": "string"
              }
            },
            "additionalProperties": false
          },
          "crm_activity": {
            "type": "object",
            "description": "CRM Activity associated with the call",
            "properties": {
              "id": {
                "type": "integer"
              },
              "_href": {
                "type": "string"
              }
            },
            "additionalProperties": false
          },
          "note": {
            "type": "object",
            "description": "Note for this call",
            "properties": {
              "id": {
                "type": "integer"
              },
              "_href": {
                "type": "string"
              }
            },
            "additionalProperties": false
          },
          "cadence": {
            "type": "object",
            "description": "Cadence the call was made on",
            "properties": {
              "id": {
                "type": "integer"
              },
              "_href": {
                "type": "string"
              }
            },
            "additionalProperties": false
          },
          "step": {
            "type": "object",
            "description": "Step the call was made on",
            "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

* [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.