# Scale With Data API

The API for Pulse, the sales platform by Scale With Data. It reads your CRM records, activities, meetings, pipelines and sales, and can add leads, updates and notes. This file is the whole reference in Markdown, generated from the same catalog the API's routes are built from.

- Human docs: https://scalewithdata.ai/developers
- OpenAPI 3.1 document: https://scalewithdata.ai/api/public/openapi.json
- Data dictionary (every field, as JSON): https://scalewithdata.ai/api/public/data-dictionary.json
- Data dictionary (page): https://scalewithdata.ai/developers/data-dictionary
- Airbyte manifest: https://scalewithdata.ai/api/public/airbyte-manifest.yaml

## Authentication

Base URL: `https://scalewithdata.ai/api/v1`. Send your key on every request as `Authorization: Bearer sk_live_...`. A write also needs `Content-Type: application/json`. A brand admin creates keys in Pulse under CRM, Settings, Integrations, API Access. One key reads and writes one brand only.

Permissions a key can carry:

| Permission | Name | What it allows |
| --- | --- | --- |
| `read:crm` | Read CRM | Records, activities and message history, meetings, pipelines, users and custom fields. |
| `write:crm` | Write CRM | Create and update records, set custom fields, add notes and contacts. Never sends messages. |
| `read:sales` | Read sales | Sales from your Ledger, with amounts and customer details. Also processor payments, payment plans and installments. |
| `read:leads` | Zapier dialer feeds | New dialer leads, call outcomes and booked appointments, for Zapier. |
| `read:metrics` | Read metrics | Read your reports and metrics: the metric list with definitions, any metric's value for a period, the Advanced Reporting page, outreach by rep, end-of-day reporting and speed to lead. |
| `read:conversations` | Read conversations | Read the full text of messages, your call list, and call transcripts and summaries. Also adds the whole message text to a record's interactions. |
| `read:commissions` | Read commission | Commission per sale and rep (closer and setter): amounts, whether each is posted or projected, and holds. |

## Limits

- Plan for 120 requests a minute per key. Above it you get `429 rate_limited` with `Retry-After` in seconds.
- Lists return pages: `limit` is 1 to 100 (default 50). Pass the `next_cursor` you received as `cursor`, unchanged, until it is `null`.
- A request that takes longer than 60 seconds is answered `504 timeout`.
- Missing values are `null`, never 0 or an empty string.

## Errors

Errors come back as `{ "error": { "code": "...", "message": "..." } }`. Decide what to do from the `code`.

| Code | Status | Meaning | What to do | Retry |
| --- | --- | --- | --- | --- |
| `missing_api_key` | 401 | No key was sent. | Send `Authorization: Bearer sk_live_...` on every request. | no |
| `invalid_api_key` | 401 | The key is not one we issued. | Copy the key again, or create a new one in CRM Settings › API Access. | no |
| `api_key_revoked` | 401 | The key was revoked. | Create a new key in CRM Settings › API Access. | no |
| `api_key_paused` | 401 | The key is paused. Nothing was deleted, and the same key works again once it is resumed. | Ask a CRM admin to resume it in CRM Settings › API Access. | no |
| `api_key_expired` | 401 | The key expired. | Create a new key in CRM Settings › API Access. | no |
| `insufficient_scope` | 403 | The key is not allowed to do this. | Create a key with the permission the error names. | no |
| `invalid_request` | 400 | A parameter or body field is missing or not valid, or the body is not JSON. | Read the message: it names the field and what it expects. Every field is checked before anything is saved, so a request refused for a bad field saves nothing. | no |
| `invalid_cursor` | 400 | The cursor was changed or is from another list. | Pass `next_cursor` exactly as you received it. | no |
| `payload_too_large` | 413 | The body is larger than 5 MB. | Send fewer fields, or a shorter note, in each request. | no |
| `conflict` | 409 | The request clashes with the record as it is now, for example it was merged, or the email belongs to a merged lead. | Read the message. It says what to do, for example update the record it was merged into. | no |
| `forbidden` | 403 | Your account's settings do not allow this change. | Read the message, then change the setting in Pulse or ask a CRM admin. | no |
| `contact_busy` | 409 | Another change for the same person (a booking, a form, or another request) is being saved right now. Nothing was saved. | Wait a few seconds, then send the same request again. | yes |
| `idempotency_in_progress` | 409 | A request with the same Idempotency-Key is still being handled. | Wait a few seconds, then send it again with the same key. You get the first request's result. | yes |
| `idempotency_retry` | 409 | The first request with this Idempotency-Key did not finish, and nothing was saved. | Send it again with the same key. | yes |
| `precondition_failed` | 412 | You sent `If-Match`, and the record changed since the read that gave you that ETag. Nothing was saved. | Read the record again, apply your change to what is there now, and send it with the new ETag (also in this response's `ETag` header). | no |
| `not_found` | 404 | Nothing with that id exists in your account. | Check the id. Ids from another brand are never found. | no |
| `rate_limited` | 429 | Too many requests this minute. | Wait the number of seconds in the `Retry-After` header (the same as `RateLimit-Reset`, which counts seconds, not a clock time), then continue. | yes |
| `sales_not_on_ledger` | 409 | Your account has not been moved over to the Pulse Ledger as its sales record yet, so the sales list cannot promise a complete answer. | Contact Scale With Data to finish the move. Your dashboard still shows your sales. | no |
| `payment_plans_not_built` | 409 | The payment schedule for your account has not been built yet, so the payment plan lists have nothing they can show. This is not the same as having no payment plans. | Contact Scale With Data to have it built. Your sales list still works. | no |
| `not_ready` | 503 | This list is not switched on for your account yet. | Contact Scale With Data. Nothing is wrong with your request. | no |
| `verification_failed` | 503 | We could not check your key just now. | Retry after a few seconds. | yes |
| `timeout` | 504 | The request took longer than 60 seconds, so we stopped waiting and answered. | A read is safe to retry. A create, note or contact is safe to retry with the same Idempotency-Key. Part of an update may already be saved: send the same update again to finish it, or read the record to see what was saved. | yes |
| `database_unavailable` | 503 | We could not read or save your data just now. | Retry after a few seconds. A create, note or contact is safe to retry only with the same Idempotency-Key. Part of an update may already be saved: send the same update again to finish it. You never get an empty list instead of an error. | yes |

## Keeping a copy in sync

These lists are change feeds. Pass the largest value you have received, exactly as it came back, and you get only what changed since. Save each result by its id, because a result can come back twice.

| List | Pass | Filters on | Holds back the newest changes |
| --- | --- | --- | --- |
| `GET /crm/records` | `updated_after` | `updated_at` | yes, 2 minutes |
| `GET /crm/records/{id}/activities` | `occurred_after` | `occurred_at` | not stated |
| `GET /crm/records/{id}/interactions` | `occurred_after` | `occurred_at` | not stated |
| `GET /meetings` | `updated_after` | `updated_at` | yes, 2 minutes |
| `GET /sales/changes` | `updated_after` | `updated_at` | yes, 2 minutes |
| `GET /refunds` | `updated_after` | `updated_at` | yes, 2 minutes |
| `GET /messages` | `updated_after` | `updated_at` | yes, 2 minutes |
| `GET /messages/synced` | `updated_after` | `updated_at` | yes, 2 minutes |
| `GET /calls` | `occurred_after` | `occurred_at` | not stated |
| `GET /crm/activities` | `created_after` | `created_at` | yes, 2 minutes |
| `GET /crm/interactions` | `occurred_after` | `occurred_at` | yes, 2 minutes |
| `GET /payments` | `occurred_after` | `occurred_at` | not stated |

These lists have no change filter. Read them whole on each pass: `GET /crm/pipelines`, `GET /crm/users`, `GET /crm/custom_fields`, `GET /sales`, `GET /crm/records/{id}/calls`, `GET /payment_plans`, `GET /payment_plans/installments`, `GET /commissions`, `GET /metrics`, `GET /exports/datasets`.

Run a full pass now and then as well. A save that takes longer than the hold can land behind a time your sync has already passed.

## Endpoints

### Your key

Check that a key works and see which brand it belongs to.

#### Check your key

`GET https://scalewithdata.ai/api/v1/me`

Returns the brand your key belongs to and what it is allowed to read. Call this first to confirm a key works.

- Permission: any valid key
- Success: 200 OK
- Response: one object

##### Fields in the response

| Field | Type | Meaning |
| --- | --- | --- |
| `partnerId` | integer | Your brand's id. |
| `partnerName` | string \| null | Your brand's name. |
| `scopes` | string[] | What this key is allowed to read. |

Every field has a permanent link in the data dictionary: https://scalewithdata.ai/developers/data-dictionary#me

##### Example

```bash
curl "https://scalewithdata.ai/api/v1/me" \
  -H "Authorization: Bearer $SWD_API_KEY"
```

```json
{
  "partnerId": 100042,
  "partnerName": "Lee Fitness Coaching",
  "scopes": [
    "read:crm",
    "read:sales"
  ]
}
```

Errors it can return: `missing_api_key`, `invalid_api_key`, `api_key_revoked`, `api_key_paused`, `api_key_expired`, `rate_limited`, `verification_failed`, `timeout`, `database_unavailable`.

### Records (leads and customers)

A record is one person or company in your CRM: a lead, a customer, or a client being onboarded. Deal fields (stage, value, won or lost) sit on the same record.

#### List records

`GET https://scalewithdata.ai/api/v1/crm/records`

Every record in your CRM, oldest change first. Page through it once to export everything. To keep a copy in sync, pass `updated_after` with the largest `updated_at` you have received (not your own clock) and you get only what changed since; a record you already have may come back. This list holds back the newest two minutes of changes so that a change still being saved is never skipped. A change to a record's own fields or its lead custom fields moves its `updated_at`, whoever made it. Logging an activity or changing the people on a record usually moves it too, but not always (an activity dated earlier than the record's last one, or one imported from Close, does not), and a custom field value imported by a Close sync never does. If you copy activities, contacts or Close-imported values, refresh them from the record's own endpoints in a periodic full pass.

- Permission: `read:crm`
- Success: 200 OK
- Response: `{ results, next_cursor }`, one page of a list

##### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `updated_after` | query | datetime | no | Only records whose `updated_at` is at or after this time (ISO 8601, for example `2026-10-01T00:00:00Z`). To sync, pass the largest `updated_at` you already received, exactly as it came back, never your own clock. `updated_at` has one-second precision, so records from that same second come back again: save by `id` and a repeat is harmless. Ignored when you pass a cursor. |
| `include_merged` | query | boolean | no | `true` also returns records that were merged into another one, with `merged_into` set. Use it when you keep a copy and need to remove duplicates. Default `false`. |
| `limit` | query | integer | no | How many results per page, 1 to 100. Default 50. |
| `cursor` | query | string | no | Leave it out for the first page. For the next page, pass the `next_cursor` the previous page returned, unchanged. |

##### Fields in the response

| Field | Type | Meaning |
| --- | --- | --- |
| `id` | string | The record's id. Never changes. |
| `lifecycle` | string | `lead`, `customer` or `onboard` (a client being onboarded). |
| `name` | string | Display name. |
| `first_name` | string \| null | First name, when it was recorded separately. |
| `last_name` | string \| null | Last name, when it was recorded separately. |
| `company` | string \| null | Company name. |
| `title` | string \| null | Job title. |
| `email` | string \| null | Main email address. |
| `phone` | string \| null | Main phone number, as entered. |
| `location` | string \| null | Location, as entered. |
| `source` | string \| null | How the record first reached Pulse: the name of the tool it was imported from (for example `Close`, `Ontraport`, `GoHighLevel` or `OnceHub`), or what the person or API that created it typed. It is not a marketing source. When your team keeps the marketing source in a custom field (for example a `Last Lead Source` field brought in from Close), read that field in the record's `custom_fields`. |
| `status` | string \| null | The record's lead status, by its name on your own status list (CRM Settings, Lead statuses), for example `New lead` or `Setter - Outreach`. A status brought in from Close keeps its Close name. Renaming a status changes this text on every record that holds it; store `status_key` to follow one status through a rename. |
| `status_key` | string \| null | The lead status as a key that never changes when the status is renamed, for example `setter_outreach`. `new` is the status every record starts on. |
| `tags` | string[] | Tags. An empty list when there are none. |
| `program` | string \| null | The program or offer the deal is for. |
| `stage` | string \| null | Stage on your Sales Pipeline. Null when the record is not on it. |
| `stage_entered_at` | datetime \| null | When the record entered its current stage. |
| `value_usd` | integer \| null | Deal value in WHOLE US dollars, not cents: `7500` is $7,500. Null means nobody priced the deal, which is different from a $0 deal. |
| `owner_key` | string \| null | Who owns the record. Matches `key` in the users list. |
| `success_owner_key` | string \| null | The client's success manager, for customers. Matches `key` in the users list. |
| `won_at` | datetime \| null | When the deal was won. Null if not won, or if no won date was proven. |
| `lost_at` | datetime \| null | When the deal was lost. |
| `loss_reason` | string \| null | Why the deal was lost, as a reason code. |
| `next_step` | object | `label`, `due_date` (YYYY-MM-DD) and `done` for the record's next step. |
| `last_activity_at` | datetime \| null | When anything was last logged on the record. |
| `merged_into` | string \| null | Set when this record was merged into another. Follow it to the record that was kept. |
| `created_at` | datetime | When the record was created. |
| `updated_at` | datetime | When the record last changed. Use it to sync only what changed. |

Every field has a permanent link in the data dictionary: https://scalewithdata.ai/developers/data-dictionary#record

##### Example

```bash
curl "https://scalewithdata.ai/api/v1/crm/records" \
  -H "Authorization: Bearer $SWD_API_KEY"
```

```json
{
  "results": [
    {
      "id": "8f1c2b8e-4d61-4f52-9a43-0b9d7c1e5a10",
      "lifecycle": "lead",
      "name": "Jordan Lee",
      "first_name": "Jordan",
      "last_name": "Lee",
      "company": "Lee Fitness",
      "title": "Owner",
      "email": "jordan@leefitness.com",
      "phone": "+1 555 010 2233",
      "location": "Austin, TX",
      "source": "Facebook ad",
      "status": "Contacted",
      "status_key": "contacted",
      "tags": [
        "webinar",
        "hot"
      ],
      "program": "Accelerator",
      "stage": "Booked Call",
      "stage_entered_at": "2026-10-18T15:04:00.000Z",
      "value_usd": 7500,
      "owner_key": "m3",
      "success_owner_key": null,
      "won_at": null,
      "lost_at": null,
      "loss_reason": null,
      "next_step": {
        "label": "Follow up after the call",
        "due_date": "2026-10-22",
        "done": false
      },
      "last_activity_at": "2026-10-19T17:30:12.000Z",
      "merged_into": null,
      "created_at": "2026-10-12T09:12:44.000Z",
      "updated_at": "2026-10-19T17:30:12.000Z"
    }
  ],
  "next_cursor": null
}
```

Errors it can return: `missing_api_key`, `invalid_api_key`, `api_key_revoked`, `api_key_paused`, `api_key_expired`, `insufficient_scope`, `invalid_request`, `invalid_cursor`, `rate_limited`, `not_ready`, `verification_failed`, `timeout`, `database_unavailable`.

#### Get one record

`GET https://scalewithdata.ai/api/v1/crm/records/{id}`

One record with everything on it: its fields, the people on it, your custom fields and the pipelines it is on.

- Permission: `read:crm`
- Success: 200 OK
- Response: one object
- The response carries an `ETag` header, the record's version tag.

##### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | yes | The record's `id`. |

##### Fields in the response

| Field | Type | Meaning |
| --- | --- | --- |
| `id` | string | The record's id. Never changes. |
| `lifecycle` | string | `lead`, `customer` or `onboard` (a client being onboarded). |
| `name` | string | Display name. |
| `first_name` | string \| null | First name, when it was recorded separately. |
| `last_name` | string \| null | Last name, when it was recorded separately. |
| `company` | string \| null | Company name. |
| `title` | string \| null | Job title. |
| `email` | string \| null | Main email address. |
| `phone` | string \| null | Main phone number, as entered. |
| `location` | string \| null | Location, as entered. |
| `source` | string \| null | How the record first reached Pulse: the name of the tool it was imported from (for example `Close`, `Ontraport`, `GoHighLevel` or `OnceHub`), or what the person or API that created it typed. It is not a marketing source. When your team keeps the marketing source in a custom field (for example a `Last Lead Source` field brought in from Close), read that field in the record's `custom_fields`. |
| `status` | string \| null | The record's lead status, by its name on your own status list (CRM Settings, Lead statuses), for example `New lead` or `Setter - Outreach`. A status brought in from Close keeps its Close name. Renaming a status changes this text on every record that holds it; store `status_key` to follow one status through a rename. |
| `status_key` | string \| null | The lead status as a key that never changes when the status is renamed, for example `setter_outreach`. `new` is the status every record starts on. |
| `tags` | string[] | Tags. An empty list when there are none. |
| `program` | string \| null | The program or offer the deal is for. |
| `stage` | string \| null | Stage on your Sales Pipeline. Null when the record is not on it. |
| `stage_entered_at` | datetime \| null | When the record entered its current stage. |
| `value_usd` | integer \| null | Deal value in WHOLE US dollars, not cents: `7500` is $7,500. Null means nobody priced the deal, which is different from a $0 deal. |
| `owner_key` | string \| null | Who owns the record. Matches `key` in the users list. |
| `success_owner_key` | string \| null | The client's success manager, for customers. Matches `key` in the users list. |
| `won_at` | datetime \| null | When the deal was won. Null if not won, or if no won date was proven. |
| `lost_at` | datetime \| null | When the deal was lost. |
| `loss_reason` | string \| null | Why the deal was lost, as a reason code. |
| `next_step` | object | `label`, `due_date` (YYYY-MM-DD) and `done` for the record's next step. |
| `last_activity_at` | datetime \| null | When anything was last logged on the record. |
| `merged_into` | string \| null | Set when this record was merged into another. Follow it to the record that was kept. |
| `created_at` | datetime | When the record was created. |
| `updated_at` | datetime | When the record last changed. Use it to sync only what changed. |
| `contacts` | object[] | Other people on the record: `id`, `name`, `role`. |
| `custom_fields` | object[] | Your custom fields: `key`, `label`, `type`, `value`, `currency` and `display` (the value as a person reads it). `value` is null when nothing was entered. A currency field's `value` is an integer in minor units of the currency named in `currency` (cents for `USD`: `1000000` is 10,000.00). `currency` is null for every other type, and for a currency field set up without a currency. |
| `pipelines` | object[] | Other pipelines the record is on: `pipeline_id` and `stage`. The Sales Pipeline stage is the `stage` field above. |

Every field has a permanent link in the data dictionary: https://scalewithdata.ai/developers/data-dictionary#record

##### Example

```bash
curl "https://scalewithdata.ai/api/v1/crm/records/8f1c2b8e-4d61-4f52-9a43-0b9d7c1e5a10" \
  -H "Authorization: Bearer $SWD_API_KEY"
```

```json
{
  "id": "8f1c2b8e-4d61-4f52-9a43-0b9d7c1e5a10",
  "lifecycle": "lead",
  "name": "Jordan Lee",
  "first_name": "Jordan",
  "last_name": "Lee",
  "company": "Lee Fitness",
  "title": "Owner",
  "email": "jordan@leefitness.com",
  "phone": "+1 555 010 2233",
  "location": "Austin, TX",
  "source": "Facebook ad",
  "status": "Contacted",
  "status_key": "contacted",
  "tags": [
    "webinar",
    "hot"
  ],
  "program": "Accelerator",
  "stage": "Booked Call",
  "stage_entered_at": "2026-10-18T15:04:00.000Z",
  "value_usd": 7500,
  "owner_key": "m3",
  "success_owner_key": null,
  "won_at": null,
  "lost_at": null,
  "loss_reason": null,
  "next_step": {
    "label": "Follow up after the call",
    "due_date": "2026-10-22",
    "done": false
  },
  "last_activity_at": "2026-10-19T17:30:12.000Z",
  "merged_into": null,
  "created_at": "2026-10-12T09:12:44.000Z",
  "updated_at": "2026-10-19T17:30:12.000Z",
  "contacts": [
    {
      "id": 3121,
      "name": "Casey Lee",
      "role": "Business partner"
    }
  ],
  "custom_fields": [
    {
      "key": "budget",
      "label": "Budget",
      "type": "currency",
      "value": 1000000,
      "currency": "USD",
      "display": "$10,000.00"
    }
  ],
  "pipelines": [
    {
      "pipeline_id": "onboarding",
      "stage": "Kickoff booked"
    }
  ]
}
```

Errors it can return: `missing_api_key`, `invalid_api_key`, `api_key_revoked`, `api_key_paused`, `api_key_expired`, `insufficient_scope`, `not_found`, `rate_limited`, `verification_failed`, `timeout`, `database_unavailable`.

#### Create a record

`POST https://scalewithdata.ai/api/v1/crm/records`

Adds a lead to your CRM, exactly as the New Lead form does: same checks, same routing and the same spot on your Sales Pipeline. Send an `Idempotency-Key` header so a retry never creates the lead twice. Set custom fields afterwards with Update a record.

- Permission: `write:crm`
- Success: 201 Created (200 on a replay with the same Idempotency-Key)
- Response: one object
- Send an `Idempotency-Key` header (8 to 40 letters, digits, `_` or `-`), made once per request and sent again on every retry.

##### JSON body

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `name` | string | yes | The person's or company's name, up to 160 characters. |
| `company` | string \| null | no | Company name. |
| `email` | string \| null | no | Main email address. Must be a valid address. |
| `phone` | string \| null | no | Main phone number. Stored in international format, so include the country code (for example `+1 555 010 2233`). |
| `source` | string | no | Where the lead came from, up to 160 characters. Default `API`. |
| `value_usd` | integer | no | Deal value in WHOLE US dollars, not cents (`7500` is $7,500), 0 to 100,000,000. |
| `owner_key` | string | no | Who owns the record: a `key` from the users list whose `can_own_leads` is true. Leave it out and your account's routing picks the owner, as it does for the New Lead form. |
| `pipeline_id` | string | no | Which pipeline to put the lead on: an `id` from the pipelines list. Default your Sales Pipeline. |
| `add_to_pipeline` | boolean | no | `false` creates the record without putting it on a pipeline. Default `true`. |

##### Fields in the response

| Field | Type | Meaning |
| --- | --- | --- |
| `id` | string | The record's id. Never changes. |
| `lifecycle` | string | `lead`, `customer` or `onboard` (a client being onboarded). |
| `name` | string | Display name. |
| `first_name` | string \| null | First name, when it was recorded separately. |
| `last_name` | string \| null | Last name, when it was recorded separately. |
| `company` | string \| null | Company name. |
| `title` | string \| null | Job title. |
| `email` | string \| null | Main email address. |
| `phone` | string \| null | Main phone number, as entered. |
| `location` | string \| null | Location, as entered. |
| `source` | string \| null | How the record first reached Pulse: the name of the tool it was imported from (for example `Close`, `Ontraport`, `GoHighLevel` or `OnceHub`), or what the person or API that created it typed. It is not a marketing source. When your team keeps the marketing source in a custom field (for example a `Last Lead Source` field brought in from Close), read that field in the record's `custom_fields`. |
| `status` | string \| null | The record's lead status, by its name on your own status list (CRM Settings, Lead statuses), for example `New lead` or `Setter - Outreach`. A status brought in from Close keeps its Close name. Renaming a status changes this text on every record that holds it; store `status_key` to follow one status through a rename. |
| `status_key` | string \| null | The lead status as a key that never changes when the status is renamed, for example `setter_outreach`. `new` is the status every record starts on. |
| `tags` | string[] | Tags. An empty list when there are none. |
| `program` | string \| null | The program or offer the deal is for. |
| `stage` | string \| null | Stage on your Sales Pipeline. Null when the record is not on it. |
| `stage_entered_at` | datetime \| null | When the record entered its current stage. |
| `value_usd` | integer \| null | Deal value in WHOLE US dollars, not cents: `7500` is $7,500. Null means nobody priced the deal, which is different from a $0 deal. |
| `owner_key` | string \| null | Who owns the record. Matches `key` in the users list. |
| `success_owner_key` | string \| null | The client's success manager, for customers. Matches `key` in the users list. |
| `won_at` | datetime \| null | When the deal was won. Null if not won, or if no won date was proven. |
| `lost_at` | datetime \| null | When the deal was lost. |
| `loss_reason` | string \| null | Why the deal was lost, as a reason code. |
| `next_step` | object | `label`, `due_date` (YYYY-MM-DD) and `done` for the record's next step. |
| `last_activity_at` | datetime \| null | When anything was last logged on the record. |
| `merged_into` | string \| null | Set when this record was merged into another. Follow it to the record that was kept. |
| `created_at` | datetime | When the record was created. |
| `updated_at` | datetime | When the record last changed. Use it to sync only what changed. |

Every field has a permanent link in the data dictionary: https://scalewithdata.ai/developers/data-dictionary#record

##### Example

```bash
curl -X POST "https://scalewithdata.ai/api/v1/crm/records" \
  -H "Authorization: Bearer $SWD_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -d '{"name":"Jordan Lee","email":"jordan@leefitness.com","phone":"+1 555 010 2233","company":"Lee Fitness","source":"Website form"}'
```

```json
{
  "id": "8f1c2b8e-4d61-4f52-9a43-0b9d7c1e5a10",
  "lifecycle": "lead",
  "name": "Jordan Lee",
  "first_name": "Jordan",
  "last_name": "Lee",
  "company": "Lee Fitness",
  "title": "Owner",
  "email": "jordan@leefitness.com",
  "phone": "+1 555 010 2233",
  "location": "Austin, TX",
  "source": "Facebook ad",
  "status": "Contacted",
  "status_key": "contacted",
  "tags": [
    "webinar",
    "hot"
  ],
  "program": "Accelerator",
  "stage": "Booked Call",
  "stage_entered_at": "2026-10-18T15:04:00.000Z",
  "value_usd": 7500,
  "owner_key": "m3",
  "success_owner_key": null,
  "won_at": null,
  "lost_at": null,
  "loss_reason": null,
  "next_step": {
    "label": "Follow up after the call",
    "due_date": "2026-10-22",
    "done": false
  },
  "last_activity_at": "2026-10-19T17:30:12.000Z",
  "merged_into": null,
  "created_at": "2026-10-12T09:12:44.000Z",
  "updated_at": "2026-10-19T17:30:12.000Z"
}
```

