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

# Clarify: Get Recipients

> List campaign recipients. Includes SDK V2 and CLI requests, input constraints, response fields, and Deepline credit cost.

List campaign recipients.

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

## 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(
  'clarify_get_recipients',
  {
    "workspace": "example",
    "campaignId": "campaign_123"
  },
);

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

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline run clarify_get_recipients --input '{
  "workspace": "example",
  "campaignId": "campaign_123"
}'
```

## Example response

The static output schema lacks the details for a reliable example. Use `deepline describe clarify_get_recipients --json` for the complete live contract.

## Input reference

Returns the people enrolled in a campaign as an offset-paginated JSON:API collection, each with their per-recipient engagement — whether they opened, clicked, replied, or unsubscribed, and when each last happened. Filter by engagement with `filter[event]` (for example `filter[event]=clicked` to build a retargeting audience), by delivery state with `filter[status]`, or by name/email with `filter[q]`. Recipients are collapsed to one row per person, preferring their active run.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.workspace` | `string` | Yes | — | The workspace slug — the `&#123;slug&#125;` segment of your Clarify workspace URL. |
| `payload.campaignId` | `string` | Yes | — | The unique ID of the campaign. |
| `payload.page` | `object` | No | `&#123;"offset":0,"limit":500&#125;` | Offset pagination, e.g. `page[offset]=0&page[limit]=100`. |
| `payload.sortOrder` | `object` | No | — | Sort order, e.g. `sortOrder[column]=_created_at&sortOrder[dir]=DESC`. |
| `payload.filter` | `object` | No | — | Nested filter object, e.g. `filter[event]=clicked&filter[status]=completed`. |

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

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Returns the people enrolled in a campaign as an offset-paginated JSON:API collection, each with their per-recipient engagement — whether they opened, clicked, replied, or unsubscribed, and when each last happened. Filter by engagement with `filter[event]` (for example `filter[event]=clicked` to build a retargeting audience), by delivery state with `filter[status]`, or by name/email with `filter[q]`. Recipients are collapsed to one row per person, preferring their active run.",
    "properties": {
      "workspace": {
        "type": "string",
        "description": "The workspace slug — the `{slug}` segment of your Clarify workspace URL."
      },
      "campaignId": {
        "type": "string",
        "description": "The unique ID of the campaign."
      },
      "page": {
        "type": "object",
        "description": "Offset pagination, e.g. `page[offset]=0&page[limit]=100`.",
        "default": {
          "offset": 0,
          "limit": 500
        },
        "properties": {
          "offset": {
            "type": "number",
            "description": "The number of records to skip before the first result.",
            "default": 0,
            "minimum": 0
          },
          "limit": {
            "type": "number",
            "description": "The maximum number of records to return per page (up to 500).",
            "default": 500,
            "minimum": 1,
            "maximum": 500
          }
        },
        "additionalProperties": false
      },
      "sortOrder": {
        "type": "object",
        "description": "Sort order, e.g. `sortOrder[column]=_created_at&sortOrder[dir]=DESC`.",
        "properties": {
          "column": {
            "type": "string",
            "description": "The field name to sort by.",
            "minLength": 1
          },
          "dir": {
            "type": "string",
            "description": "The sort direction.",
            "enum": [
              "ASC",
              "DESC"
            ]
          }
        },
        "required": [
          "column",
          "dir"
        ],
        "additionalProperties": false
      },
      "filter": {
        "type": "object",
        "description": "Nested filter object, e.g. `filter[event]=clicked&filter[status]=completed`.",
        "properties": {
          "status": {
            "type": "string",
            "description": "Return only recipients in this delivery state, e.g. `filter[status]=completed`.",
            "enum": [
              "scheduled",
              "completed",
              "paused",
              "failed",
              "unsubscribed"
            ]
          },
          "event": {
            "type": "array",
            "description": "Return only recipients who performed at least one of these engagement events. `replied` covers email and LinkedIn replies, and `accepted` is an accepted LinkedIn connection request. Comma-separated and OR-ed, e.g. `filter[event]=clicked,replied`.",
            "items": {
              "type": "string",
              "enum": [
                "opened",
                "clicked",
                "replied",
                "accepted"
              ]
            }
          },
          "q": {
            "type": "string",
            "description": "Case-insensitive substring match against the recipient’s name or email address.",
            "maxLength": 50
          }
        },
        "additionalProperties": false
      }
    },
    "required": [
      "workspace",
      "campaignId"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | Provider response payload. |
| `result.data.links` | `object` | Yes | — | Pagination links. |
| `result.data.links.next` | `string \| null` | Yes | — | URL of the next page, or `null` on the last page. |
| `result.data.links.prev` | `string \| null` | Yes | — | URL of the previous page, or `null` on the first page. |
| `result.data.meta` | `object` | Yes | — | — |
| `result.data.meta.total_records` | `number` | Yes | — | — |
| `result.data.meta.total_pages` | `number` | Yes | — | — |
| `result.data.meta.total_unfiltered` | `number` | Yes | — | — |
| `result.data.meta.campaign_enabled` | `boolean` | Yes | — | — |
| `result.data.meta.list_evaluation_status` | `"idle" \| "evaluating" \| "error"` | Yes | — | Allowed: `idle`, `evaluating`, `error`. |
| `result.data.meta.list_member_count` | `number \| null` | Yes | — | — |
| `result.data.meta.list_recipient_count` | `number \| null` | Yes | — | Recipients who joined from the campaign’s list, ignoring filters. Null when the campaign has no list. |
| `result.data.data` | `array` | Yes | — | The page of resources. |
| `result.data.data[].type` | `"campaign_recipient"` | Yes | — | The resource type. matches the `object` path parameter. Allowed: `campaign_recipient`. |
| `result.data.data[].id` | `string` | Yes | — | The unique ID of the resource. |
| `result.data.data[].attributes` | `object` | Yes | — | Field values keyed by field name. available fields depend on the object’s schema. |
| `result.data.data[].attributes.workflow_run_id` | `string` | Yes | — | The ID of this recipient’s run through the campaign. Use it to fetch the full engagement timeline. |
| `result.data.data[].attributes.person` | `object \| null` | Yes | — | The recipient. Null when the run has no linked person record, or that record no longer exists. |
| `result.data.data[].attributes.person._id` | `string` | Yes | — | The unique ID of the person record. |
| `result.data.data[].attributes.person.name` | `object \| null` | Yes | — | The person’s name, or null when the record has no name set. |
| `result.data.data[].attributes.person.name.first_name` | `string` | No | — | The person’s first name. |
| `result.data.data[].attributes.person.name.last_name` | `string` | No | — | The person’s last name. |
| `result.data.data[].attributes.person.name.full_name` | `string` | No | — | The person’s full name (first and last combined). |
| `result.data.data[].attributes.person.email_addresses` | `object \| null` | Yes | — | The person’s email addresses. The campaign sends to the first item. |
| `result.data.data[].attributes.person.email_addresses.items` | `array` | Yes | — | — |
| `result.data.data[].attributes.person.avatar_url` | `string \| null` | Yes | — | URL of the person’s profile image, or null when they have none. |
| `result.data.data[].attributes.person.job_title` | `string \| null` | Yes | — | The person’s job title, or null when not known. |
| `result.data.data[].attributes.person.company_id` | `string \| null` | Yes | — | ID of the company this person belongs to, or null when unaffiliated. |
| `result.data.data[].attributes.person.linkedin` | `string \| null` | Yes | — | The person’s LinkedIn profile handle, or null when they have none. |
| `result.data.data[].attributes.status` | `"pending" \| "running" \| "success" \| "failed" \| "cancelled" \| "skipped" \| "waiting" \| "retrying"` | Yes | — | The raw workflow-run state of this recipient’s campaign run. For the delivery status shown in the app, use `filter[status]` to query instead. Allowed: `pending`, `running`, `success`, `failed`, `cancelled`, `skipped`, `waiting`, `retrying`. |
| `result.data.data[].attributes.resume_at` | `number \| null` | Yes | — | Unix timestamp (ms) at which a waiting run resumes, or null when the run is not waiting. |
| `result.data.data[].attributes.current_block_id` | `string \| null` | Yes | — | The campaign step the recipient is currently waiting on, or null when the run is not waiting. |
| `result.data.data[].attributes.linkedin_wait` | `object \| null` | Yes | — | Why the recipient’s current LinkedIn step is waiting. Null when the run is not waiting on a LinkedIn step. `resume_at` says when the step runs again. |
| `result.data.data[].attributes.linkedin_wait.reason` | `"send_window_closed" \| "awaiting_acceptance" \| "deferred"` | Yes | — | Why the step waits: `awaiting_acceptance` while an invite is out, `send_window_closed` outside the campaign’s sending hours, or `deferred` when LinkedIn pacing or limits hold the step. Allowed: `send_window_closed`, `awaiting_acceptance`, `deferred`. |
| `result.data.data[].attributes.linkedin_wait.detail` | `string \| null` | Yes | — | A readable explanation of a `deferred` wait, for example “LinkedIn is not taking an invite to this person yet”. Null for other waits. The wording can change. |
| `result.data.data[].attributes.linkedin_wait.code` | `"lock_contention" \| "held" \| "daily_limit" \| "pacing" \| "session_wait" \| "day_spent" \| "no_sending_days" \| "unavailable" \| "account_unavailable" \| "relations_syncing" \| "linkedin_off" \| "resend_blocked" \| "recently_withdrawn" \| "campaign_invites_paused" \| "earlier_message"` | Yes | — | A stable name for the `detail` of a `deferred` wait. Match on this instead of `detail`. Null for other waits and for a wait whose reason is unknown. Allowed: `lock_contention`, `held`, `daily_limit`, `pacing`, `session_wait`, `day_spent`, `no_sending_days`, `unavailable`, `account_unavailable`, `relations_syncing`, `linkedin_off`, `resend_blocked`, `recently_withdrawn`, `campaign_invites_paused`, `earlier_message`. |
| `result.data.data[].attributes.held_by_daily_limit` | `boolean` | Yes | — | True while the campaign’s daily limit on new people holds this recipient’s first step. `resume_at` says when the step starts. |
| `result.data.data[].attributes.started_at` | `string \| null` | Yes | — | When the recipient entered the campaign. Format: `date-time`. |
| `result.data.data[].attributes.ended_at` | `string \| null` | Yes | — | When the recipient’s run finished, or null while still active. Format: `date-time`. |
| `result.data.data[].attributes.exit_reason` | `string \| null` | Yes | — | Why the run ended (for example a reply or an unsubscribe), or null while still active. |
| `result.data.data[].attributes.exit_block_id` | `string \| null` | Yes | — | The campaign step at which the run ended, or null. |
| `result.data.data[].attributes.is_bespoke` | `boolean` | Yes | — | Whether the recipient was added to the campaign individually. False when they joined from the campaign’s list. |
| `result.data.data[].attributes.has_opened` | `boolean` | Yes | — | Whether the recipient opened at least one campaign email. |
| `result.data.data[].attributes.has_clicked` | `boolean` | Yes | — | Whether the recipient clicked a link in a campaign email. |
| `result.data.data[].attributes.has_replied` | `boolean` | Yes | — | Whether the recipient replied to a campaign email. |
| `result.data.data[].attributes.has_unsubscribed` | `boolean` | Yes | — | Whether the recipient unsubscribed. |
| `result.data.data[].attributes.has_accepted` | `boolean` | Yes | — | Whether the recipient accepted a LinkedIn connection request from the campaign. |
| `result.data.data[].attributes.last_opened_at` | `string \| null` | Yes | — | When the recipient most recently opened, or null if never. Format: `date-time`. |
| `result.data.data[].attributes.last_clicked_at` | `string \| null` | Yes | — | When the recipient most recently clicked a link, or null if never. Format: `date-time`. |
| `result.data.data[].attributes.last_replied_at` | `string \| null` | Yes | — | When the recipient most recently replied, or null if never. Format: `date-time`. |

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