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

# Amplemarket Post Calls: Inputs, Cost & CLI Example

> Log call. Amplemarket Amplemarket Post Calls docs include request fields, response shape, pricing notes, and Deepline CLI examples.

## Run in Enrichment Spreadsheet

<Info>
  Use this function as a column step in `deepline enrich`.
</Info>

```bash theme={null}
deepline enrich --input leads.csv --output leads.enriched.csv --with 'result=amplemarket_post_calls:{"from":"{{from}}","to":"{{to}}","duration":"{{duration}}","answered":"{{answered}}","human":"{{human}}","task_id":"{{task_id}}","user_id":"{{user_id}}"}' --json
```

<Tip>
  Map payload values to spreadsheet columns with `{{column_name}}` placeholders.
</Tip>

## Input Schema

| Name                     | Type      | Required | Default | Description                                                                                                                                                              |
| ------------------------ | --------- | -------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `payload.from`           | `string`  | Yes      |         | The phone number that initiated the call                                                                                                                                 |
| `payload.to`             | `string`  | Yes      |         | The phone number that received the call                                                                                                                                  |
| `payload.duration`       | `integer` | Yes      |         | The duration of the call in seconds                                                                                                                                      |
| `payload.answered`       | `boolean` | Yes      |         | A boolean indicating whether the call was answered                                                                                                                       |
| `payload.human`          | `boolean` | Yes      |         | A boolean indicating whether a human answered the call or if it was detected as a machine/voicemail                                                                      |
| `payload.transcription`  | `string`  | No       |         | The text representation of the call's audio, if available                                                                                                                |
| `payload.recording_url`  | `string`  | No       |         |                                                                                                                                                                          |
| `payload.disposition_id` | `string`  | No       |         | Call disposition ID. If the given disposition has its action set to "complete", the specified task will be marked as completed, along with the associated sequence lead. |
| `payload.task_id`        | `string`  | Yes      |         |                                                                                                                                                                          |
| `payload.user_id`        | `string`  | Yes      |         |                                                                                                                                                                          |

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

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Log call",
    "properties": {
      "from": {
        "type": "string",
        "description": "The phone number that initiated the call"
      },
      "to": {
        "type": "string",
        "description": "The phone number that received the call"
      },
      "duration": {
        "type": "integer",
        "description": "The duration of the call in seconds"
      },
      "answered": {
        "type": "boolean",
        "description": "A boolean indicating whether the call was answered"
      },
      "human": {
        "type": "boolean",
        "description": "A boolean indicating whether a human answered the call or if it was detected as a machine/voicemail"
      },
      "transcription": {
        "type": "string",
        "description": "The text representation of the call's audio, if available"
      },
      "recording_url": {
        "type": "string"
      },
      "disposition_id": {
        "type": "string",
        "description": "Call disposition ID. If the given disposition has its action set to \"complete\", the specified task will be marked as completed, along with the associated sequence lead.",
        "format": "uuid"
      },
      "task_id": {
        "type": "string",
        "format": "uuid"
      },
      "user_id": {
        "type": "string",
        "format": "uuid"
      }
    },
    "required": [
      "from",
      "to",
      "duration",
      "answered",
      "human",
      "task_id",
      "user_id"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output Schema

| Name          | Type     | Required | Default | Description                                    |
| ------------- | -------- | -------- | ------- | ---------------------------------------------- |
| `result.data` | `object` | Yes      |         | Provider response payload.                     |
| `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": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "disposition_id": {
            "type": "string",
            "format": "uuid"
          },
          "duration": {
            "type": "integer"
          },
          "from": {
            "type": "string"
          },
          "to": {
            "type": "string"
          },
          "notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "transcription": {
            "type": [
              "string",
              "null"
            ]
          },
          "task_id": {
            "type": "string",
            "format": "uuid"
          },
          "user_id": {
            "type": "string",
            "format": "uuid"
          },
          "answered": {
            "type": "boolean"
          },
          "human": {
            "type": "boolean"
          },
          "external": {
            "type": "boolean"
          },
          "start_date": {
            "type": "string",
            "format": "date_time"
          },
          "contact": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "email": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "additionalProperties": false
          }
        },
        "additionalProperties": false
      },
      "meta": {
        "type": "object",
        "description": "Additional response metadata (status, paging).",
        "additionalProperties": true
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Advanced: Direct CLI

<Info>
  Use direct execution for single payload debugging.
</Info>

```bash theme={null}
deepline tools execute amplemarket_post_calls --payload '{
  "from": "string",
  "to": "string",
  "duration": "integer",
  "answered": false,
  "human": false,
  "task_id": "string",
  "user_id": "string"
}' --json
```

### CLI flags

| Flag                        | Description                                         |
| --------------------------- | --------------------------------------------------- |
| `--json`                    | Print machine-readable output.                      |
| `--wait`                    | Wait for terminal provider status when supported.   |
| `--debug`                   | Enable wait mode with additional status/log output. |
| `--wait-timeout SECONDS`    | Max seconds to wait in wait mode.                   |
| `--poll-interval SECONDS`   | Polling interval in seconds during wait mode.       |
| `--timeout SECONDS`         | Request timeout in seconds.                         |
| `--connect-timeout SECONDS` | Connection timeout in seconds.                      |

## Cost

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