Errors it can return: `missing_api_key`, `invalid_api_key`, `api_key_revoked`, `api_key_paused`, `api_key_expired`, `insufficient_scope`, `invalid_request`, `payload_too_large`, `conflict`, `forbidden`, `idempotency_in_progress`, `idempotency_retry`, `rate_limited`, `verification_failed`, `timeout`, `database_unavailable`.

#### Update a record

`PATCH https://scalewithdata.ai/api/v1/crm/records/{id}`

Changes the fields you send and leaves every other field alone. Send `null` to clear a field. Every field is checked before anything is saved, so a `400` from an input check means nothing was saved. The checked changes are then saved in steps (the record's own fields, then the deal value, then each custom field), not in one all-or-nothing step: a later `409 conflict`, failure or timeout can leave earlier steps saved. Sending the same update again finishes it when the record is still live; after a merge conflict, read the record and send the remaining changes to the record that was kept. Without `If-Match` the last update wins. Send `If-Match` with the `ETag` from your read to update only if the record has not changed since: then the whole update is saved in one step or not at all, and a record changed in between is refused with `412 precondition_failed`. Every change is in the record's audit trail under your key's name. Stage, owner and tags are changed in Pulse, not here.

- Permission: `write:crm`
- Success: 200 OK
- Response: one object
- Send `If-Match` with the `ETag` from your read to save only if the record has not changed since (`412 precondition_failed` otherwise).

##### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | yes | The record's `id`. |

##### JSON body

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `name` | string | no | Display name. Changing it splits it into first and last name the way Pulse does. |
| `first_name` | string \| null | no | First name. |
| `last_name` | string \| null | no | Last name. |
| `company` | string \| null | no | Company name. |
| `email` | string \| null | no | Main email address. Must be a valid address. |
| `phone` | string \| null | no | Main phone number. Stored in international format, so include the country code (for example `+1 555 010 2233`). |
| `title` | string \| null | no | Job title. |
| `location` | string \| null | no | Location. |
| `source` | string \| null | no | Where the lead came from. |
| `program` | string \| null | no | The program or offer the deal is for. |
| `value_usd` | integer \| null | no | Deal value in WHOLE US dollars, not cents (`7500` is $7,500), 0 to 100,000,000. `null` means not priced. |
| `custom_fields` | object | no | Your custom fields, as `{ "key": value }` with keys from the custom fields list. A number field takes a number, a currency field a whole number of minor units in the field's own currency (cents for USD: `125050` is 1,250.50, the same unit a read returns), a date field `YYYY-MM-DD`, a pick list one of its options (a list for multi select), and `null` clears it. Up to 50 at once. File fields are set in Pulse. |

##### Fields in the response

| Field | Type | Meaning |
| --- | --- | --- |
| `id` | string | The record's id. Never changes. |
| `lifecycle` | string | `lead`, `customer` or `onboard` (a client being onboarded). |
| `name` | string | Display name. |
| `first_name` | string \| null | First name, when it was recorded separately. |
| `last_name` | string \| null | Last name, when it was recorded separately. |
| `company` | string \| null | Company name. |
| `title` | string \| null | Job title. |
| `email` | string \| null | Main email address. |
| `phone` | string \| null | Main phone number, as entered. |
| `location` | string \| null | Location, as entered. |
| `source` | string \| null | How the record first reached Pulse: the name of the tool it was imported from (for example `Close`, `Ontraport`, `GoHighLevel` or `OnceHub`), or what the person or API that created it typed. It is not a marketing source. When your team keeps the marketing source in a custom field (for example a `Last Lead Source` field brought in from Close), read that field in the record's `custom_fields`. |
| `status` | string \| null | The record's lead status, by its name on your own status list (CRM Settings, Lead statuses), for example `New lead` or `Setter - Outreach`. A status brought in from Close keeps its Close name. Renaming a status changes this text on every record that holds it; store `status_key` to follow one status through a rename. |
| `status_key` | string \| null | The lead status as a key that never changes when the status is renamed, for example `setter_outreach`. `new` is the status every record starts on. |
| `tags` | string[] | Tags. An empty list when there are none. |
| `program` | string \| null | The program or offer the deal is for. |
| `stage` | string \| null | Stage on your Sales Pipeline. Null when the record is not on it. |
| `stage_entered_at` | datetime \| null | When the record entered its current stage. |
| `value_usd` | integer \| null | Deal value in WHOLE US dollars, not cents: `7500` is $7,500. Null means nobody priced the deal, which is different from a $0 deal. |
| `owner_key` | string \| null | Who owns the record. Matches `key` in the users list. |
| `success_owner_key` | string \| null | The client's success manager, for customers. Matches `key` in the users list. |
| `won_at` | datetime \| null | When the deal was won. Null if not won, or if no won date was proven. |
| `lost_at` | datetime \| null | When the deal was lost. |
| `loss_reason` | string \| null | Why the deal was lost, as a reason code. |
| `next_step` | object | `label`, `due_date` (YYYY-MM-DD) and `done` for the record's next step. |
| `last_activity_at` | datetime \| null | When anything was last logged on the record. |
| `merged_into` | string \| null | Set when this record was merged into another. Follow it to the record that was kept. |
| `created_at` | datetime | When the record was created. |
| `updated_at` | datetime | When the record last changed. Use it to sync only what changed. |

Every field has a permanent link in the data dictionary: https://scalewithdata.ai/developers/data-dictionary#record

##### Example

```bash
curl -X PATCH "https://scalewithdata.ai/api/v1/crm/records/8f1c2b8e-4d61-4f52-9a43-0b9d7c1e5a10" \
  -H "Authorization: Bearer $SWD_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"phone":"+1 555 010 9988","program":"Accelerator","value_usd":7500,"custom_fields":{"budget":1000000}}'
```

```json
{
  "id": "8f1c2b8e-4d61-4f52-9a43-0b9d7c1e5a10",
  "lifecycle": "lead",
  "name": "Jordan Lee",
  "first_name": "Jordan",
  "last_name": "Lee",
  "company": "Lee Fitness",
  "title": "Owner",
  "email": "jordan@leefitness.com",
  "phone": "+1 555 010 2233",
  "location": "Austin, TX",
  "source": "Facebook ad",
  "status": "Contacted",
  "status_key": "contacted",
  "tags": [
    "webinar",
    "hot"
  ],
  "program": "Accelerator",
  "stage": "Booked Call",
  "stage_entered_at": "2026-10-18T15:04:00.000Z",
  "value_usd": 7500,
  "owner_key": "m3",
  "success_owner_key": null,
  "won_at": null,
  "lost_at": null,
  "loss_reason": null,
  "next_step": {
    "label": "Follow up after the call",
    "due_date": "2026-10-22",
    "done": false
  },
  "last_activity_at": "2026-10-19T17:30:12.000Z",
  "merged_into": null,
  "created_at": "2026-10-12T09:12:44.000Z",
  "updated_at": "2026-10-19T17:30:12.000Z"
}
```

Errors it can return: `missing_api_key`, `invalid_api_key`, `api_key_revoked`, `api_key_paused`, `api_key_expired`, `insufficient_scope`, `invalid_request`, `payload_too_large`, `conflict`, `forbidden`, `precondition_failed`, `not_found`, `rate_limited`, `verification_failed`, `timeout`, `database_unavailable`.

#### Create or update a record by email or phone

`POST https://scalewithdata.ai/api/v1/crm/records/upsert`

For software that knows a person and not their record id (a checkout, a form, a Zap). Pulse looks for the one contact with this email or phone, the same way it matches a booking or a purchase. Found: that contact is updated and the answer is `200` with the `Pulse-Record-Outcome: matched` header. Each contact field you send fills only a field that is empty, so a name, email or phone your team already has is never replaced; custom fields are always set. Not found: the contact is created exactly as Create a record creates it (same checks, same routing picks the owner, same spot on your Sales Pipeline), its custom fields are set, and the answer is `201` with `Pulse-Record-Outcome: created`. An email or phone kept on a contact after a merge counts, so it lands on the contact that was kept. Matching follows your account's identity rules (Integrations › Attribution): an email or phone your rules do not match on is not used to find anyone, and when your rules keep two people with the same phone and different emails apart, a phone whose contact has a different email names nobody, so the contact the email names is the one updated. Under those rules, when more than one contact has the email or phone, or the email and the phone still name two different contacts, the answer is `409 conflict` and nothing is saved. Two requests for the same new person at once never create two contacts: the one that has to wait too long is answered `409 contact_busy` with nothing saved, and sending it again a few seconds later works. Every custom field is checked before anything is saved. A new contact is saved first and its custom fields straight after: if the answer is a `503` or a timeout, send the same request again and it finishes on the contact already made. Send an `Idempotency-Key` header, a new one for each request, so a retry never creates the contact twice and never saves the same update twice: a retry of a request that already finished answers `200` with `Idempotent-Replayed: true` and the contact as it is now, and saves nothing. A key already used for a different person is `409 conflict`. A custom field change starts any workflow or Live List that watches that field, so setting a field is how you add someone to a calling list or take them off it.

- Permission: `write:crm`
- Success: 201 Created, or 200 when the contact already exists and was updated
- Response: one object
- Send an `Idempotency-Key` header (8 to 40 letters, digits, `_` or `-`), made once per request and sent again on every retry.

##### JSON body

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `email` | string | no | The person's email address. Send this, `phone`, or both. Used to find them, and saved on a new contact. |
| `phone` | string | no | The person's phone number with its country code, at least 10 digits, without an extension. Found by its last 10 digits. |
| `name` | string | yes | The person's or company's name, up to 160 characters. On a contact that already has a name, theirs is kept. |
| `company` | string | no | Company, up to 160 characters. Fills an empty company only. |
| `source` | string | no | Where the lead came from, up to 160 characters. Default `API` on a new contact; fills an empty source only. |
| `value_usd` | integer | no | Deal value in WHOLE US dollars, not cents (`7500` is $7,500). Fills an unpriced deal only. |
| `owner_key` | string | no | New contacts only: who owns it, a `key` from the users list whose `can_own_leads` is true. Leave it out and your account's routing picks the owner. An existing contact keeps its owner. |
| `pipeline_id` | string | no | New contacts only: which pipeline to put it on, an `id` from the pipelines list. Default your Sales Pipeline. |
| `add_to_pipeline` | boolean | no | New contacts only: `false` creates it without putting it on a pipeline. Default `true`. |
| `custom_fields` | object | no | Your custom fields, as `{ "key": value }` with keys from the custom fields list, in the same units Update a record takes. Always set, on a new contact and an existing one. Up to 50 at once. File fields and people fields are set in Pulse or with Update a record. |

##### Fields in the response

| Field | Type | Meaning |
| --- | --- | --- |
| `id` | string | The record's id. Never changes. |
| `lifecycle` | string | `lead`, `customer` or `onboard` (a client being onboarded). |
| `name` | string | Display name. |
| `first_name` | string \| null | First name, when it was recorded separately. |
| `last_name` | string \| null | Last name, when it was recorded separately. |
| `company` | string \| null | Company name. |
| `title` | string \| null | Job title. |
| `email` | string \| null | Main email address. |
| `phone` | string \| null | Main phone number, as entered. |
| `location` | string \| null | Location, as entered. |
| `source` | string \| null | How the record first reached Pulse: the name of the tool it was imported from (for example `Close`, `Ontraport`, `GoHighLevel` or `OnceHub`), or what the person or API that created it typed. It is not a marketing source. When your team keeps the marketing source in a custom field (for example a `Last Lead Source` field brought in from Close), read that field in the record's `custom_fields`. |
| `status` | string \| null | The record's lead status, by its name on your own status list (CRM Settings, Lead statuses), for example `New lead` or `Setter - Outreach`. A status brought in from Close keeps its Close name. Renaming a status changes this text on every record that holds it; store `status_key` to follow one status through a rename. |
| `status_key` | string \| null | The lead status as a key that never changes when the status is renamed, for example `setter_outreach`. `new` is the status every record starts on. |
| `tags` | string[] | Tags. An empty list when there are none. |
| `program` | string \| null | The program or offer the deal is for. |
| `stage` | string \| null | Stage on your Sales Pipeline. Null when the record is not on it. |
| `stage_entered_at` | datetime \| null | When the record entered its current stage. |
| `value_usd` | integer \| null | Deal value in WHOLE US dollars, not cents: `7500` is $7,500. Null means nobody priced the deal, which is different from a $0 deal. |
| `owner_key` | string \| null | Who owns the record. Matches `key` in the users list. |
| `success_owner_key` | string \| null | The client's success manager, for customers. Matches `key` in the users list. |
| `won_at` | datetime \| null | When the deal was won. Null if not won, or if no won date was proven. |
| `lost_at` | datetime \| null | When the deal was lost. |
| `loss_reason` | string \| null | Why the deal was lost, as a reason code. |
| `next_step` | object | `label`, `due_date` (YYYY-MM-DD) and `done` for the record's next step. |
| `last_activity_at` | datetime \| null | When anything was last logged on the record. |
| `merged_into` | string \| null | Set when this record was merged into another. Follow it to the record that was kept. |
| `created_at` | datetime | When the record was created. |
| `updated_at` | datetime | When the record last changed. Use it to sync only what changed. |

Every field has a permanent link in the data dictionary: https://scalewithdata.ai/developers/data-dictionary#record

##### Example

```bash
curl -X POST "https://scalewithdata.ai/api/v1/crm/records/upsert" \
  -H "Authorization: Bearer $SWD_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -d '{"email":"jordan@leefitness.com","phone":"+1 555 010 2233","name":"Jordan Lee","source":"SEADS checkout","custom_fields":{"lead_source_detail":"SEADS abandoned cart","opted_in_at":"2026-11-20T14:05:00Z","opt_in_page":"https://example.com/checkout"}}'
```

```json
{
  "id": "8f1c2b8e-4d61-4f52-9a43-0b9d7c1e5a10",
  "lifecycle": "lead",
  "name": "Jordan Lee",
  "first_name": "Jordan",
  "last_name": "Lee",
  "company": "Lee Fitness",
  "title": "Owner",
  "email": "jordan@leefitness.com",
  "phone": "+1 555 010 2233",
  "location": "Austin, TX",
  "source": "Facebook ad",
  "status": "Contacted",
  "status_key": "contacted",
  "tags": [
    "webinar",
    "hot"
  ],
  "program": "Accelerator",
  "stage": "Booked Call",
  "stage_entered_at": "2026-10-18T15:04:00.000Z",
  "value_usd": 7500,
  "owner_key": "m3",
  "success_owner_key": null,
  "won_at": null,
  "lost_at": null,
  "loss_reason": null,
  "next_step": {
    "label": "Follow up after the call",
    "due_date": "2026-10-22",
    "done": false
  },
  "last_activity_at": "2026-10-19T17:30:12.000Z",
  "merged_into": null,
  "created_at": "2026-10-12T09:12:44.000Z",
  "updated_at": "2026-10-19T17:30:12.000Z"
}
```

Errors it can return: `missing_api_key`, `invalid_api_key`, `api_key_revoked`, `api_key_paused`, `api_key_expired`, `insufficient_scope`, `invalid_request`, `payload_too_large`, `conflict`, `forbidden`, `contact_busy`, `idempotency_in_progress`, `idempotency_retry`, `rate_limited`, `verification_failed`, `timeout`, `database_unavailable`.

#### Add a person to a record

`POST https://scalewithdata.ai/api/v1/crm/records/{id}/contacts`

Adds another person to a record, for example a business partner or spouse. Send an `Idempotency-Key` header so a retry never adds them twice.

- Permission: `write:crm`
- Success: 201 Created (200 on a replay with the same Idempotency-Key)
- Response: one object
- Send an `Idempotency-Key` header (8 to 40 letters, digits, `_` or `-`), made once per request and sent again on every retry.

##### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | yes | The record's `id`. |

##### JSON body

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `name` | string | yes | Name, up to 160 characters. |
| `role` | string | no | Their role, up to 120 characters. |

##### Fields in the response

| Field | Type | Meaning |
| --- | --- | --- |
| `id` | integer | The person's id on this record. |
| `name` | string | Name. |
| `role` | string \| null | Their role, for example `Business partner`. |

Every field has a permanent link in the data dictionary: https://scalewithdata.ai/developers/data-dictionary#contact

##### Example

```bash
curl -X POST "https://scalewithdata.ai/api/v1/crm/records/8f1c2b8e-4d61-4f52-9a43-0b9d7c1e5a10/contacts" \
  -H "Authorization: Bearer $SWD_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -d '{"name":"Casey Lee","role":"Business partner"}'
```

```json
{
  "id": 3122,
  "name": "Casey Lee",
  "role": "Business partner"
}
```

Errors it can return: `missing_api_key`, `invalid_api_key`, `api_key_revoked`, `api_key_paused`, `api_key_expired`, `insufficient_scope`, `invalid_request`, `payload_too_large`, `conflict`, `forbidden`, `idempotency_in_progress`, `idempotency_retry`, `not_found`, `rate_limited`, `verification_failed`, `timeout`, `database_unavailable`.

### Activities and interactions

Activities are what was logged on a record in Pulse. Interactions are the record's whole history in one list: texts from every system (Pulse, GoHighLevel, Close, Messenger and Instagram), emails, calls and meetings, with who sent each one and whether it was automated.

#### List a record's activities

`GET https://scalewithdata.ai/api/v1/crm/records/{id}/activities`

Calls, emails, texts, notes and meetings logged on one record in Pulse, newest first. Filter by `type` and by time. Notes your team marked admin only are left out, and the response tells you how many on that page were left out. Texts sent from GoHighLevel, Messenger and Instagram messages, and calendar bookings are not activities: read those from the record's interactions.

- Permission: `read:crm`
- Success: 200 OK
- Response: `{ results, next_cursor }`, one page of a list

##### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | yes | The record's `id`. |
| `type` | query | string | no | Only this type. One of `call`, `email`, `sms`, `note`, `meeting`, `system`. |
| `occurred_after` | query | datetime | no | Only activities that happened at or after this time (ISO 8601). |
| `occurred_before` | query | datetime | no | Only activities that happened before this time (ISO 8601). |
| `limit` | query | integer | no | How many results per page, 1 to 100. Default 50. |
| `cursor` | query | string | no | Leave it out for the first page. For the next page, pass the `next_cursor` the previous page returned, unchanged. |

##### Fields in the response

| Field | Type | Meaning |
| --- | --- | --- |
| `id` | integer | The activity's id. |
| `record_id` | string | The record it is logged on. |
| `type` | string | `call`, `email`, `sms`, `note`, `meeting` or `system`. |
| `direction` | string \| null | `in` or `out`, for calls, emails and texts. |
| `title` | string | Short summary line. |
| `body` | string \| null | The text of the note, message or summary. |
| `note_type` | string \| null | For notes: `sales`, `cs` (customer success), `support` or `internal`. |
| `duration_seconds` | integer \| null | Length of a call or meeting. |
| `from_number` | string \| null | The number a text was sent from, when recorded. |
| `to_number` | string \| null | The number a text was sent to, when recorded. |
| `source_system` | string \| null | Where it came from when it was imported (for example `ghl`). Null means it was logged in Pulse. |
| `logged_by_key` | string \| null | The teammate who logged it. Matches `key` in the users list. Null when no person is stamped on it (a sync, an automation, an API key) or the person is not on your team list. |
| `occurred_at` | datetime | When it happened. |
| `created_at` | datetime | When it was saved in Pulse. |

Beside `results` and `next_cursor`, the response also carries:

| Field | Type | Meaning |
| --- | --- | --- |
| `withheld_admin_only` | integer | How many admin-only notes on this page were left out. |

Every field has a permanent link in the data dictionary: https://scalewithdata.ai/developers/data-dictionary#activity

##### Example

```bash
curl "https://scalewithdata.ai/api/v1/crm/records/8f1c2b8e-4d61-4f52-9a43-0b9d7c1e5a10/activities" \
  -H "Authorization: Bearer $SWD_API_KEY"
```

```json
{
  "results": [
    {
      "id": 912334,
      "record_id": "8f1c2b8e-4d61-4f52-9a43-0b9d7c1e5a10",
      "type": "call",
      "direction": "out",
      "title": "Discovery call",
      "body": "Talked through goals. Wants to start next month.",
      "note_type": null,
      "duration_seconds": 1260,
      "from_number": null,
      "to_number": null,
      "source_system": null,
      "logged_by_key": "u5120001",
      "occurred_at": "2026-10-19T17:00:00.000Z",
      "created_at": "2026-10-19T17:30:12.000Z"
    }
  ],
  "next_cursor": null,
  "withheld_admin_only": 0
}
```

Errors it can return: `missing_api_key`, `invalid_api_key`, `api_key_revoked`, `api_key_paused`, `api_key_expired`, `insufficient_scope`, `invalid_request`, `invalid_cursor`, `not_found`, `rate_limited`, `verification_failed`, `timeout`, `database_unavailable`.

#### List a record's interactions

`GET https://scalewithdata.ai/api/v1/crm/records/{id}/interactions`

One record's whole history, newest first: texts both ways from every system (Pulse, GoHighLevel, Close, Messenger and Instagram), emails, Pulse dialer calls, calendar meetings, notes and stage moves. A message two systems both recorded appears once. Each item says who did it (`actor_kind`, and `actor_key` when Pulse proved which teammate), whether a workflow or broadcast sent it (`automated`), and for a sent text its `delivery_status`. Use `automated` and `actor_kind` to tell a setter's own outreach from automatic sends. If part of the history cannot be read you get a `503`, never a shorter list. A page never splits one instant, so it can hold a few more items than `limit`.

- Permission: `read:crm`
- Success: 200 OK
- Response: `{ results, next_cursor }`, one page of a list

##### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | yes | The record's `id`. |
| `types` | query | string | no | Only these types, separated by commas: `text`, `email`, `call`, `meeting`, `note`, `stage_change`, `other`. Default: every type. |
| `occurred_after` | query | datetime | no | Only items that happened at or after this time (ISO 8601). |
| `occurred_before` | query | datetime | no | Only items that happened before this time (ISO 8601). Ignored when you pass a cursor. |
| `limit` | query | integer | no | How many results per page, 1 to 100. Default 50. |
| `cursor` | query | string | no | Leave it out for the first page. For the next page, pass the `next_cursor` the previous page returned, unchanged. |

##### Fields in the response

| Field | Type | Meaning |
| --- | --- | --- |
| `id` | string | The item's id, with its kind in front, for example `message:vm:88121` or `meeting:48213`. Save by it. |
| `record_id` | string | The record it is on. |
| `type` | string | `text`, `email`, `call`, `meeting`, `note`, `stage_change` or `other`. A Messenger or Instagram message is `other`, with its `channel` set. |
| `direction` | string \| null | `inbound`, `outbound` or `internal` (a note). Null for a meeting or a stage move. |
| `occurred_at` | datetime | When it happened: sent or received for a message, the scheduled start for a meeting, when Pulse saved the call for a dialer call. |
| `actor_kind` | string | `contact` (the customer), `teammate`, `automation` (a workflow, a broadcast or an automatic reply), `system` or `unknown` (Pulse cannot prove who). |
| `actor_name` | string \| null | The teammate's name, only when Pulse proved who it was. |
| `actor_key` | string \| null | The teammate's `key` in the users list: who sent the message, placed the call or logged the note. |
| `automated` | boolean | True when a workflow or broadcast sent it, or it is an automatic reply. False for a teammate's own send and for anything the customer sent. |
| `workflow_id` | integer \| null | The Pulse workflow that sent a text, when one did. |
| `channel` | string \| null | For a message: `imessage`, `sms`, `email`, `instagram`, `messenger` and so on, as the system that carried it names it. |
| `delivery_status` | string \| null | For a text we sent (`type` is `text`): `queued`, `sent`, `delivered`, `read`, `failed`, `blocked` or `unknown`. An SMS has no delivery receipt, so it stays `sent`. Null for everything else, including email and Messenger or Instagram messages. |
| `subject` | string \| null | The subject of an email: one the customer sent, or one sent from Pulse when its send record is found. Null otherwise. |
| `summary` | string \| null | A short line of what was said or done, up to 280 characters. Text that people and other systems wrote. |
| `body` | string \| null | The whole text of a text or an email. Sent only to a key that also holds `read:conversations`; null otherwise, and null for anything that is not a message. |
| `source` | string | Which system recorded it, for example `Pulse`, `GoHighLevel`, `Messenger or Instagram`, `Pulse Dialer` or `Calendar`. |
| `details` | object | More facts for this type. A meeting has `booking_state`, `attendance`, `booked_at`, `scheduled_start`, `scheduled_end`, `host_key`, `setter_key`, `setter_basis` and `setter_confirmed` (false when the setter is named only by a booking link, which is a claim and is not approved for commission until a person confirms it). A call has `duration_seconds`, `provider_status`, `answered_by` and `conversation`. A failed text has `delivery_failure`. An email sent from Pulse has `email_send_status` (`sent`, `failed` or `pending`, where pending means still sending or never confirmed) and `email_sent_via`; a failed one also has `email_send_failure`. Opens and bounces are not recorded. Keys vary by type; treat a missing key as not applicable. |

Beside `results` and `next_cursor`, the response also carries:

| Field | Type | Meaning |
| --- | --- | --- |
| `withheld_admin_only` | integer | How many admin-only notes on this page were left out. |
| `sources_partly_read` | integer | How many sources were read only in part. Pulse reads only a record's newest dialer calls and newest inbound emails, so on a record with a very long history an older one is not listed. 0 means every source was read in full. |

Every field has a permanent link in the data dictionary: https://scalewithdata.ai/developers/data-dictionary#interaction

##### Example

```bash
curl "https://scalewithdata.ai/api/v1/crm/records/8f1c2b8e-4d61-4f52-9a43-0b9d7c1e5a10/interactions" \
  -H "Authorization: Bearer $SWD_API_KEY"
```

```json
{
  "results": [
    {
      "id": "message:vm:88121",
      "record_id": "8f1c2b8e-4d61-4f52-9a43-0b9d7c1e5a10",
      "type": "text",
      "direction": "outbound",
      "occurred_at": "2026-11-04T16:12:09.000Z",
      "actor_kind": "teammate",
      "actor_name": "Alex Kim",
      "actor_key": "u5120044",
      "automated": false,
      "workflow_id": null,
      "channel": "imessage",
      "delivery_status": "delivered",
      "subject": null,
      "summary": "Hi Jordan, it is Alex. Does Thursday at 1pm still work?",
      "body": null,
      "source": "Pulse",
      "details": {
        "channel": "imessage",
        "delivery": "delivered",
        "delivery_failure": null,
        "automated": false,
        "workflow_id": null,
        "test_message": null
      }
    }
  ],
  "next_cursor": null,
  "withheld_admin_only": 0,
  "sources_partly_read": 0
}
```

Errors it can return: `missing_api_key`, `invalid_api_key`, `api_key_revoked`, `api_key_paused`, `api_key_expired`, `insufficient_scope`, `invalid_request`, `invalid_cursor`, `conflict`, `not_found`, `rate_limited`, `verification_failed`, `timeout`, `database_unavailable`.

#### Add a note

`POST https://scalewithdata.ai/api/v1/crm/records/{id}/notes`

Adds a plain text note to a record's timeline, visible to your whole team. It is titled with your key's name unless you send a `title`. Send an `Idempotency-Key` header so a retry never adds it twice. When you have the person's email or phone and not the record id, use Add a note by email or phone.

- Permission: `write:crm`
- Success: 201 Created (200 on a replay with the same Idempotency-Key)
- Response: one object
- Send an `Idempotency-Key` header (8 to 40 letters, digits, `_` or `-`), made once per request and sent again on every retry.

##### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | yes | The record's `id`. |

##### JSON body

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `body` | string | yes | The note's text, plain text, up to 10,000 characters. |
| `title` | string | no | The note's title, one line of plain text, up to 120 characters, for example `Welcome intake survey`. Default: `Note by` and your key's name. The audit trail names your key either way. |
| `type` | string | no | What kind of note it is: `sales`, `customer_success`, `support`. A `customer_success` note also shows on the contact's Client Success notes. Leave it out for a plain note. A read returns it in `note_type`, where `customer_success` reads `cs`. |

##### Fields in the response

| Field | Type | Meaning |
| --- | --- | --- |
| `id` | integer | The activity's id. |
| `record_id` | string | The record it is logged on. |
| `type` | string | `call`, `email`, `sms`, `note`, `meeting` or `system`. |
| `direction` | string \| null | `in` or `out`, for calls, emails and texts. |
| `title` | string | Short summary line. |
| `body` | string \| null | The text of the note, message or summary. |
| `note_type` | string \| null | For notes: `sales`, `cs` (customer success), `support` or `internal`. |
| `duration_seconds` | integer \| null | Length of a call or meeting. |
| `from_number` | string \| null | The number a text was sent from, when recorded. |
| `to_number` | string \| null | The number a text was sent to, when recorded. |
| `source_system` | string \| null | Where it came from when it was imported (for example `ghl`). Null means it was logged in Pulse. |
| `logged_by_key` | string \| null | The teammate who logged it. Matches `key` in the users list. Null when no person is stamped on it (a sync, an automation, an API key) or the person is not on your team list. |
| `occurred_at` | datetime | When it happened. |
| `created_at` | datetime | When it was saved in Pulse. |

Every field has a permanent link in the data dictionary: https://scalewithdata.ai/developers/data-dictionary#activity

##### Example

```bash
curl -X POST "https://scalewithdata.ai/api/v1/crm/records/8f1c2b8e-4d61-4f52-9a43-0b9d7c1e5a10/notes" \
  -H "Authorization: Bearer $SWD_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -d '{"body":"Paid the deposit by bank transfer."}'
```

```json
{
  "id": 912401,
  "record_id": "8f1c2b8e-4d61-4f52-9a43-0b9d7c1e5a10",
  "type": "note",
  "direction": null,
  "title": "Note by API key: Warehouse sync",
  "body": "Paid the deposit by bank transfer.",
  "note_type": null,
  "duration_seconds": null,
  "from_number": null,
  "to_number": null,
  "source_system": null,
  "logged_by_key": null,
  "occurred_at": "2026-10-19T17:00:00.000Z",
  "created_at": "2026-10-19T17:30:12.000Z"
}
```

Errors it can return: `missing_api_key`, `invalid_api_key`, `api_key_revoked`, `api_key_paused`, `api_key_expired`, `insufficient_scope`, `invalid_request`, `payload_too_large`, `conflict`, `forbidden`, `idempotency_in_progress`, `idempotency_retry`, `not_found`, `rate_limited`, `verification_failed`, `timeout`, `database_unavailable`.

#### Add a note by email or phone

`POST https://scalewithdata.ai/api/v1/crm/notes`

Adds a plain text note to the one contact that has this email or phone, for a tool that knows the person and not the record id (a survey, a form, a Zap). The response's `record_id` says which contact it landed on. Send `email`, `phone` or both. An email or phone kept on a contact after a merge counts, and the note lands on the contact that was kept. It never creates a contact: when nobody has that email or phone the answer is `404 not_found`, and when more than one contact has it, or the email and the phone belong to two different contacts, the answer is `409 conflict`. Nothing is saved in either case. Send an `Idempotency-Key` header so a retry never adds it twice.

- Permission: `write:crm`
- Success: 201 Created (200 on a replay with the same Idempotency-Key)
- Response: one object
- Send an `Idempotency-Key` header (8 to 40 letters, digits, `_` or `-`), made once per request and sent again on every retry.

##### JSON body

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `email` | string | no | The contact's email address. Send this, `phone`, or both. |
| `phone` | string | no | The contact's phone number, at least 10 digits, without an extension. Matched on its last 10 digits. |
| `body` | string | yes | The note's text, plain text, up to 10,000 characters. |
| `title` | string | no | The note's title, one line of plain text, up to 120 characters, for example `Welcome intake survey`. Default: `Note by` and your key's name. The audit trail names your key either way. |
| `type` | string | no | What kind of note it is: `sales`, `customer_success`, `support`. A `customer_success` note also shows on the contact's Client Success notes. Leave it out for a plain note. A read returns it in `note_type`, where `customer_success` reads `cs`. |

##### Fields in the response

| Field | Type | Meaning |
| --- | --- | --- |
| `id` | integer | The activity's id. |
| `record_id` | string | The record it is logged on. |
| `type` | string | `call`, `email`, `sms`, `note`, `meeting` or `system`. |
| `direction` | string \| null | `in` or `out`, for calls, emails and texts. |
| `title` | string | Short summary line. |
| `body` | string \| null | The text of the note, message or summary. |
| `note_type` | string \| null | For notes: `sales`, `cs` (customer success), `support` or `internal`. |
| `duration_seconds` | integer \| null | Length of a call or meeting. |
| `from_number` | string \| null | The number a text was sent from, when recorded. |
| `to_number` | string \| null | The number a text was sent to, when recorded. |
| `source_system` | string \| null | Where it came from when it was imported (for example `ghl`). Null means it was logged in Pulse. |
| `logged_by_key` | string \| null | The teammate who logged it. Matches `key` in the users list. Null when no person is stamped on it (a sync, an automation, an API key) or the person is not on your team list. |
| `occurred_at` | datetime | When it happened. |
| `created_at` | datetime | When it was saved in Pulse. |

Every field has a permanent link in the data dictionary: https://scalewithdata.ai/developers/data-dictionary#activity

##### Example

```bash
curl -X POST "https://scalewithdata.ai/api/v1/crm/notes" \
  -H "Authorization: Bearer $SWD_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -d '{"email":"jordan@leefitness.com","title":"Welcome intake survey","type":"customer_success","body":"What is your main goal? Sign 10 new clients by March.\nHow many hours a week can you give this? About 8."}'
```

```json
{
  "id": 912455,
  "record_id": "8f1c2b8e-4d61-4f52-9a43-0b9d7c1e5a10",
  "type": "note",
  "direction": null,
  "title": "Welcome intake survey",
  "body": "What is your main goal? Sign 10 new clients by March.\nHow many hours a week can you give this? About 8.",
  "note_type": "cs",
  "duration_seconds": null,
  "from_number": null,
  "to_number": null,
  "source_system": null,
  "logged_by_key": null,
  "occurred_at": "2026-10-19T17:00:00.000Z",
  "created_at": "2026-10-19T17:30:12.000Z"
}
```

Errors it can return: `missing_api_key`, `invalid_api_key`, `api_key_revoked`, `api_key_paused`, `api_key_expired`, `insufficient_scope`, `invalid_request`, `payload_too_large`, `conflict`, `forbidden`, `idempotency_in_progress`, `idempotency_retry`, `not_found`, `rate_limited`, `verification_failed`, `timeout`, `database_unavailable`.

#### List every activity

`GET https://scalewithdata.ai/api/v1/crm/activities`

Every activity logged on any record in your CRM, in the order Pulse saved them, oldest first, by `created_at`. It is the same item a record's activity list returns, across all records, so you can copy the whole activity log without walking each record. To keep a copy in sync, pass `created_after` with the largest `created_at` you have received. Save each by `id`. This list holds back the newest two minutes so that an activity still being saved is never skipped. An activity does not come back when it is edited later. Notes only an admin or their author may read are left out and counted. GoHighLevel texts, Instagram and Facebook messages are not activities: the interactions list (List every interaction) has them together with these.

- Permission: `read:crm`
- Success: 200 OK
- Response: `{ results, next_cursor }`, one page of a list

##### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `created_after` | query | datetime | no | Only activities whose `created_at` is at or after this time (ISO 8601). To sync, pass the largest `created_at` you already received, exactly as it came back, never your own clock. One-second precision, so rows from that same second come back again: save by `id` and a repeat is harmless. Ignored when you pass a cursor. |
| `created_before` | query | datetime | no | Only activities whose `created_at` is before this time (ISO 8601). Keep it the same while you page. |
| `types` | query | string | no | Only these types, separated by commas: `call`, `email`, `sms`, `note`, `meeting`, `system`. Default: every type. A filtered page can hold fewer items than `limit`, or none, while `next_cursor` is still set: keep paging until `next_cursor` is null. Keep it the same while you page. |
| `limit` | query | integer | no | How many results per page, 1 to 100. Default 50. |
| `cursor` | query | string | no | Leave it out for the first page. For the next page, pass the `next_cursor` the previous page returned, unchanged. |

##### Fields in the response

| Field | Type | Meaning |
| --- | --- | --- |
| `id` | integer | The activity's id. Never changes. Save by it. |
| `record_id` | string | The record it is logged on. |
| `type` | string | `call`, `email`, `sms`, `note`, `meeting` or `system`. |
| `direction` | string \| null | `in` or `out`, for calls, emails and texts. |
| `title` | string | Short summary line. |
| `body` | string \| null | The text of the note, message or summary. |
| `note_type` | string \| null | For notes: `sales`, `cs`, `support` or `internal`. |
| `duration_seconds` | integer \| null | Length of a call or meeting. |
| `from_number` | string \| null | The number a text was sent from, when recorded. |
| `to_number` | string \| null | The number a text was sent to, when recorded. |
| `source_system` | string \| null | Where it came from when it was imported (for example `ghl`). Null means it was logged in Pulse. |
| `logged_by_key` | string \| null | The teammate who logged it. Matches `key` in the users list. Null when no person is stamped on it (a sync, an automation, an API key) or the person is not on your team list. |
| `occurred_at` | datetime | When it happened. An imported activity can have happened long before it was saved. |
| `created_at` | datetime | When it was saved in Pulse. The list is ordered by it. |

Beside `results` and `next_cursor`, the response also carries:

| Field | Type | Meaning |
| --- | --- | --- |
| `withheld_notes` | integer | How many notes on this page were left out because only an admin or their author may read them. A page can be shorter than `limit` for this reason while `next_cursor` is still set. |

Every field has a permanent link in the data dictionary: https://scalewithdata.ai/developers/data-dictionary#list_activities

##### Example

```bash
curl "https://scalewithdata.ai/api/v1/crm/activities" \
  -H "Authorization: Bearer $SWD_API_KEY"
```

```json
{
  "results": [
    {
      "id": 912334,
      "record_id": "8f1c2b8e-4d61-4f52-9a43-0b9d7c1e5a10",
      "type": "note",
      "direction": null,
      "title": "Call notes",
      "body": "Talked through goals. Wants to start next month.",
      "note_type": "sales",
      "duration_seconds": null,
      "from_number": null,
      "to_number": null,
      "source_system": null,
      "logged_by_key": "u5120044",
      "occurred_at": "2026-11-04T17:05:00.000Z",
      "created_at": "2026-11-04T17:05:02.000Z"
    }
  ],
  "next_cursor": null,
  "withheld_notes": 0
}
```

Errors it can return: `missing_api_key`, `invalid_api_key`, `api_key_revoked`, `api_key_paused`, `api_key_expired`, `insufficient_scope`, `invalid_request`, `invalid_cursor`, `rate_limited`, `not_ready`, `verification_failed`, `timeout`, `database_unavailable`.

#### List every interaction

`GET https://scalewithdata.ai/api/v1/crm/interactions`

Everything that happened across your CRM in one list: every activity (notes, calls, meetings, emails and texts logged in Pulse or imported from Close), every GoHighLevel text, Instagram and Facebook message, email and call, and every text on your Pulse lines. Nothing appears twice. Each item says who did it (`actor_kind`, and `actor_key` when it is a teammate), whether an automation sent it (`automated`, with the workflow or sequence in `automation_ref`), its `delivery_status`, and for an email its `subject`. Use `automated` and `actor_key` to tell a setter's own outreach from automatic sends. Items come oldest change first, by `stored_at` (when Pulse saved or last changed the item). Page through it once to copy everything. To keep a copy in sync, pass `stored_after` with the largest `stored_at` you have received: you get new items, older items an import saved late, and messages whose delivery status changed. An item that changed comes back with the same `id`: save each by `id` and keep the latest. This list holds back the newest two minutes so that an item still being saved is never skipped. With a filter, a page can hold fewer items than `limit`, or none, while `next_cursor` is still set: keep paging until `next_cursor` is null. Meetings booked on a calendar are in the meetings list. Messenger and Instagram accounts connected directly to Pulse, and emails that arrive in a connected Gmail inbox, are on each record's interactions.

- Permission: `read:crm`
- Success: 200 OK
- Response: `{ results, next_cursor }`, one page of a list

##### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `stored_after` | query | datetime | no | Only items whose `stored_at` is at or after this time (ISO 8601). To sync, pass the largest `stored_at` you already received, exactly as it came back, never your own clock. One-second precision, so items from that same second come back again: save by `id` and a repeat is harmless. Ignored when you pass a cursor. |
| `types` | query | string | no | Only these types, separated by commas: `text`, `email`, `call`, `meeting`, `note`, `other`. Default: every type. Keep it the same while you page. |
| `channels` | query | string | no | Only these channels, separated by commas, for example `instagram,facebook` or `sms`. Keep it the same while you page. |
| `occurred_after` | query | datetime | no | Only items that happened at or after this time (ISO 8601). Keep it the same while you page. |
| `occurred_before` | query | datetime | no | Only items that happened before this time (ISO 8601). Keep it the same while you page. |
| `limit` | query | integer | no | How many results per page, 1 to 100. Default 50. |
| `cursor` | query | string | no | Leave it out for the first page. For the next page, pass the `next_cursor` the previous page returned, unchanged. |

##### Fields in the response

| Field | Type | Meaning |
| --- | --- | --- |
| `id` | string | The item's id, for example `activity:912334` or `message:crm:5530912`. Never changes. Save by it. It is the same id the record's interactions list gives the same item. |
| `record_id` | string \| null | The CRM record it belongs to. Null when Pulse could not tie a message to exactly one record (no record holds that contact, or two do). |
| `type` | string | `text` (SMS, iMessage, Instagram, Facebook and other direct messages; see `channel`), `email`, `call`, `meeting`, `note` or `other` (system and stage lines). |
| `direction` | string \| null | `inbound`, `outbound`, `internal` for a note, or null for a system line. |
| `channel` | string \| null | For a message: `sms`, `imessage`, `rcs`, `instagram`, `facebook`, `whatsapp`, `email` or `call`. Use it to pick out Instagram DMs. |
| `occurred_at` | datetime | When it happened. An imported item can have happened long before Pulse saved it. |
| `stored_at` | datetime | When Pulse saved or last changed it. The list is ordered by it. Use it to sync only what is new or changed. |
| `actor_kind` | string | `contact` (the customer), `teammate` (a person on your team list, see `actor_key`), `automation` (a workflow, sequence or bulk send), `system`, or `unknown` (your side sent it and no person or automation is recorded). |
| `actor_key` | string \| null | The teammate who did it: who logged the activity or sent the message. Matches `key` in the users list. For an item imported from Close or GoHighLevel it is that system's user, matched to your team list by email. Null when nobody is recorded, the person is not exactly one teammate, or an automation sent it (the source's own user id is then in `provider_user_id`). |
| `actor_name` | string \| null | That teammate's name. |
| `automated` | boolean \| null | True when a workflow, sequence, campaign or bulk send produced it. False when a person sent it, or the contact did. Null when the source did not record which: treat null as not known, never as personal outreach. |
| `automated_basis` | string \| null | How `automated` was decided: `pulse_workflow`, `pulse_system`, `sequence` (a Close sequence or bulk id, or its recorded absence), `provider_source` (GoHighLevel's own word), `named_sender` (a Pulse text or CRM entry a named teammate recorded; a GoHighLevel or Close user alone never decides it) or `inbound`. Null when it could not be decided. |
| `workflow_id` | integer \| null | The Pulse workflow that sent a text, when one did. |
| `automation_ref` | string \| null | The automation it belongs to: `workflow:<id>` for Pulse, `sequence:<id>` or `bulk:<id>` for Close. Null when none is recorded. Close ids are kept from 2026-11-11. |
| `provider_source` | string \| null | GoHighLevel's own word for what produced a message you sent: `workflow`, `bulk_actions`, `campaign`, `api` or `app`. Null when it did not say. |
| `delivery_status` | string \| null | For a text or email you sent: `queued` (not sent yet), `sent` (handed to the carrier or mail system, with no receipt), `delivered` or `read` (a receipt came back), `failed`, `blocked` or `unknown`. `delivered` is given only when the source supplied a receipt: Close never does, a plain SMS on a Pulse line never does, so those stay `sent`. Null for anything that is not a message you sent. |
| `provider_status` | string \| null | The source's own status word, unchanged, for example `undelivered` or `outbox`. |
| `subject` | string \| null | An email's subject line. Null for an email copied from GoHighLevel, which does not give Pulse the subject. |
| `title` | string \| null | The activity's own title line, for example a call outcome or a meeting name. Null for a text or an email. |
| `summary` | string \| null | The first 280 characters of the text. |
| `body` | string \| null | The whole text. For a text, a direct message or an email it is given only to a key that has `read:conversations`; without it use `summary`. A note or a call line is always given. |
| `note_type` | string \| null | For notes: `sales`, `cs`, `support` or `internal`. |
| `duration_seconds` | integer \| null | Length of a call or meeting. |
| `source` | string | Where Pulse holds it from: `pulse`, `gohighlevel`, `close` or `import` (another import, see `source_system`). |
| `source_system` | string \| null | The exact system word, for example `close`, `ghl`, `oncehub` or `monday`. |
| `provider_message_id` | string \| null | The item's id in the system it came from. |
| `provider_contact_id` | string \| null | For a GoHighLevel message: the contact's id in GoHighLevel. |
| `provider_user_id` | string \| null | The sending user's id in Close or GoHighLevel, for a message you sent. |

Beside `results` and `next_cursor`, the response also carries:

| Field | Type | Meaning |
| --- | --- | --- |
| `withheld_notes` | integer | How many notes read for this page were left out because only an admin or their author may read them. |
| `filtered_out` | integer | How many items read for this page your filters left out. |
| `names_withheld` | integer | How many teammates on this page were left as null because they are not on your team list. |

Every field has a permanent link in the data dictionary: https://scalewithdata.ai/developers/data-dictionary#list_interactions

##### Example

```bash
curl "https://scalewithdata.ai/api/v1/crm/interactions" \
  -H "Authorization: Bearer $SWD_API_KEY"
```

```json
{
  "results": [
    {
      "id": "message:crm:5530912",
      "record_id": "8f1c2b8e-4d61-4f52-9a43-0b9d7c1e5a10",
      "type": "text",
      "direction": "outbound",
      "channel": "instagram",
      "occurred_at": "2026-11-04T16:20:41.000Z",
      "stored_at": "2026-11-04T16:21:07.000Z",
      "actor_kind": "teammate",
      "actor_key": "u5120044",
      "actor_name": "Alex Kim",
      "automated": false,
      "automated_basis": "provider_source",
      "workflow_id": null,
      "automation_ref": null,
      "provider_source": "app",
      "delivery_status": "delivered",
      "provider_status": "delivered",
      "subject": null,
      "title": null,
      "summary": "Thanks for reaching out. Does Thursday at 1 work for a quick call?",
      "body": null,
      "note_type": null,
      "duration_seconds": null,
      "source": "gohighlevel",
      "source_system": "ghl",
      "provider_message_id": "Yq3n8sKx2LmP0aTc7VbE",
      "provider_contact_id": "kT5pB8mD3yVg7LcA2ZrE",
      "provider_user_id": "hG7sT2pQ9LxV4bNc8WdA"
    }
  ],
  "next_cursor": null,
  "withheld_notes": 0,
  "filtered_out": 0,
  "names_withheld": 0
}
```

Errors it can return: `missing_api_key`, `invalid_api_key`, `api_key_revoked`, `api_key_paused`, `api_key_expired`, `insufficient_scope`, `invalid_request`, `invalid_cursor`, `rate_limited`, `not_ready`, `verification_failed`, `timeout`, `database_unavailable`.

### Meetings

Every booked call on your calendars in one list, whichever tool took the booking: Calendly, OnceHub, GoHighLevel, or a meeting added by hand in Pulse. Each one carries its host, its setter when one is stored, when it was booked, and booking state kept apart from attendance.

#### List meetings

`GET https://scalewithdata.ai/api/v1/meetings`

Every booked call, from Calendly, OnceHub, GoHighLevel and Pulse. There are two ways to list. To keep a copy in sync, list by last change: results come oldest change first by `updated_at`; pass `updated_after` with the largest `updated_at` you have received and you get only the meetings that changed since (newly booked, moved, cancelled, given an outcome, or given a setter). That way holds back the newest two minutes of changes so a change still being saved is never skipped, and its only filter is `source`. To read a calendar, list by scheduled time: pass `scheduled_after`, `scheduled_before` or both and results come earliest `scheduled_start` first. The filters `host_key`, `setter_key`, `calendar_ref`, `source`, `booking_state` and `needs_setter` work with scheduled time only, and need both dates, at most 92 days apart. The two ways cannot be mixed in one request. Save each meeting by `id`. `booking_state` and `attendance` are separate facts: attendance is `unknown` until an outcome is recorded, and a reschedule does not show whether anyone attended the original time. A Calendly booking that is also copied into GoHighLevel is two rows; the GoHighLevel copy names the Calendly row in `duplicate_of`, so count a row only when `duplicate_of` is null.

- Permission: `read:crm`
- Success: 200 OK
- Response: `{ results, next_cursor }`, one page of a list

##### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `updated_after` | query | datetime | no | List by last change: only meetings whose `updated_at` is at or after this time (ISO 8601). To sync, pass the largest `updated_at` you already received, exactly as it came back, never your own clock. One-second precision, so rows from that same second come back again: save by `id` and a repeat is harmless. Ignored when you pass a cursor. Cannot be combined with `scheduled_after` or `scheduled_before`. |
| `scheduled_after` | query | datetime | no | List by scheduled time: only meetings whose `scheduled_start` is at or after this time (ISO 8601). |
| `scheduled_before` | query | datetime | no | List by scheduled time: only meetings whose `scheduled_start` is before this time (ISO 8601). |
| `host_key` | query | string | no | Only meetings hosted by this person: a `key` from the users list. Scheduled time only. |
| `setter_key` | query | string | no | Only meetings whose stored setter is this person: a `key` from the users list. It filters on the setter stored on the booking, so a setter credited only from the scheduling drawer or Log a set (`setter_basis` `drawer_log` or `logged_set`) is not matched. Scheduled time only. |
| `calendar_ref` | query | string | no | Only meetings on this event type or calendar: a `calendar_ref` exactly as a meeting returned it. Scheduled time only. |
| `source` | query | string | no | Only meetings from one booking tool. Works with both ways to list. When listing by last change, each request looks through a limited number of changed meetings, so a page can hold fewer meetings than `limit`, or none, while `next_cursor` is still set: keep paging until `next_cursor` is null. One of `calendly`, `oncehub`, `ghl`, `manual`, `zoom`. |
| `booking_state` | query | string | no | Only meetings in this booking state. Scheduled time only. Decided after each page is read, so a page can hold fewer meetings than `limit` while `next_cursor` is still set. One of `scheduled`, `rescheduled`, `cancelled`. |
| `needs_setter` | query | boolean | no | `true` lists only meetings with no setter: none stored, not corrected by a person, none found in the scheduling drawer or Log a set, and none credited from a triage call. Use it to find the bookings to fix with Set who set a meeting. Scheduled time only. A page can hold fewer meetings than `limit` while `next_cursor` is still set. |
| `limit` | query | integer | no | How many results per page, 1 to 100. Default 50. |
| `cursor` | query | string | no | Leave it out for the first page. For the next page, pass the `next_cursor` the previous page returned, unchanged, with the same filters. |

##### Fields in the response

| Field | Type | Meaning |
| --- | --- | --- |
| `id` | integer | The meeting's id. Never changes. |
| `record_id` | string \| null | The record (contact) the booking belongs to. Null when the invitee matches no record, or matches more than one: Pulse does not guess. It is the record as of this read. Merging two records, or undoing a merge, brings their meetings back under `updated_after` with the new `record_id`. A record created or given a new email or phone later does not: read the records list (`include_merged=true` shows merges) to catch those. |
| `source` | string | Which tool took the booking: `calendly`, `oncehub`, `ghl`, `zoom` or `manual` (added by hand in Pulse). |
| `provider_booking_id` | string | The booking's id in that tool, for matching against your own export from it. |
| `meeting_type` | string \| null | The event type or calendar name, as the booking tool reports it. |
| `calendar_ref` | string \| null | The booking tool's own reference for that event type or calendar. Stable when the name is edited. |
| `booked_at` | datetime \| null | When the booking was made, as the booking tool reported it. Null when it did not say; `created_at` is then when Pulse first saw it. |
| `scheduled_start` | datetime | When the meeting is scheduled to start. |
| `scheduled_end` | datetime \| null | When it is scheduled to end. |
| `booking_state` | string | `scheduled`, `rescheduled` or `cancelled`. A booking change, not attendance. |
| `attendance` | string | `held`, `no_show` or `unknown`. `unknown` means no outcome was recorded, including a meeting that has not happened yet. |
| `outcome` | string | The two facts above as the one word Pulse's calendar shows: `upcoming`, `awaiting_outcome` (time passed, nothing recorded), `conducted`, `no_show`, `cancelled` or `rescheduled`. |
| `host` | object \| null | Who hosts the meeting: `key` (matches `key` in the users list), `name` and `former` (true when they are no longer active). Null when the host's email matches no login on your team list. |
| `provider_host_email` | string \| null | The host's email as the booking tool reports it, whether or not it matches a login. |
| `setter` | object \| null | The setter credited with this booking: `key` (matches `key` in the users list), `name` and `former` (true when they are no longer active). Null when none is recorded; read `setter_basis` for why. |
| `setter_basis` | string | How `setter` was decided: `correction` (a person set it, in Pulse or through this API, including to nobody), `stored` (stamped on the booking when it was made in Pulse), `booking_link` (the booking came through that setter's own booking link; the link names the setter, so treat it as a claim rather than something Pulse saw), `drawer_log` (recorded when the booking was made in the Pulse scheduling drawer), `logged_set` (recorded with Log a set for this exact booking), `triage_call` (nothing names a setter on this booking, and it is a sales or follow-up call the customer booked after a triage call: the setter of that triage call is credited, and `setter_from_meeting_id` names it; this needs your calendars marked as triage, sales or follow-up in Pulse under Calendars, Call stage), `stored_ambiguous` or `ambiguous` (two setters claim it, so nobody is credited) or `none` (no setter is recorded for this booking). `none` is not proof that nobody set it: a booking the customer completed on a Calendly or OnceHub page carries no setter. When the list says `setter_log_unread`, `none` means not known. |
| `setter_confirmed` | boolean \| null | Whether the setter is confirmed. `true` when a setter is named and Pulse saw the set itself or a person decided it (`setter_basis` is `correction`, `stored`, `drawer_log` or `logged_set`). `false` when the setter is named only by a booking link (`setter_basis` is `booking_link`: a claim the link carried, which anyone holding the link can change) or worked out from the triage call before the booking (`setter_basis` is `triage_call`: Pulse did not see who made the booking). It is reported, and it is not approved for commission until a person confirms the setter on the meeting, in Pulse on the contact page or with PATCH /meetings/{id} using a key that has `write:crm`. `null` when no setter is named. |
| `booking_source` | string \| null | Who put it on the calendar: `self_booked` (the customer, on a booking page), `setter_booked`, `closer_booked`, `admin_booked`, `automation`, `imported`, `api` or `unknown`. Null on an older booking with nothing stored. |
| `booked_by` | object \| null | The teammate who made the booking in Pulse, when one did: `key` (matches `key` in the users list), `name` and `former` (true when they are no longer active). |
| `invitee_name` | string \| null | The invitee's name on the booking. |
| `invitee_email` | string \| null | The invitee's email on the booking. |
| `duplicate_of` | integer \| null | Set on a GoHighLevel copy of a Calendly booking: the `id` of the Calendly meeting. Null on every other row. |
| `rescheduled_from_id` | integer \| null | The `id` of the meeting this booking replaced, when this is the new time of a moved booking. Null when Pulse does not know it. Null never means the booking was not moved: read `booking_state` for that. |
| `rescheduled_to_id` | integer \| null | The `id` of the meeting that replaced this one, when this booking was moved to a new time. Null when Pulse does not know it. |
| `rescheduled_at` | datetime \| null | When the move was made: the `booked_at` of the meeting that replaced this one. Null when not known. |
| `setter_from_meeting_id` | integer \| null | With `setter_basis` `triage_call`: the `id` of the triage meeting whose setter is credited with this booking. Null on every other row. |
| `sales_outcome` | string \| null | What came of a held call, as the person who ran it filed it in Pulse: `closed_won`, `follow_up`, `nurture`, `not_qualified`, `not_interested` or `closed_lost`. Null when nothing is filed yet, or the meeting is not recorded as held. Null is not a result. |
| `sales_outcome_reason` | string \| null | The reason filed with a `closed_lost` result, as a reason code. Null otherwise. |
| `offer_made` | boolean \| null | Whether an offer was made on a held call: `true`, `false`, or null when nobody has said. Null means not recorded, never no. A person records it in Pulse on the contact's meeting, or you send it with Update a meeting. A call filed as `closed_won` with no answer is recorded as `true`, because the sale shows an offer was made; if that result is later changed or cleared, the automatic `true` is removed, and an answer a person or a key gave stays. Always null on a meeting that is not recorded as held. |
| `booking_form_answers` | object[] \| null | What the customer answered on the booking form when they booked, in the form's order: each item has `question` (as the booking tool names it), `answer` and `form` (`booking_form`, or `routing_form` for a Calendly routing form answered before booking). The name, email and phone questions are left out: they are `invitee_name`, `invitee_email` and the record's phone. An empty list means the form held no other answers. Null means the booking tool has no form (GoHighLevel, Zoom, a meeting added by hand), or the answers could not be read just now (the list then says `booking_forms_unread`). |
| `created_at` | datetime | When Pulse first saved the booking. |
| `updated_at` | datetime | When the booking last changed in Pulse. This list pages by it. |

Beside `results` and `next_cursor`, the response also carries:

| Field | Type | Meaning |
| --- | --- | --- |
| `names_withheld` | integer | How many host, setter or booked-by people on this page were left as null because they are not on your team list. |
| `duplicates_unchecked` | integer | How many meetings on this page could not be checked for a GoHighLevel copy. Normally 0. When it is not, `duplicate_of` on this page is null without meaning there is no copy. |
| `setter_log_unread` | boolean | Normally false. True when the scheduling drawer, Log a set or triage call records could not be read for this page: a meeting whose `setter_basis` is `none` then means not known, not that none was logged. Ask again later. |
| `booking_forms_unread` | boolean | Normally false. True when the booking form answers could not be read for this page: `booking_form_answers` is then null on Calendly and OnceHub meetings without meaning the form was empty. Ask again later. |

Every field has a permanent link in the data dictionary: https://scalewithdata.ai/developers/data-dictionary#meeting

##### Example

```bash
curl "https://scalewithdata.ai/api/v1/meetings" \
  -H "Authorization: Bearer $SWD_API_KEY"
```

```json
{
  "results": [
    {
      "id": 48213,
      "record_id": "8f1c2b8e-4d61-4f52-9a43-0b9d7c1e5a10",
      "source": "oncehub",
      "provider_booking_id": "BKNG-7XK2M9Q4T1",
      "meeting_type": "Strategy call",
      "calendar_ref": "strategy-call",
      "booked_at": "2026-11-03T15:20:11.000Z",
      "scheduled_start": "2026-11-05T18:00:00.000Z",
      "scheduled_end": "2026-11-05T18:45:00.000Z",
      "booking_state": "scheduled",
      "attendance": "held",
      "outcome": "conducted",
      "host": {
        "key": "u5120001",
        "name": "Sam Carter",
        "former": false
      },
      "provider_host_email": "sam@leefitness.com",
      "setter": {
        "key": "u5120044",
        "name": "Alex Kim",
        "former": false
      },
      "setter_basis": "correction",
      "setter_confirmed": true,
      "booking_source": "setter_booked",
      "booked_by": {
        "key": "u5120044",
        "name": "Alex Kim",
        "former": false
      },
      "invitee_name": "Jordan Lee",
      "invitee_email": "jordan@leefitness.com",
      "duplicate_of": null,
      "rescheduled_from_id": null,
      "rescheduled_to_id": null,
      "rescheduled_at": null,
      "setter_from_meeting_id": null,
      "sales_outcome": "follow_up",
      "sales_outcome_reason": null,
      "offer_made": true,
      "booking_form_answers": [
        {
          "question": "What do you currently do for work?",
          "answer": "I run a small gym",
          "form": "booking_form"
        }
      ],
      "created_at": "2026-11-03T15:20:14.000Z",
      "updated_at": "2026-11-05T19:02:40.000Z"
    }
  ],
  "next_cursor": null,
  "names_withheld": 0,
  "duplicates_unchecked": 0,
  "setter_log_unread": 0,
  "booking_forms_unread": 0
}
```

Errors it can return: `missing_api_key`, `invalid_api_key`, `api_key_revoked`, `api_key_paused`, `api_key_expired`, `insufficient_scope`, `invalid_request`, `invalid_cursor`, `rate_limited`, `not_ready`, `verification_failed`, `timeout`, `database_unavailable`.

#### Get a meeting

`GET https://scalewithdata.ai/api/v1/meetings/{id}`

One meeting by its `id`, with the same fields as the meetings list. Use it to refresh a single booking, or to follow `rescheduled_to_id`, `rescheduled_from_id`, `setter_from_meeting_id` or `duplicate_of` to the meeting they name. When the scheduling drawer, Log a set or triage call records could not be read, the answer carries the header `Setter-Log-Unread: true` and a `setter_basis` of `none` means not known. When the booking form answers could not be read, it carries `Booking-Forms-Unread: true` and a null `booking_form_answers` means not known.

- Permission: `read:crm`
- Success: 200 OK
- Response: one object

##### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | integer | yes | The meeting's `id`. |

##### Fields in the response

| Field | Type | Meaning |
| --- | --- | --- |
| `id` | integer | The meeting's id. Never changes. |
| `record_id` | string \| null | The record (contact) the booking belongs to. Null when the invitee matches no record, or matches more than one: Pulse does not guess. It is the record as of this read. Merging two records, or undoing a merge, brings their meetings back under `updated_after` with the new `record_id`. A record created or given a new email or phone later does not: read the records list (`include_merged=true` shows merges) to catch those. |
| `source` | string | Which tool took the booking: `calendly`, `oncehub`, `ghl`, `zoom` or `manual` (added by hand in Pulse). |
| `provider_booking_id` | string | The booking's id in that tool, for matching against your own export from it. |
| `meeting_type` | string \| null | The event type or calendar name, as the booking tool reports it. |
| `calendar_ref` | string \| null | The booking tool's own reference for that event type or calendar. Stable when the name is edited. |
| `booked_at` | datetime \| null | When the booking was made, as the booking tool reported it. Null when it did not say; `created_at` is then when Pulse first saw it. |
| `scheduled_start` | datetime | When the meeting is scheduled to start. |
| `scheduled_end` | datetime \| null | When it is scheduled to end. |
| `booking_state` | string | `scheduled`, `rescheduled` or `cancelled`. A booking change, not attendance. |
| `attendance` | string | `held`, `no_show` or `unknown`. `unknown` means no outcome was recorded, including a meeting that has not happened yet. |
| `outcome` | string | The two facts above as the one word Pulse's calendar shows: `upcoming`, `awaiting_outcome` (time passed, nothing recorded), `conducted`, `no_show`, `cancelled` or `rescheduled`. |
| `host` | object \| null | Who hosts the meeting: `key` (matches `key` in the users list), `name` and `former` (true when they are no longer active). Null when the host's email matches no login on your team list. |
| `provider_host_email` | string \| null | The host's email as the booking tool reports it, whether or not it matches a login. |
| `setter` | object \| null | The setter credited with this booking: `key` (matches `key` in the users list), `name` and `former` (true when they are no longer active). Null when none is recorded; read `setter_basis` for why. |
| `setter_basis` | string | How `setter` was decided: `correction` (a person set it, in Pulse or through this API, including to nobody), `stored` (stamped on the booking when it was made in Pulse), `booking_link` (the booking came through that setter's own booking link; the link names the setter, so treat it as a claim rather than something Pulse saw), `drawer_log` (recorded when the booking was made in the Pulse scheduling drawer), `logged_set` (recorded with Log a set for this exact booking), `triage_call` (nothing names a setter on this booking, and it is a sales or follow-up call the customer booked after a triage call: the setter of that triage call is credited, and `setter_from_meeting_id` names it; this needs your calendars marked as triage, sales or follow-up in Pulse under Calendars, Call stage), `stored_ambiguous` or `ambiguous` (two setters claim it, so nobody is credited) or `none` (no setter is recorded for this booking). `none` is not proof that nobody set it: a booking the customer completed on a Calendly or OnceHub page carries no setter. When the list says `setter_log_unread`, `none` means not known. |
| `setter_confirmed` | boolean \| null | Whether the setter is confirmed. `true` when a setter is named and Pulse saw the set itself or a person decided it (`setter_basis` is `correction`, `stored`, `drawer_log` or `logged_set`). `false` when the setter is named only by a booking link (`setter_basis` is `booking_link`: a claim the link carried, which anyone holding the link can change) or worked out from the triage call before the booking (`setter_basis` is `triage_call`: Pulse did not see who made the booking). It is reported, and it is not approved for commission until a person confirms the setter on the meeting, in Pulse on the contact page or with PATCH /meetings/{id} using a key that has `write:crm`. `null` when no setter is named. |
| `booking_source` | string \| null | Who put it on the calendar: `self_booked` (the customer, on a booking page), `setter_booked`, `closer_booked`, `admin_booked`, `automation`, `imported`, `api` or `unknown`. Null on an older booking with nothing stored. |
| `booked_by` | object \| null | The teammate who made the booking in Pulse, when one did: `key` (matches `key` in the users list), `name` and `former` (true when they are no longer active). |
| `invitee_name` | string \| null | The invitee's name on the booking. |
| `invitee_email` | string \| null | The invitee's email on the booking. |
| `duplicate_of` | integer \| null | Set on a GoHighLevel copy of a Calendly booking: the `id` of the Calendly meeting. Null on every other row. |
| `rescheduled_from_id` | integer \| null | The `id` of the meeting this booking replaced, when this is the new time of a moved booking. Null when Pulse does not know it. Null never means the booking was not moved: read `booking_state` for that. |
| `rescheduled_to_id` | integer \| null | The `id` of the meeting that replaced this one, when this booking was moved to a new time. Null when Pulse does not know it. |
| `rescheduled_at` | datetime \| null | When the move was made: the `booked_at` of the meeting that replaced this one. Null when not known. |
| `setter_from_meeting_id` | integer \| null | With `setter_basis` `triage_call`: the `id` of the triage meeting whose setter is credited with this booking. Null on every other row. |
| `sales_outcome` | string \| null | What came of a held call, as the person who ran it filed it in Pulse: `closed_won`, `follow_up`, `nurture`, `not_qualified`, `not_interested` or `closed_lost`. Null when nothing is filed yet, or the meeting is not recorded as held. Null is not a result. |
| `sales_outcome_reason` | string \| null | The reason filed with a `closed_lost` result, as a reason code. Null otherwise. |
| `offer_made` | boolean \| null | Whether an offer was made on a held call: `true`, `false`, or null when nobody has said. Null means not recorded, never no. A person records it in Pulse on the contact's meeting, or you send it with Update a meeting. A call filed as `closed_won` with no answer is recorded as `true`, because the sale shows an offer was made; if that result is later changed or cleared, the automatic `true` is removed, and an answer a person or a key gave stays. Always null on a meeting that is not recorded as held. |
| `booking_form_answers` | object[] \| null | What the customer answered on the booking form when they booked, in the form's order: each item has `question` (as the booking tool names it), `answer` and `form` (`booking_form`, or `routing_form` for a Calendly routing form answered before booking). The name, email and phone questions are left out: they are `invitee_name`, `invitee_email` and the record's phone. An empty list means the form held no other answers. Null means the booking tool has no form (GoHighLevel, Zoom, a meeting added by hand), or the answers could not be read just now (the list then says `booking_forms_unread`). |
| `created_at` | datetime | When Pulse first saved the booking. |
| `updated_at` | datetime | When the booking last changed in Pulse. This list pages by it. |

Every field has a permanent link in the data dictionary: https://scalewithdata.ai/developers/data-dictionary#meeting

##### Example

```bash
curl "https://scalewithdata.ai/api/v1/meetings/8f1c2b8e-4d61-4f52-9a43-0b9d7c1e5a10" \
  -H "Authorization: Bearer $SWD_API_KEY"
```

```json
{
  "id": 48213,
  "record_id": "8f1c2b8e-4d61-4f52-9a43-0b9d7c1e5a10",
  "source": "oncehub",
  "provider_booking_id": "BKNG-7XK2M9Q4T1",
  "meeting_type": "Strategy call",
  "calendar_ref": "strategy-call",
  "booked_at": "2026-11-03T15:20:11.000Z",
  "scheduled_start": "2026-11-05T18:00:00.000Z",
  "scheduled_end": "2026-11-05T18:45:00.000Z",
  "booking_state": "scheduled",
  "attendance": "held",
  "outcome": "conducted",
  "host": {
    "key": "u5120001",
    "name": "Sam Carter",
    "former": false
  },
  "provider_host_email": "sam@leefitness.com",
  "setter": {
    "key": "u5120044",
    "name": "Alex Kim",
    "former": false
  },
  "setter_basis": "correction",
  "setter_confirmed": true,
  "booking_source": "setter_booked",
  "booked_by": {
    "key": "u5120044",
    "name": "Alex Kim",
    "former": false
  },
  "invitee_name": "Jordan Lee",
  "invitee_email": "jordan@leefitness.com",
  "duplicate_of": null,
  "rescheduled_from_id": null,
  "rescheduled_to_id": null,
  "rescheduled_at": null,
  "setter_from_meeting_id": null,
  "sales_outcome": "follow_up",
  "sales_outcome_reason": null,
  "offer_made": true,
  "booking_form_answers": [
    {
      "question": "What do you currently do for work?",
      "answer": "I run a small gym",
      "form": "booking_form"
    }
  ],
  "created_at": "2026-11-03T15:20:14.000Z",
  "updated_at": "2026-11-05T19:02:40.000Z"
}
```

Errors it can return: `missing_api_key`, `invalid_api_key`, `api_key_revoked`, `api_key_paused`, `api_key_expired`, `insufficient_scope`, `not_found`, `rate_limited`, `verification_failed`, `timeout`, `database_unavailable`.

#### Update a meeting

`PATCH https://scalewithdata.ai/api/v1/meetings/{id}`

Records two things a person knows about a meeting: who set it (`setter_key`) and whether an offer was made on the call (`offer_made`). Send either or both; when you send both, both are checked before either is saved, so a request that is refused saves neither. `offer_made` takes `true`, `false`, or `null` to take the answer back to not recorded. It is accepted only on a meeting recorded as held (`attendance` is `held`); any other meeting is refused with `conflict`. It is kept in the audit trail under your API key's name. `setter_key` records who set a meeting, exactly as a correction made on the contact's page in Pulse: it is kept in the audit trail under your API key's name, and later syncs from the booking tool do not change it. Send `setter_key` with a `key` from the users list, or `null` to record that nobody set it. The person must be on your team list. Naming a setter also records the meeting as booked by that setter (`booking_source` becomes `setter_booked` and `booked_by` is that person), as the same correction does in Pulse. Sending `null` on a meeting recorded as booked by a setter clears the booker too; on any other meeting the booker stays as it was. On a GoHighLevel copy of a Calendly booking the change is saved on the Calendly meeting, and that meeting is what comes back. Sending the same value again changes nothing, so a retry is safe.

- Permission: `write:crm`
- Success: 200 OK
- Response: one object

##### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | integer | yes | The meeting's `id`. |

##### JSON body

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `setter_key` | string \| null | no | The setter: a `key` from the users list (for example `u5120044`), or `null` for no setter. Leave it out to keep the setter as it is. |
| `offer_made` | boolean \| null | no | Whether an offer was made on the call: `true`, `false`, or `null` for not recorded. Only on a meeting recorded as held. Leave it out to keep the answer as it is. |

##### Fields in the response

| Field | Type | Meaning |
| --- | --- | --- |
| `id` | integer | The meeting's id. Never changes. |
| `record_id` | string \| null | The record (contact) the booking belongs to. Null when the invitee matches no record, or matches more than one: Pulse does not guess. It is the record as of this read. Merging two records, or undoing a merge, brings their meetings back under `updated_after` with the new `record_id`. A record created or given a new email or phone later does not: read the records list (`include_merged=true` shows merges) to catch those. |
| `source` | string | Which tool took the booking: `calendly`, `oncehub`, `ghl`, `zoom` or `manual` (added by hand in Pulse). |
| `provider_booking_id` | string | The booking's id in that tool, for matching against your own export from it. |
| `meeting_type` | string \| null | The event type or calendar name, as the booking tool reports it. |
| `calendar_ref` | string \| null | The booking tool's own reference for that event type or calendar. Stable when the name is edited. |
| `booked_at` | datetime \| null | When the booking was made, as the booking tool reported it. Null when it did not say; `created_at` is then when Pulse first saw it. |
| `scheduled_start` | datetime | When the meeting is scheduled to start. |
| `scheduled_end` | datetime \| null | When it is scheduled to end. |
| `booking_state` | string | `scheduled`, `rescheduled` or `cancelled`. A booking change, not attendance. |
| `attendance` | string | `held`, `no_show` or `unknown`. `unknown` means no outcome was recorded, including a meeting that has not happened yet. |
| `outcome` | string | The two facts above as the one word Pulse's calendar shows: `upcoming`, `awaiting_outcome` (time passed, nothing recorded), `conducted`, `no_show`, `cancelled` or `rescheduled`. |
| `host` | object \| null | Who hosts the meeting: `key` (matches `key` in the users list), `name` and `former` (true when they are no longer active). Null when the host's email matches no login on your team list. |
| `provider_host_email` | string \| null | The host's email as the booking tool reports it, whether or not it matches a login. |
| `setter` | object \| null | The setter credited with this booking: `key` (matches `key` in the users list), `name` and `former` (true when they are no longer active). Null when none is recorded; read `setter_basis` for why. |
| `setter_basis` | string | How `setter` was decided: `correction` (a person set it, in Pulse or through this API, including to nobody), `stored` (stamped on the booking when it was made in Pulse), `booking_link` (the booking came through that setter's own booking link; the link names the setter, so treat it as a claim rather than something Pulse saw), `drawer_log` (recorded when the booking was made in the Pulse scheduling drawer), `logged_set` (recorded with Log a set for this exact booking), `triage_call` (nothing names a setter on this booking, and it is a sales or follow-up call the customer booked after a triage call: the setter of that triage call is credited, and `setter_from_meeting_id` names it; this needs your calendars marked as triage, sales or follow-up in Pulse under Calendars, Call stage), `stored_ambiguous` or `ambiguous` (two setters claim it, so nobody is credited) or `none` (no setter is recorded for this booking). `none` is not proof that nobody set it: a booking the customer completed on a Calendly or OnceHub page carries no setter. When the list says `setter_log_unread`, `none` means not known. |
| `setter_confirmed` | boolean \| null | Whether the setter is confirmed. `true` when a setter is named and Pulse saw the set itself or a person decided it (`setter_basis` is `correction`, `stored`, `drawer_log` or `logged_set`). `false` when the setter is named only by a booking link (`setter_basis` is `booking_link`: a claim the link carried, which anyone holding the link can change) or worked out from the triage call before the booking (`setter_basis` is `triage_call`: Pulse did not see who made the booking). It is reported, and it is not approved for commission until a person confirms the setter on the meeting, in Pulse on the contact page or with PATCH /meetings/{id} using a key that has `write:crm`. `null` when no setter is named. |
| `booking_source` | string \| null | Who put it on the calendar: `self_booked` (the customer, on a booking page), `setter_booked`, `closer_booked`, `admin_booked`, `automation`, `imported`, `api` or `unknown`. Null on an older booking with nothing stored. |
| `booked_by` | object \| null | The teammate who made the booking in Pulse, when one did: `key` (matches `key` in the users list), `name` and `former` (true when they are no longer active). |
| `invitee_name` | string \| null | The invitee's name on the booking. |
| `invitee_email` | string \| null | The invitee's email on the booking. |
| `duplicate_of` | integer \| null | Set on a GoHighLevel copy of a Calendly booking: the `id` of the Calendly meeting. Null on every other row. |
| `rescheduled_from_id` | integer \| null | The `id` of the meeting this booking replaced, when this is the new time of a moved booking. Null when Pulse does not know it. Null never means the booking was not moved: read `booking_state` for that. |
| `rescheduled_to_id` | integer \| null | The `id` of the meeting that replaced this one, when this booking was moved to a new time. Null when Pulse does not know it. |
| `rescheduled_at` | datetime \| null | When the move was made: the `booked_at` of the meeting that replaced this one. Null when not known. |
| `setter_from_meeting_id` | integer \| null | With `setter_basis` `triage_call`: the `id` of the triage meeting whose setter is credited with this booking. Null on every other row. |
| `sales_outcome` | string \| null | What came of a held call, as the person who ran it filed it in Pulse: `closed_won`, `follow_up`, `nurture`, `not_qualified`, `not_interested` or `closed_lost`. Null when nothing is filed yet, or the meeting is not recorded as held. Null is not a result. |
| `sales_outcome_reason` | string \| null | The reason filed with a `closed_lost` result, as a reason code. Null otherwise. |
| `offer_made` | boolean \| null | Whether an offer was made on a held call: `true`, `false`, or null when nobody has said. Null means not recorded, never no. A person records it in Pulse on the contact's meeting, or you send it with Update a meeting. A call filed as `closed_won` with no answer is recorded as `true`, because the sale shows an offer was made; if that result is later changed or cleared, the automatic `true` is removed, and an answer a person or a key gave stays. Always null on a meeting that is not recorded as held. |
| `booking_form_answers` | object[] \| null | What the customer answered on the booking form when they booked, in the form's order: each item has `question` (as the booking tool names it), `answer` and `form` (`booking_form`, or `routing_form` for a Calendly routing form answered before booking). The name, email and phone questions are left out: they are `invitee_name`, `invitee_email` and the record's phone. An empty list means the form held no other answers. Null means the booking tool has no form (GoHighLevel, Zoom, a meeting added by hand), or the answers could not be read just now (the list then says `booking_forms_unread`). |
| `created_at` | datetime | When Pulse first saved the booking. |
| `updated_at` | datetime | When the booking last changed in Pulse. This list pages by it. |

Every field has a permanent link in the data dictionary: https://scalewithdata.ai/developers/data-dictionary#meeting

##### Example

```bash
curl -X PATCH "https://scalewithdata.ai/api/v1/meetings/8f1c2b8e-4d61-4f52-9a43-0b9d7c1e5a10" \
  -H "Authorization: Bearer $SWD_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"setter_key":"u5120044","offer_made":true}'
```

```json
{
  "id": 48213,
  "record_id": "8f1c2b8e-4d61-4f52-9a43-0b9d7c1e5a10",
  "source": "oncehub",
  "provider_booking_id": "BKNG-7XK2M9Q4T1",
  "meeting_type": "Strategy call",
  "calendar_ref": "strategy-call",
  "booked_at": "2026-11-03T15:20:11.000Z",
  "scheduled_start": "2026-11-05T18:00:00.000Z",
  "scheduled_end": "2026-11-05T18:45:00.000Z",
  "booking_state": "scheduled",
  "attendance": "held",
  "outcome": "conducted",
  "host": {
    "key": "u5120001",
    "name": "Sam Carter",
    "former": false
  },
  "provider_host_email": "sam@leefitness.com",
  "setter": {
    "key": "u5120044",
    "name": "Alex Kim",
    "former": false
  },
  "setter_basis": "correction",
  "setter_confirmed": true,
  "booking_source": "setter_booked",
  "booked_by": {
    "key": "u5120044",
    "name": "Alex Kim",
    "former": false
  },
  "invitee_name": "Jordan Lee",
  "invitee_email": "jordan@leefitness.com",
  "duplicate_of": null,
  "rescheduled_from_id": null,
  "rescheduled_to_id": null,
  "rescheduled_at": null,
  "setter_from_meeting_id": null,
  "sales_outcome": "follow_up",
  "sales_outcome_reason": null,
  "offer_made": true,
  "booking_form_answers": [
    {
      "question": "What do you currently do for work?",
      "answer": "I run a small gym",
      "form": "booking_form"
    }
  ],
  "created_at": "2026-11-03T15:20:14.000Z",
  "updated_at": "2026-11-05T19:02:40.000Z"
}
```

Errors it can return: `missing_api_key`, `invalid_api_key`, `api_key_revoked`, `api_key_paused`, `api_key_expired`, `insufficient_scope`, `invalid_request`, `payload_too_large`, `conflict`, `not_found`, `rate_limited`, `verification_failed`, `timeout`, `database_unavailable`.

### Messages, calls and transcripts

Texts and calls across the whole brand, for a warehouse sync, and the transcript of a recorded call.

#### List texts on your Pulse lines

`GET https://scalewithdata.ai/api/v1/messages`

Every text sent or received on your own Pulse lines, with the whole message, oldest change first, by `updated_at`. Page through it once to copy everything. To keep a copy in sync, pass `updated_after` with the largest `updated_at` you have received: you get new texts and texts whose delivery status changed. Save each by `id`. This list holds back the newest two minutes of changes so that a change still being saved is never skipped. Test sends are left out. Messages from GoHighLevel and Close are in their own list (List synced messages); Messenger and Instagram messages are on each record's interactions.

- Permission: `read:conversations`
- Success: 200 OK
- Response: `{ results, next_cursor }`, one page of a list

##### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `updated_after` | query | datetime | no | Only texts whose `updated_at` is at or after this time (ISO 8601). To sync, pass the largest `updated_at` you already received, exactly as it came back, never your own clock. One-second precision, so rows from that same second come back again: save by `id` and a repeat is harmless. Ignored when you pass a cursor. |
| `limit` | query | integer | no | How many results per page, 1 to 100. Default 50. |
| `cursor` | query | string | no | Leave it out for the first page. For the next page, pass the `next_cursor` the previous page returned, unchanged. |

##### Fields in the response

| Field | Type | Meaning |
| --- | --- | --- |
| `id` | integer | The text's id. Never changes. Save by it. |
| `direction` | string | `inbound` (the contact wrote to you) or `outbound` (you wrote to them). |
| `channel` | string | `imessage`, `sms`, `rcs` or `mms`. |
| `occurred_at` | datetime | When the text was sent or received. |
| `delivery_status` | string \| null | For a text you sent: `queued`, `sent`, `delivered`, `read`, `failed`, `blocked` or `unknown`. A plain SMS has no delivery receipt, so it stays `sent`: that is not a failure. Null for a text the contact sent. |
| `delivery_failure` | string \| null | Why a text failed or was blocked, in plain words. Null otherwise. |
| `delivered_at` | datetime \| null | When an iMessage was delivered. Always null for a plain SMS: phone carriers do not send a delivery receipt, so nobody knows. |
| `read_at` | datetime \| null | When an iMessage was read, when the contact shares read receipts. Null otherwise, and always null for SMS. |
| `downgraded_to_sms` | boolean | True when the text was meant as an iMessage and went out as an SMS instead. |
| `sender_kind` | string | `contact` (the customer), `teammate`, `automation` (a workflow or broadcast), `system` or `unknown` (a text from your side where Pulse cannot prove who sent it). |
| `sender_key` | string \| null | The teammate who sent it. Matches `key` in the users list. Set only when Pulse proved who sent it and they are on your team list. |
| `sender_name` | string \| null | That teammate's name. |
| `automated` | boolean | True when a workflow or broadcast sent it. False for a teammate's own text and for anything the contact sent. |
| `workflow_id` | integer \| null | The Pulse workflow that sent it, when one did. |
| `from_number` | string \| null | The number it was sent from. |
| `to_number` | string \| null | The number it was sent to. |
| `lead_id` | integer \| null | The dialer lead the text belongs to, when Pulse matched one. |
| `body` | string \| null | The whole text. Null when the message was only an attachment. |
| `has_attachment` | boolean | True when a picture, file or voice note came with it. The file itself is not served here. |
| `created_at` | datetime | When Pulse saved the text. |
| `updated_at` | datetime | When the text last changed, for example when its delivery receipt arrived. Use it to sync only what changed. |

Beside `results` and `next_cursor`, the response also carries:

| Field | Type | Meaning |
| --- | --- | --- |
| `names_withheld` | integer | How many teammates on this page were left as null because they are not on your team list. |

Every field has a permanent link in the data dictionary: https://scalewithdata.ai/developers/data-dictionary#message

##### Example

```bash
curl "https://scalewithdata.ai/api/v1/messages" \
  -H "Authorization: Bearer $SWD_API_KEY"
```

```json
{
  "results": [
    {
      "id": 88121,
      "direction": "outbound",
      "channel": "imessage",
      "occurred_at": "2026-11-04T16:12:09.000Z",
      "delivery_status": "delivered",
      "delivery_failure": null,
      "delivered_at": "2026-11-04T16:12:11.000Z",
      "read_at": null,
      "downgraded_to_sms": false,
      "sender_kind": "teammate",
      "sender_key": "u5120044",
      "sender_name": "Alex Kim",
      "automated": false,
      "workflow_id": null,
      "from_number": "+15550104455",
      "to_number": "+15550102233",
      "lead_id": 412907,
      "body": "Hi Jordan, it is Alex. Does Thursday at 1pm still work?",
      "has_attachment": false,
      "created_at": "2026-11-04T16:12:09.000Z",
      "updated_at": "2026-11-04T16:12:11.000Z"
    }
  ],
  "next_cursor": null,
  "names_withheld": 0
}
```

Errors it can return: `missing_api_key`, `invalid_api_key`, `api_key_revoked`, `api_key_paused`, `api_key_expired`, `insufficient_scope`, `invalid_request`, `invalid_cursor`, `rate_limited`, `not_ready`, `verification_failed`, `timeout`, `database_unavailable`.

#### List synced messages

`GET https://scalewithdata.ai/api/v1/messages/synced`

The messages Pulse copied from your GoHighLevel or Close account, with the whole message, oldest change first, by `updated_at` (when Pulse saved or last changed its copy). Page through it once to copy everything. To keep a copy in sync, pass `updated_after` with the largest `updated_at` you have received: you get messages saved since then, including an older message a history import saved late, and messages whose delivery status changed. Save each by `id`. This list holds back the newest two minutes of changes so that a change still being saved is never skipped. A text Pulse itself sent and copied over has `sent_from_pulse` true and is in the messages list too. Messenger and Instagram accounts connected directly to Pulse are on each record's interactions.

- Permission: `read:conversations`
- Success: 200 OK
- Response: `{ results, next_cursor }`, one page of a list

##### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `updated_after` | query | datetime | no | Only messages whose `updated_at` is at or after this time (ISO 8601). To sync, pass the largest `updated_at` you already received, exactly as it came back, never your own clock. One-second precision, so rows from that same second come back again: save by `id` and a repeat is harmless. Ignored when you pass a cursor. |
| `limit` | query | integer | no | How many results per page, 1 to 100. Default 50. |
| `cursor` | query | string | no | Leave it out for the first page. For the next page, pass the `next_cursor` the previous page returned, unchanged. |

##### Fields in the response

| Field | Type | Meaning |
| --- | --- | --- |
| `id` | integer | The message's id in Pulse. Never changes. Save by it. |
| `source` | string | `gohighlevel` or `close`: the system the message was copied from. |
| `provider_message_id` | string | The message's id in that system. |
| `provider_conversation_id` | string \| null | The conversation's id in that system. |
| `provider_contact_id` | string \| null | The contact's id in that system. Match it to your own copy of that system's contacts. |
| `direction` | string | `inbound` or `outbound`. |
| `channel` | string \| null | The channel as that system names it, for example `sms` or `email`. |
| `occurred_at` | datetime | When the message was sent or received, as that system reported it. |
| `delivery_status` | string \| null | For a message you sent: `queued`, `sent`, `delivered`, `read`, `failed`, `blocked` or `unknown`, from that system's own status. Null for a message the contact sent. |
| `sender_kind` | string | `contact`, `teammate` (matched to someone on your team list) or `unknown` (sent from that system by a user Pulse could not match). |
| `sender_key` | string \| null | The teammate who sent it, when Pulse matched one on your team list. Matches `key` in the users list. |
| `sender_name` | string \| null | That teammate's name. |
| `provider_user_id` | string \| null | The sending user's id in that system, for a message you sent. Null when that system did not say. |
| `sent_from_pulse` | boolean | True when Pulse sent this text and copied it into the other system. The same text is in the messages list too, so count it once. |
| `automation_ref` | string \| null | The sequence or bulk send that system says this message belongs to, for example `sequence:seq_4Kd` or `bulk:bea_9Qx` (Close). Null when it named none, and for messages saved before 2026-11-11, when Pulse began keeping it. |
| `provider_source` | string \| null | That system's own word for what produced a message you sent, when its API says. GoHighLevel uses `workflow`, `bulk_actions`, `campaign`, `api` or `app`. Null when it did not say. |
| `body` | string \| null | The whole message text. |
| `stored_at` | datetime | When Pulse first saved its copy. An older message can be saved long after it was sent. |
| `updated_at` | datetime | When Pulse saved or last changed its copy, for example when its delivery status moved. The list is ordered by it. Use it to sync only what changed. |

Beside `results` and `next_cursor`, the response also carries:

| Field | Type | Meaning |
| --- | --- | --- |
| `names_withheld` | integer | How many teammates on this page were left as null because they are not on your team list. |

Every field has a permanent link in the data dictionary: https://scalewithdata.ai/developers/data-dictionary#synced_message

##### Example

```bash
curl "https://scalewithdata.ai/api/v1/messages/synced" \
  -H "Authorization: Bearer $SWD_API_KEY"
```

```json
{
  "results": [
    {
      "id": 5530912,
      "source": "gohighlevel",
      "provider_message_id": "Yq3n8sKx2LmP0aTc7VbE",
      "provider_conversation_id": "c9Hd2JfQ4WzR6uNs1XoK",
      "provider_contact_id": "kT5pB8mD3yVg7LcA2ZrE",
      "direction": "inbound",
      "channel": "sms",
      "occurred_at": "2026-11-04T16:20:41.000Z",
      "delivery_status": null,
      "sender_kind": "contact",
      "sender_key": null,
      "sender_name": null,
      "provider_user_id": null,
      "sent_from_pulse": false,
      "automation_ref": null,
      "provider_source": null,
      "body": "Thursday at 1 works. Talk then.",
      "stored_at": "2026-11-04T16:20:44.000Z",
      "updated_at": "2026-11-04T16:20:44.000Z"
    }
  ],
  "next_cursor": null,
  "names_withheld": 0
}
```

Errors it can return: `missing_api_key`, `invalid_api_key`, `api_key_revoked`, `api_key_paused`, `api_key_expired`, `insufficient_scope`, `invalid_request`, `invalid_cursor`, `rate_limited`, `not_ready`, `verification_failed`, `timeout`, `database_unavailable`.

#### List calls

`GET https://scalewithdata.ai/api/v1/calls`

Every call Pulse holds for your brand, oldest first, by `occurred_at` (when Pulse saved the call, normally just after the rep hung up). Most are calls placed from the Pulse dialer; `origin` says when one came from somewhere else. Each call carries the rep, the numbers, how long it lasted, the outcome the rep chose, the phone provider's status and times, whether it counts as a conversation, whether a recording and a transcript exist, and measured talk time. Page through it once to copy everything, then pass `occurred_after` to read on. A call's details can fill in a little after it is saved (the provider's times, the recording, talk time), so read the last day again when you sync. Listing calls never starts a transcription.

- Permission: `read:conversations`
- Success: 200 OK
- Response: `{ results, next_cursor }`, one page of a list

##### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `occurred_after` | query | datetime | no | Only calls whose `occurred_at` is at or after this time (ISO 8601). To sync, pass the largest `occurred_at` you already received, exactly as it came back. One-second precision, so rows from that same second come back again: save by `id` and a repeat is harmless. Ignored when you pass a cursor. |
| `occurred_before` | query | datetime | no | Only calls whose `occurred_at` is before this time (ISO 8601). Keep it the same while you page. |
| `rep_key` | query | string | no | Only calls by this teammate: a `key` from the users list. |
| `limit` | query | integer | no | How many results per page, 1 to 100. Default 50. |
| `cursor` | query | string | no | Leave it out for the first page. For the next page, pass the `next_cursor` the previous page returned, unchanged. |

##### Fields in the response

| Field | Type | Meaning |
| --- | --- | --- |
| `id` | integer | The call's id. Never changes. Save by it. |
| `occurred_at` | datetime | When Pulse saved the call, normally just after the rep hung up. The list is ordered by it. For the dial itself use `started_at`. |
| `direction` | string | `outbound` or `inbound`. |
| `origin` | string | `pulse_dialer` (placed from Pulse), `gohighlevel` (a call logged from GoHighLevel) or `other`. |
| `rep_key` | string \| null | The teammate on the call. Matches `key` in the users list. Null when no teammate is matched or they are not on your team list. |
| `rep_name` | string \| null | That teammate's name. |
| `lead_id` | integer \| null | The dialer lead that was called, when Pulse matched one. |
| `from_number` | string \| null | The number the call came from. |
| `to_number` | string \| null | The number that was called. |
| `duration_seconds` | integer \| null | How long the call lasted. Null when it was not recorded. |
| `disposition` | string \| null | The outcome the rep chose, for example `connected_booked`, `no_answer` or `voicemail`. Null when the rep saved none. |
| `provider_status` | string \| null | The phone provider's final status: `completed`, `no-answer`, `busy`, `failed` or `canceled`. Null when the provider's final status never reached Pulse. |
| `answered_by` | string | What the answering machine detector heard: `human`, `machine` or `unknown`. |
| `started_at` | datetime \| null | When the phone provider reported the call ringing. Null when it did not say. |
| `answered_at` | datetime \| null | When the call was answered. Null when nobody answered or the provider did not say. |
| `ended_at` | datetime \| null | When the call ended. Null when the provider did not say. |
| `conversation` | boolean \| null | True when the call was a conversation by Pulse's rule: at least 30 seconds with a person reached. This is the rule your dashboard's Conversations figure uses. |
| `recording_available` | boolean | True when a recording of the call exists in Pulse. No recording address is given: listen to it on the call in Pulse. |
| `has_transcript` | boolean | True when the call has been transcribed. A call is transcribed only when a teammate asks for it in Pulse. |
| `talk_time` | object | Talk time measured from the recording's two audio channels: `measured`, `rep_talk_share` (0 to 1), `rep_seconds`, `contact_seconds` and `reason`. When `measured` is false the figures are null, never 0, and `reason` says why. |

Beside `results` and `next_cursor`, the response also carries:

| Field | Type | Meaning |
| --- | --- | --- |
| `names_withheld` | integer | How many teammates on this page were left as null because they are not on your team list. |

Every field has a permanent link in the data dictionary: https://scalewithdata.ai/developers/data-dictionary#call

##### Example

```bash
curl "https://scalewithdata.ai/api/v1/calls" \
  -H "Authorization: Bearer $SWD_API_KEY"
```

```json
{
  "results": [
    {
      "id": 640118,
      "occurred_at": "2026-11-04T17:02:36.000Z",
      "direction": "outbound",
      "origin": "pulse_dialer",
      "rep_key": "u5120044",
      "rep_name": "Alex Kim",
      "lead_id": 412907,
      "from_number": "+15550104455",
      "to_number": "+15550102233",
      "duration_seconds": 548,
      "disposition": "connected_booked",
      "provider_status": "completed",
      "answered_by": "human",
      "started_at": "2026-11-04T16:53:12.000Z",
      "answered_at": "2026-11-04T16:53:24.000Z",
      "ended_at": "2026-11-04T17:02:32.000Z",
      "conversation": true,
      "recording_available": true,
      "has_transcript": false,
      "talk_time": {
        "measured": true,
        "rep_talk_share": 0.4127,
        "rep_seconds": 212.4,
        "contact_seconds": 302.2,
        "reason": null
      }
    }
  ],
  "next_cursor": null,
  "names_withheld": 0
}
```

Errors it can return: `missing_api_key`, `invalid_api_key`, `api_key_revoked`, `api_key_paused`, `api_key_expired`, `insufficient_scope`, `invalid_request`, `invalid_cursor`, `rate_limited`, `not_ready`, `verification_failed`, `timeout`, `database_unavailable`.

#### List a record's calls

`GET https://scalewithdata.ai/api/v1/crm/records/{id}/calls`

One record's calls, newest first: the Pulse dialer calls placed to the record's numbers, and the Fathom, Zoom, Grain and Fireflies recordings linked to the record. Each one says whether it has a transcript. At most 50 of each kind, the newest; `truncated` says when there were more. There is no next page, so `next_cursor` is always null.

- Permission: `read:conversations`
- Success: 200 OK
- Response: `{ results, next_cursor }`, one page of a list

##### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | yes | The record's `id`. |

##### Fields in the response

| Field | Type | Meaning |
| --- | --- | --- |
| `call_id` | string | The call's id with its kind in front: `dialer:640118` for a Pulse dialer call, `transcript:9912` for a recorded meeting. Pass it to the transcript endpoint as it is. |
| `record_id` | string | The record the call is on. |
| `kind` | string | `pulse_dialer_call` or `recorded_meeting` (a Fathom, Zoom, Grain or Fireflies recording linked to the record). |
| `source` | string | `Pulse Dialer`, `Fathom`, `Zoom`, `Grain`, `Fireflies` or `Recorded meeting`. |
| `occurred_at` | datetime \| null | For a dialer call, when Pulse saved it. For a recorded meeting, the time the recording service gave. Null when that service gave none. |
| `duration_seconds` | integer \| null | How long it lasted. |
| `rep_key` | string \| null | The teammate on a dialer call. Matches `key` in the users list. Null for a recorded meeting. |
| `rep_name` | string \| null | That teammate's name. |
| `disposition` | string \| null | The outcome the rep chose on a dialer call. |
| `provider_status` | string \| null | The phone provider's final status for a dialer call. Null for a recorded meeting. |
| `answered_by` | string \| null | What the answering machine detector heard on a dialer call: `human`, `machine` or `unknown`. Null for a recorded meeting. |
| `started_at` | datetime \| null | When a dialer call started ringing, when the provider said. |
| `answered_at` | datetime \| null | When a dialer call was answered. |
| `ended_at` | datetime \| null | When a dialer call ended. |
| `conversation` | boolean \| null | For a dialer call, true when it was at least 30 seconds with a person reached. Null for a recorded meeting. |
| `transcript` | string | `available`, `in_progress`, `not_transcribed` (there is a recording, nobody asked for a transcript), `no_recording` or `erased` (removed at the customer's request). |
| `talk_time` | object | Talk time measured from the recording's two audio channels: `measured`, `rep_talk_share` (0 to 1), `rep_seconds`, `contact_seconds` and `reason`. When `measured` is false the figures are null, never 0, and `reason` says why. |

Beside `results` and `next_cursor`, the response also carries:

| Field | Type | Meaning |
| --- | --- | --- |
| `truncated` | boolean | True when the record has more calls than this list carries. The newest are the ones listed. |

Every field has a permanent link in the data dictionary: https://scalewithdata.ai/developers/data-dictionary#record_call

##### Example

```bash
curl "https://scalewithdata.ai/api/v1/crm/records/8f1c2b8e-4d61-4f52-9a43-0b9d7c1e5a10/calls" \
  -H "Authorization: Bearer $SWD_API_KEY"
```

```json
{
  "results": [
    {
      "call_id": "dialer:640118",
      "record_id": "8f1c2b8e-4d61-4f52-9a43-0b9d7c1e5a10",
      "kind": "pulse_dialer_call",
      "source": "Pulse Dialer",
      "occurred_at": "2026-11-04T17:02:36.000Z",
      "duration_seconds": 548,
      "rep_key": "u5120044",
      "rep_name": "Alex Kim",
      "disposition": "connected_booked",
      "provider_status": "completed",
      "answered_by": "human",
      "started_at": "2026-11-04T16:53:12.000Z",
      "answered_at": "2026-11-04T16:53:24.000Z",
      "ended_at": "2026-11-04T17:02:32.000Z",
      "conversation": true,
      "transcript": "available",
      "talk_time": {
        "measured": true,
        "rep_talk_share": 0.4127,
        "rep_seconds": 212.4,
        "contact_seconds": 302.2,
        "reason": null
      }
    }
  ],
  "next_cursor": null,
  "truncated": 0
}
```

Errors it can return: `missing_api_key`, `invalid_api_key`, `api_key_revoked`, `api_key_paused`, `api_key_expired`, `insufficient_scope`, `conflict`, `not_found`, `rate_limited`, `verification_failed`, `timeout`, `database_unavailable`.

#### Get a call's transcript

`GET https://scalewithdata.ai/api/v1/crm/records/{id}/calls/{call_id}/transcript`

The transcript of one call on a record, line by line, with a summary when one exists (Fathom's own summary and action items for a Fathom recording, Fireflies' own summary for a Fireflies recording). This only reads: a dialer call that nobody transcribed answers `not_transcribed` and never starts a transcription. A transcript erased at the customer's request answers `erased` with no words. Card numbers and similar details are masked.

- Permission: `read:conversations`
- Success: 200 OK
- Response: one object

##### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | yes | The record's `id`. |
| `call_id` | path | string | yes | The `call_id` from the record's call list, for example `dialer:640118` or `transcript:9912`. |

##### Fields in the response

| Field | Type | Meaning |
| --- | --- | --- |
| `call_id` | string | The call, as the record's call list names it. |
| `record_id` | string | The record the call is on. |
| `kind` | string | `pulse_dialer_call` or `recorded_meeting`. |
| `source` | string | `Pulse Dialer`, `Fathom`, `Zoom`, `Grain`, `Fireflies` or `Recorded meeting`. |
| `occurred_at` | datetime \| null | When the call happened, as the call list gives it. |
| `duration_seconds` | integer \| null | How long it lasted. |
| `rep_key` | string \| null | The teammate on a dialer call. Matches `key` in the users list. |
| `rep_name` | string \| null | That teammate's name. |
| `disposition` | string \| null | The outcome the rep chose on a dialer call. |
| `transcript_state` | string | `available`, `in_progress`, `not_transcribed`, `no_recording`, `failed` or `erased`. `lines` has words only when it is `available`. |
| `lines` | string[] | The transcript, one line per turn, in order: `[mm:ss] Speaker: words`. Card numbers and similar details are masked. |
| `truncated` | boolean | True when the transcript was longer than one response carries and was cut at the end. |
| `speakers_note` | string \| null | How far the speaker names can be trusted, in one sentence. |
| `summary` | string \| null | A summary of the call, when one exists: Fathom's or Fireflies' own summary for a recording from that tool, or Pulse's quick notes for a transcribed dialer call. |
| `summary_source` | string \| null | Who wrote the summary: `fathom`, `fireflies` or `pulse`. Null when there is no summary. |
| `topics` | string[] | Topics from Pulse's quick notes on a dialer call. Empty when there are none. |
| `objections` | string[] | Objections from Pulse's quick notes on a dialer call. Empty when there are none. |
| `action_items` | object[] | Fathom's own action items: `description`, `assignee_name`, `completed` and `at_seconds` (how far into the recording). Empty when Fathom sent none or it is not a Fathom recording. |
| `next_step` | string \| null | When there is no transcript, what to do about it, in plain words. |

Every field has a permanent link in the data dictionary: https://scalewithdata.ai/developers/data-dictionary#call_transcript

##### Example

```bash
curl "https://scalewithdata.ai/api/v1/crm/records/8f1c2b8e-4d61-4f52-9a43-0b9d7c1e5a10/calls/dialer%3A640118/transcript" \
  -H "Authorization: Bearer $SWD_API_KEY"
```

```json
{
  "call_id": "dialer:640118",
  "record_id": "8f1c2b8e-4d61-4f52-9a43-0b9d7c1e5a10",
  "kind": "pulse_dialer_call",
  "source": "Pulse Dialer",
  "occurred_at": "2026-11-04T17:02:36.000Z",
  "duration_seconds": 548,
  "rep_key": "u5120044",
  "rep_name": "Alex Kim",
  "disposition": "connected_booked",
  "transcript_state": "available",
  "lines": [
    "[00:02] Rep (Alex Kim): Hi Jordan, it is Alex from Lee Fitness.",
    "[00:06] Customer: Hey Alex, thanks for calling."
  ],
  "truncated": false,
  "speakers_note": "Rep and Customer are proven by the recording's separate audio channels.",
  "summary": "Jordan wants to start next month and booked a call for Thursday.",
  "summary_source": "pulse",
  "topics": [
    "Start date",
    "Pricing"
  ],
  "objections": [],
  "action_items": [],
  "next_step": null
}
```

Errors it can return: `missing_api_key`, `invalid_api_key`, `api_key_revoked`, `api_key_paused`, `api_key_expired`, `insufficient_scope`, `invalid_request`, `conflict`, `not_found`, `rate_limited`, `verification_failed`, `timeout`, `database_unavailable`.

### Pipelines, users and custom fields

The building blocks your records refer to. Read these once and keep them, they change rarely.

#### List pipelines and stages

`GET https://scalewithdata.ai/api/v1/crm/pipelines`

Your pipelines, each with its stages in board order. `is_sales_pipeline` marks the one whose stage is a record's `stage` field.

- Permission: `read:crm`
- Success: 200 OK
- Response: `{ results, next_cursor }`, one page of a list

##### Fields in the response

| Field | Type | Meaning |
| --- | --- | --- |
| `id` | string | The pipeline's id. |
| `name` | string | Pipeline name. |
| `is_sales_pipeline` | boolean | True for your Sales Pipeline. |
| `position` | integer | Order in the menu. |
| `stages` | object[] | `id`, `name`, `type` (`active`, `won` or `lost`) and `position`. |

Every field has a permanent link in the data dictionary: https://scalewithdata.ai/developers/data-dictionary#pipeline

##### Example

```bash
curl "https://scalewithdata.ai/api/v1/crm/pipelines" \
  -H "Authorization: Bearer $SWD_API_KEY"
```

```json
{
  "results": [
    {
      "id": "sales",
      "name": "Sales Pipeline",
      "is_sales_pipeline": true,
      "position": 0,
      "stages": [
        {
          "id": 11,
          "name": "New Lead",
          "type": "active",
          "position": 0
        },
        {
          "id": 12,
          "name": "Booked Call",
          "type": "active",
          "position": 1
        },
        {
          "id": 13,
          "name": "Won",
          "type": "won",
          "position": 2
        },
        {
          "id": 14,
          "name": "Lost",
          "type": "lost",
          "position": 3
        }
      ]
    }
  ],
  "next_cursor": null
}
```

Errors it can return: `missing_api_key`, `invalid_api_key`, `api_key_revoked`, `api_key_paused`, `api_key_expired`, `insufficient_scope`, `rate_limited`, `verification_failed`, `timeout`, `database_unavailable`.

#### List users

`GET https://scalewithdata.ai/api/v1/crm/users`

The people records can be assigned to. A record's `owner_key` matches a user's `key`.

- Permission: `read:crm`
- Success: 200 OK
- Response: `{ results, next_cursor }`, one page of a list

##### Fields in the response

| Field | Type | Meaning |
| --- | --- | --- |
| `key` | string | The user's key, used by `owner_key` on records. |
| `name` | string | Name. |
| `role_title` | string \| null | Job title. |
| `email` | string \| null | Work email, when set. |
| `source` | string | `platform` (logs in to Pulse) or `external_ghl` (a GoHighLevel user with no Pulse login). |
| `can_own_leads` | boolean | True when records can be assigned to this user. Only these keys are accepted as `owner_key` when you create a record. |

Every field has a permanent link in the data dictionary: https://scalewithdata.ai/developers/data-dictionary#user

##### Example

```bash
curl "https://scalewithdata.ai/api/v1/crm/users" \
  -H "Authorization: Bearer $SWD_API_KEY"
```

```json
{
  "results": [
    {
      "key": "m3",
      "name": "Sam Carter",
      "role_title": "Closer",
      "email": "sam@leefitness.com",
      "source": "platform",
      "can_own_leads": true
    }
  ],
  "next_cursor": null
}
```

Errors it can return: `missing_api_key`, `invalid_api_key`, `api_key_revoked`, `api_key_paused`, `api_key_expired`, `insufficient_scope`, `rate_limited`, `verification_failed`, `timeout`, `database_unavailable`.

#### List custom fields

`GET https://scalewithdata.ai/api/v1/crm/custom_fields`

The custom fields you set up for records. The same keys appear in a record's `custom_fields`.

- Permission: `read:crm`
- Success: 200 OK
- Response: `{ results, next_cursor }`, one page of a list

##### Fields in the response

| Field | Type | Meaning |
| --- | --- | --- |
| `key` | string | The field's key. |
| `label` | string | The name your team sees. |
| `type` | string | For example `text`, `number`, `currency`, `date`, `select`, `multi_select` or `boolean`. |
| `options` | string[] | The choices, for pick-list fields. |
| `currency` | string \| null | For a `currency` field, the three-letter code its values are kept in (values are integers in that currency's minor units). Null for every other type, and for a currency field your team set up without a currency (its value is then a plain number of minor units). |
| `help_text` | string \| null | The hint shown under the field. |

Every field has a permanent link in the data dictionary: https://scalewithdata.ai/developers/data-dictionary#custom_field

##### Example

```bash
curl "https://scalewithdata.ai/api/v1/crm/custom_fields" \
  -H "Authorization: Bearer $SWD_API_KEY"
```

```json
{
  "results": [
    {
      "key": "budget",
      "label": "Budget",
      "type": "currency",
      "options": [],
      "currency": "USD",
      "help_text": "What they said they can invest."
    }
  ],
  "next_cursor": null
}
```

Errors it can return: `missing_api_key`, `invalid_api_key`, `api_key_revoked`, `api_key_paused`, `api_key_expired`, `insufficient_scope`, `rate_limited`, `verification_failed`, `timeout`, `database_unavailable`.

### Sales

Sales from your Ledger. Read only: a sale's money changes only through verification inside Pulse.

#### List sales

`GET https://scalewithdata.ai/api/v1/sales`

Sales between two days, oldest first. Verified sales by default. A sale can be verified a few days after it was made, so when you sync, re-read the last 30 days. Available once your account's sales record is the Pulse Ledger.

- Permission: `read:sales`
- Success: 200 OK
- Response: `{ results, next_cursor }`, one page of a list

##### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `from` | query | date | yes | First sale day to include (YYYY-MM-DD). |
| `to` | query | date | yes | Last sale day to include (YYYY-MM-DD). The range can cover at most 366 days, counting both `from` and `to`. |
| `status` | query | string | no | Which sales to list. Default `verified`. One of `verified`, `pending_verification`, `pending_manager_review`, `verification_failed`, `reversed`. |
| `limit` | query | integer | no | How many results per page, 1 to 100. Default 50. |
| `cursor` | query | string | no | Leave it out for the first page. For the next page, pass the `next_cursor` the previous page returned, unchanged. |

##### Fields in the response

| Field | Type | Meaning |
| --- | --- | --- |
| `id` | string | The sale's id. |
| `status` | string | `verified`, `pending_verification`, `pending_manager_review`, `verification_failed` or `reversed`. |
| `sale_date` | date | The day of the sale (YYYY-MM-DD). |
| `customer_name` | string | Customer name on the sale. |
| `customer_email` | string \| null | Customer email on the sale. |
| `currency` | string | Three-letter currency code of every `_cents` amount on this sale. A sale taken in another currency and settled in US dollars shows the settled US dollar amount. |
| `amount_cents` | integer | The main charge, in minor units of `currency` (cents for USD: `300000` is $3,000.00), after any refund already netted. |
| `total_cash_collected_cents` | integer | Everything collected on this sale, in minor units of `currency`, including extra payments, after any refund already netted. |
| `refund_netted_cents` | integer | Refund money already taken out of the amounts above, in minor units of `currency`. Every refund, including these, is also listed in `/refunds`: do not take one off twice (see "Commission from this list"). |
| `remaining_balance_cents` | integer \| null | What the customer still owed when the sale was recorded, in minor units of `currency`. Null means none was recorded. |
| `program` | string \| null | The program sold. |
| `transaction_type` | string \| null | For example a new sale or a balance collection. |
| `booking_type` | string \| null | `setter`, `inbound`, `self` or `referral`. |
| `lead_source` | string \| null | Lead source recorded on the sale. |
| `closer` | object | `id`, `name` and `former`. `name` is null when the person is not on your team list in Pulse. Offboarding a login removes it from the team list, so a rep who has left shows `name: null`. `former` is true only for someone still on the team list whose status is no longer active. |
| `setter` | object \| null | Same as `closer`, or null when no setter was recorded. |
| `verified_at` | datetime \| null | When the sale was verified. |
| `created_at` | datetime | When the sale was submitted. |
| `updated_at` | datetime | When the sale last changed in Pulse (verified, corrected, repriced by a refund, or reversed). `/sales/changes` pages by it. |

Beside `results` and `next_cursor`, the response also carries:

| Field | Type | Meaning |
| --- | --- | --- |
| `names_withheld` | integer | How many closer or setter names on this page were withheld because the person is not on your team list. |

Every field has a permanent link in the data dictionary: https://scalewithdata.ai/developers/data-dictionary#sale

##### Example

```bash
curl "https://scalewithdata.ai/api/v1/sales?from=2026-10-01&to=2026-10-31" \
  -H "Authorization: Bearer $SWD_API_KEY"
```

```json
{
  "results": [
    {
      "id": "2d0b7f4c-0f8e-4e0a-8c79-5f3a9a6c1e22",
      "status": "verified",
      "sale_date": "2026-10-15",
      "customer_name": "Jordan Lee",
      "customer_email": "jordan@leefitness.com",
      "currency": "USD",
      "amount_cents": 300000,
      "total_cash_collected_cents": 300000,
      "refund_netted_cents": 0,
      "remaining_balance_cents": 450000,
      "program": "Accelerator",
      "transaction_type": "New Sale",
      "booking_type": "setter",
      "lead_source": "Facebook ad",
      "closer": {
        "id": 5120001,
        "name": "Sam Carter",
        "former": false
      },
      "setter": {
        "id": 5120044,
        "name": "Alex Kim",
        "former": false
      },
      "verified_at": "2026-10-15T20:41:09.000Z",
      "created_at": "2026-10-15T19:58:31.000Z",
      "updated_at": "2026-10-16T08:02:10.000Z"
    }
  ],
  "next_cursor": null,
  "names_withheld": 0
}
```

Errors it can return: `missing_api_key`, `invalid_api_key`, `api_key_revoked`, `api_key_paused`, `api_key_expired`, `insufficient_scope`, `invalid_request`, `invalid_cursor`, `rate_limited`, `sales_not_on_ledger`, `not_ready`, `verification_failed`, `timeout`, `database_unavailable`.

#### Sales that changed

`GET https://scalewithdata.ai/api/v1/sales/changes`

Every sale, of any status, oldest change first, by `updated_at`. To keep a copy in sync, pass `updated_after` with the largest `updated_at` you have received and you get only the sales that changed since: newly submitted, verified, corrected, repriced by a refund, or reversed. Save each by `id` and read its `status`: a sale that is no longer `verified` should leave your verified totals. This list holds back the newest two minutes of changes so that a change still being saved is never skipped. A refund recorded after verification does not change the sale: read those from `/refunds`.

- Permission: `read:sales`
- Success: 200 OK
- Response: `{ results, next_cursor }`, one page of a list

##### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `updated_after` | query | datetime | no | Only sales whose `updated_at` is at or after this time (ISO 8601). To sync, pass the largest `updated_at` you already received, exactly as it came back, never your own clock. One-second precision, so rows from that same second come back again: save by `id` and a repeat is harmless. Ignored when you pass a cursor. |
| `limit` | query | integer | no | How many results per page, 1 to 100. Default 50. |
| `cursor` | query | string | no | Leave it out for the first page. For the next page, pass the `next_cursor` the previous page returned, unchanged. |

##### Fields in the response

| Field | Type | Meaning |
| --- | --- | --- |
| `id` | string | The sale's id. |
| `status` | string | `verified`, `pending_verification`, `pending_manager_review`, `verification_failed` or `reversed`. |
| `sale_date` | date | The day of the sale (YYYY-MM-DD). |
| `customer_name` | string | Customer name on the sale. |
| `customer_email` | string \| null | Customer email on the sale. |
| `currency` | string | Three-letter currency code of every `_cents` amount on this sale. A sale taken in another currency and settled in US dollars shows the settled US dollar amount. |
| `amount_cents` | integer | The main charge, in minor units of `currency` (cents for USD: `300000` is $3,000.00), after any refund already netted. |
| `total_cash_collected_cents` | integer | Everything collected on this sale, in minor units of `currency`, including extra payments, after any refund already netted. |
| `refund_netted_cents` | integer | Refund money already taken out of the amounts above, in minor units of `currency`. Every refund, including these, is also listed in `/refunds`: do not take one off twice (see "Commission from this list"). |
| `remaining_balance_cents` | integer \| null | What the customer still owed when the sale was recorded, in minor units of `currency`. Null means none was recorded. |
| `program` | string \| null | The program sold. |
| `transaction_type` | string \| null | For example a new sale or a balance collection. |
| `booking_type` | string \| null | `setter`, `inbound`, `self` or `referral`. |
| `lead_source` | string \| null | Lead source recorded on the sale. |
| `closer` | object | `id`, `name` and `former`. `name` is null when the person is not on your team list in Pulse. Offboarding a login removes it from the team list, so a rep who has left shows `name: null`. `former` is true only for someone still on the team list whose status is no longer active. |
| `setter` | object \| null | Same as `closer`, or null when no setter was recorded. |
| `verified_at` | datetime \| null | When the sale was verified. |
| `created_at` | datetime | When the sale was submitted. |
| `updated_at` | datetime | When the sale last changed in Pulse (verified, corrected, repriced by a refund, or reversed). `/sales/changes` pages by it. |

Beside `results` and `next_cursor`, the response also carries:

| Field | Type | Meaning |
| --- | --- | --- |
| `names_withheld` | integer | How many closer or setter names on this page were withheld because the person is not on your team list. |

Every field has a permanent link in the data dictionary: https://scalewithdata.ai/developers/data-dictionary#sale

##### Example

```bash
curl "https://scalewithdata.ai/api/v1/sales/changes" \
  -H "Authorization: Bearer $SWD_API_KEY"
```

```json
{
  "results": [
    {
      "id": "2d0b7f4c-0f8e-4e0a-8c79-5f3a9a6c1e22",
      "status": "verified",
      "sale_date": "2026-10-15",
      "customer_name": "Jordan Lee",
      "customer_email": "jordan@leefitness.com",
      "currency": "USD",
      "amount_cents": 300000,
      "total_cash_collected_cents": 300000,
      "refund_netted_cents": 0,
      "remaining_balance_cents": 450000,
      "program": "Accelerator",
      "transaction_type": "New Sale",
      "booking_type": "setter",
      "lead_source": "Facebook ad",
      "closer": {
        "id": 5120001,
        "name": "Sam Carter",
        "former": false
      },
      "setter": {
        "id": 5120044,
        "name": "Alex Kim",
        "former": false
      },
      "verified_at": "2026-10-15T20:41:09.000Z",
      "created_at": "2026-10-15T19:58:31.000Z",
      "updated_at": "2026-10-16T08:02:10.000Z"
    }
  ],
  "next_cursor": null,
  "names_withheld": 0
}
```

Errors it can return: `missing_api_key`, `invalid_api_key`, `api_key_revoked`, `api_key_paused`, `api_key_expired`, `insufficient_scope`, `invalid_request`, `invalid_cursor`, `rate_limited`, `sales_not_on_ledger`, `not_ready`, `verification_failed`, `timeout`, `database_unavailable`.

#### List refunds

`GET https://scalewithdata.ai/api/v1/refunds`

Every refund in Pulse's refunds ledger, oldest change first, by `updated_at`: refunds, chargebacks, open disputes and corrections, whether a person recorded them or they came from your payment processor, including refunds recorded after a sale was verified. Use it to claw back commission and to keep cash in step with Pulse. Pass `updated_after` with the largest `updated_at` you have received to get only what changed. This list holds back the newest two minutes of changes so that a change still being saved is never skipped.

- Permission: `read:sales`
- Success: 200 OK
- Response: `{ results, next_cursor }`, one page of a list

##### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `updated_after` | query | datetime | no | Only refunds whose `updated_at` is at or after this time (ISO 8601). To sync, pass the largest `updated_at` you already received, exactly as it came back, never your own clock. One-second precision, so rows from that same second come back again: save by `id` and a repeat is harmless. Ignored when you pass a cursor. |
| `limit` | query | integer | no | How many results per page, 1 to 100. Default 50. |
| `cursor` | query | string | no | Leave it out for the first page. For the next page, pass the `next_cursor` the previous page returned, unchanged. |

##### Fields in the response

| Field | Type | Meaning |
| --- | --- | --- |
| `id` | integer | The refund's id in Pulse's refunds ledger. |
| `sale_id` | string \| null | The sale it belongs to (the `id` from `/sales`). Null when it belongs to no sale on the list: a refund on a charge no sale claims, or one recorded against a sales-sheet row. Pulse's Cash Collected does not take a refund with no `sale_id` off any sale. This can change after the refund was recorded (when a sales sheet takes over the sale's row); the refund then comes back in the changes feed with its new value. |
| `amount_cents` | integer | The amount, in minor units of `currency`. A correction of an earlier refund is NEGATIVE. |
| `currency` | string | Three-letter currency code. A refund recorded by hand in Pulse is in US dollars. |
| `refund_date` | datetime | When the money went back. |
| `reason` | string | `refund`, `chargeback`, `partial`, `dispute` (open, money frozen) or `correction`. |
| `counted_refund_cents` | integer \| null | What Pulse counts for this refund, in minor units: usually `amount_cents`, but the sale's counted amount when a full refund covers more than was counted (for example a processor fee). Null when Pulse never counts it. It is taken off only while the sale counts (status `verified`), and a refund from your processor may already be inside the sale's own figures: see "Commission from this list" in the sales section for the exact rule. |
| `source` | string | `manual` (recorded by a person in Pulse) or `processor` (taken from your payment processor). |
| `created_at` | datetime | When it was recorded in Pulse. |
| `updated_at` | datetime | When it last changed. `/refunds` pages by it. |

Every field has a permanent link in the data dictionary: https://scalewithdata.ai/developers/data-dictionary#refund

##### Example

```bash
curl "https://scalewithdata.ai/api/v1/refunds" \
  -H "Authorization: Bearer $SWD_API_KEY"
```

```json
{
  "results": [
    {
      "id": 48211,
      "sale_id": "2d0b7f4c-0f8e-4e0a-8c79-5f3a9a6c1e22",
      "amount_cents": 50000,
      "currency": "USD",
      "refund_date": "2026-10-21T14:05:00.000Z",
      "reason": "partial",
      "counted_refund_cents": 50000,
      "source": "processor",
      "created_at": "2026-10-21T14:06:12.000Z",
      "updated_at": "2026-10-21T14:06:12.000Z"
    }
  ],
  "next_cursor": null
}
```

Errors it can return: `missing_api_key`, `invalid_api_key`, `api_key_revoked`, `api_key_paused`, `api_key_expired`, `insufficient_scope`, `invalid_request`, `invalid_cursor`, `rate_limited`, `sales_not_on_ledger`, `not_ready`, `verification_failed`, `timeout`, `database_unavailable`.

### Payments, payment plans and commission

Processor payments, payment plan schedules and commission per sale. Read only.

#### List payment plans

`GET https://scalewithdata.ai/api/v1/payment_plans`

Your customers' payment plans: who is paying, how much in total, in how many payments, and the plan's status. Use the installments list for the schedule itself.

- Permission: `read:sales`
- Success: 200 OK
- Response: `{ results, next_cursor }`, one page of a list

##### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `limit` | query | integer | no | How many results per page, 1 to 100. Default 50. |
| `cursor` | query | string | no | Leave it out for the first page. For the next page, pass the `next_cursor` the previous page returned, unchanged. |

##### Fields in the response

| Field | Type | Meaning |
| --- | --- | --- |
| `id` | integer | The plan's id. Installments refer to it as `plan_id`. |
| `sale_id` | string | The sale the plan was set up for. Matches `id` in the sales list. |
| `customer_name` | string \| null | Customer name on the plan. |
| `customer_email` | string \| null | Customer email on the plan. |
| `currency` | string \| null | Three-letter currency code of every `_cents` amount on this plan, taken from its sale. Null when the sale could not be read: do not assume US dollars. |
| `contracted_cents` | integer | The full amount the customer agreed to pay, in minor units of `currency` (cents for USD). |
| `installment_count` | integer | How many payments the plan has. |
| `installment_count_is_estimate` | boolean | True when Pulse worked the count out from the next payment amount instead of being told it. An estimate can be off by one, so do not print it as "payment 2 of 4". |
| `installment_cents` | integer | The amount of one regular payment, in minor units of `currency`. |
| `frequency` | string | `weekly`, `biweekly` or `monthly`. |
| `processor` | string | The payment processor that collects the plan, for example `stripe`. |
| `status` | string | `active`, `completed`, `stalled`, `restructured` or `written_off`. |
| `started_on` | date \| null | The day the plan started (YYYY-MM-DD). |
| `closer` | object \| null | The closer credited when the plan was set up. `key` (matches `key` in the users list), `name` and `former`. Null when nobody is recorded, or the person is not on your team list in Pulse (counted in `names_withheld`). |
| `setter` | object \| null | The setter credited when the plan was set up. `key` (matches `key` in the users list), `name` and `former`. Null when nobody is recorded, or the person is not on your team list in Pulse (counted in `names_withheld`). |
| `created_at` | datetime \| null | When the plan was created in Pulse. |
| `updated_at` | datetime \| null | When the plan last changed. |

Beside `results` and `next_cursor`, the response also carries:

| Field | Type | Meaning |
| --- | --- | --- |
| `coverage` | string | `complete` or `partial`. Payment schedules are built from your Ledger sales. `partial` means some payment plan sales have no schedule here yet, so treat the list as a minimum. When no schedule has been built at all the endpoint answers `payment_plans_not_built` instead of an empty list. |
| `coverage_note` | string | The same thing in one sentence, ready to show a person. |
| `names_withheld` | integer | How many closers or setters on this page are not on your team list, so they are shown as null. |

Every field has a permanent link in the data dictionary: https://scalewithdata.ai/developers/data-dictionary#payment_plan

##### Example

```bash
curl "https://scalewithdata.ai/api/v1/payment_plans" \
  -H "Authorization: Bearer $SWD_API_KEY"
```

```json
{
  "results": [
    {
      "id": 4102,
      "sale_id": "5d0f6a52-1c1b-4d0e-9a57-3f1f2f6f7b21",
      "customer_name": "Jordan Lee",
      "customer_email": "jordan@leefitness.com",
      "currency": "USD",
      "contracted_cents": 600000,
      "installment_count": 4,
      "installment_count_is_estimate": false,
      "installment_cents": 100000,
      "frequency": "monthly",
      "processor": "stripe",
      "status": "active",
      "started_on": "2026-09-14",
      "closer": {
        "key": "u5120001",
        "name": "Avery Stone",
        "former": false
      },
      "setter": null,
      "created_at": "2026-09-14T18:02:11.000Z",
      "updated_at": "2026-10-14T09:00:04.000Z"
    }
  ],
  "next_cursor": null,
  "coverage": 0,
  "coverage_note": 0,
  "names_withheld": 0
}
```

Errors it can return: `missing_api_key`, `invalid_api_key`, `api_key_revoked`, `api_key_paused`, `api_key_expired`, `insufficient_scope`, `invalid_cursor`, `rate_limited`, `payment_plans_not_built`, `verification_failed`, `timeout`, `database_unavailable`.

#### List payment plan installments

`GET https://scalewithdata.ai/api/v1/payment_plans/installments`

Every scheduled payment due in a date window, oldest due date first, with what was collected and the last decline reason. Use it for what is coming in, and for what is past due.

- Permission: `read:sales`
- Success: 200 OK
- Response: `{ results, next_cursor }`, one page of a list

##### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `due_after` | query | date | yes | First due day to include (YYYY-MM-DD). |
| `due_before` | query | date | yes | Last due day to include (YYYY-MM-DD). At most 366 days after `due_after`. |
| `state` | query | string | no | Only installments in this state. One of `scheduled`, `paid`, `failed`, `cured`, `waived`, `written_off`. |
| `limit` | query | integer | no | How many results per page, 1 to 100. Default 50. |
| `cursor` | query | string | no | Leave it out for the first page. For the next page, pass the `next_cursor` the previous page returned, unchanged. |

##### Fields in the response

| Field | Type | Meaning |
| --- | --- | --- |
| `id` | integer | The installment's id. |
| `plan_id` | integer | The plan it belongs to. Matches `id` in the payment plans list. |
| `sale_id` | string \| null | The sale the plan was set up for. |
| `sequence` | integer | Its place in the plan: 1 is the first scheduled payment. |
| `due_date` | date | The day it is due (YYYY-MM-DD). |
| `currency` | string \| null | Three-letter currency code of the amounts, taken from the plan's sale. Null when it could not be read: do not assume US dollars. |
| `amount_cents` | integer | What is due, in minor units of `currency`. |
| `state` | string | `scheduled` (not collected yet), `paid`, `failed` (the last charge was declined), `cured` (paid after a failure), `waived` or `written_off`. |
| `collected_cents` | integer | What has been collected on it so far, in minor units of `currency`. A refund lowers it. |
| `collected_at` | datetime \| null | When it was collected. |
| `last_decline_code` | string \| null | The processor's reason for the last declined charge, as the processor wrote it. |
| `updated_at` | datetime \| null | When the installment last changed. |

Beside `results` and `next_cursor`, the response also carries:

| Field | Type | Meaning |
| --- | --- | --- |
| `coverage` | string | `complete` or `partial`. Payment schedules are built from your Ledger sales. `partial` means some payment plan sales have no schedule here yet, so treat the list as a minimum. When no schedule has been built at all the endpoint answers `payment_plans_not_built` instead of an empty list. |
| `coverage_note` | string | The same thing in one sentence, ready to show a person. |

Every field has a permanent link in the data dictionary: https://scalewithdata.ai/developers/data-dictionary#payment_plan_installment

##### Example

```bash
curl "https://scalewithdata.ai/api/v1/payment_plans/installments?due_after=2026-11-01&due_before=2026-11-30" \
  -H "Authorization: Bearer $SWD_API_KEY"
```

```json
{
  "results": [
    {
      "id": 88231,
      "plan_id": 4102,
      "sale_id": "5d0f6a52-1c1b-4d0e-9a57-3f1f2f6f7b21",
      "sequence": 2,
      "due_date": "2026-11-14",
      "currency": "USD",
      "amount_cents": 100000,
      "state": "scheduled",
      "collected_cents": 0,
      "collected_at": null,
      "last_decline_code": null,
      "updated_at": "2026-09-14T18:02:11.000Z"
    }
  ],
  "next_cursor": null,
  "coverage": 0,
  "coverage_note": 0
}
```

Errors it can return: `missing_api_key`, `invalid_api_key`, `api_key_revoked`, `api_key_paused`, `api_key_expired`, `insufficient_scope`, `invalid_request`, `invalid_cursor`, `rate_limited`, `payment_plans_not_built`, `verification_failed`, `timeout`, `database_unavailable`.

#### List processor payments

`GET https://scalewithdata.ai/api/v1/payments`

Every payment your connected processors reported to Pulse in a time window, newest first, whether or not a sale was logged for it. This is a list of charges, not net cash: a refund made today on an older charge is in the refunds list.

- Permission: `read:sales`
- Success: 200 OK
- Response: `{ results, next_cursor }`, one page of a list

##### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `occurred_after` | query | datetime | yes | Start of the window, included. A date and time with a zone. |
| `occurred_before` | query | datetime | yes | End of the window, not included. At most 366 days after `occurred_after`. |
| `status` | query | string | no | Only these statuses, comma-separated: `succeeded`, `received`, `failed`, `refunded`, `disputed`. Leave it out for all of them. |
| `limit` | query | integer | no | How many results per page, 1 to 50. Default 50. |
| `cursor` | query | string | no | Leave it out for the first page. For the next page, pass the `next_cursor` the previous page returned, unchanged. |

##### Fields in the response

| Field | Type | Meaning |
| --- | --- | --- |
| `id` | string | The payment's id in your Ledger. Never changes. |
| `processor` | string | The payment processor, for example `Stripe`. |
| `processor_reference` | string \| null | The processor's own id for the charge. Search for it in the processor's dashboard. |
| `charged_at` | datetime \| null | When the charge happened. |
| `received_at` | datetime \| null | When Pulse recorded it. |
| `currency` | string \| null | Three-letter currency code of the amounts. Null when the processor did not report one: do not assume US dollars. |
| `amount_cents` | integer | The amount charged, in minor units of `currency`, before any refund. |
| `status` | string | The processor's status: `succeeded`, `received` (recorded, not confirmed yet), `failed`, `refunded` or `disputed`. `succeeded` does not prove the money has reached your bank. |
| `refunded_cents` | integer | Refunds the processor reported on this payment, in minor units of `currency`. 0 means none was reported to Pulse. |
| `fee_cents` | integer \| null | The processor's fee, when it reported one. Null means not reported, not free. |
| `net_cents` | integer \| null | What was left after the fee, when the processor reported it. |
| `customer_email` | string \| null | The payer's email, as the processor reported it. |
| `customer_name` | string \| null | The payer's name, as the processor reported it. |
| `record_id` | string \| null | The CRM record this purchase landed on, when it landed on one. |
| `matched` | boolean \| null | True when a sale in your Ledger records this payment as its main charge. Null means this list found no such sale. That is not proof the payment has no sale: it can still be an extra payment on a sale or linked by a reviewer. Unmatched Payments in Pulse is the place to check. |
| `sale_id` | string \| null | That sale's id, when `matched` is true. Matches `id` in the sales list. |

Beside `results` and `next_cursor`, the response also carries:

| Field | Type | Meaning |
| --- | --- | --- |
| `scan_limit_reached` | boolean | True when a page stopped early because few payments matched your filter. The page can be short or empty while `next_cursor` is set: keep paging until `next_cursor` is null. |
| `not_listed` | integer | Payments read for this page and left out because they are test payments or were marked as not a real sale in Pulse. |
| `sources_readable` | boolean | False when Pulse could not check which processors are connected just now. Treat the list as possibly incomplete. |
| `sources` | object[] | Each connected processor with `processor`, `state` (`live`, `quiet`, `stale`, `trouble`, `no_payments_yet` or `unknown`), `last_payment_seen_at` and `last_heard_from_at`. Only `live` and `quiet` mean Pulse heard from it in the last 7 days. Anything else means its payments may be missing, never that there were none. |

Every field has a permanent link in the data dictionary: https://scalewithdata.ai/developers/data-dictionary#payment

##### Example

```bash
curl "https://scalewithdata.ai/api/v1/payments?occurred_after=2026-10-01T00%3A00%3A00Z&occurred_before=2026-11-01T00%3A00%3A00Z" \
  -H "Authorization: Bearer $SWD_API_KEY"
```

```json
{
  "results": [
    {
      "id": "EID-PAY-stripe-ch_3QK2abCdEf",
      "processor": "Stripe",
      "processor_reference": "ch_3QK2abCdEf",
      "charged_at": "2026-10-19T17:04:11.000Z",
      "received_at": "2026-10-19T17:04:13.000Z",
      "currency": "USD",
      "amount_cents": 300000,
      "status": "succeeded",
      "refunded_cents": 0,
      "fee_cents": 8730,
      "net_cents": 291270,
      "customer_email": "jordan@leefitness.com",
      "customer_name": "Jordan Lee",
      "record_id": "8f1c2b8e-4d61-4f52-9a43-0b9d7c1e5a10",
      "matched": true,
      "sale_id": "5d0f6a52-1c1b-4d0e-9a57-3f1f2f6f7b21"
    }
  ],
  "next_cursor": null,
  "scan_limit_reached": 0,
  "not_listed": 0,
  "sources_readable": 0,
  "sources": 0
}
```

Errors it can return: `missing_api_key`, `invalid_api_key`, `api_key_revoked`, `api_key_paused`, `api_key_expired`, `insufficient_scope`, `invalid_request`, `invalid_cursor`, `rate_limited`, `not_ready`, `verification_failed`, `timeout`, `database_unavailable`.

#### List commission by sale

`GET https://scalewithdata.ai/api/v1/commissions`

One row per sale and person paid on it (closer, and setter when there is one) for sales dated in a window: the amount, whether it is posted or still projected, and whether it is on hold. These are the same figures the Commissions screens in Pulse show.

- Permission: `read:commissions`
- Success: 200 OK
- Response: `{ results, next_cursor }`, one page of a list

##### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `from` | query | date | yes | First sale day to include (YYYY-MM-DD). |
| `to` | query | date | yes | Last sale day to include (YYYY-MM-DD). At most 92 days after `from`. |
| `limit` | query | integer | no | How many results per page, 1 to 100. Default 50. |
| `cursor` | query | string | no | Leave it out for the first page. For the next page, pass the `next_cursor` the previous page returned, unchanged. |

##### Fields in the response

| Field | Type | Meaning |
| --- | --- | --- |
| `sale_id` | string | The sale. Matches `id` in the sales list. |
| `sale_date` | date | The day of the sale (YYYY-MM-DD). |
| `sale_status` | string | The sale's status: `verified`, `pending_verification` or `pending_manager_review`. |
| `leg` | string | `closer` or `setter`. A sale has a setter row only when it pays a setter. |
| `rep` | object \| null | Who the commission is for. `key` (matches `key` in the users list), `name` and `former`. Null when nobody is recorded, or the person is not on your team list in Pulse (counted in `names_withheld`). |
| `currency` | string \| null | Three-letter currency code of the amounts on this row. |
| `commission_cents` | integer \| null | The commission, in minor units of `currency`. Null means it could not be worked out, and `reason` says why. Null is never 0: Pulse has no default commission rate. |
| `status` | string | `posted` (on a verified sale, the amount on record), `projected` (the sale is still being verified, so this is what it would pay) or `not_recorded` (a verified sale with no commission on record). |
| `rate_bps` | integer \| null | The rate in basis points: `1000` is 10%. Given for the closer when a percentage was used. Null for a fixed amount, and for the setter. |
| `on_hold` | boolean | True when the commission is waiting on setup, so nothing is paid until it is fixed. |
| `reason` | string \| null | Why `commission_cents` is null, in plain words, for example "Needs configuration". |
| `cash_collected_cents` | integer | The cash collected on the sale that the commission is worked out from, in minor units of `currency`. |
| `manual_override` | string \| null | `flat` or `rate` when someone set this sale's closer commission by hand. Null otherwise. |
| `sources_disagree` | boolean | True when the Ledger and the sale's own record show different amounts for this leg. The Ledger's amount is the one shown. |

Beside `results` and `next_cursor`, the response also carries:

| Field | Type | Meaning |
| --- | --- | --- |
| `names_withheld` | integer | How many people on this page are not on your team list, so `rep` is null. |
| `excluded_sales` | integer | Sales in the window that failed verification or were reversed. They pay no commission and are not listed. |
| `ledger_checked` | boolean | False when the Ledger's commission entries could not be read just now, so posted amounts come from the sale's own record instead. |

Every field has a permanent link in the data dictionary: https://scalewithdata.ai/developers/data-dictionary#commission

##### Example

```bash
curl "https://scalewithdata.ai/api/v1/commissions?from=2026-10-01&to=2026-10-31" \
  -H "Authorization: Bearer $SWD_API_KEY"
```

```json
{
  "results": [
    {
      "sale_id": "5d0f6a52-1c1b-4d0e-9a57-3f1f2f6f7b21",
      "sale_date": "2026-10-19",
      "sale_status": "verified",
      "leg": "closer",
      "rep": {
        "key": "u5120001",
        "name": "Avery Stone",
        "former": false
      },
      "currency": "USD",
      "commission_cents": 30000,
      "status": "posted",
      "rate_bps": 1000,
      "on_hold": false,
      "reason": null,
      "cash_collected_cents": 300000,
      "manual_override": null,
      "sources_disagree": false
    }
  ],
  "next_cursor": null,
  "names_withheld": 0,
  "excluded_sales": 0,
  "ledger_checked": 0
}
```

Errors it can return: `missing_api_key`, `invalid_api_key`, `api_key_revoked`, `api_key_paused`, `api_key_expired`, `insufficient_scope`, `invalid_request`, `invalid_cursor`, `rate_limited`, `sales_not_on_ledger`, `verification_failed`, `timeout`, `database_unavailable`.

### Reports and metrics

The figures Pulse reports, with how each one is defined, so your numbers match the screen.

#### List metrics

`GET https://scalewithdata.ai/api/v1/metrics`

The metrics Pulse tracks, with what each one means and how it is calculated, in order of `id`. By default you get only the metrics this API can return a value for. Pass `include_unavailable=true` to see every metric Pulse tracks; the ones this API cannot return say why. Read this once and keep it: definitions change rarely.

- Permission: `read:metrics`
- Success: 200 OK
- Response: `{ results, next_cursor }`, one page of a list

##### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `category` | query | string | no | Only metrics in this category, for example `revenue`. |
| `search` | query | string | no | Only metrics whose id, name or definition contains this text. |
| `include_unavailable` | query | boolean | no | `true` also lists metrics this API cannot return a value for. Default `false`. |
| `limit` | query | integer | no | How many results per page, 1 to 100. Default 50. |
| `cursor` | query | string | no | Leave it out for the first page. For the next page, pass the `next_cursor` the previous page returned, unchanged. |

##### Fields in the response

| Field | Type | Meaning |
| --- | --- | --- |
| `id` | string | The metric's id. Pass it to `/metrics/{id}`. |
| `technical_id` | string \| null | The Pulse reference number for the metric, the one shown as Technical ID in Pulse. Null when the metric has none. |
| `name` | string | The metric's name. |
| `definition` | string | What the metric means, in plain words. |
| `calculation` | string | How Pulse calculates it. |
| `category` | string | The group it belongs to, for example `revenue`, `activity` or `rate`. |
| `unit` | string | `usd`, `count`, `percent`, `ratio`, `seconds` or `unknown`. |
| `available` | boolean | Whether `/metrics/{id}` can return a value for it. |
| `unavailable_reason` | string \| null | Why this API cannot return a value. Null when `available` is true. |

Beside `results` and `next_cursor`, the response also carries:

| Field | Type | Meaning |
| --- | --- | --- |
| `registry_total` | integer | How many metrics Pulse tracks in all. |
| `available_total` | integer | How many of them this API can return a value for. |

Every field has a permanent link in the data dictionary: https://scalewithdata.ai/developers/data-dictionary#metric

##### Example

```bash
curl "https://scalewithdata.ai/api/v1/metrics" \
  -H "Authorization: Bearer $SWD_API_KEY"
```

```json
{
  "results": [
    {
      "id": "cash_collected",
      "technical_id": "M-001",
      "name": "Cash Collected",
      "definition": "Money collected on counted sales in the period, after refunds.",
      "calculation": "Cash on counted sales dated in the period, minus refunds dated in the period.",
      "category": "revenue",
      "unit": "usd",
      "available": true,
      "unavailable_reason": null
    }
  ],
  "next_cursor": null,
  "registry_total": 0,
  "available_total": 0
}
```

Errors it can return: `missing_api_key`, `invalid_api_key`, `api_key_revoked`, `api_key_paused`, `api_key_expired`, `insufficient_scope`, `invalid_request`, `invalid_cursor`, `rate_limited`, `verification_failed`, `timeout`, `database_unavailable`.

#### Get a metric

`GET https://scalewithdata.ai/api/v1/metrics/{id}`

One metric for your brand over a period, with its definition beside it. The value comes from the same calculation your Pulse dashboard uses, so the two match. When Pulse has no value for the period, `value` is null and `reason` says why: null is never zero. A metric Pulse tracks but this API cannot return answers `409 conflict` with the reason. A sandbox key gets `409 conflict` here: a sandbox has no real activity to report.

- Permission: `read:metrics`
- Success: 200 OK
- Response: one object

##### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | yes | The metric's `id` from the metrics list. |
| `from` | query | date | yes | First day of the period (YYYY-MM-DD). Days are Eastern business days. |
| `to` | query | date | yes | Last day of the period (YYYY-MM-DD), included. The period can cover at most 400 days. |
| `sales_basis` | query | string | no | Which sales count. `verified` (default) counts sales that passed verification. `live` also counts sales still in review. One of `verified`, `live`. |

##### Fields in the response

| Field | Type | Meaning |
| --- | --- | --- |
| `id` | string | The metric's id. Pass it to `/metrics/{id}`. |
| `technical_id` | string \| null | The Pulse reference number for the metric, the one shown as Technical ID in Pulse. Null when the metric has none. |
| `name` | string | The metric's name. |
| `definition` | string | What the metric means, in plain words. |
| `calculation` | string | How Pulse calculates it. |
| `category` | string | The group it belongs to, for example `revenue`, `activity` or `rate`. |
| `unit` | string | `usd`, `count`, `percent`, `ratio`, `seconds` or `unknown`. |
| `value` | number \| null | The value for the period. Null means Pulse has no value, and `reason` says why. Null is never zero. Money is in US dollars, not cents. |
| `formatted_value` | string \| null | The value as Pulse shows it, for example `$350,287`. Null when `value` is null. |
| `reason` | string \| null | Why `value` is null. Null when there is a value. |
| `period` | object | `from` and `to` (the days you asked for, both included) and `time_zone` (always Eastern). |
| `sales_basis` | string | Which sales the value counts: `verified` (passed verification, the finance figure) or `live` (also sales still in review). Most metrics are the same on both and report `verified`. |
| `lineage` | string[] | The steps and sources Pulse used to compute the value, as Pulse records them. For audit, not for display. |
| `computed_at` | datetime | When Pulse computed the value. |

Every field has a permanent link in the data dictionary: https://scalewithdata.ai/developers/data-dictionary#metric_detail

##### Example

```bash
curl "https://scalewithdata.ai/api/v1/metrics/cash_collected?from=2026-10-01&to=2026-10-31" \
  -H "Authorization: Bearer $SWD_API_KEY"
```

```json
{
  "id": "cash_collected",
  "technical_id": "M-001",
  "name": "Cash Collected",
  "definition": "Money collected on counted sales in the period, after refunds.",
  "calculation": "Cash on counted sales dated in the period, minus refunds dated in the period.",
  "category": "revenue",
  "unit": "usd",
  "value": 350287.5,
  "formatted_value": "$350,288",
  "reason": null,
  "period": {
    "from": "2026-10-01",
    "to": "2026-10-31",
    "time_zone": "America/New_York"
  },
  "sales_basis": "verified",
  "lineage": [
    "Counted sales",
    "Refunds"
  ],
  "computed_at": "2026-11-01T14:02:11.000Z"
}
```

Errors it can return: `missing_api_key`, `invalid_api_key`, `api_key_revoked`, `api_key_paused`, `api_key_expired`, `insufficient_scope`, `invalid_request`, `conflict`, `not_found`, `rate_limited`, `verification_failed`, `timeout`, `database_unavailable`.

#### Advanced report

`GET https://scalewithdata.ai/api/v1/reports/advanced`

Your Advanced Reporting page as data: booked calls, show rate, close rate, units and cash, counted from booked calls with the page's own calculation, for the whole brand. Split it by calendar, closer, setter, lead source, program, week, month and more with `group_by`. Give the period as `from` and `to`, or as `range`. Read `data_quality` and `notes` with the figures: they say which calls still need a result and whether the period can still move. A sandbox key gets `409 conflict` here: a sandbox has no real activity to report.

- Permission: `read:metrics`
- Success: 200 OK
- Response: one object

##### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `from` | query | date | no | First day (YYYY-MM-DD, Eastern). Give it with `to`, or use `range` instead. |
| `to` | query | date | no | Last day (YYYY-MM-DD), included. The period can cover at most 366 days. |
| `range` | query | string | no | A period the page offers, instead of two dates. One of `mtd`, `last_month`, `last_3`, `last_7`, `last_30`, `last_90`, `qtd`, `ytd`. |
| `group_by` | query | string | no | `none` (default) for totals only, or one of the page's splits for one row per value. One of `none`, `calendar`, `closer`, `setter`, `team`, `booking_type`, `booked_by`, `lead_source`, `utm_source`, `utm_campaign`, `call_program`, `program`, `day_of_week`, `hour_of_day`, `week`, `month`, `lead_time`, `confirmation`. |
| `filter_dimension` | query | string | no | Keep only calls with certain values of one split. Give it with `filter_values`. One of `calendar`, `closer`, `setter`, `team`, `booking_type`, `booked_by`, `lead_source`, `utm_source`, `utm_campaign`, `call_program`, `program`, `day_of_week`, `hour_of_day`, `week`, `month`, `lead_time`, `confirmation`. |
| `filter_values` | query | string | no | The values to keep, by key or by the label the page shows. Separate several with `\|`. |
| `compare_previous` | query | boolean | no | `true` also returns the previous period's totals, like for like. |
| `max_rows` | query | integer | no | Most rows to return, 1 to 100. Default 25. |
| `window_days` | query | integer | no | How many days after a held call a sale can still be credited to it: 7, 14, 30, 60 or 90. Default 30, as on the page. |
| `date_basis` | query | string | no | `scheduled` (default) puts a call in the day it was scheduled for. `booked` puts it in the day it was booked. One of `scheduled`, `booked`. |

##### Fields in the response

| Field | Type | Meaning |
| --- | --- | --- |
| `brand` | string \| null | Your brand's name. |
| `window` | object | The days the report covers (`from_date`, `to_date`, Eastern, both included), how calls were placed in days (`counted_by`), the attribution window in days, and the last day a sale could be credited (`sales_credited_through`). |
| `scope` | string | Always `all_calls` for an API key: every call for the brand. |
| `group_by` | string | The split you asked for, or `none`. |
| `group_by_label` | string \| null | The split's name as the page shows it. Null when `group_by` is `none`. |
| `filter` | object \| null | The filter you asked for (`dimension`, `label`, `values`), or null. |
| `source` | string | Where the figures come from, in words. |
| `totals` | object[] | The report's figures for everything in view, in the page's order: booked calls, showed, no-shows, no result logged, show rate, closed calls, close rate, units sold, cash, and cash per call that came due. The example shows two of the ten. Each has `key`, `label`, `technical_id`, `value`, `formatted_value`, `unit` (`count`, `percent` or `usd`) and, for a rate or a per-call figure, the two numbers it was divided from. A value is null with a `reason` when there is nothing to divide by. Null is never zero. Money is in US dollars. |
| `rows` | object[] \| null | One row per value of the split, in the page's order (most cash first; weeks, months and hours in time order). Each row has `key`, `label` and `figures` (the same ten figures as `totals`). Rows add up to the totals. Null when `group_by` is `none`. |
| `complete` | boolean | False when `max_rows` cut the rows short. The totals always cover every row. |
| `rows_left` | integer | How many rows were not returned. |
| `comparison` | object \| null | With `compare_previous=true`: the earlier period's `totals` and `data_quality`, or `available: false` with the reason. Null when you did not ask for it. |
| `data_quality` | object | What to know before trusting the figures: how many calls past their time have a result logged, which calls were left out and why, refunds taken off the cash, sales in the period that are not in these rows, any read that stopped at a limit, and any source that was not delivering. |
| `definitions` | object | The plain definition of each figure, by figure `key`. |
| `notes` | string[] | Anything else that changes how to read this report, for example that the period has not finished. |

Every field has a permanent link in the data dictionary: https://scalewithdata.ai/developers/data-dictionary#advanced_report

##### Example

```bash
curl "https://scalewithdata.ai/api/v1/reports/advanced" \
  -H "Authorization: Bearer $SWD_API_KEY"
```

```json
{
  "brand": "Lee Fitness",
  "window": {
    "from_date": "2026-10-01",
    "to_date": "2026-10-31",
    "time_zone": "America/New_York",
    "days": "Eastern days, both inclusive.",
    "counted_by": "The day each call was scheduled for.",
    "attribution_window_days": 30,
    "sales_credited_through": "2026-11-30"
  },
  "scope": "all_calls",
  "group_by": "none",
  "group_by_label": null,
  "filter": null,
  "source": "The Advanced Reporting page (/reporting/advanced), counting from booked calls, computed by the same report and the same calculation the page uses.",
  "totals": [
    {
      "key": "cash_per_call",
      "label": "Cash per call that came due",
      "technical_id": "M-6625",
      "unit": "usd",
      "currency": "USD",
      "value": 1041.71,
      "formatted_value": "$1,041.71",
      "numerator": 125005.5,
      "numerator_label": "cash in dollars",
      "denominator": 120,
      "denominator_label": "calls that came due",
      "reason": null
    },
    {
      "key": "booked",
      "label": "Booked calls",
      "technical_id": "M-6600",
      "unit": "count",
      "currency": null,
      "value": 148,
      "formatted_value": "148",
      "numerator": null,
      "numerator_label": null,
      "denominator": null,
      "denominator_label": null,
      "reason": null
    }
  ],
  "rows": null,
  "complete": true,
  "rows_left": 0,
  "comparison": null,
  "data_quality": {
    "calls_with_result_pct": 95.8,
    "calls_with_result": 115,
    "calls_past_their_time": 120,
    "calls_needing_result": 5,
    "calls_left_out": [
      {
        "count": 3,
        "why": "Repeated copies of a GoHighLevel booking already counted. Each booking is counted once."
      }
    ],
    "refunds_subtracted": {
      "amount": 1500.5,
      "formatted": "$1,500.50",
      "currency": "USD"
    },
    "refunds_not_on_these_sales": {
      "count": 1,
      "amount": 497.5,
      "formatted": "$497.50",
      "currency": "USD"
    },
    "sales_not_in_rows": [
      {
        "count": 2,
        "cash": 5994.5,
        "currency": "USD",
        "why": "No booking found. The buyer has no booked call on record."
      }
    ],
    "truncated": [],
    "source_warnings": []
  },
  "definitions": {
    "booked": "Calls in the period, every outcome: held, no-show, cancelled, rescheduled, still ahead, or no result logged.",
    "showed": "Calls the prospect attended.",
    "no_show": "Calls the prospect did not attend.",
    "no_result": "Calls whose time has passed with no result logged. Counted as neither a show nor a no-show.",
    "show_rate": "Showed divided by calls with a result logged (showed plus no-shows). Calls with no result logged are left out of both sides.",
    "closed": "Held calls followed by at least one new sale to the same buyer, credited to their most recent held call.",
    "close_rate": "Closed calls divided by held calls.",
    "units": "New sales credited to these calls. One buyer can buy two programs, so units can be more than closed calls.",
    "cash": "Cash collected on the sales credited to these calls, after refunds. A sale is credited to the buyer's most recent held call before it, inside the attribution window.",
    "cash_per_call": "Cash (after refunds) divided by calls that came due: showed plus no-shows plus calls with no result logged. Cancelled, rescheduled and calls still ahead are left out."
  },
  "notes": [
    "The 30-day attribution window is still open: a sale made later to a buyer from these calls can still be credited, so cash and closes can still rise."
  ]
}
```

Errors it can return: `missing_api_key`, `invalid_api_key`, `api_key_revoked`, `api_key_paused`, `api_key_expired`, `insufficient_scope`, `invalid_request`, `conflict`, `rate_limited`, `verification_failed`, `timeout`, `database_unavailable`.

#### Outreach report

`GET https://scalewithdata.ai/api/v1/reports/outreach`

How much your team reached out in a short period: calls from the Pulse Dialer by rep or by day, and texts by rep, with the brand's text totals. Call figures are the Dialer Report's own, text figures the Rep Report's own. For each rep's figures for one day, ask for a window of that single day. This report has no email figures and does not split one rep's texts into automated and personal. A sandbox key gets `409 conflict` here: a sandbox has no real activity to report.

- Permission: `read:metrics`
- Success: 200 OK
- Response: one object

##### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `from` | query | date | yes | First day of the window (YYYY-MM-DD). Days are Eastern business days. |
| `to` | query | date | yes | Last day of the window (YYYY-MM-DD), included. The window can cover at most 31 days. |
| `group_by` | query | string | no | `rep` (default) for one call row per rep, or `day` for one per Eastern day. One of `rep`, `day`. |
| `rep_key` | query | string | no | Only this team member: a `key` from the users list that starts with `u`, for example `u5120001`. |

##### Fields in the response

| Field | Type | Meaning |
| --- | --- | --- |
| `window` | object | `from_date`, `to_date` (Eastern, both included), `time_zone`, and `complete`: false while the window includes today, because the figures will still move. |
| `group_by` | string | `rep` or `day`: how `call_rows` is split. |
| `rep` | object \| null | The rep you asked for with `rep_key` (`key`, `name`, `former`), or null for the whole team. `name` is null when the person is not on your team list. |
| `call_totals` | object | Calls placed from the Pulse Dialer in the window: `dials`, `connected` (a person answered), `conversations` (a person answered and the call lasted 30 seconds or longer) and `talk_time_seconds`. The same figures as the Dialer Report in Pulse. |
| `call_rows` | object[] | The same four call figures, one row per rep (`group_by=rep`) or per Eastern day (`group_by=day`). A rep row has `rep_key`, `rep_name` and `rep_former`, and `day` is null. A day row has `day`, and the rep fields are null. A rep row with `rep_key` null holds calls no rep was matched to. For one rep day by day, pass `rep_key` with `group_by=day`. |
| `call_rows_add_up` | boolean \| null | Whether the rows add up to `call_totals` exactly. False means calls were recorded between the reads: ask again. |
| `texts_by_rep` | object[] | Texts per rep for the whole window (not per day), most texts first: `texts_sent`, `messages_received`, `contacts_messaged`, `contacts_replied`, and `sends_not_credited` (texts on the rep's leads where Pulse could not prove who sent them, left out of `texts_sent`). A rep with no texts in the window is not listed. For one day, ask for a window of that single day. |
| `brand_texts` | object \| null | Every text for the brand in the window: `sent`, `received`, `failed`, and how many were sent by a workflow (`sent_by_workflows`) with the replies to those (`replies_to_workflows`). Pulse does not split one rep's texts into automated and personal. Null when you asked for one rep. |
| `names_withheld` | integer | How many people in this report have no name because they are not on your team list. |
| `notes` | string[] | What the figures cover and what this report does not have, for example emails per rep. |

Every field has a permanent link in the data dictionary: https://scalewithdata.ai/developers/data-dictionary#outreach_report

##### Example

```bash
curl "https://scalewithdata.ai/api/v1/reports/outreach?from=2026-10-01&to=2026-10-31" \
  -H "Authorization: Bearer $SWD_API_KEY"
```

```json
{
  "window": {
    "from_date": "2026-10-19",
    "to_date": "2026-10-19",
    "time_zone": "America/New_York",
    "complete": true
  },
  "group_by": "rep",
  "rep": {
    "key": "u5120001",
    "name": "Sam Rivera",
    "former": false
  },
  "call_totals": {
    "dials": 412,
    "connected": 96,
    "conversations": 41,
    "talk_time_seconds": 18240
  },
  "call_rows": [
    {
      "day": null,
      "rep_key": "u5120001",
      "rep_name": "Sam Rivera",
      "rep_former": false,
      "dials": 212,
      "connected": 51,
      "conversations": 22,
      "talk_time_seconds": 9600
    }
  ],
  "call_rows_add_up": true,
  "texts_by_rep": [
    {
      "rep_key": "u5120001",
      "rep_name": "Sam Rivera",
      "rep_former": false,
      "texts_sent": 64,
      "messages_received": 18,
      "contacts_messaged": 40,
      "contacts_replied": 12,
      "sends_not_credited": 3
    }
  ],
  "brand_texts": {
    "sent": 540,
    "received": 122,
    "failed": 9,
    "sent_by_workflows": 310,
    "replies_to_workflows": 44
  },
  "names_withheld": 0,
  "notes": [
    "Calls are calls placed from the Pulse Dialer. Calls made in another phone system and inbound calls are not counted."
  ]
}
```

Errors it can return: `missing_api_key`, `invalid_api_key`, `api_key_revoked`, `api_key_paused`, `api_key_expired`, `insufficient_scope`, `invalid_request`, `conflict`, `rate_limited`, `verification_failed`, `timeout`, `database_unavailable`.

#### End-of-day reporting

`GET https://scalewithdata.ai/api/v1/reports/eod`

How complete your team's end-of-day (EOD) reports were in a period: how many were owed, how many were filed, and who is behind. It is the same figure as the EOD completeness badge on your dashboard. Pass `include_filed_reports=true` (windows of 31 days or fewer) to also list which reports were filed, by rep and day. When Pulse cannot measure it, `measured` is false with the reason, never a score of zero. A sandbox key gets `409 conflict` here: a sandbox has no real activity to report.

- Permission: `read:metrics`
- Success: 200 OK
- Response: one object

##### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `from` | query | date | yes | First day of the period (YYYY-MM-DD). Days are Eastern business days. |
| `to` | query | date | yes | Last day of the period (YYYY-MM-DD), included. The period can cover at most 366 days. |
| `include_filed_reports` | query | boolean | no | `true` also lists each filed report. Only for windows of 31 days or fewer. Default `false`. |

##### Fields in the response

| Field | Type | Meaning |
| --- | --- | --- |
| `window` | object | `from_date`, `to_date` (Eastern, both included) and `time_zone`, as you asked. |
| `measured` | boolean | False when Pulse cannot measure end-of-day reporting for your brand. `reason` says why, and every figure is null. That is not a score of zero. |
| `reason` | string \| null | Why `measured` is false. Null otherwise. |
| `counted` | object \| null | The days actually counted (`from_date`, `to_date`) and `excludes_today`. Today is never counted, because today's report is not due yet. The dates are null when the window holds no past day. |
| `owed` | integer \| null | End-of-day reports your team owed in the counted days. |
| `filed` | integer \| null | How many of those were filed. |
| `share` | number \| null | `filed` divided by `owed`, from 0 to 1. Null when nobody owed a report. Null is never zero. |
| `band` | string \| null | `high` (95% or more), `fair` (80% to 94%) or `low`. Null when `share` is null. |
| `reps` | object[] | Each rep who owed at least one report, most behind first: `rep_key`, `rep_name`, `rep_former`, `owed`, `filed` and `missing`. |
| `filed_reports` | object[] \| null | With `include_filed_reports=true`: one row per filed report, oldest day first, with `rep_key`, `rep_name`, `rep_former`, `day` (the day the report is for) and `report_type` (`closer` or `setter`). Null when you did not ask for it. |
| `filed_reports_left_out` | integer | How many filed reports were not listed because the list reached its limit. Normally 0. |
| `left_out` | object \| null | People and reports the figures leave out, so a high share is never quietly made of missing people: team members with no login, reps whose working days could not be read (a Monday to Friday week was assumed), people who filed but are not on the team list and their reports, departed reps with no last day on record, and reps with an exemption. |
| `names_withheld` | integer | How many people in this report have no name because they are not on your team list. |
| `notes` | string[] | How to read the figures. |

Every field has a permanent link in the data dictionary: https://scalewithdata.ai/developers/data-dictionary#eod_report

##### Example

```bash
curl "https://scalewithdata.ai/api/v1/reports/eod?from=2026-10-01&to=2026-10-31" \
  -H "Authorization: Bearer $SWD_API_KEY"
```

```json
{
  "window": {
    "from_date": "2026-10-01",
    "to_date": "2026-10-31",
    "time_zone": "America/New_York"
  },
  "measured": true,
  "reason": null,
  "counted": {
    "from_date": "2026-10-01",
    "to_date": "2026-10-31",
    "excludes_today": false
  },
  "owed": 220,
  "filed": 205,
  "share": 0.93,
  "band": "fair",
  "reps": [
    {
      "rep_key": "u5120001",
      "rep_name": "Sam Rivera",
      "rep_former": false,
      "owed": 22,
      "filed": 19,
      "missing": 3
    }
  ],
  "filed_reports": [
    {
      "rep_key": "u5120001",
      "rep_name": "Sam Rivera",
      "rep_former": false,
      "day": "2026-10-01",
      "report_type": "closer"
    }
  ],
  "filed_reports_left_out": 0,
  "left_out": {
    "team_members_without_login": 1,
    "reps_with_assumed_schedule": 0,
    "filers_not_on_team_list": 0,
    "reports_by_filers_not_on_team_list": 0,
    "departed_reps_without_last_day": 0,
    "reps_with_exemption": 1
  },
  "names_withheld": 0,
  "notes": [
    "Days are Eastern business days. Today is never counted, because today's report is not due yet."
  ]
}
```

Errors it can return: `missing_api_key`, `invalid_api_key`, `api_key_revoked`, `api_key_paused`, `api_key_expired`, `insufficient_scope`, `invalid_request`, `conflict`, `rate_limited`, `verification_failed`, `timeout`, `database_unavailable`.

#### Speed to lead

`GET https://scalewithdata.ai/api/v1/reports/speed_to_lead`

How fast your team calls new people, for each open dialer list over the last 30 days: how many joined, how many were called, how many are still waiting, and how quickly the first call came. For one rep's response times, add `rep_key` with `from` and `to`. Figures are per list, or for one rep at a time, never for every rep in one call. A sandbox key gets `409 conflict` here: a sandbox has no real activity to report.

- Permission: `read:metrics`
- Success: 200 OK
- Response: one object

##### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `rep_key` | query | string | no | Also return this team member's speed to lead: a `key` from the users list that starts with `u`. Needs `from` and `to`. |
| `from` | query | date | no | First day of the rep's window (YYYY-MM-DD, Eastern). Only with `rep_key`. |
| `to` | query | date | no | Last day of the rep's window (YYYY-MM-DD), included. At most 92 days. Only with `rep_key`. |
| `limit` | query | integer | no | How many lists per page, 1 to 50. Default 25. |
| `cursor` | query | string | no | Leave it out for the first page. For the next page, pass the `next_cursor` the previous page returned, unchanged. |

##### Fields in the response

| Field | Type | Meaning |
| --- | --- | --- |
| `lists` | object[] | Your open dialer lists, newest first. For each, over the last 30 days: `added` (people who joined), `called`, `waiting` (joined, not called yet), `called_within_5_minutes_share` (of the people called, the share first called within 5 minutes of joining, from 0 to 1) and `average_minutes_to_first_call`. `measured_from` is when counting began for the list: people who joined before it are not counted. When `measured` is false every figure is null and `not_measured_reason` says why. Null is never zero. |
| `next_cursor` | string \| null | Pass as `cursor` for the next page of lists. Null means this is the last page. |
| `measuring_started_at` | datetime \| null | When Pulse began measuring speed to lead for lists. Null means it has not started. |
| `rep` | object \| null | With `rep_key`, `from` and `to`: that rep's speed to lead for the window. `leads_measured` is how many leads the figures cover (the fastest first call per lead). `median_seconds`, `p90_seconds` and `average_seconds` are null when no lead was measured. `calls_left_out_beyond_cap` counts calls placed more than `cap_seconds` after the lead arrived, which are in none of the figures. Null when you did not ask for a rep. |
| `names_withheld` | integer | 1 when the rep you asked for is not on your team list, so no name is shown. Otherwise 0. |
| `notes` | string[] | How to read the figures. |

Every field has a permanent link in the data dictionary: https://scalewithdata.ai/developers/data-dictionary#speed_to_lead_report

##### Example

```bash
curl "https://scalewithdata.ai/api/v1/reports/speed_to_lead" \
  -H "Authorization: Bearer $SWD_API_KEY"
```

```json
{
  "lists": [
    {
      "list_id": 4412,
      "name": "October webinar leads",
      "status": "active",
      "created_at": "2026-10-02T13:20:00.000Z",
      "measured": true,
      "not_measured_reason": null,
      "added": 320,
      "called": 281,
      "waiting": 39,
      "called_within_5_minutes_share": 0.62,
      "average_minutes_to_first_call": 14.5,
      "measured_from": "2026-10-24T00:00:00.000Z",
      "window_days": 30
    }
  ],
  "next_cursor": null,
  "measuring_started_at": "2026-10-24T00:00:00.000Z",
  "rep": {
    "rep_key": "u5120001",
    "rep_name": "Sam Rivera",
    "rep_former": false,
    "from_date": "2026-10-01",
    "to_date": "2026-10-31",
    "complete": true,
    "measured": true,
    "leads_measured": 86,
    "median_seconds": 312.5,
    "p90_seconds": 5400.5,
    "average_seconds": 1290.5,
    "calls_left_out_beyond_cap": 7,
    "cap_seconds": 172800,
    "not_measured_reason": null
  },
  "names_withheld": 0,
  "notes": [
    "List figures cover the last 30 Eastern days and count from the moment a person joined the list to their first call."
  ]
}
```

Errors it can return: `missing_api_key`, `invalid_api_key`, `api_key_revoked`, `api_key_paused`, `api_key_expired`, `insufficient_scope`, `invalid_request`, `invalid_cursor`, `conflict`, `rate_limited`, `verification_failed`, `timeout`, `database_unavailable`.

### Exports

Ways to get the same data without writing code.

#### Lists you can get as CSV

`GET https://scalewithdata.ai/api/v1/exports/datasets`

There are two ways to get your data as a spreadsheet file. With no code at all: in Pulse, open CRM, Settings, API Access, Scheduled exports, pick a list, how often, and who gets it, and Pulse emails the CSV every day or every week. With a key: add `format=csv` to any list request and the page comes back as CSV instead of JSON, with the column names on the first line. The cursor for the next page is in the `X-Next-Cursor` response header, and there is no more when that header is missing. Errors are always JSON. This endpoint names the lists a scheduled export can send and the CSV columns of each.

- Permission: any valid key
- Success: 200 OK
- Response: `{ results, next_cursor }`, one page of a list

##### Fields in the response

| Field | Type | Meaning |
| --- | --- | --- |
| `key` | string | A stable name for the list. |
| `title` | string | The list's name as the docs and Pulse show it. |
| `path` | string | The list's path. Add `?format=csv` to it to get CSV. |
| `scope` | string | The permission a key needs to read the list. |
| `date_filter` | string | How the list is narrowed by date: `changed` (it takes `updated_after`), `days` (it takes `from` and `to`), or `none` (it has no date filter). |
| `csv_columns` | string[] | The CSV column names, in order. A value inside an object is written with a dot, for example `host.name`. |

Every field has a permanent link in the data dictionary: https://scalewithdata.ai/developers/data-dictionary#export_dataset

##### Example

```bash
curl "https://scalewithdata.ai/api/v1/exports/datasets" \
  -H "Authorization: Bearer $SWD_API_KEY"
```

```json
{
  "results": [
    {
      "key": "list_meetings",
      "title": "List meetings",
      "path": "/meetings",
      "scope": "read:crm",
      "date_filter": "changed",
      "csv_columns": [
        "id",
        "record_id",
        "source",
        "scheduled_start",
        "host.key",
        "host.name"
      ]
    }
  ],
  "next_cursor": null
}
```

Errors it can return: `missing_api_key`, `invalid_api_key`, `api_key_revoked`, `api_key_paused`, `api_key_expired`, `rate_limited`, `verification_failed`, `timeout`, `database_unavailable`.

## Use Pulse with Claude or ChatGPT (no API key)

A person can connect Claude or ChatGPT to Pulse as a custom connector at `https://scalewithdata.ai/mcp`. They sign in to Pulse, pick one brand and press Allow. The assistant then sees what that person can see in Pulse, on that one brand. It cannot change any record on its own.

A connection lists 33 tools. With "report totals" ticked at Allow it lists 43. With "set up workflows" ticked it lists 5 more, which can save workflow drafts that only a person can publish. With "save reports" ticked as well as "report totals" it lists 2 more, which save a report's settings (never numbers) to that person's own saved reports. With "prepare things for you to confirm" ticked it lists 8 more, which prepare a set, a sale, an EOD, a lead update, a note, a callback or a text that is saved or sent only when the person confirms it in Pulse.

| Tool | What it answers | When it is listed |
| --- | --- | --- |
| `whoami` | Who is connected, to which brand, with which permissions, and how to add the optional report figures. | always available |
| `search_crm_records` | Finds a contact by name, company, email or phone. | always available |
| `get_crm_record` | One contact's fields, contacts, custom fields and pipeline stage. | always available |
| `list_crm_records` | Lists contacts with filters (owner, stage, lifecycle, created date) and pages through every match. | always available |
| `list_crm_won_deals` | Won deals with their owner, closer and setter, newest win first. | always available |
| `review_crm_pipeline` | Your open deals (or a teammate's) that need attention, and why. | always available |
| `list_crm_pipelines` | The brand's pipelines and their stages. | always available |
| `list_crm_record_activity` | A contact's activity timeline. | always available |
| `list_crm_record_interactions` | One contact's texts, email, calls, meetings and changes together, newest first. | always available |
| `list_crm_meetings` | The brand's booked calls from Calendly, OnceHub, GoHighLevel and Pulse in one list, by last change or by scheduled time, with host, setter, booking state, attendance and filters. | always available |
| `get_crm_meeting` | One booked call by its id, with host, setter, booking state, attendance and reschedule links. | always available |
| `list_brand_calls` | The brand's calls across all contacts, with the rep, the outcome, whether it was a conversation, and measured talk time. | always available |
| `list_brand_messages` | The texts on the brand's own Pulse lines across all contacts, with who sent each one and its delivery status. | always available |
| `resolve_crm_record` | Finds the CRM record behind dialer lead ids or phone numbers, matched only by the number's digits. | always available |
| `list_crm_record_commitments` | What was promised to or by a contact, and whether it was followed through. | always available |
| `list_crm_record_calls` | A contact's calls and recorded meetings, with measured talk time. | always available |
| `get_call_transcript` | The transcript of one call or recorded meeting. It never starts a transcription. | always available |
| `get_crm_record_client_success` | One customer's onboarding and fulfillment: the sale handoff and its promises, progress, check-ins, weekly reviews, health, flags, mentor and tasks. | always available |
| `check_dial_eligibility` | Whether one contact may be called or texted right now, with the reasons and the rules it does not check. It never places a call or sends a text. | always available |
| `get_crm_record_finances` | One customer's money: what they bought, who sold it, what they paid, what is still owed. | always available |
| `list_payment_transactions` | The brand's processor payments by charge date or refund date, with each processor's status. | always available |
| `list_payment_plan_installments` | Payment plan installments due in a date window, upcoming and past due, with what was collected. Needs Ledger access. | always available |
| `list_commissions` | Commission per sale and rep for a date window: posted, projected or on hold. Without Ledger access, only your own. | always available |
| `get_commission_plan` | How the brand pays commission: the live plan's rules in plain words, and the rates and fixed amounts. Without admin access, only your own rates. | always available |
| `search_ledger_sales` | The sales on the Ledger, with verification, payment, closer and setter. Needs Ledger access. | always available |
| `get_new_leads_report` | The CRM's New Leads report for a date range, with the records behind each row. | always available |
| `get_integration_health` | Whether the brand's integrations are working: each booking sync's state, last success and last error, and each connected account's status. For brand admins. | always available |
| `list_team` | The brand's team: member keys, names, roles and who signs in to Pulse, with emails and login details for people who can open the Members screen. | always available |
| `list_unlinked_hosts` | Booking hosts and closer names that match no Pulse login, with Pulse's suggested rep. For managers. | always available |
| `list_dialer_lists` | The dialer lists you can see in My Lists: kind, stored size, routes and reps fed, speed to lead, and a Live List's rules. | always available |
| `get_dialer_list` | One dialer list and a page of its members, with the CRM record behind each lead. | always available |
| `list_calendars` | The brand's booking calendars from every booking tool and the closer each is linked to. For platform admins. | always available |
| `get_kpi_targets` | The brand's targets (dialer goals, Funnel Analytics targets, platform metric bands), each marked as the brand's or the platform default. | always available |
| `get_report_totals` | The brand's headline figures for a date range: cash, units, calls, shows, close rate and more. | needs "report totals" ticked at Allow |
| `get_dialer_report` | The CRM's dialer report: dials, connected, conversations, sets and talk time, by rep or by day. | needs "report totals" ticked at Allow |
| `get_advanced_report` | The Advanced Reporting page: booked calls, show rate, close rate and cash, split by calendar, closer, setter, lead source, program, week and more. | needs "report totals" ticked at Allow |
| `get_metric` | One registered metric for a date range, with how it was computed. | needs "report totals" ticked at Allow |
| `get_outreach_report` | Outreach for a short date range: dialer calls by rep or by day, and texts by rep with the brand's text totals. | needs "report totals" ticked at Allow |
| `get_eod_coverage` | How complete end-of-day reporting was for a date range: reports owed and filed, and who is behind. | needs "report totals" ticked at Allow |
| `get_funnel_report` | The Funnel Analytics page: ad spend and its source, opt-ins, booked calls, cash, and cost per lead, CAC, ROAS and net profit. | needs "report totals" ticked at Allow |
| `get_speed_to_lead` | How fast new people on each dialer list were first called, and one rep's response times when asked. | needs "report totals" ticked at Allow |
| `list_metrics` | Finds a metric's exact id by plain words, and says whether get_metric can fetch it for you. | needs "report totals" ticked at Allow |
| `describe_metric` | One metric's plain definition and formula, without a value. | needs "report totals" ticked at Allow |
| `list_saved_reports` | Your saved reports and the ones your team shared, each with how to run it again now. | needs "report totals" and "save reports" ticked at Allow |
| `save_report` | Saves a new report to your own saved reports in Pulse. It stores the question, never the numbers, and cannot change, share or delete a report. | needs "report totals" and "save reports" ticked at Allow |
| `prepare_set` | Prepares a set for you to confirm in Pulse: it finds the lead and the booking and gives you a link. Nothing is logged until you press Confirm. | needs "prepare things for you to confirm" ticked at Allow |
| `prepare_sale` | Prepares a sale you closed for you to confirm in Pulse. Pulse finds the payment when you press Confirm. Nothing is filed until then. | needs "prepare things for you to confirm" ticked at Allow |
| `prepare_eod` | Prepares your end-of-day report from the numbers Pulse counted. You check every number and confirm in Pulse. | needs "prepare things for you to confirm" ticked at Allow |
| `prepare_lead_update` | Prepares a change to a contact's details, stage or next step. Nothing changes until you confirm in Pulse. | needs "prepare things for you to confirm" ticked at Allow |
| `prepare_note` | Prepares a note on a contact. It is added only when you confirm in Pulse. | needs "prepare things for you to confirm" ticked at Allow |
| `prepare_callback` | Prepares a callback as the contact's next step in Follow-Up. It is set only when you confirm in Pulse. | needs "prepare things for you to confirm" ticked at Allow |
| `prepare_text` | Writes a text to a contact. Nothing is sent until you read it and press Confirm in Pulse. | needs "prepare things for you to confirm" ticked at Allow |
| `get_prepared_action` | Whether you confirmed something it prepared: waiting, confirmed, cancelled or ran out of time. | needs "prepare things for you to confirm" ticked at Allow |
| `get_workflow_builder_guide` | How the workflow builder works: every step, setting, trigger and rule, with the templates as examples. | needs "set up workflows" ticked at Allow |
| `list_workflows` | The brand's workflows, with their status and builder links. | needs "set up workflows" ticked at Allow |
| `get_workflow` | One workflow's steps and connections. | needs "set up workflows" ticked at Allow |
| `check_workflow_draft` | Checks a workflow being designed against the builder's publish checks, without saving it. | needs "set up workflows" ticked at Allow |
| `save_workflow_draft` | Saves a workflow DRAFT in the builder. It never publishes: you review the draft and press Publish. | needs "set up workflows" ticked at Allow |

Example prompts:

Sales manager:
- "Which open deals on my team need attention this week, and why?" (uses `review_crm_pipeline`)
- "List every call booked in the last 7 days with its host, its setter and whether it was held." (uses `list_crm_meetings`)
- "Read the last call with Jordan Lee. What did we promise, and did we follow through?" (uses `search_crm_records`, `list_crm_record_calls`, `get_call_transcript`, `list_crm_record_commitments`)

Setter manager:
- "How many dials, conversations and sets did each rep make last week?" (uses `get_dialer_report`)
- "For Jordan Lee, which texts did a person send and which did a workflow send?" (uses `search_crm_records`, `list_crm_record_interactions`)
- "How many new leads came in this month, and which records are behind each row?" (uses `get_new_leads_report`)

Owner:
- "What were cash collected, units, show rate and close rate last month?" (uses `get_report_totals`)
- "Which calendar and which closer had the best close rate last month?" (uses `get_advanced_report`)
- "How exactly is close rate worked out? Show me last month's figure and how it was computed." (uses `get_metric`)

Finance:
- "List the processor payments that were refunded this month." (uses `list_payment_transactions`)
- "What has Jordan Lee bought, what have they paid, and what is still owed?" (uses `search_crm_records`, `get_crm_record_finances`)
- "Which sales from last week are still waiting to be verified?" (uses `search_ledger_sales`)
