Developer documentation

Connect Automyc to your tools.

Publish to connected social accounts, send and reply to emails, control campaigns, and manage the resources behind your Automyc workflows.

Quick start

  1. Connect your email and social accounts in Automyc using the provider’s OAuth screens.
  2. Create a key in Settings → Platform API. Select only the scopes your integration needs. The secret appears once.
  3. Store the secret on your server. Discover available operations and account IDs before sending.
export AUTOMYC_API_KEY='gml_live_replace_with_your_key'
curl 'https://api.automyc.com/api/platform-api/v1/capabilities' \
  -H "Authorization: Bearer $AUTOMYC_API_KEY"

The key fixes the workspace. X-Organization-ID cannot switch it. The key owner must remain an active member, and their current app permissions and subscription limits still apply. Existing dataset keys keep their original permissions; create a key with additional scopes when needed.

workspace:read

Workspace summary, credits and the daily brief

datasets:read

Datasets, fields, records, imports and exports

datasets:write

Datasets, fields, records, imports and exports

accounts:read

Account settings and sync; connect using OAuth in Automyc

accounts:write

Account settings and sync; connect using OAuth in Automyc

social:read

Posts, drafts, scheduling, media and publishing

social:write

Posts, drafts, scheduling, media and publishing

social:publish

Posts, drafts, scheduling, media and publishing

email:read

Email threads, inbox, schedules, sending and replies

email:write

Email threads, inbox, schedules, sending and replies

email:send

Email threads, inbox, schedules, sending and replies

campaigns:read

Campaigns, recipients, schedules, lifecycle controls and SMS

campaigns:write

Campaigns, recipients, schedules, lifecycle controls and SMS

campaigns:send

Campaigns, recipients, schedules, lifecycle controls and SMS

templates:read

Reusable email templates and follow-ups

templates:write

Reusable email templates and follow-ups

media:read

Upload and retrieve email attachments

media:write

Upload and retrieve email attachments

brand:read

Workspace brand and knowledge settings

brand:write

Workspace brand and knowledge settings

inbox:read

Comments, WhatsApp replies, labels, assignment and notes

inbox:write

Comments, WhatsApp replies, labels, assignment and notes

automations:read

Rules, activation, testing and execution history

automations:write

Rules, activation, testing and execution history

analytics:read

Social performance and provider insights

audit:read

Request receipts without bodies, keys or provider tokens

graphics:read

Design projects, templates, composing and rendering designs

graphics:write

Design projects, templates, composing and rendering designs

videos:read

Video projects, voice-overs, transcripts, music and renders

videos:write

Video projects, voice-overs, transcripts, music and renders

sites:read

Websites, pages, blog and store; publishing

sites:write

Websites, pages, blog and store; publishing

sites:publish

Websites, pages, blog and store; publishing

crm:read

Leads, pipelines and tasks; also grants customer tickets

crm:write

Leads, pipelines and tasks; also grants customer tickets

tickets:read

Customer tickets, notes, attachments and customer lookup only

tickets:write

Customer tickets, notes, attachments and customer lookup only

privacy:write

Erase a ticket customer and their tickets (key owner must be a workspace admin)

webhooks:read

Signed event webhooks for this key; each event also needs its resource's read scope

webhooks:write

Signed event webhooks for this key; each event also needs its resource's read scope

ops:read

Meetings, calls, workflows, domains and DNS

ops:write

Meetings, calls, workflows, domains and DNS

routines:read

Routines that draft posts, blog posts and newsletters on a schedule, and their drafts; approving posts also needs social:publish, publishing a blog draft sites:publish

routines:write

Routines that draft posts, blog posts and newsletters on a schedule, and their drafts; approving posts also needs social:publish, publishing a blog draft sites:publish

tasks:read

My tasks: what needs people now; snooze, dismiss, restore and assign. Message previews also need inbox:read or email:read

tasks:write

My tasks: what needs people now; snooze, dismiss, restore and assign. Message previews also need inbox:read or email:read

Working request examples

Replace example IDs with IDs returned by your account and resource lists. Media URLs must be accessible to the provider. Generate a new idempotency key for each new action; reuse it only when retrying that same action.

Discover connected social accounts accounts:read

curl -X GET 'https://api.automyc.com/api/platform-api/v1/social/accounts' \
  -H "Authorization: Bearer $AUTOMYC_API_KEY"

Publish an Instagram or Facebook post social:publish

curl -X POST 'https://api.automyc.com/api/platform-api/v1/social/posts?publish_now=true' \
  -H "Authorization: Bearer $AUTOMYC_API_KEY" \
  -H 'Idempotency-Key: replace-with-a-unique-action-id-1' \
  -H 'Content-Type: application/json' \
  --data '{
  "caption": "A new chapter for our brand.",
  "media_urls_json": [
    "https://your-cdn.example.com/photo.jpg"
  ],
  "post_type": "post",
  "social_account_ids": [
    42
  ]
}'

Upload a YouTube video social:publish

curl -X POST 'https://api.automyc.com/api/platform-api/v1/social/posts?publish_now=true' \
  -H "Authorization: Bearer $AUTOMYC_API_KEY" \
  -H 'Idempotency-Key: replace-with-a-unique-action-id-2' \
  -H 'Content-Type: application/json' \
  --data '{
  "title": "Our product walkthrough",
  "caption": "A tour of our latest release.",
  "media_urls_json": [
    "https://your-cdn.example.com/walkthrough.mp4"
  ],
  "post_type": "video",
  "social_account_ids": [
    43
  ],
  "platform_options_json": {
    "youtube": {
      "privacy_status": "private",
      "made_for_kids": false
    }
  }
}'

Schedule a social post social:publish

curl -X POST 'https://api.automyc.com/api/platform-api/v1/social/posts?publish_now=false' \
  -H "Authorization: Bearer $AUTOMYC_API_KEY" \
  -H 'Idempotency-Key: replace-with-a-unique-action-id-3' \
  -H 'Content-Type: application/json' \
  --data '{
  "caption": "Scheduled update",
  "media_urls_json": [
    "https://your-cdn.example.com/photo.jpg"
  ],
  "post_type": "post",
  "social_account_ids": [
    42
  ],
  "scheduled_at": "2026-12-01T09:00:00+11:00"
}'

Send an email email:send

curl -X POST 'https://api.automyc.com/api/platform-api/v1/email/send' \
  -H "Authorization: Bearer $AUTOMYC_API_KEY" \
  -H 'Idempotency-Key: replace-with-a-unique-action-id-4' \
  -H 'Content-Type: application/json' \
  --data '{
  "account_id": 12,
  "to": "jane@example.com",
  "subject": "Hello Jane",
  "body": "<p>Hello from Automyc!</p>"
}'

Reply to an email thread email:send

curl -X POST 'https://api.automyc.com/api/platform-api/v1/email/reply/91' \
  -H "Authorization: Bearer $AUTOMYC_API_KEY" \
  -H 'Idempotency-Key: replace-with-a-unique-action-id-5' \
  -H 'Content-Type: application/json' \
  --data '{
  "body": "<p>Thanks for your reply. Here are the details.</p>"
}'

Create an email campaign draft campaigns:write

curl -X POST 'https://api.automyc.com/api/platform-api/v1/campaigns' \
  -H "Authorization: Bearer $AUTOMYC_API_KEY" \
  -H 'Idempotency-Key: replace-with-a-unique-action-id-6' \
  -H 'Content-Type: application/json' \
  --data '{
  "name": "Product launch",
  "dataset_id": 8,
  "channel": "email",
  "flow_type": "template",
  "subject": "Meet our new release",
  "body": "<p>Here is what is new.</p>",
  "connected_account_ids": [
    12
  ],
  "emails_per_day": 50,
  "status": "draft"
}'

Start a campaign campaigns:write

curl -X POST 'https://api.automyc.com/api/platform-api/v1/campaigns/17/start' \
  -H "Authorization: Bearer $AUTOMYC_API_KEY" \
  -H 'Idempotency-Key: replace-with-a-unique-action-id-7' \
  -H 'Content-Type: application/json'

Pause a campaign campaigns:write

curl -X POST 'https://api.automyc.com/api/platform-api/v1/campaigns/17/pause' \
  -H "Authorization: Bearer $AUTOMYC_API_KEY" \
  -H 'Idempotency-Key: replace-with-a-unique-action-id-8' \
  -H 'Content-Type: application/json'

Resume a campaign campaigns:write

curl -X POST 'https://api.automyc.com/api/platform-api/v1/campaigns/17/resume' \
  -H "Authorization: Bearer $AUTOMYC_API_KEY" \
  -H 'Idempotency-Key: replace-with-a-unique-action-id-9' \
  -H 'Content-Type: application/json'

Stop and cancel a campaign campaigns:write

curl -X POST 'https://api.automyc.com/api/platform-api/v1/campaigns/17/stop' \
  -H "Authorization: Bearer $AUTOMYC_API_KEY" \
  -H 'Idempotency-Key: replace-with-a-unique-action-id-10' \
  -H 'Content-Type: application/json'

Server-side JavaScript client

// Run on your server; keep the key in an environment variable.
const api = 'https://api.automyc.com/api/platform-api/v1';
async function automyc(path, method = 'GET', body, actionId) {
  const response = await fetch(api + path, {
    method,
    headers: {
      Authorization: 'Bearer ' + process.env.AUTOMYC_API_KEY,
      ...(method !== 'GET' ? {
        'Content-Type': 'application/json',
        'Idempotency-Key': actionId,
      } : {}),
    },
    ...(body ? { body: JSON.stringify(body) } : {}),
  });
  const result = await response.json();
  if (!response.ok) throw new Error(JSON.stringify(result.detail));
  return result;
}

// Keep this action ID if you need to retry the same request.
const actionId = crypto.randomUUID();
const post = await automyc('/social/posts', 'POST', {
  caption: 'Our latest release', post_type: 'post',
  media_urls_json: ['https://your-cdn.example.com/photo.jpg'],
  social_account_ids: [42],
}, actionId);

// Inspect provider status after the publishing worker processes it.
const current = await automyc('/social/posts/' + post.id);
console.log(current.status, current.channels);

Upload media

curl -X POST 'https://api.automyc.com/api/platform-api/v1/social/posts/upload-media' \
  -H "Authorization: Bearer $AUTOMYC_API_KEY" \
  -F 'file=@./photo.jpg'

# Use the returned media URL in media_urls_json.
# Requires social:write for social media uploads.
# Email attachments: POST /attachments/upload (media:write), then use attachment_ids.

Uploads use multipart/form-data and do not use idempotency receipts. JSON mutations require the Idempotency-Key header. A post response means the operation was accepted: poll GET /social/posts/{post_id} and inspect each channel’s status, external_post_url, and error_message. Scheduled emails and campaigns require the existing Celery worker and scheduler.

Instagram requires an eligible professional account and publishing permissions. Facebook publishes to connected Pages. YouTube accepts video and requires a title; unverified projects may restrict uploads to private visibility. TikTok requires approved publishing permissions, current creator settings, explicit consent and verified media domains where applicable. Supply the same platform_options_json choices collected by Automyc’s composer. YouTube requirements · TikTok requirements

Pause preserves a campaign for resume. Stop marks it deleted and cancels pending work; messages already delivered cannot be recalled. A draft start may return initializing while background preparation runs. Poll GET /campaigns/{campaign_id}.

API changes

24 October 2026: POST /campaigns now needs the campaigns:send scope unless the body sets "status": "draft". Creating a campaign without a status starts sending, so it counts as a send. Changing a campaign's status (start, pause, resume or stop) needs it too; keys with only campaigns:write get 403. Create a draft and start it later, or add campaigns:send to the key.

Endpoint reference

386 operations generated from the backend contract. Expand an endpoint for parameters, request fields and response schemas. Pagination and filters are listed per endpoint; some resources return arrays and others return paginated objects.

386 matching operations

POST/datasetsdatasets:write

Create dataset

Required platform scope: `datasets:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Request: application/json

{
  "dataset_name (required)": {
    "type": "string"
  },
  "dataset_status": {
    "type": "string",
    "default": "active"
  },
  "audience_type": {
    "type": "string",
    "default": "email"
  },
  "organization_id": [
    {
      "type": "integer"
    },
    {
      "type": "null"
    }
  ]
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {
        "dataset_name (required)": {
          "type": "string"
        },
        "dataset_status": {
          "type": "string",
          "default": "active"
        },
        "audience_type": {
          "type": "string",
          "default": "email"
        },
        "id (required)": {
          "type": "integer"
        },
        "user_id (required)": {
          "type": "integer"
        },
        "organization_id (required)": {
          "type": "integer"
        },
        "created_at (required)": {
          "type": "string"
        },
        "fields": [
          {
            "field_key (required)": {
              "type": "string"
            },
            "field_name (required)": {
              "type": "string"
            },
            "field_type (required)": {
              "type": "string"
            },
            "is_required": {
              "type": "boolean",
              "default": false
            },
            "id (required)": {
              "type": "integer"
            },
            "dataset_id (required)": {
              "type": "integer"
            }
          }
        ],
        "records": [
          {
            "id (required)": {
              "type": "integer"
            },
            "dataset_id (required)": {
              "type": "integer"
            },
            "created_at (required)": {
              "type": "string"
            },
            "values (required)": [
              {
                "dataset_field_id (required)": "integer",
                "value": "object",
                "id (required)": "integer",
                "dataset_record_id (required)": "integer",
                "field (required)": "object"
              }
            ]
          }
        ],
        "record_count": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "owner_name": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ]
      }
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/datasets/{dataset_id}datasets:read

Get dataset

Required platform scope: `datasets:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "dataset_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Dataset Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {
        "dataset_name (required)": {
          "type": "string"
        },
        "dataset_status": {
          "type": "string",
          "default": "active"
        },
        "audience_type": {
          "type": "string",
          "default": "email"
        },
        "id (required)": {
          "type": "integer"
        },
        "user_id (required)": {
          "type": "integer"
        },
        "organization_id (required)": {
          "type": "integer"
        },
        "created_at (required)": {
          "type": "string"
        },
        "fields": [
          {
            "field_key (required)": {
              "type": "string"
            },
            "field_name (required)": {
              "type": "string"
            },
            "field_type (required)": {
              "type": "string"
            },
            "is_required": {
              "type": "boolean",
              "default": false
            },
            "id (required)": {
              "type": "integer"
            },
            "dataset_id (required)": {
              "type": "integer"
            }
          }
        ],
        "records": [
          {
            "id (required)": {
              "type": "integer"
            },
            "dataset_id (required)": {
              "type": "integer"
            },
            "created_at (required)": {
              "type": "string"
            },
            "values (required)": [
              {
                "dataset_field_id (required)": "integer",
                "value": "object",
                "id (required)": "integer",
                "dataset_record_id (required)": "integer",
                "field (required)": "object"
              }
            ]
          }
        ],
        "record_count": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "owner_name": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ]
      }
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/datasetsdatasets:read

List datasets

Required platform scope: `datasets:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "page",
    "in": "query",
    "required": false,
    "schema": {
      "type": "integer",
      "default": 1,
      "title": "Page"
    }
  },
  {
    "name": "size",
    "in": "query",
    "required": false,
    "schema": {
      "type": "integer",
      "default": 20,
      "title": "Size"
    }
  },
  {
    "name": "organization_id",
    "in": "query",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Organization Id"
    }
  },
  {
    "name": "has_records",
    "in": "query",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Has Records"
    }
  },
  {
    "name": "all_members",
    "in": "query",
    "required": false,
    "schema": {
      "type": "boolean",
      "default": false,
      "title": "All Members"
    }
  },
  {
    "name": "search",
    "in": "query",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Search"
    }
  },
  {
    "name": "audience_type",
    "in": "query",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Audience Type"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {
        "items (required)": [
          {
            "dataset_name (required)": {
              "type": "string"
            },
            "dataset_status": {
              "type": "string",
              "default": "active"
            },
            "audience_type": {
              "type": "string",
              "default": "email"
            },
            "id (required)": {
              "type": "integer"
            },
            "user_id (required)": {
              "type": "integer"
            },
            "organization_id (required)": {
              "type": "integer"
            },
            "created_at (required)": {
              "type": "string"
            },
            "fields": [
              {
                "field_key (required)": "string",
                "field_name (required)": "string",
                "field_type (required)": "string",
                "is_required": "boolean",
                "id (required)": "integer",
                "dataset_id (required)": "integer"
              }
            ],
            "record_count": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "owner_name": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        ],
        "total (required)": {
          "type": "integer"
        },
        "page (required)": {
          "type": "integer"
        },
        "size (required)": {
          "type": "integer"
        }
      }
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/datasets/{dataset_id}/bulk-fieldsdatasets:write

Bulk add dataset fields

Required platform scope: `datasets:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "dataset_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Dataset Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Request: application/json

[
  {
    "field_key (required)": {
      "type": "string"
    },
    "field_name (required)": {
      "type": "string"
    },
    "field_type (required)": {
      "type": "string"
    },
    "is_required": {
      "type": "boolean",
      "default": false
    }
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/datasets/{dataset_id}/fieldsdatasets:write

Add dataset field

Required platform scope: `datasets:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "dataset_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Dataset Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Request: application/json

{
  "field_key (required)": {
    "type": "string"
  },
  "field_name (required)": {
    "type": "string"
  },
  "field_type (required)": {
    "type": "string"
  },
  "is_required": {
    "type": "boolean",
    "default": false
  }
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {
        "field_key (required)": {
          "type": "string"
        },
        "field_name (required)": {
          "type": "string"
        },
        "field_type (required)": {
          "type": "string"
        },
        "is_required": {
          "type": "boolean",
          "default": false
        },
        "id (required)": {
          "type": "integer"
        },
        "dataset_id (required)": {
          "type": "integer"
        }
      }
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/datasets/{dataset_id}/fieldsdatasets:read

List dataset fields

Required platform scope: `datasets:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "dataset_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Dataset Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": [
        {
          "field_key (required)": {
            "type": "string"
          },
          "field_name (required)": {
            "type": "string"
          },
          "field_type (required)": {
            "type": "string"
          },
          "is_required": {
            "type": "boolean",
            "default": false
          },
          "id (required)": {
            "type": "integer"
          },
          "dataset_id (required)": {
            "type": "integer"
          }
        }
      ]
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
DELETE/datasets/{dataset_id}datasets:write

Delete dataset

Required platform scope: `datasets:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "dataset_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Dataset Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
PUT/datasets/{dataset_id}datasets:write

Update dataset

Required platform scope: `datasets:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "dataset_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Dataset Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Request: application/json

{
  "dataset_name (required)": {
    "type": "string"
  },
  "dataset_status": {
    "type": "string",
    "default": "active"
  },
  "audience_type": {
    "type": "string",
    "default": "email"
  },
  "organization_id": [
    {
      "type": "integer"
    },
    {
      "type": "null"
    }
  ]
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {
        "dataset_name (required)": {
          "type": "string"
        },
        "dataset_status": {
          "type": "string",
          "default": "active"
        },
        "audience_type": {
          "type": "string",
          "default": "email"
        },
        "id (required)": {
          "type": "integer"
        },
        "user_id (required)": {
          "type": "integer"
        },
        "organization_id (required)": {
          "type": "integer"
        },
        "created_at (required)": {
          "type": "string"
        },
        "fields": [
          {
            "field_key (required)": {
              "type": "string"
            },
            "field_name (required)": {
              "type": "string"
            },
            "field_type (required)": {
              "type": "string"
            },
            "is_required": {
              "type": "boolean",
              "default": false
            },
            "id (required)": {
              "type": "integer"
            },
            "dataset_id (required)": {
              "type": "integer"
            }
          }
        ],
        "records": [
          {
            "id (required)": {
              "type": "integer"
            },
            "dataset_id (required)": {
              "type": "integer"
            },
            "created_at (required)": {
              "type": "string"
            },
            "values (required)": [
              {
                "dataset_field_id (required)": "integer",
                "value": "object",
                "id (required)": "integer",
                "dataset_record_id (required)": "integer",
                "field (required)": "object"
              }
            ]
          }
        ],
        "record_count": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "owner_name": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ]
      }
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
DELETE/datasets/{dataset_id}/fields/{field_id}datasets:write

Delete dataset field

Required platform scope: `datasets:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "dataset_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Dataset Id"
    }
  },
  {
    "name": "field_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Field Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/datasets/{dataset_id}/recordsdatasets:write

Add dataset record

Required platform scope: `datasets:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "dataset_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Dataset Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Request: application/json

{
  "values (required)": [
    {
      "dataset_field_id (required)": {
        "type": "integer"
      },
      "value": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    }
  ]
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/datasets/{dataset_id}/recordsdatasets:read

List dataset records

Required platform scope: `datasets:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "dataset_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Dataset Id"
    }
  },
  {
    "name": "page",
    "in": "query",
    "required": false,
    "schema": {
      "type": "integer",
      "default": 1,
      "title": "Page"
    }
  },
  {
    "name": "size",
    "in": "query",
    "required": false,
    "schema": {
      "type": "integer",
      "default": 10,
      "title": "Size"
    }
  },
  {
    "name": "record_id",
    "in": "query",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 1
        },
        {
          "type": "null"
        }
      ],
      "title": "Record Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/datasets/{dataset_id}/exportdatasets:read

Export dataset csv

Required platform scope: `datasets:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "dataset_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Dataset Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
DELETE/datasets/{dataset_id}/records/{record_id}datasets:write

Delete dataset record

Required platform scope: `datasets:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "dataset_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Dataset Id"
    }
  },
  {
    "name": "record_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Record Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
PUT/datasets/{dataset_id}/records/{record_id}datasets:write

Update dataset record

Required platform scope: `datasets:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "dataset_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Dataset Id"
    }
  },
  {
    "name": "record_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Record Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Request: application/json

{
  "values (required)": [
    {
      "dataset_field_id (required)": {
        "type": "integer"
      },
      "value": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    }
  ]
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/datasets/{dataset_id}/import-csvdatasets:write

Import csv

Required platform scope: `datasets:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "dataset_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Dataset Id"
    }
  },
  {
    "name": "auto_create_fields",
    "in": "query",
    "required": false,
    "schema": {
      "type": "boolean",
      "default": false,
      "title": "Auto Create Fields"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Request: multipart/form-data

{
  "file (required)": {
    "type": "string"
  }
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/datasets/contacts/listdatasets:read

List contacts

Get all unique contacts (emails) from the user's datasets with their associated data. - By default: shows only contacts from datasets owned by the current user - If all_members=true and user has permission: shows contacts from all team datasets - If unsubscribed_only=true: shows only contacts who have unsubscribed Returns contacts with name, email, company (if available), and source dataset info. Required platform scope: `datasets:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "page",
    "in": "query",
    "required": false,
    "schema": {
      "type": "integer",
      "default": 1,
      "title": "Page"
    }
  },
  {
    "name": "size",
    "in": "query",
    "required": false,
    "schema": {
      "type": "integer",
      "default": 20,
      "title": "Size"
    }
  },
  {
    "name": "search",
    "in": "query",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Search"
    }
  },
  {
    "name": "all_members",
    "in": "query",
    "required": false,
    "schema": {
      "type": "boolean",
      "default": false,
      "title": "All Members"
    }
  },
  {
    "name": "unsubscribed_only",
    "in": "query",
    "required": false,
    "schema": {
      "type": "boolean",
      "default": false,
      "title": "Unsubscribed Only"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/campaigns/datasets/import-csvcampaigns:write

Create campaign dataset from csv

Required platform scope: `campaigns:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Request: multipart/form-data

{
  "file (required)": {
    "type": "string"
  },
  "dataset_name": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "audience_type": {
    "type": "string",
    "default": "email"
  }
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/campaigns/datasets/import-phonescampaigns:write

Create campaign dataset from phones

Required platform scope: `campaigns:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Request: application/json

{
  "phone_numbers (required)": [
    {
      "type": "string"
    }
  ],
  "dataset_name": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ]
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/campaigns/datasets/import-emailscampaigns:write

Create campaign dataset from emails

Required platform scope: `campaigns:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Request: application/json

{
  "emails (required)": [
    {
      "type": "string"
    }
  ],
  "dataset_name": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ]
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/campaignscampaigns:write

Create campaign

Required platform scope: `campaigns:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Request: application/json

{
  "name (required)": {
    "type": "string"
  },
  "channel": {
    "type": "string",
    "default": "email"
  },
  "type": {
    "type": "string",
    "enum": [
      "sales"
    ]
  },
  "flow_type": {
    "type": "string",
    "enum": [
      "template",
      "ai_powered"
    ]
  },
  "dataset_id (required)": {
    "type": "integer"
  },
  "template_id": [
    {},
    {
      "type": "null"
    }
  ],
  "template_variants": [
    [
      {
        "source_template_id": [
          "integer",
          "null"
        ],
        "label (required)": {
          "type": "string"
        },
        "subject": {
          "type": "string",
          "default": ""
        },
        "body": {
          "type": "string",
          "default": ""
        },
        "followups": [
          "object"
        ]
      }
    ],
    {
      "type": "null"
    }
  ],
  "ai_objective": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "ai_fields": [
    [
      {
        "type": "string"
      }
    ],
    {
      "type": "null"
    }
  ],
  "emails_per_day": {
    "type": "integer",
    "default": 50
  },
  "interval_minutes": {
    "type": "integer",
    "default": 0
  },
  "interval_seconds": [
    {
      "type": "integer"
    },
    {
      "type": "null"
    }
  ],
  "auto_reply_enabled": {
    "type": "boolean",
    "default": false
  },
  "followup_objectives": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "style_tune": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "min_reply_minutes": {
    "type": "integer",
    "default": 60
  },
  "max_reply_minutes": {
    "type": "integer",
    "default": 300
  },
  "track_opens": {
    "type": "boolean",
    "default": true
  },
  "track_clicks": {
    "type": "boolean",
    "default": true
  },
  "show_unsubscribe": {
    "type": "boolean",
    "default": false
  },
  "unsubscribe_text": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "attachment_ids": [
    [
      {
        "type": "integer"
      }
    ],
    {
      "type": "null"
    }
  ],
  "scheduled_start_at": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "schedule_config": [
    {
      "type": "object"
    },
    {
      "type": "null"
    }
  ],
  "timezone": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "connected_account_ids": [
    [
      {
        "type": "integer"
      }
    ],
    {
      "type": "null"
    }
  ],
  "whatsapp_template_id": [
    {
      "type": "integer"
    },
    {
      "type": "null"
    }
  ],
  "whatsapp_integration_ids": [
    [
      {
        "type": "integer"
      }
    ],
    {
      "type": "null"
    }
  ],
  "ai_followups": [
    [
      {
        "type": "object"
      }
    ],
    {
      "type": "null"
    }
  ],
  "followups": [
    [
      {
        "type": "object"
      }
    ],
    {
      "type": "null"
    }
  ],
  "subject": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "body": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "status": {
    "type": "string",
    "enum": [
      "draft",
      "active",
      "paused",
      "paused_limit",
      "paused_by_user",
      "completed",
      "scheduled",
      "initializing",
      "deleted",
      "failed",
      "failed_init"
    ]
  }
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {
        "name (required)": {
          "type": "string"
        },
        "channel": {
          "type": "string",
          "default": "email"
        },
        "type": {
          "type": "string",
          "enum": [
            "sales"
          ]
        },
        "flow_type": {
          "type": "string",
          "enum": [
            "template",
            "ai_powered"
          ]
        },
        "dataset_id (required)": {
          "type": "integer"
        },
        "template_id": [
          {},
          {
            "type": "null"
          }
        ],
        "template_variants": [
          [
            {
              "source_template_id": [
                "integer",
                "null"
              ],
              "label (required)": {
                "type": "string"
              },
              "subject": {
                "type": "string",
                "default": ""
              },
              "body": {
                "type": "string",
                "default": ""
              },
              "followups": [
                "object"
              ]
            }
          ],
          {
            "type": "null"
          }
        ],
        "ai_objective": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "ai_fields": [
          [
            {
              "type": "string"
            }
          ],
          {
            "type": "null"
          }
        ],
        "emails_per_day": {
          "type": "integer",
          "default": 50
        },
        "interval_minutes": {
          "type": "integer",
          "default": 0
        },
        "interval_seconds": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "auto_reply_enabled": {
          "type": "boolean",
          "default": false
        },
        "followup_objectives": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "style_tune": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "min_reply_minutes": {
          "type": "integer",
          "default": 60
        },
        "max_reply_minutes": {
          "type": "integer",
          "default": 300
        },
        "track_opens": {
          "type": "boolean",
          "default": true
        },
        "track_clicks": {
          "type": "boolean",
          "default": true
        },
        "show_unsubscribe": {
          "type": "boolean",
          "default": false
        },
        "unsubscribe_text": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "attachment_ids": [
          [
            {
              "type": "integer"
            }
          ],
          {
            "type": "null"
          }
        ],
        "scheduled_start_at": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "schedule_config": [
          {
            "type": "object"
          },
          {
            "type": "null"
          }
        ],
        "timezone": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "connected_account_ids": [
          [
            {
              "type": "integer"
            }
          ],
          {
            "type": "null"
          }
        ],
        "whatsapp_template_id": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "whatsapp_integration_ids": [
          [
            {
              "type": "integer"
            }
          ],
          {
            "type": "null"
          }
        ],
        "ai_followups": [
          [
            {
              "type": "object"
            }
          ],
          {
            "type": "null"
          }
        ],
        "brand_id": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "id (required)": {
          "type": "integer"
        },
        "status (required)": {
          "type": "string",
          "enum": [
            "draft",
            "active",
            "paused",
            "paused_limit",
            "paused_by_user",
            "completed",
            "scheduled",
            "initializing",
            "deleted",
            "failed",
            "failed_init"
          ]
        },
        "status_message": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "user_id (required)": {
          "type": "integer"
        },
        "organization_id (required)": {
          "type": "integer"
        },
        "created_at (required)": {
          "type": "string"
        },
        "updated_at": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "subject": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "body": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "followups": [
          {
            "type": "object"
          }
        ],
        "attachments": [
          [
            {
              "filename (required)": {
                "type": "string"
              },
              "content_type": [
                "string",
                "null"
              ],
              "file_size": [
                "integer",
                "null"
              ],
              "id (required)": {
                "type": "integer"
              },
              "created_at (required)": {
                "type": "string"
              },
              "file_url": [
                "string",
                "null"
              ],
              "private_download_url": [
                "string",
                "null"
              ],
              "content_id": [
                "string",
                "null"
              ],
              "inline_url": [
                "string",
                "null"
              ]
            }
          ],
          {
            "type": "null"
          }
        ],
        "brand_name": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ]
      }
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/campaignscampaigns:read

List campaigns

Required platform scope: `campaigns:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "all_members",
    "in": "query",
    "required": false,
    "schema": {
      "type": "boolean",
      "default": false,
      "title": "All Members"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": [
        {
          "name (required)": {
            "type": "string"
          },
          "channel": {
            "type": "string",
            "default": "email"
          },
          "type": {
            "type": "string",
            "enum": [
              "sales"
            ]
          },
          "flow_type": {
            "type": "string",
            "enum": [
              "template",
              "ai_powered"
            ]
          },
          "dataset_id (required)": {
            "type": "integer"
          },
          "template_id": [
            {},
            {
              "type": "null"
            }
          ],
          "template_variants": [
            [
              {
                "source_template_id": "object",
                "label (required)": "string",
                "subject": "string",
                "body": "string",
                "followups": "array"
              }
            ],
            {
              "type": "null"
            }
          ],
          "ai_objective": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "ai_fields": [
            [
              {
                "type": "string"
              }
            ],
            {
              "type": "null"
            }
          ],
          "emails_per_day": {
            "type": "integer",
            "default": 50
          },
          "interval_minutes": {
            "type": "integer",
            "default": 0
          },
          "interval_seconds": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "auto_reply_enabled": {
            "type": "boolean",
            "default": false
          },
          "followup_objectives": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "style_tune": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "min_reply_minutes": {
            "type": "integer",
            "default": 60
          },
          "max_reply_minutes": {
            "type": "integer",
            "default": 300
          },
          "track_opens": {
            "type": "boolean",
            "default": true
          },
          "track_clicks": {
            "type": "boolean",
            "default": true
          },
          "show_unsubscribe": {
            "type": "boolean",
            "default": false
          },
          "unsubscribe_text": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "attachment_ids": [
            [
              {
                "type": "integer"
              }
            ],
            {
              "type": "null"
            }
          ],
          "scheduled_start_at": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "schedule_config": [
            {
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "timezone": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "connected_account_ids": [
            [
              {
                "type": "integer"
              }
            ],
            {
              "type": "null"
            }
          ],
          "whatsapp_template_id": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "whatsapp_integration_ids": [
            [
              {
                "type": "integer"
              }
            ],
            {
              "type": "null"
            }
          ],
          "ai_followups": [
            [
              {
                "type": "object"
              }
            ],
            {
              "type": "null"
            }
          ],
          "brand_id": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "id (required)": {
            "type": "integer"
          },
          "status (required)": {
            "type": "string",
            "enum": [
              "draft",
              "active",
              "paused",
              "paused_limit",
              "paused_by_user",
              "completed",
              "scheduled",
              "initializing",
              "deleted",
              "failed",
              "failed_init"
            ]
          },
          "status_message": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "user_id (required)": {
            "type": "integer"
          },
          "organization_id (required)": {
            "type": "integer"
          },
          "created_at (required)": {
            "type": "string"
          },
          "updated_at": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "subject": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "body": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "followups": [
            {
              "type": "object"
            }
          ],
          "attachments": [
            [
              {
                "filename (required)": "string",
                "content_type": "object",
                "file_size": "object",
                "id (required)": "integer",
                "created_at (required)": "string",
                "file_url": "object",
                "private_download_url": "object",
                "content_id": "object",
                "inline_url": "object"
              }
            ],
            {
              "type": "null"
            }
          ],
          "brand_name": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "total_emails (required)": {
            "type": "integer"
          },
          "sent_emails (required)": {
            "type": "integer"
          },
          "opened_emails (required)": {
            "type": "integer"
          },
          "replied_emails (required)": {
            "type": "integer"
          },
          "clicked_emails": {
            "type": "integer",
            "default": 0
          },
          "total_whatsapp": {
            "type": "integer",
            "default": 0
          },
          "sent_whatsapp": {
            "type": "integer",
            "default": 0
          },
          "read_whatsapp": {
            "type": "integer",
            "default": 0
          },
          "replied_whatsapp": {
            "type": "integer",
            "default": 0
          },
          "org_emails_limit": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "org_emails_sent_today": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        }
      ]
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/campaigns/{campaign_id}campaigns:read

Get campaign

Required platform scope: `campaigns:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "campaign_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Campaign Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {
        "name (required)": {
          "type": "string"
        },
        "channel": {
          "type": "string",
          "default": "email"
        },
        "type": {
          "type": "string",
          "enum": [
            "sales"
          ]
        },
        "flow_type": {
          "type": "string",
          "enum": [
            "template",
            "ai_powered"
          ]
        },
        "dataset_id (required)": {
          "type": "integer"
        },
        "template_id": [
          {},
          {
            "type": "null"
          }
        ],
        "template_variants": [
          [
            {
              "source_template_id": [
                "integer",
                "null"
              ],
              "label (required)": {
                "type": "string"
              },
              "subject": {
                "type": "string",
                "default": ""
              },
              "body": {
                "type": "string",
                "default": ""
              },
              "followups": [
                "object"
              ]
            }
          ],
          {
            "type": "null"
          }
        ],
        "ai_objective": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "ai_fields": [
          [
            {
              "type": "string"
            }
          ],
          {
            "type": "null"
          }
        ],
        "emails_per_day": {
          "type": "integer",
          "default": 50
        },
        "interval_minutes": {
          "type": "integer",
          "default": 0
        },
        "interval_seconds": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "auto_reply_enabled": {
          "type": "boolean",
          "default": false
        },
        "followup_objectives": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "style_tune": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "min_reply_minutes": {
          "type": "integer",
          "default": 60
        },
        "max_reply_minutes": {
          "type": "integer",
          "default": 300
        },
        "track_opens": {
          "type": "boolean",
          "default": true
        },
        "track_clicks": {
          "type": "boolean",
          "default": true
        },
        "show_unsubscribe": {
          "type": "boolean",
          "default": false
        },
        "unsubscribe_text": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "attachment_ids": [
          [
            {
              "type": "integer"
            }
          ],
          {
            "type": "null"
          }
        ],
        "scheduled_start_at": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "schedule_config": [
          {
            "type": "object"
          },
          {
            "type": "null"
          }
        ],
        "timezone": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "connected_account_ids": [
          [
            {
              "type": "integer"
            }
          ],
          {
            "type": "null"
          }
        ],
        "whatsapp_template_id": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "whatsapp_integration_ids": [
          [
            {
              "type": "integer"
            }
          ],
          {
            "type": "null"
          }
        ],
        "ai_followups": [
          [
            {
              "type": "object"
            }
          ],
          {
            "type": "null"
          }
        ],
        "brand_id": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "id (required)": {
          "type": "integer"
        },
        "status (required)": {
          "type": "string",
          "enum": [
            "draft",
            "active",
            "paused",
            "paused_limit",
            "paused_by_user",
            "completed",
            "scheduled",
            "initializing",
            "deleted",
            "failed",
            "failed_init"
          ]
        },
        "status_message": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "user_id (required)": {
          "type": "integer"
        },
        "organization_id (required)": {
          "type": "integer"
        },
        "created_at (required)": {
          "type": "string"
        },
        "updated_at": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "subject": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "body": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "followups": [
          {
            "type": "object"
          }
        ],
        "attachments": [
          [
            {
              "filename (required)": {
                "type": "string"
              },
              "content_type": [
                "string",
                "null"
              ],
              "file_size": [
                "integer",
                "null"
              ],
              "id (required)": {
                "type": "integer"
              },
              "created_at (required)": {
                "type": "string"
              },
              "file_url": [
                "string",
                "null"
              ],
              "private_download_url": [
                "string",
                "null"
              ],
              "content_id": [
                "string",
                "null"
              ],
              "inline_url": [
                "string",
                "null"
              ]
            }
          ],
          {
            "type": "null"
          }
        ],
        "brand_name": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "total_emails (required)": {
          "type": "integer"
        },
        "sent_emails (required)": {
          "type": "integer"
        },
        "opened_emails (required)": {
          "type": "integer"
        },
        "replied_emails (required)": {
          "type": "integer"
        },
        "clicked_emails": {
          "type": "integer",
          "default": 0
        },
        "total_whatsapp": {
          "type": "integer",
          "default": 0
        },
        "sent_whatsapp": {
          "type": "integer",
          "default": 0
        },
        "read_whatsapp": {
          "type": "integer",
          "default": 0
        },
        "replied_whatsapp": {
          "type": "integer",
          "default": 0
        },
        "org_emails_limit": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "org_emails_sent_today": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ]
      }
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/campaigns/{campaign_id}/schedulescampaigns:read

Get campaign schedules

Required platform scope: `campaigns:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "campaign_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Campaign Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
PATCH/campaigns/{campaign_id}campaigns:write

Update campaign

Required platform scope: `campaigns:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "campaign_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Campaign Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Request: application/json

{
  "name": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "channel": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "status": [
    {
      "type": "string",
      "enum": [
        "draft",
        "active",
        "paused",
        "paused_limit",
        "paused_by_user",
        "completed",
        "scheduled",
        "initializing",
        "deleted",
        "failed",
        "failed_init"
      ]
    },
    {
      "type": "null"
    }
  ],
  "type": [
    {
      "type": "string",
      "enum": [
        "sales"
      ]
    },
    {
      "type": "null"
    }
  ],
  "flow_type": [
    {
      "type": "string",
      "enum": [
        "template",
        "ai_powered"
      ]
    },
    {
      "type": "null"
    }
  ],
  "dataset_id": [
    {
      "type": "integer"
    },
    {
      "type": "null"
    }
  ],
  "connected_account_ids": [
    [
      {
        "type": "integer"
      }
    ],
    {
      "type": "null"
    }
  ],
  "whatsapp_template_id": [
    {
      "type": "integer"
    },
    {
      "type": "null"
    }
  ],
  "whatsapp_integration_ids": [
    [
      {
        "type": "integer"
      }
    ],
    {
      "type": "null"
    }
  ],
  "template_id": [
    {},
    {
      "type": "null"
    }
  ],
  "template_variants": [
    [
      {
        "source_template_id": [
          "integer",
          "null"
        ],
        "label (required)": {
          "type": "string"
        },
        "subject": {
          "type": "string",
          "default": ""
        },
        "body": {
          "type": "string",
          "default": ""
        },
        "followups": [
          "object"
        ]
      }
    ],
    {
      "type": "null"
    }
  ],
  "subject": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "body": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "followups": [
    [
      {
        "type": "object"
      }
    ],
    {
      "type": "null"
    }
  ],
  "ai_followups": [
    [
      {
        "type": "object"
      }
    ],
    {
      "type": "null"
    }
  ],
  "emails_per_day": [
    {
      "type": "integer"
    },
    {
      "type": "null"
    }
  ],
  "ai_objective": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "ai_fields": [
    [
      {
        "type": "string"
      }
    ],
    {
      "type": "null"
    }
  ],
  "interval_minutes": [
    {
      "type": "integer"
    },
    {
      "type": "null"
    }
  ],
  "interval_seconds": [
    {
      "type": "integer"
    },
    {
      "type": "null"
    }
  ],
  "auto_reply_enabled": [
    {
      "type": "boolean"
    },
    {
      "type": "null"
    }
  ],
  "followup_objectives": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "style_tune": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "min_reply_minutes": [
    {
      "type": "integer"
    },
    {
      "type": "null"
    }
  ],
  "max_reply_minutes": [
    {
      "type": "integer"
    },
    {
      "type": "null"
    }
  ],
  "track_opens": [
    {
      "type": "boolean"
    },
    {
      "type": "null"
    }
  ],
  "track_clicks": [
    {
      "type": "boolean"
    },
    {
      "type": "null"
    }
  ],
  "show_unsubscribe": [
    {
      "type": "boolean"
    },
    {
      "type": "null"
    }
  ],
  "unsubscribe_text": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "attachment_ids": [
    [
      {
        "type": "integer"
      }
    ],
    {
      "type": "null"
    }
  ],
  "scheduled_start_at": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "schedule_config": [
    {
      "type": "object"
    },
    {
      "type": "null"
    }
  ],
  "timezone": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ]
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {
        "name (required)": {
          "type": "string"
        },
        "channel": {
          "type": "string",
          "default": "email"
        },
        "type": {
          "type": "string",
          "enum": [
            "sales"
          ]
        },
        "flow_type": {
          "type": "string",
          "enum": [
            "template",
            "ai_powered"
          ]
        },
        "dataset_id (required)": {
          "type": "integer"
        },
        "template_id": [
          {},
          {
            "type": "null"
          }
        ],
        "template_variants": [
          [
            {
              "source_template_id": [
                "integer",
                "null"
              ],
              "label (required)": {
                "type": "string"
              },
              "subject": {
                "type": "string",
                "default": ""
              },
              "body": {
                "type": "string",
                "default": ""
              },
              "followups": [
                "object"
              ]
            }
          ],
          {
            "type": "null"
          }
        ],
        "ai_objective": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "ai_fields": [
          [
            {
              "type": "string"
            }
          ],
          {
            "type": "null"
          }
        ],
        "emails_per_day": {
          "type": "integer",
          "default": 50
        },
        "interval_minutes": {
          "type": "integer",
          "default": 0
        },
        "interval_seconds": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "auto_reply_enabled": {
          "type": "boolean",
          "default": false
        },
        "followup_objectives": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "style_tune": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "min_reply_minutes": {
          "type": "integer",
          "default": 60
        },
        "max_reply_minutes": {
          "type": "integer",
          "default": 300
        },
        "track_opens": {
          "type": "boolean",
          "default": true
        },
        "track_clicks": {
          "type": "boolean",
          "default": true
        },
        "show_unsubscribe": {
          "type": "boolean",
          "default": false
        },
        "unsubscribe_text": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "attachment_ids": [
          [
            {
              "type": "integer"
            }
          ],
          {
            "type": "null"
          }
        ],
        "scheduled_start_at": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "schedule_config": [
          {
            "type": "object"
          },
          {
            "type": "null"
          }
        ],
        "timezone": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "connected_account_ids": [
          [
            {
              "type": "integer"
            }
          ],
          {
            "type": "null"
          }
        ],
        "whatsapp_template_id": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "whatsapp_integration_ids": [
          [
            {
              "type": "integer"
            }
          ],
          {
            "type": "null"
          }
        ],
        "ai_followups": [
          [
            {
              "type": "object"
            }
          ],
          {
            "type": "null"
          }
        ],
        "brand_id": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "id (required)": {
          "type": "integer"
        },
        "status (required)": {
          "type": "string",
          "enum": [
            "draft",
            "active",
            "paused",
            "paused_limit",
            "paused_by_user",
            "completed",
            "scheduled",
            "initializing",
            "deleted",
            "failed",
            "failed_init"
          ]
        },
        "status_message": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "user_id (required)": {
          "type": "integer"
        },
        "organization_id (required)": {
          "type": "integer"
        },
        "created_at (required)": {
          "type": "string"
        },
        "updated_at": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "subject": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "body": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "followups": [
          {
            "type": "object"
          }
        ],
        "attachments": [
          [
            {
              "filename (required)": {
                "type": "string"
              },
              "content_type": [
                "string",
                "null"
              ],
              "file_size": [
                "integer",
                "null"
              ],
              "id (required)": {
                "type": "integer"
              },
              "created_at (required)": {
                "type": "string"
              },
              "file_url": [
                "string",
                "null"
              ],
              "private_download_url": [
                "string",
                "null"
              ],
              "content_id": [
                "string",
                "null"
              ],
              "inline_url": [
                "string",
                "null"
              ]
            }
          ],
          {
            "type": "null"
          }
        ],
        "brand_name": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ]
      }
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
DELETE/campaigns/{campaign_id}campaigns:write

Delete campaign

Required platform scope: `campaigns:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "campaign_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Campaign Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/campaigns/{campaign_id}/check-completioncampaigns:write

Check campaign completion endpoint

Manually trigger campaign completion check Required platform scope: `campaigns:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "campaign_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Campaign Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/campaigns/{campaign_id}/duplicatecampaigns:write

Duplicate campaign

Required platform scope: `campaigns:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "campaign_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Campaign Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {
        "name (required)": {
          "type": "string"
        },
        "channel": {
          "type": "string",
          "default": "email"
        },
        "type": {
          "type": "string",
          "enum": [
            "sales"
          ]
        },
        "flow_type": {
          "type": "string",
          "enum": [
            "template",
            "ai_powered"
          ]
        },
        "dataset_id (required)": {
          "type": "integer"
        },
        "template_id": [
          {},
          {
            "type": "null"
          }
        ],
        "template_variants": [
          [
            {
              "source_template_id": [
                "integer",
                "null"
              ],
              "label (required)": {
                "type": "string"
              },
              "subject": {
                "type": "string",
                "default": ""
              },
              "body": {
                "type": "string",
                "default": ""
              },
              "followups": [
                "object"
              ]
            }
          ],
          {
            "type": "null"
          }
        ],
        "ai_objective": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "ai_fields": [
          [
            {
              "type": "string"
            }
          ],
          {
            "type": "null"
          }
        ],
        "emails_per_day": {
          "type": "integer",
          "default": 50
        },
        "interval_minutes": {
          "type": "integer",
          "default": 0
        },
        "interval_seconds": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "auto_reply_enabled": {
          "type": "boolean",
          "default": false
        },
        "followup_objectives": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "style_tune": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "min_reply_minutes": {
          "type": "integer",
          "default": 60
        },
        "max_reply_minutes": {
          "type": "integer",
          "default": 300
        },
        "track_opens": {
          "type": "boolean",
          "default": true
        },
        "track_clicks": {
          "type": "boolean",
          "default": true
        },
        "show_unsubscribe": {
          "type": "boolean",
          "default": false
        },
        "unsubscribe_text": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "attachment_ids": [
          [
            {
              "type": "integer"
            }
          ],
          {
            "type": "null"
          }
        ],
        "scheduled_start_at": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "schedule_config": [
          {
            "type": "object"
          },
          {
            "type": "null"
          }
        ],
        "timezone": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "connected_account_ids": [
          [
            {
              "type": "integer"
            }
          ],
          {
            "type": "null"
          }
        ],
        "whatsapp_template_id": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "whatsapp_integration_ids": [
          [
            {
              "type": "integer"
            }
          ],
          {
            "type": "null"
          }
        ],
        "ai_followups": [
          [
            {
              "type": "object"
            }
          ],
          {
            "type": "null"
          }
        ],
        "brand_id": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "id (required)": {
          "type": "integer"
        },
        "status (required)": {
          "type": "string",
          "enum": [
            "draft",
            "active",
            "paused",
            "paused_limit",
            "paused_by_user",
            "completed",
            "scheduled",
            "initializing",
            "deleted",
            "failed",
            "failed_init"
          ]
        },
        "status_message": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "user_id (required)": {
          "type": "integer"
        },
        "organization_id (required)": {
          "type": "integer"
        },
        "created_at (required)": {
          "type": "string"
        },
        "updated_at": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "subject": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "body": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "followups": [
          {
            "type": "object"
          }
        ],
        "attachments": [
          [
            {
              "filename (required)": {
                "type": "string"
              },
              "content_type": [
                "string",
                "null"
              ],
              "file_size": [
                "integer",
                "null"
              ],
              "id (required)": {
                "type": "integer"
              },
              "created_at (required)": {
                "type": "string"
              },
              "file_url": [
                "string",
                "null"
              ],
              "private_download_url": [
                "string",
                "null"
              ],
              "content_id": [
                "string",
                "null"
              ],
              "inline_url": [
                "string",
                "null"
              ]
            }
          ],
          {
            "type": "null"
          }
        ],
        "brand_name": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ]
      }
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/campaigns/{campaign_id}/emailscampaigns:read

List campaign emails

Required platform scope: `campaigns:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "campaign_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Campaign Id"
    }
  },
  {
    "name": "page",
    "in": "query",
    "required": false,
    "schema": {
      "type": "integer",
      "default": 1,
      "title": "Page"
    }
  },
  {
    "name": "size",
    "in": "query",
    "required": false,
    "schema": {
      "type": "integer",
      "default": 20,
      "title": "Size"
    }
  },
  {
    "name": "status",
    "in": "query",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Status"
    }
  },
  {
    "name": "engagement",
    "in": "query",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Engagement"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {
        "type": "object"
      }
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/email/sendemail:send

Send email

Required platform scope: `email:send`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Request: application/json

{
  "account_id (required)": {
    "type": "integer"
  },
  "to (required)": {
    "type": "string"
  },
  "subject (required)": {
    "type": "string"
  },
  "body (required)": {
    "type": "string"
  },
  "recipient_name": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "dataset_record_id": [
    {
      "type": "integer"
    },
    {
      "type": "null"
    }
  ],
  "scheduled_followups": [
    [
      {
        "delay_minutes (required)": {
          "type": "integer"
        },
        "subject": [
          "string",
          "null"
        ],
        "body (required)": {
          "type": "string"
        }
      }
    ],
    {
      "type": "null"
    }
  ],
  "test_mode": {
    "type": "boolean",
    "default": false
  },
  "auto_reply_enabled": {
    "type": "boolean",
    "default": false
  },
  "followup_objectives": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "style_tune": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "min_reply_minutes": [
    {
      "type": "integer"
    },
    {
      "type": "null"
    }
  ],
  "max_reply_minutes": [
    {
      "type": "integer"
    },
    {
      "type": "null"
    }
  ],
  "scheduled_at": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "track_opens": {
    "type": "boolean",
    "default": true
  },
  "track_clicks": {
    "type": "boolean",
    "default": true
  },
  "show_unsubscribe": {
    "type": "boolean",
    "default": false
  },
  "unsubscribe_text": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "attachment_ids": [
    [
      {
        "type": "integer"
      }
    ],
    {
      "type": "null"
    }
  ]
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {
        "type": "object"
      }
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/email/sentemail:read

Get sent emails

Required platform scope: `email:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "search",
    "in": "query",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Search"
    }
  },
  {
    "name": "label_id",
    "in": "query",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Label Id"
    }
  },
  {
    "name": "show_assigned",
    "in": "query",
    "required": false,
    "schema": {
      "type": "boolean",
      "default": false,
      "title": "Show Assigned"
    }
  },
  {
    "name": "needs_reply",
    "in": "query",
    "required": false,
    "schema": {
      "type": "boolean",
      "default": false,
      "title": "Needs Reply"
    }
  },
  {
    "name": "assigned_to_others",
    "in": "query",
    "required": false,
    "schema": {
      "type": "boolean",
      "default": false,
      "title": "Assigned To Others"
    }
  },
  {
    "name": "bounce_only",
    "in": "query",
    "required": false,
    "schema": {
      "type": "boolean",
      "default": false,
      "title": "Bounce Only"
    }
  },
  {
    "name": "view",
    "in": "query",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^(focus|waiting|done|junk)$"
        },
        {
          "type": "null"
        }
      ],
      "title": "View"
    }
  },
  {
    "name": "all_members",
    "in": "query",
    "required": false,
    "schema": {
      "type": "boolean",
      "default": false,
      "title": "All Members"
    }
  },
  {
    "name": "show_archived",
    "in": "query",
    "required": false,
    "schema": {
      "type": "boolean",
      "default": false,
      "title": "Show Archived"
    }
  },
  {
    "name": "show_deleted",
    "in": "query",
    "required": false,
    "schema": {
      "type": "boolean",
      "default": false,
      "title": "Show Deleted"
    }
  },
  {
    "name": "page",
    "in": "query",
    "required": false,
    "schema": {
      "type": "integer",
      "default": 1,
      "title": "Page"
    }
  },
  {
    "name": "size",
    "in": "query",
    "required": false,
    "schema": {
      "type": "integer",
      "default": 20,
      "title": "Size"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {
        "items (required)": [
          {
            "id (required)": {
              "type": "integer"
            },
            "message_id (required)": {
              "type": "string"
            },
            "subject (required)": {
              "type": "string"
            },
            "recipient_email (required)": {
              "type": "string"
            },
            "recipient_name (required)": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "body (required)": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "snippet": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "sent_at (required)": {
              "type": "string"
            },
            "opened (required)": {
              "type": "boolean"
            },
            "opened_at (required)": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "replied (required)": {
              "type": "boolean"
            },
            "reply_count (required)": {
              "type": "integer"
            },
            "last_reply_at (required)": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "is_reply_needed": {
              "type": "boolean",
              "default": false
            },
            "is_ai_intervention_needed": {
              "type": "boolean",
              "default": false
            },
            "ai_intervention_reason": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "is_unsubscribed": {
              "type": "boolean",
              "default": false
            },
            "is_read (required)": {
              "type": "boolean"
            },
            "is_archived": {
              "type": "boolean",
              "default": false
            },
            "is_deleted": {
              "type": "boolean",
              "default": false
            },
            "is_bounce": {
              "type": "boolean",
              "default": false
            },
            "bounced_at": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "assigned_to_id (required)": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "assigned_user_email": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "sender_email": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "sender_name": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "sender_signature": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "template_variant_index": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "template_variant_label": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "source_template_id": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "labels": [
              {
                "id (required)": "integer",
                "name (required)": "string",
                "color (required)": "string",
                "source": "object",
                "description": "object"
              }
            ],
            "ai_placement": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "ai_needs_reply": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "ai_intent": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "ai_reason": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "ai_confidence": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "placement_source": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "ai_sorted_at": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "auto_organized": {
              "type": "boolean",
              "default": false
            },
            "auto_reply_enabled": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "brand_id": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "brand_name": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "followup_objectives": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "style_tune": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "min_reply_minutes": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "max_reply_minutes": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "track_opens": {
              "type": "boolean",
              "default": true
            },
            "track_clicks": {
              "type": "boolean",
              "default": true
            },
            "show_unsubscribe": {
              "type": "boolean",
              "default": false
            },
            "unsubscribe_text": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "attachments": [
              {
                "filename (required)": "string",
                "content_type": "object",
                "file_size": "object",
                "id (required)": "integer",
                "created_at (required)": "string",
                "file_url": "object",
                "private_download_url": "object",
                "content_id": "object",
                "inline_url": "object"
              }
            ]
          }
        ],
        "total (required)": {
          "type": "integer"
        },
        "page (required)": {
          "type": "integer"
        },
        "size (required)": {
          "type": "integer"
        },
        "pages (required)": {
          "type": "integer"
        }
      }
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/email/countsemail:read

Get email counts

Required platform scope: `email:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "all_members",
    "in": "query",
    "required": false,
    "schema": {
      "type": "boolean",
      "default": false,
      "title": "All Members"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/email/sent/{email_id}/reademail:write

Mark email read

Required platform scope: `email:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "email_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Email Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/email/sent/{email_id}/assignemail:write

Assign email

Required platform scope: `email:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "email_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Email Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Request: application/json

{
  "user_id (required)": {
    "type": "integer"
  }
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/email/sent/{email_id}/dismiss-replyemail:write

Dismiss reply

Required platform scope: `email:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "email_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Email Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/email/sent/{email_id}/archiveemail:write

Archive email

Required platform scope: `email:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "email_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Email Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/email/sent/{email_id}/deleteemail:write

Delete email

Required platform scope: `email:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "email_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Email Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
PATCH/email/sent/{email_id}/settingsemail:write

Update email settings

Required platform scope: `email:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "email_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Email Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Request: application/json

{
  "type": "object"
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/email/sent/{email_id}email:read

Get sent email details

Required platform scope: `email:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "email_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Email Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {
        "email (required)": {
          "id (required)": {
            "type": "integer"
          },
          "message_id (required)": {
            "type": "string"
          },
          "subject (required)": {
            "type": "string"
          },
          "recipient_email (required)": {
            "type": "string"
          },
          "recipient_name (required)": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "body (required)": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "snippet": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "sent_at (required)": {
            "type": "string"
          },
          "opened (required)": {
            "type": "boolean"
          },
          "opened_at (required)": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "replied (required)": {
            "type": "boolean"
          },
          "reply_count (required)": {
            "type": "integer"
          },
          "last_reply_at (required)": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "is_reply_needed": {
            "type": "boolean",
            "default": false
          },
          "is_ai_intervention_needed": {
            "type": "boolean",
            "default": false
          },
          "ai_intervention_reason": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "is_unsubscribed": {
            "type": "boolean",
            "default": false
          },
          "is_read (required)": {
            "type": "boolean"
          },
          "is_archived": {
            "type": "boolean",
            "default": false
          },
          "is_deleted": {
            "type": "boolean",
            "default": false
          },
          "is_bounce": {
            "type": "boolean",
            "default": false
          },
          "bounced_at": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "assigned_to_id (required)": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "assigned_user_email": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "sender_email": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "sender_name": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "sender_signature": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "template_variant_index": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "template_variant_label": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "source_template_id": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "labels": [
            {
              "id (required)": {
                "type": "integer"
              },
              "name (required)": {
                "type": "string"
              },
              "color (required)": {
                "type": "string"
              },
              "source": [
                "string",
                "null"
              ],
              "description": [
                "string",
                "null"
              ]
            }
          ],
          "ai_placement": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "ai_needs_reply": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "ai_intent": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "ai_reason": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "ai_confidence": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "placement_source": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "ai_sorted_at": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "auto_organized": {
            "type": "boolean",
            "default": false
          },
          "auto_reply_enabled": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "brand_id": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "brand_name": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "followup_objectives": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "style_tune": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "min_reply_minutes": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "max_reply_minutes": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "track_opens": {
            "type": "boolean",
            "default": true
          },
          "track_clicks": {
            "type": "boolean",
            "default": true
          },
          "show_unsubscribe": {
            "type": "boolean",
            "default": false
          },
          "unsubscribe_text": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "attachments": [
            {
              "filename (required)": {
                "type": "string"
              },
              "content_type": [
                "string",
                "null"
              ],
              "file_size": [
                "integer",
                "null"
              ],
              "id (required)": {
                "type": "integer"
              },
              "created_at (required)": {
                "type": "string"
              },
              "file_url": [
                "string",
                "null"
              ],
              "private_download_url": [
                "string",
                "null"
              ],
              "content_id": [
                "string",
                "null"
              ],
              "inline_url": [
                "string",
                "null"
              ]
            }
          ]
        },
        "tracking_events (required)": [
          {
            "id (required)": {
              "type": "integer"
            },
            "event_type (required)": {
              "type": "string"
            },
            "event_data (required)": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "ip_address (required)": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "user_agent (required)": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "timestamp (required)": {
              "type": "string"
            }
          }
        ]
      }
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/email/thread/{email_id}email:read

Get thread history

Fetches all messages in an email thread from our local database, verified by organization scoping. Required platform scope: `email:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "email_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Email Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {
        "email_details (required)": {
          "id (required)": {
            "type": "integer"
          },
          "message_id (required)": {
            "type": "string"
          },
          "subject (required)": {
            "type": "string"
          },
          "recipient_email (required)": {
            "type": "string"
          },
          "recipient_name (required)": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "body (required)": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "snippet": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "sent_at (required)": {
            "type": "string"
          },
          "opened (required)": {
            "type": "boolean"
          },
          "opened_at (required)": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "replied (required)": {
            "type": "boolean"
          },
          "reply_count (required)": {
            "type": "integer"
          },
          "last_reply_at (required)": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "is_reply_needed": {
            "type": "boolean",
            "default": false
          },
          "is_ai_intervention_needed": {
            "type": "boolean",
            "default": false
          },
          "ai_intervention_reason": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "is_unsubscribed": {
            "type": "boolean",
            "default": false
          },
          "is_read (required)": {
            "type": "boolean"
          },
          "is_archived": {
            "type": "boolean",
            "default": false
          },
          "is_deleted": {
            "type": "boolean",
            "default": false
          },
          "is_bounce": {
            "type": "boolean",
            "default": false
          },
          "bounced_at": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "assigned_to_id (required)": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "assigned_user_email": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "sender_email": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "sender_name": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "sender_signature": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "template_variant_index": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "template_variant_label": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "source_template_id": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "labels": [
            {
              "id (required)": {
                "type": "integer"
              },
              "name (required)": {
                "type": "string"
              },
              "color (required)": {
                "type": "string"
              },
              "source": [
                "string",
                "null"
              ],
              "description": [
                "string",
                "null"
              ]
            }
          ],
          "ai_placement": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "ai_needs_reply": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "ai_intent": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "ai_reason": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "ai_confidence": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "placement_source": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "ai_sorted_at": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "auto_organized": {
            "type": "boolean",
            "default": false
          },
          "auto_reply_enabled": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "brand_id": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "brand_name": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "followup_objectives": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "style_tune": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "min_reply_minutes": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "max_reply_minutes": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "track_opens": {
            "type": "boolean",
            "default": true
          },
          "track_clicks": {
            "type": "boolean",
            "default": true
          },
          "show_unsubscribe": {
            "type": "boolean",
            "default": false
          },
          "unsubscribe_text": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "attachments": [
            {
              "filename (required)": {
                "type": "string"
              },
              "content_type": [
                "string",
                "null"
              ],
              "file_size": [
                "integer",
                "null"
              ],
              "id (required)": {
                "type": "integer"
              },
              "created_at (required)": {
                "type": "string"
              },
              "file_url": [
                "string",
                "null"
              ],
              "private_download_url": [
                "string",
                "null"
              ],
              "content_id": [
                "string",
                "null"
              ],
              "inline_url": [
                "string",
                "null"
              ]
            }
          ]
        },
        "messages (required)": [
          {
            "id (required)": {
              "type": "integer"
            },
            "subject (required)": {
              "type": "string"
            },
            "from_email (required)": {
              "type": "string"
            },
            "from_name (required)": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "to_email (required)": {
              "type": "string"
            },
            "body_text (required)": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "body_html (required)": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "is_from_me (required)": {
              "type": "boolean"
            },
            "received_at (required)": {
              "type": "string"
            },
            "attachments": [
              {
                "filename (required)": "string",
                "content_type": "object",
                "file_size": "object",
                "id (required)": "integer",
                "created_at (required)": "string",
                "file_url": "object",
                "private_download_url": "object",
                "content_id": "object",
                "inline_url": "object"
              }
            ],
            "engagement": [
              {
                "track_opens": "boolean",
                "track_clicks": "boolean",
                "available": "boolean",
                "open_count": "integer",
                "click_count": "integer",
                "automated_click_count": "integer",
                "first_opened_at": "object",
                "last_opened_at": "object",
                "first_clicked_at": "object",
                "last_clicked_at": "object",
                "links": "array",
                "has_legacy_activity": "boolean"
              },
              {
                "type": "null"
              }
            ]
          }
        ],
        "engagement": [
          {
            "track_opens": {
              "type": "boolean",
              "default": true
            },
            "track_clicks": {
              "type": "boolean",
              "default": true
            },
            "available": {
              "type": "boolean",
              "default": false
            },
            "open_count": {
              "type": "integer",
              "default": 0
            },
            "click_count": {
              "type": "integer",
              "default": 0
            },
            "automated_click_count": {
              "type": "integer",
              "default": 0
            },
            "first_opened_at": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "last_opened_at": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "first_clicked_at": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "last_clicked_at": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "links": [
              {
                "url (required)": "string",
                "clicks": "integer",
                "automated_clicks": "integer",
                "first_clicked_at": "object",
                "last_clicked_at": "object"
              }
            ],
            "has_legacy_activity": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "type": "null"
          }
        ]
      }
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/email/reply/{email_id}email:send

Reply to email

Required platform scope: `email:send`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "email_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Email Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Request: application/json

{
  "body (required)": {
    "type": "string"
  },
  "scheduled_at": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "followups": [
    [
      {
        "delay_minutes (required)": {
          "type": "integer"
        },
        "subject": [
          "string",
          "null"
        ],
        "body (required)": {
          "type": "string"
        }
      }
    ],
    {
      "type": "null"
    }
  ],
  "show_unsubscribe": {
    "type": "boolean",
    "default": false
  },
  "unsubscribe_text": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "attachment_ids": [
    [
      {
        "type": "integer"
      }
    ],
    {
      "type": "null"
    }
  ]
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/email/contact-historyemail:read

Get contact history

Fetches email threads for a contact, securely scoped by organization. Supports 'individual' (current user's accounts) and 'org' (entire organization) views. Required platform scope: `email:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "email",
    "in": "query",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Email"
    }
  },
  {
    "name": "scope",
    "in": "query",
    "required": false,
    "schema": {
      "type": "string",
      "default": "individual",
      "title": "Scope"
    }
  },
  {
    "name": "page",
    "in": "query",
    "required": false,
    "schema": {
      "type": "integer",
      "default": 1,
      "title": "Page"
    }
  },
  {
    "name": "size",
    "in": "query",
    "required": false,
    "schema": {
      "type": "integer",
      "default": 10,
      "title": "Size"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {
        "items (required)": [
          {
            "email_details (required)": {
              "id (required)": {
                "type": "integer"
              },
              "message_id (required)": {
                "type": "string"
              },
              "subject (required)": {
                "type": "string"
              },
              "recipient_email (required)": {
                "type": "string"
              },
              "recipient_name (required)": [
                "string",
                "null"
              ],
              "body (required)": [
                "string",
                "null"
              ],
              "snippet": [
                "string",
                "null"
              ],
              "sent_at (required)": {
                "type": "string"
              },
              "opened (required)": {
                "type": "boolean"
              },
              "opened_at (required)": [
                "string",
                "null"
              ],
              "replied (required)": {
                "type": "boolean"
              },
              "reply_count (required)": {
                "type": "integer"
              },
              "last_reply_at (required)": [
                "string",
                "null"
              ],
              "is_reply_needed": {
                "type": "boolean",
                "default": false
              },
              "is_ai_intervention_needed": {
                "type": "boolean",
                "default": false
              },
              "ai_intervention_reason": [
                "string",
                "null"
              ],
              "is_unsubscribed": {
                "type": "boolean",
                "default": false
              },
              "is_read (required)": {
                "type": "boolean"
              },
              "is_archived": {
                "type": "boolean",
                "default": false
              },
              "is_deleted": {
                "type": "boolean",
                "default": false
              },
              "is_bounce": {
                "type": "boolean",
                "default": false
              },
              "bounced_at": [
                "string",
                "null"
              ],
              "assigned_to_id (required)": [
                "integer",
                "null"
              ],
              "assigned_user_email": [
                "string",
                "null"
              ],
              "sender_email": [
                "string",
                "null"
              ],
              "sender_name": [
                "string",
                "null"
              ],
              "sender_signature": [
                "string",
                "null"
              ],
              "template_variant_index": [
                "integer",
                "null"
              ],
              "template_variant_label": [
                "string",
                "null"
              ],
              "source_template_id": [
                "integer",
                "null"
              ],
              "labels": [
                "object"
              ],
              "ai_placement": [
                "string",
                "null"
              ],
              "ai_needs_reply": [
                "boolean",
                "null"
              ],
              "ai_intent": [
                "string",
                "null"
              ],
              "ai_reason": [
                "string",
                "null"
              ],
              "ai_confidence": [
                "number",
                "null"
              ],
              "placement_source": [
                "string",
                "null"
              ],
              "ai_sorted_at": [
                "string",
                "null"
              ],
              "auto_organized": {
                "type": "boolean",
                "default": false
              },
              "auto_reply_enabled": [
                "boolean",
                "null"
              ],
              "brand_id": [
                "integer",
                "null"
              ],
              "brand_name": [
                "string",
                "null"
              ],
              "followup_objectives": [
                "string",
                "null"
              ],
              "style_tune": [
                "string",
                "null"
              ],
              "min_reply_minutes": [
                "integer",
                "null"
              ],
              "max_reply_minutes": [
                "integer",
                "null"
              ],
              "track_opens": {
                "type": "boolean",
                "default": true
              },
              "track_clicks": {
                "type": "boolean",
                "default": true
              },
              "show_unsubscribe": {
                "type": "boolean",
                "default": false
              },
              "unsubscribe_text": [
                "string",
                "null"
              ],
              "attachments": [
                "object"
              ]
            },
            "messages (required)": [
              {
                "id (required)": "integer",
                "subject (required)": "string",
                "from_email (required)": "string",
                "from_name (required)": "object",
                "to_email (required)": "string",
                "body_text (required)": "object",
                "body_html (required)": "object",
                "is_from_me (required)": "boolean",
                "received_at (required)": "string",
                "attachments": "array",
                "engagement": "object"
              }
            ],
            "engagement": [
              {
                "track_opens": "boolean",
                "track_clicks": "boolean",
                "available": "boolean",
                "open_count": "integer",
                "click_count": "integer",
                "automated_click_count": "integer",
                "first_opened_at": "object",
                "last_opened_at": "object",
                "first_clicked_at": "object",
                "last_clicked_at": "object",
                "links": "array",
                "has_legacy_activity": "boolean"
              },
              {
                "type": "null"
              }
            ]
          }
        ],
        "total (required)": {
          "type": "integer"
        },
        "page (required)": {
          "type": "integer"
        },
        "size (required)": {
          "type": "integer"
        },
        "pages (required)": {
          "type": "integer"
        },
        "total_opens": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "total_replies": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ]
      }
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/email/accountsaccounts:read

List connected accounts

Required platform scope: `accounts:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "include_inactive",
    "in": "query",
    "required": false,
    "schema": {
      "type": "boolean",
      "default": false,
      "title": "Include Inactive"
    }
  },
  {
    "name": "all_members",
    "in": "query",
    "required": false,
    "schema": {
      "type": "boolean",
      "default": false,
      "title": "All Members"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
PATCH/email/accounts/{account_id}/statusaccounts:write

Toggle account status

Required platform scope: `accounts:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "account_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Account Id"
    }
  },
  {
    "name": "status",
    "in": "query",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Status"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
PATCH/email/accounts/{account_id}accounts:write

Update account settings

Required platform scope: `accounts:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "account_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Account Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Request: application/json

{
  "type": "object"
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/email/accounts/{account_id}/send-asaccounts:read

Get account send as options

Required platform scope: `accounts:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "account_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Account Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/scheduled-emailsemail:read

Get scheduled emails

Required platform scope: `email:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "page",
    "in": "query",
    "required": false,
    "schema": {
      "type": "integer",
      "minimum": 1,
      "default": 1,
      "title": "Page"
    }
  },
  {
    "name": "page_size",
    "in": "query",
    "required": false,
    "schema": {
      "type": "integer",
      "maximum": 100,
      "minimum": 1,
      "default": 20,
      "title": "Page Size"
    }
  },
  {
    "name": "search",
    "in": "query",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Search"
    }
  },
  {
    "name": "sent_email_id",
    "in": "query",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Sent Email Id"
    }
  },
  {
    "name": "account_id",
    "in": "query",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Account Id"
    }
  },
  {
    "name": "all_members",
    "in": "query",
    "required": false,
    "schema": {
      "type": "boolean",
      "default": false,
      "title": "All Members"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {
        "type": "object"
      }
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
DELETE/scheduled-emails/{schedule_id}email:write

Delete scheduled email

Required platform scope: `email:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "schedule_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Schedule Id"
    }
  },
  {
    "name": "type",
    "in": "query",
    "required": false,
    "schema": {
      "type": "string",
      "default": "followup",
      "title": "Type"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
PUT/scheduled-emails/{schedule_id}email:write

Update scheduled email

Required platform scope: `email:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "schedule_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Schedule Id"
    }
  },
  {
    "name": "type",
    "in": "query",
    "required": false,
    "schema": {
      "type": "string",
      "default": "followup",
      "title": "Type"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Request: application/json

{
  "subject": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "body": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "scheduled_at": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ]
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/templatestemplates:write

Create template

Required platform scope: `templates:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Request: application/json

{
  "name (required)": {
    "type": "string"
  },
  "subject": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "body": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "dataset_id": [
    {
      "type": "integer"
    },
    {
      "type": "null"
    }
  ],
  "followups": [
    [
      {
        "type": "object"
      }
    ],
    {
      "type": "null"
    }
  ],
  "template_variants": [
    [
      {
        "source_template_id": [
          "integer",
          "null"
        ],
        "label (required)": {
          "type": "string"
        },
        "subject": {
          "type": "string",
          "default": ""
        },
        "body": {
          "type": "string",
          "default": ""
        },
        "followups": [
          "object"
        ]
      }
    ],
    {
      "type": "null"
    }
  ],
  "attachment_ids": [
    [
      {
        "type": "integer"
      }
    ],
    {
      "type": "null"
    }
  ]
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {
        "name (required)": {
          "type": "string"
        },
        "subject": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "body": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "dataset_id": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "followups": [
          [
            {
              "type": "object"
            }
          ],
          {
            "type": "null"
          }
        ],
        "template_variants": [
          [
            {
              "source_template_id": [
                "integer",
                "null"
              ],
              "label (required)": {
                "type": "string"
              },
              "subject": {
                "type": "string",
                "default": ""
              },
              "body": {
                "type": "string",
                "default": ""
              },
              "followups": [
                "object"
              ]
            }
          ],
          {
            "type": "null"
          }
        ],
        "attachment_ids": [
          [
            {
              "type": "integer"
            }
          ],
          {
            "type": "null"
          }
        ],
        "id (required)": {
          "type": "integer"
        },
        "organization_id (required)": {
          "type": "integer"
        },
        "created_at (required)": {
          "type": "string"
        },
        "attachments": [
          [
            {
              "filename (required)": {
                "type": "string"
              },
              "content_type": [
                "string",
                "null"
              ],
              "file_size": [
                "integer",
                "null"
              ],
              "id (required)": {
                "type": "integer"
              },
              "created_at (required)": {
                "type": "string"
              },
              "file_url": [
                "string",
                "null"
              ],
              "private_download_url": [
                "string",
                "null"
              ],
              "content_id": [
                "string",
                "null"
              ],
              "inline_url": [
                "string",
                "null"
              ]
            }
          ],
          {
            "type": "null"
          }
        ]
      }
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/templatestemplates:read

List templates

Required platform scope: `templates:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "all_members",
    "in": "query",
    "required": false,
    "schema": {
      "type": "boolean",
      "default": false,
      "title": "All Members"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": [
        {
          "name (required)": {
            "type": "string"
          },
          "subject": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "body": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "dataset_id": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "followups": [
            [
              {
                "type": "object"
              }
            ],
            {
              "type": "null"
            }
          ],
          "template_variants": [
            [
              {
                "source_template_id": "object",
                "label (required)": "string",
                "subject": "string",
                "body": "string",
                "followups": "array"
              }
            ],
            {
              "type": "null"
            }
          ],
          "attachment_ids": [
            [
              {
                "type": "integer"
              }
            ],
            {
              "type": "null"
            }
          ],
          "id (required)": {
            "type": "integer"
          },
          "organization_id (required)": {
            "type": "integer"
          },
          "created_at (required)": {
            "type": "string"
          },
          "attachments": [
            [
              {
                "filename (required)": "string",
                "content_type": "object",
                "file_size": "object",
                "id (required)": "integer",
                "created_at (required)": "string",
                "file_url": "object",
                "private_download_url": "object",
                "content_id": "object",
                "inline_url": "object"
              }
            ],
            {
              "type": "null"
            }
          ]
        }
      ]
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/templates/{template_id}templates:read

Get template

Required platform scope: `templates:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "template_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Template Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {
        "name (required)": {
          "type": "string"
        },
        "subject": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "body": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "dataset_id": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "followups": [
          [
            {
              "type": "object"
            }
          ],
          {
            "type": "null"
          }
        ],
        "template_variants": [
          [
            {
              "source_template_id": [
                "integer",
                "null"
              ],
              "label (required)": {
                "type": "string"
              },
              "subject": {
                "type": "string",
                "default": ""
              },
              "body": {
                "type": "string",
                "default": ""
              },
              "followups": [
                "object"
              ]
            }
          ],
          {
            "type": "null"
          }
        ],
        "attachment_ids": [
          [
            {
              "type": "integer"
            }
          ],
          {
            "type": "null"
          }
        ],
        "id (required)": {
          "type": "integer"
        },
        "organization_id (required)": {
          "type": "integer"
        },
        "created_at (required)": {
          "type": "string"
        },
        "attachments": [
          [
            {
              "filename (required)": {
                "type": "string"
              },
              "content_type": [
                "string",
                "null"
              ],
              "file_size": [
                "integer",
                "null"
              ],
              "id (required)": {
                "type": "integer"
              },
              "created_at (required)": {
                "type": "string"
              },
              "file_url": [
                "string",
                "null"
              ],
              "private_download_url": [
                "string",
                "null"
              ],
              "content_id": [
                "string",
                "null"
              ],
              "inline_url": [
                "string",
                "null"
              ]
            }
          ],
          {
            "type": "null"
          }
        ]
      }
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
PUT/templates/{template_id}templates:write

Update template

Required platform scope: `templates:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "template_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Template Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Request: application/json

{
  "name": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "subject": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "body": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "dataset_id": [
    {
      "type": "integer"
    },
    {
      "type": "null"
    }
  ],
  "followups": [
    [
      {
        "type": "object"
      }
    ],
    {
      "type": "null"
    }
  ],
  "template_variants": [
    [
      {
        "source_template_id": [
          "integer",
          "null"
        ],
        "label (required)": {
          "type": "string"
        },
        "subject": {
          "type": "string",
          "default": ""
        },
        "body": {
          "type": "string",
          "default": ""
        },
        "followups": [
          "object"
        ]
      }
    ],
    {
      "type": "null"
    }
  ],
  "attachment_ids": [
    [
      {
        "type": "integer"
      }
    ],
    {
      "type": "null"
    }
  ]
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {
        "name (required)": {
          "type": "string"
        },
        "subject": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "body": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "dataset_id": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "followups": [
          [
            {
              "type": "object"
            }
          ],
          {
            "type": "null"
          }
        ],
        "template_variants": [
          [
            {
              "source_template_id": [
                "integer",
                "null"
              ],
              "label (required)": {
                "type": "string"
              },
              "subject": {
                "type": "string",
                "default": ""
              },
              "body": {
                "type": "string",
                "default": ""
              },
              "followups": [
                "object"
              ]
            }
          ],
          {
            "type": "null"
          }
        ],
        "attachment_ids": [
          [
            {
              "type": "integer"
            }
          ],
          {
            "type": "null"
          }
        ],
        "id (required)": {
          "type": "integer"
        },
        "organization_id (required)": {
          "type": "integer"
        },
        "created_at (required)": {
          "type": "string"
        },
        "attachments": [
          [
            {
              "filename (required)": {
                "type": "string"
              },
              "content_type": [
                "string",
                "null"
              ],
              "file_size": [
                "integer",
                "null"
              ],
              "id (required)": {
                "type": "integer"
              },
              "created_at (required)": {
                "type": "string"
              },
              "file_url": [
                "string",
                "null"
              ],
              "private_download_url": [
                "string",
                "null"
              ],
              "content_id": [
                "string",
                "null"
              ],
              "inline_url": [
                "string",
                "null"
              ]
            }
          ],
          {
            "type": "null"
          }
        ]
      }
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
DELETE/templates/{template_id}templates:write

Delete template

Required platform scope: `templates:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "template_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Template Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/attachments/uploadmedia:write

Upload attachment

Required platform scope: `media:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "campaign_id",
    "in": "query",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Campaign Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Request: multipart/form-data

{
  "file (required)": {
    "type": "string"
  }
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {
        "filename (required)": {
          "type": "string"
        },
        "content_type": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "file_size": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "id (required)": {
          "type": "integer"
        },
        "created_at (required)": {
          "type": "string"
        },
        "file_url": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "private_download_url": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "content_id": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "inline_url": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ]
      }
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/attachments/{attachment_id}media:read

Get attachment

Required platform scope: `media:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "attachment_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Attachment Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {
        "filename (required)": {
          "type": "string"
        },
        "content_type": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "file_size": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "id (required)": {
          "type": "integer"
        },
        "created_at (required)": {
          "type": "string"
        },
        "file_url": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "private_download_url": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "content_id": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "inline_url": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ]
      }
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/attachments/{attachment_id}/downloadmedia:read

Download attachment

Required platform scope: `media:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "attachment_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Attachment Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/brandbrand:read

Get brand

Required platform scope: `brand:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {
        "id (required)": {
          "type": "integer"
        },
        "name (required)": {
          "type": "string"
        },
        "business_types (required)": [
          {
            "type": "string"
          }
        ],
        "custom_business_category (required)": {
          "type": "string"
        },
        "identity (required)": {
          "type": "string"
        },
        "offerings (required)": {
          "type": "string"
        },
        "voice (required)": {
          "type": "string"
        },
        "guided_data": [
          {
            "type": "object"
          },
          {
            "type": "null"
          }
        ],
        "design_data": [
          {
            "type": "object"
          },
          {
            "type": "null"
          }
        ],
        "faq (required)": {
          "type": "string"
        },
        "policies (required)": {
          "type": "string"
        },
        "brand_context (required)": {
          "type": "string"
        },
        "organization_id (required)": {
          "type": "integer"
        },
        "user_id (required)": {
          "type": "integer"
        },
        "created_at (required)": {
          "type": "string"
        },
        "updated_at": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ]
      }
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
PUT/brandbrand:write

Update brand

Required platform scope: `brand:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Request: application/json

{
  "name": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "business_types": [
    [
      {
        "type": "string"
      }
    ],
    {
      "type": "null"
    }
  ],
  "custom_business_category": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "identity": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "offerings": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "voice": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "guided_data": [
    {
      "type": "object"
    },
    {
      "type": "null"
    }
  ],
  "design_data": [
    {
      "type": "object"
    },
    {
      "type": "null"
    }
  ],
  "faq": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "policies": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ]
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {
        "id (required)": {
          "type": "integer"
        },
        "name (required)": {
          "type": "string"
        },
        "business_types (required)": [
          {
            "type": "string"
          }
        ],
        "custom_business_category (required)": {
          "type": "string"
        },
        "identity (required)": {
          "type": "string"
        },
        "offerings (required)": {
          "type": "string"
        },
        "voice (required)": {
          "type": "string"
        },
        "guided_data": [
          {
            "type": "object"
          },
          {
            "type": "null"
          }
        ],
        "design_data": [
          {
            "type": "object"
          },
          {
            "type": "null"
          }
        ],
        "faq (required)": {
          "type": "string"
        },
        "policies (required)": {
          "type": "string"
        },
        "brand_context (required)": {
          "type": "string"
        },
        "organization_id (required)": {
          "type": "integer"
        },
        "user_id (required)": {
          "type": "integer"
        },
        "created_at (required)": {
          "type": "string"
        },
        "updated_at": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ]
      }
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/inbox-labelsinbox:read

List labels

Every label, with how many conversations carry it in each inbox. Required platform scope: `inbox:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/inbox-labelsinbox:write

Create label

Creates a label, or hands back the one with that name. Idempotent because the pickers create as you type: asking twice for "Refund" has to give the same label back, not a second one that looks identical and filters differently. Required platform scope: `inbox:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Request: application/json

{
  "name (required)": {
    "type": "string"
  },
  "color": {
    "type": "string",
    "default": "#6366f1"
  }
}

Responses

{
  "201": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
PATCH/inbox-labels/{label_id}inbox:write

Update label

Required platform scope: `inbox:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "label_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Label Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Request: application/json

{
  "name": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "color": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ]
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
DELETE/inbox-labels/{label_id}inbox:write

Delete label

Removes a label from every inbox at once. Links cascade. Required platform scope: `inbox:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "label_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Label Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/inbox-labels/items/{item_type}/{item_id}inbox:read

Labels on item

Required platform scope: `inbox:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "item_type",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Item Type"
    }
  },
  {
    "name": "item_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Item Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
PUT/inbox-labels/items/{item_type}/{item_id}inbox:write

Set labels on item

Replaces an item's labels with exactly the ids given. Required platform scope: `inbox:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "item_type",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Item Type"
    }
  },
  {
    "name": "item_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Item Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Request: application/json

{
  "label_ids": [
    {
      "type": "integer"
    }
  ]
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/inbox-labels/{label_id}/itemsinbox:read

Items with label

Everything carrying this label, across every inbox. The point of one shared label set: a row from each inbox in one list, newest first, each saying where it came from so the client can link back to it. Required platform scope: `inbox:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "label_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Label Id"
    }
  },
  {
    "name": "item_type",
    "in": "query",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Limit to one inbox: email, whatsapp or social.",
      "title": "Item Type"
    },
    "description": "Limit to one inbox: email, whatsapp or social."
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/social/accountsaccounts:read

List social accounts

Every account the workspace has connected - any number per platform. Expired connections are included (they need a reconnect, and the UI says so); disconnected ones are not, unless asked for. Required platform scope: `accounts:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "platform",
    "in": "query",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Platform"
    }
  },
  {
    "name": "include_disconnected",
    "in": "query",
    "required": false,
    "schema": {
      "type": "boolean",
      "description": "Also return accounts the workspace disconnected. They keep their post history.",
      "default": false,
      "title": "Include Disconnected"
    },
    "description": "Also return accounts the workspace disconnected. They keep their post history."
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": [
        {
          "platform (required)": {
            "type": "string"
          },
          "account_name (required)": {
            "type": "string"
          },
          "account_handle": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "avatar_url": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "id (required)": {
            "type": "integer"
          },
          "organization_id (required)": {
            "type": "integer"
          },
          "connected_by_user_id": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "platform_account_id (required)": {
            "type": "string"
          },
          "connection_status": {
            "type": "string",
            "default": "connected"
          },
          "is_active": {
            "type": "boolean",
            "default": true
          },
          "token_expires_at": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "created_at (required)": {
            "type": "string"
          },
          "updated_at (required)": {
            "type": "string"
          }
        }
      ]
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
PATCH/social/accounts/{account_id}accounts:write

Update social account

Required platform scope: `accounts:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "account_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Account Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Request: application/json

{
  "account_name": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "account_handle": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "avatar_url": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "is_active": [
    {
      "type": "boolean"
    },
    {
      "type": "null"
    }
  ],
  "connection_status": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ]
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {
        "platform (required)": {
          "type": "string"
        },
        "account_name (required)": {
          "type": "string"
        },
        "account_handle": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "avatar_url": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "id (required)": {
          "type": "integer"
        },
        "organization_id (required)": {
          "type": "integer"
        },
        "connected_by_user_id": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "platform_account_id (required)": {
          "type": "string"
        },
        "connection_status": {
          "type": "string",
          "default": "connected"
        },
        "is_active": {
          "type": "boolean",
          "default": true
        },
        "token_expires_at": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "created_at (required)": {
          "type": "string"
        },
        "updated_at (required)": {
          "type": "string"
        }
      }
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/social/accounts/{account_id}/syncaccounts:read

Get account sync status

Required platform scope: `accounts:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "account_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Account Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/social/accounts/{account_id}/syncaccounts:write

Request account sync

Resume failed work, or explicitly restart an import with a selected range. Required platform scope: `accounts:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "account_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Account Id"
    }
  },
  {
    "name": "days",
    "in": "query",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "integer",
          "maximum": 3650,
          "minimum": 1
        },
        {
          "type": "null"
        }
      ],
      "title": "Days"
    }
  },
  {
    "name": "restart",
    "in": "query",
    "required": false,
    "schema": {
      "type": "boolean",
      "default": false,
      "title": "Restart"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "202": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/social/postssocial:read

List social posts

Lists the composer's posts, optionally windowed to what a calendar is showing. The calendar asks for one month or week at a time, so the window is applied in SQL rather than by fetching the whole history and filtering in the browser - an account with a year of posts would otherwise ship all of it to render a single week. The window is matched against the time a post actually occupies on the calendar: `scheduled_at` while it is still waiting, `published_at` once it has gone out. Matching only one of the two dropped sent posts out of the month they were sent in. Required platform scope: `social:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "status",
    "in": "query",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "One status, or several comma-separated (draft,scheduled,published,failed).",
      "title": "Status"
    },
    "description": "One status, or several comma-separated (draft,scheduled,published,failed)."
  },
  {
    "name": "from",
    "in": "query",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "description": "Only posts landing at or after this instant.",
      "title": "From"
    },
    "description": "Only posts landing at or after this instant."
  },
  {
    "name": "to",
    "in": "query",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "description": "Only posts landing strictly before this instant.",
      "title": "To"
    },
    "description": "Only posts landing strictly before this instant."
  },
  {
    "name": "kind",
    "in": "query",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "`post` for posts only, `idea` for calendar ideas only; both when omitted.",
      "title": "Kind"
    },
    "description": "`post` for posts only, `idea` for calendar ideas only; both when omitted."
  },
  {
    "name": "account_ids",
    "in": "query",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Comma-separated account ids: only posts going to at least one of them. Ideas are not filtered.",
      "title": "Account Ids"
    },
    "description": "Comma-separated account ids: only posts going to at least one of them. Ideas are not filtered."
  },
  {
    "name": "sort",
    "in": "query",
    "required": false,
    "schema": {
      "type": "string",
      "pattern": "^(calendar|updated)$",
      "default": "calendar",
      "title": "Sort"
    }
  },
  {
    "name": "order",
    "in": "query",
    "required": false,
    "schema": {
      "type": "string",
      "pattern": "^(asc|desc)$",
      "default": "asc",
      "title": "Order"
    }
  },
  {
    "name": "offset",
    "in": "query",
    "required": false,
    "schema": {
      "type": "integer",
      "minimum": 0,
      "default": 0,
      "title": "Offset"
    }
  },
  {
    "name": "limit",
    "in": "query",
    "required": false,
    "schema": {
      "type": "integer",
      "maximum": 5000,
      "minimum": 1,
      "default": 1000,
      "title": "Limit"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": [
        {
          "id (required)": {
            "type": "integer"
          },
          "organization_id (required)": {
            "type": "integer"
          },
          "created_by_user_id": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "caption (required)": {
            "type": "string"
          },
          "media_urls_json (required)": [
            {
              "type": "string"
            }
          ],
          "post_type": {
            "type": "string",
            "default": "reel"
          },
          "platform_options_json": [
            {
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "scheduled_at": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "planned_at": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "published_at": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "status": {
            "type": "string",
            "default": "draft"
          },
          "idempotency_key": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "created_at (required)": {
            "type": "string"
          },
          "updated_at (required)": {
            "type": "string"
          },
          "channels": [
            {
              "id (required)": {
                "type": "integer"
              },
              "post_id (required)": {
                "type": "integer"
              },
              "social_account_id (required)": {
                "type": "integer"
              },
              "platform (required)": {
                "type": "string"
              },
              "status": {
                "type": "string",
                "default": "pending"
              },
              "external_post_id": [
                "string",
                "null"
              ],
              "external_post_url": [
                "string",
                "null"
              ],
              "error_message": [
                "string",
                "null"
              ],
              "metrics_json": [
                "object",
                "null"
              ],
              "published_at": [
                "string",
                "null"
              ]
            }
          ]
        }
      ]
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/social/posts/countssocial:read

Count social posts

How many posts each tab of the list view holds. Required platform scope: `social:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "account_ids",
    "in": "query",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Comma-separated account ids, as for the list.",
      "title": "Account Ids"
    },
    "description": "Comma-separated account ids, as for the list."
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/social/posts/distributionsocial:read

Get post distribution

Reports which platforms each post actually reached. The per-platform insights endpoints only know about their own platform, so a caller holding an Instagram media id has no way to tell whether the same post also went to Facebook or YouTube. This resolves any platform post id back to its AUTOMYC post and returns every channel on it. Required platform scope: `social:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "external_ids",
    "in": "query",
    "required": true,
    "schema": {
      "type": "string",
      "description": "Comma-separated platform post ids.",
      "title": "External Ids"
    },
    "description": "Comma-separated platform post ids."
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/social/posts/platformsocial:read

List platform posts

Lists the posts that exist on the platform, not just the ones we published. `/posts` is the composer's history, so scoping an automation to a specific post could only ever offer posts created in this app - on an account whose posts were made directly on the platform, that list is empty. This serves the synced catalogue instead, which covers the account's real history. YouTube entries are checked against current visibility so older imports that have become private or unavailable are no longer offered. Required platform scope: `social:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "account_id",
    "in": "query",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "description": "Restrict to one connected account.",
      "title": "Account Id"
    },
    "description": "Restrict to one connected account."
  },
  {
    "name": "limit",
    "in": "query",
    "required": false,
    "schema": {
      "type": "integer",
      "maximum": 200,
      "default": 100,
      "title": "Limit"
    }
  },
  {
    "name": "offset",
    "in": "query",
    "required": false,
    "schema": {
      "type": "integer",
      "minimum": 0,
      "default": 0,
      "title": "Offset"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": [
        {
          "id (required)": {
            "type": "integer"
          },
          "social_account_id (required)": {
            "type": "integer"
          },
          "platform (required)": {
            "type": "string"
          },
          "external_post_id (required)": {
            "type": "string"
          },
          "title_preview": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "caption": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "media_type": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "thumbnail_url": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "permalink": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "published_at": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "like_count": {
            "type": "integer",
            "default": 0
          },
          "comment_count": {
            "type": "integer",
            "default": 0
          },
          "source": {
            "type": "string",
            "default": "platform"
          },
          "last_synced_at": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "post_id": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        }
      ]
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/social/posts/platform/{account_id}/{external_post_id}/mediasocial:read

Get platform post media

Fresh cover, link and playable media for one post on a connected account. Meta's CDN links stop working within days, so the comments page asks for this when a post's cover is missing or fails to load, and when someone opens the post to watch it. The answer is written back to the catalogue, so the next page load has the cover without asking again. Required platform scope: `social:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "account_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Account Id"
    }
  },
  {
    "name": "external_post_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "External Post Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/social/posts/platform/refreshsocial:write

Refresh platform posts

Asks for a fresh pull of the post catalogue without making the caller wait. Same shape as the comments refresh: the request queues the work and returns, so opening the automation builder shows what we already have immediately and picks up anything new on the next load. Required platform scope: `social:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "account_id",
    "in": "query",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "description": "Refresh one account instead of all.",
      "title": "Account Id"
    },
    "description": "Refresh one account instead of all."
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/social/posts/upload-videosocial:write

Upload social video

Uploads a video or photo file and returns an accessible URL for cross-posting. Required platform scope: `social:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Request: multipart/form-data

{
  "file (required)": {
    "type": "string"
  }
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/social/posts/upload-mediasocial:write

Upload social video

Uploads a video or photo file and returns an accessible URL for cross-posting. Required platform scope: `social:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Request: multipart/form-data

{
  "file (required)": {
    "type": "string"
  }
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/social/postssocial:write

Create social post

Required platform scope: `social:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "publish_now",
    "in": "query",
    "required": false,
    "schema": {
      "type": "boolean",
      "default": true,
      "title": "Publish Now"
    }
  },
  {
    "name": "X-Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "X-Idempotency-Key"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Request: application/json

{
  "title": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "caption (required)": {
    "type": "string"
  },
  "media_urls_json (required)": [
    {
      "type": "string"
    }
  ],
  "post_type": {
    "type": "string",
    "default": "reel"
  },
  "social_account_ids (required)": [
    {
      "type": "integer"
    }
  ],
  "scheduled_at": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "planned_at": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "platform_options_json": [
    {
      "type": "object"
    },
    {
      "type": "null"
    }
  ],
  "idempotency_key": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ]
}

Responses

{
  "201": {
    "description": "Successful Response",
    "content": {
      "application/json": {
        "id (required)": {
          "type": "integer"
        },
        "organization_id (required)": {
          "type": "integer"
        },
        "created_by_user_id": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "title": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "caption (required)": {
          "type": "string"
        },
        "media_urls_json (required)": [
          {
            "type": "string"
          }
        ],
        "post_type": {
          "type": "string",
          "default": "reel"
        },
        "platform_options_json": [
          {
            "type": "object"
          },
          {
            "type": "null"
          }
        ],
        "scheduled_at": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "planned_at": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "published_at": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "status": {
          "type": "string",
          "default": "draft"
        },
        "idempotency_key": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "created_at (required)": {
          "type": "string"
        },
        "updated_at (required)": {
          "type": "string"
        },
        "channels": [
          {
            "id (required)": {
              "type": "integer"
            },
            "post_id (required)": {
              "type": "integer"
            },
            "social_account_id (required)": {
              "type": "integer"
            },
            "platform (required)": {
              "type": "string"
            },
            "status": {
              "type": "string",
              "default": "pending"
            },
            "external_post_id": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "external_post_url": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "error_message": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "metrics_json": [
              {
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "published_at": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        ]
      }
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/social/posts/{post_id}social:read

Get social post

One post with its channels. Publishing runs in the background, so a caller that just sent a post follows it here to see each channel land - reading the whole list for that would ship the organization's history on every poll. Required platform scope: `social:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "post_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Post Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {
        "id (required)": {
          "type": "integer"
        },
        "organization_id (required)": {
          "type": "integer"
        },
        "created_by_user_id": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "title": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "caption (required)": {
          "type": "string"
        },
        "media_urls_json (required)": [
          {
            "type": "string"
          }
        ],
        "post_type": {
          "type": "string",
          "default": "reel"
        },
        "platform_options_json": [
          {
            "type": "object"
          },
          {
            "type": "null"
          }
        ],
        "scheduled_at": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "planned_at": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "published_at": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "status": {
          "type": "string",
          "default": "draft"
        },
        "idempotency_key": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "created_at (required)": {
          "type": "string"
        },
        "updated_at (required)": {
          "type": "string"
        },
        "channels": [
          {
            "id (required)": {
              "type": "integer"
            },
            "post_id (required)": {
              "type": "integer"
            },
            "social_account_id (required)": {
              "type": "integer"
            },
            "platform (required)": {
              "type": "string"
            },
            "status": {
              "type": "string",
              "default": "pending"
            },
            "external_post_id": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "external_post_url": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "error_message": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "metrics_json": [
              {
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "published_at": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        ]
      }
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
PATCH/social/posts/{post_id}social:write

Update social post

Applies a partial edit - typically just a new time from the calendar. Only the fields actually present in the request body are touched: a drag sends `scheduled_at` alone and must leave the caption, media and channels exactly as they were. Required platform scope: `social:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "post_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Post Id"
    }
  },
  {
    "name": "publish_now",
    "in": "query",
    "required": false,
    "schema": {
      "type": "boolean",
      "default": false,
      "title": "Publish Now"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Request: application/json

{
  "title": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "caption": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "media_urls_json": [
    [
      {
        "type": "string"
      }
    ],
    {
      "type": "null"
    }
  ],
  "post_type": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "scheduled_at": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "planned_at": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "status": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "social_account_ids": [
    [
      {
        "type": "integer"
      }
    ],
    {
      "type": "null"
    }
  ],
  "platform_options_json": [
    {
      "type": "object"
    },
    {
      "type": "null"
    }
  ]
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {
        "id (required)": {
          "type": "integer"
        },
        "organization_id (required)": {
          "type": "integer"
        },
        "created_by_user_id": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "title": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "caption (required)": {
          "type": "string"
        },
        "media_urls_json (required)": [
          {
            "type": "string"
          }
        ],
        "post_type": {
          "type": "string",
          "default": "reel"
        },
        "platform_options_json": [
          {
            "type": "object"
          },
          {
            "type": "null"
          }
        ],
        "scheduled_at": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "planned_at": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "published_at": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "status": {
          "type": "string",
          "default": "draft"
        },
        "idempotency_key": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "created_at (required)": {
          "type": "string"
        },
        "updated_at (required)": {
          "type": "string"
        },
        "channels": [
          {
            "id (required)": {
              "type": "integer"
            },
            "post_id (required)": {
              "type": "integer"
            },
            "social_account_id (required)": {
              "type": "integer"
            },
            "platform (required)": {
              "type": "string"
            },
            "status": {
              "type": "string",
              "default": "pending"
            },
            "external_post_id": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "external_post_url": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "error_message": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "metrics_json": [
              {
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "published_at": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        ]
      }
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
DELETE/social/posts/{post_id}social:write

Delete social post

Removes a post from the queue. A post still waiting to go out is cancelled by this. One that has already published is only removed from AUTOMYC - what is live on Instagram or YouTube stays there, because we are deleting our record, not their copy. Required platform scope: `social:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "post_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Post Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/social/posts/{post_id}/duplicatesocial:write

Duplicate social post

Copies a post, including its channels, as a new draft or scheduled post. The copy never inherits the original's publish history - no `published_at`, and fresh pending channels - so duplicating something already live cannot produce a post that looks sent but never was. Required platform scope: `social:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "post_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Post Id"
    }
  },
  {
    "name": "scheduled_at",
    "in": "query",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "description": "Time for the copy. Omitted, the copy is left as a draft.",
      "title": "Scheduled At"
    },
    "description": "Time for the copy. Omitted, the copy is left as a draft."
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "201": {
    "description": "Successful Response",
    "content": {
      "application/json": {
        "id (required)": {
          "type": "integer"
        },
        "organization_id (required)": {
          "type": "integer"
        },
        "created_by_user_id": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "title": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "caption (required)": {
          "type": "string"
        },
        "media_urls_json (required)": [
          {
            "type": "string"
          }
        ],
        "post_type": {
          "type": "string",
          "default": "reel"
        },
        "platform_options_json": [
          {
            "type": "object"
          },
          {
            "type": "null"
          }
        ],
        "scheduled_at": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "planned_at": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "published_at": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "status": {
          "type": "string",
          "default": "draft"
        },
        "idempotency_key": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "created_at (required)": {
          "type": "string"
        },
        "updated_at (required)": {
          "type": "string"
        },
        "channels": [
          {
            "id (required)": {
              "type": "integer"
            },
            "post_id (required)": {
              "type": "integer"
            },
            "social_account_id (required)": {
              "type": "integer"
            },
            "platform (required)": {
              "type": "string"
            },
            "status": {
              "type": "string",
              "default": "pending"
            },
            "external_post_id": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "external_post_url": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "error_message": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "metrics_json": [
              {
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "published_at": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        ]
      }
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/social/comments/feedinbox:read

Get comments feed

Required platform scope: `inbox:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "platform",
    "in": "query",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Platform"
    }
  },
  {
    "name": "status",
    "in": "query",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "responded, not_responded, or all",
      "title": "Status"
    },
    "description": "responded, not_responded, or all"
  },
  {
    "name": "search",
    "in": "query",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Search"
    }
  },
  {
    "name": "limit",
    "in": "query",
    "required": false,
    "schema": {
      "type": "integer",
      "maximum": 100,
      "minimum": 1,
      "default": 30,
      "title": "Limit"
    }
  },
  {
    "name": "offset",
    "in": "query",
    "required": false,
    "schema": {
      "type": "integer",
      "minimum": 0,
      "default": 0,
      "title": "Offset"
    }
  },
  {
    "name": "account_id",
    "in": "query",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 1
        },
        {
          "type": "null"
        }
      ],
      "title": "Account Id"
    }
  },
  {
    "name": "post_id",
    "in": "query",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string",
          "minLength": 1,
          "maxLength": 255
        },
        {
          "type": "null"
        }
      ],
      "title": "Post Id"
    }
  },
  {
    "name": "thread_id",
    "in": "query",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 1
        },
        {
          "type": "null"
        }
      ],
      "title": "Thread Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/social/comments/summaryinbox:read

Get comments summary

Totals behind the inbox stat cards, plus how many channels are connected. Declared before `/comments/{account_id}` so "summary" is not read as an account id. Required platform scope: `inbox:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/social/comments/account/{account_id}inbox:read

Get social account comments

Required platform scope: `inbox:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "account_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Account Id"
    }
  },
  {
    "name": "platform",
    "in": "query",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Platform"
    }
  },
  {
    "name": "video_id",
    "in": "query",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Video Id"
    }
  },
  {
    "name": "media_id",
    "in": "query",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Media Id"
    }
  },
  {
    "name": "post_id",
    "in": "query",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Post Id"
    }
  },
  {
    "name": "limit",
    "in": "query",
    "required": false,
    "schema": {
      "type": "integer",
      "default": 50,
      "title": "Limit"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/social/comments/{account_id}inbox:read

Get social account comments

Required platform scope: `inbox:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "account_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Account Id"
    }
  },
  {
    "name": "platform",
    "in": "query",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Platform"
    }
  },
  {
    "name": "video_id",
    "in": "query",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Video Id"
    }
  },
  {
    "name": "media_id",
    "in": "query",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Media Id"
    }
  },
  {
    "name": "post_id",
    "in": "query",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Post Id"
    }
  },
  {
    "name": "limit",
    "in": "query",
    "required": false,
    "schema": {
      "type": "integer",
      "default": 50,
      "title": "Limit"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/social/comments/replyinbox:write

Reply to social comment

Sends a reply either to a stored inbox thread (thread_id) or straight to a platform comment (comment_id). A reply that the platform rejects is reported as a failure - it is never recorded as sent. Required platform scope: `inbox:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Request: application/json

{
  "account_id (required)": {
    "type": "integer"
  },
  "platform (required)": {
    "type": "string"
  },
  "message": {
    "type": "string",
    "default": ""
  },
  "thread_id": [
    {
      "type": "integer"
    },
    {
      "type": "null"
    }
  ],
  "comment_id": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "video_id": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "media_url": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "media_type": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ]
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/social/comments/likeinbox:write

Like social comment

Likes or unlikes a platform comment on Instagram, Facebook, etc. Required platform scope: `inbox:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Request: application/json

{
  "account_id (required)": {
    "type": "integer"
  },
  "platform (required)": {
    "type": "string"
  },
  "comment_id (required)": {
    "type": "string"
  },
  "action": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ]
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/social/inbox/syncinbox:write

Sync social inbox now

Triggers live comment and message sync for connected social accounts in parallel. Skips non-messaging platforms (TikTok, YouTube) when thread_type is direct_message. Required platform scope: `inbox:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "platform",
    "in": "query",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Platform"
    }
  },
  {
    "name": "thread_type",
    "in": "query",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Thread Type"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/social/inbox/threadsinbox:read

Get social inbox threads

Returns unified conversation threads across connected social channels with platform filtering, pagination, and fast DB-first loading. Restricts DM threads to platforms that support DMs (Facebook, Instagram). Required platform scope: `inbox:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "platform",
    "in": "query",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Platform"
    }
  },
  {
    "name": "thread_type",
    "in": "query",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Thread Type"
    }
  },
  {
    "name": "thread_id",
    "in": "query",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Thread Id"
    }
  },
  {
    "name": "sync",
    "in": "query",
    "required": false,
    "schema": {
      "type": "boolean",
      "description": "Pull fresh comments from platform before returning.",
      "default": false,
      "title": "Sync"
    },
    "description": "Pull fresh comments from platform before returning."
  },
  {
    "name": "search",
    "in": "query",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Match participant, handle or message text.",
      "title": "Search"
    },
    "description": "Match participant, handle or message text."
  },
  {
    "name": "thread_status",
    "in": "query",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "open, pending, snoozed, closed, archived.",
      "title": "Thread Status"
    },
    "description": "open, pending, snoozed, closed, archived."
  },
  {
    "name": "human_agent_mode",
    "in": "query",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "automation_active, human_active, pending_assignment, resolved, reopened.",
      "title": "Human Agent Mode"
    },
    "description": "automation_active, human_active, pending_assignment, resolved, reopened."
  },
  {
    "name": "assigned_team",
    "in": "query",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Filter by assigned team name.",
      "title": "Assigned Team"
    },
    "description": "Filter by assigned team name."
  },
  {
    "name": "assigned_to",
    "in": "query",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "A user id, 'me', or 'unassigned'.",
      "title": "Assigned To"
    },
    "description": "A user id, 'me', or 'unassigned'."
  },
  {
    "name": "label_id",
    "in": "query",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Label Id"
    }
  },
  {
    "name": "unread_only",
    "in": "query",
    "required": false,
    "schema": {
      "type": "boolean",
      "description": "Only threads this user has not read.",
      "default": false,
      "title": "Unread Only"
    },
    "description": "Only threads this user has not read."
  },
  {
    "name": "limit",
    "in": "query",
    "required": false,
    "schema": {
      "type": "integer",
      "maximum": 200,
      "minimum": 1,
      "default": 50,
      "title": "Limit"
    }
  },
  {
    "name": "offset",
    "in": "query",
    "required": false,
    "schema": {
      "type": "integer",
      "minimum": 0,
      "default": 0,
      "title": "Offset"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
PATCH/social/inbox/threads/{thread_id}/statusinbox:write

Update social thread status

Required platform scope: `inbox:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "thread_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Thread Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Request: application/json

{
  "status (required)": {
    "type": "string"
  },
  "snoozed_until": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ]
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/social/comments/draft-replyinbox:write

Draft social comment reply

Required platform scope: `inbox:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Request: application/json

{
  "account_id (required)": {
    "type": "integer"
  },
  "comment_text (required)": {
    "type": "string"
  },
  "post_id": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "post_context": {
    "type": "string",
    "default": ""
  },
  "comment_author": {
    "type": "string",
    "default": ""
  },
  "conversation_context": [
    {
      "author": {
        "type": "string",
        "default": ""
      },
      "text (required)": {
        "type": "string"
      },
      "is_owner": {
        "type": "boolean",
        "default": false
      }
    }
  ],
  "current_draft": {
    "type": "string",
    "default": ""
  }
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/social/inbox/assigneesinbox:read

List assignable users

Members who can own a conversation, for the assignment picker. Required platform scope: `inbox:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/social/inbox/threads/{thread_id}/assigninbox:write

Assign thread

Required platform scope: `inbox:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "thread_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Thread Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Request: application/json

{
  "user_id": [
    {
      "type": "integer"
    },
    {
      "type": "null"
    }
  ]
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/social/inbox/threads/{thread_id}/notesinbox:write

Add internal note

Adds a note visible to the team and never sent to the customer. It is stored as a SocialMessage so it appears inline in the conversation at the moment it was written, which is the only place a note is useful. `sender_type` is "note", and every dispatch path keys on "me"/"ai", so there is no route by which this reaches the platform. Required platform scope: `inbox:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "thread_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Thread Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Request: application/json

{
  "body (required)": {
    "type": "string"
  }
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/social/inbox/threads/{thread_id}/readinbox:write

Mark thread read

Required platform scope: `inbox:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "thread_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Thread Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/social/inbox/messages/{message_id}/media/refreshinbox:write

Refresh message media

Copies a message's story, reel or photo into our storage on demand. New messages are copied when they arrive. This is the repair path for older ones and for any copy that missed: the inbox calls it when a Meta-hosted file fails to load, and it asks the platform for a freshly signed link if the stored one has stopped working. Required platform scope: `inbox:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "message_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Message Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/social/inbox/labelsinbox:read

List labels

Required platform scope: `inbox:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/social/inbox/labelsinbox:write

Create label

Required platform scope: `inbox:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Request: application/json

{
  "name (required)": {
    "type": "string"
  },
  "color": {
    "type": "string",
    "default": "#64748b"
  }
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
DELETE/social/inbox/labels/{label_id}inbox:write

Delete label

Required platform scope: `inbox:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "label_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Label Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
PUT/social/inbox/threads/{thread_id}/labelsinbox:write

Set thread labels

Required platform scope: `inbox:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "thread_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Thread Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Request: application/json

{
  "label_ids": [
    {
      "type": "integer"
    }
  ]
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/social/inbox/saved-repliesinbox:read

List saved replies

The org's snippets, most-used first. With `thread_id`, each one comes back rendered as well as raw, so the picker can show what will actually be sent rather than "Hi {{name}}". Required platform scope: `inbox:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "thread_id",
    "in": "query",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "description": "Render placeholders against this thread.",
      "title": "Thread Id"
    },
    "description": "Render placeholders against this thread."
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/social/inbox/saved-repliesinbox:write

Create saved reply

Required platform scope: `inbox:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Request: application/json

{
  "title (required)": {
    "type": "string"
  },
  "body (required)": {
    "type": "string"
  },
  "shortcut": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ]
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
PUT/social/inbox/saved-replies/{reply_id}inbox:write

Update saved reply

Required platform scope: `inbox:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "reply_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Reply Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Request: application/json

{
  "title (required)": {
    "type": "string"
  },
  "body (required)": {
    "type": "string"
  },
  "shortcut": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ]
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
DELETE/social/inbox/saved-replies/{reply_id}inbox:write

Delete saved reply

Required platform scope: `inbox:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "reply_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Reply Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/social/inbox/metricsinbox:read

Inbox metrics

First-response and resolution times over the window. Median rather than mean: one conversation answered three days late drags an average far enough to make a healthy queue look broken, which is why every inbox product reports the median. Required platform scope: `inbox:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "days",
    "in": "query",
    "required": false,
    "schema": {
      "type": "integer",
      "maximum": 365,
      "minimum": 1,
      "default": 30,
      "title": "Days"
    }
  },
  {
    "name": "platform",
    "in": "query",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Platform"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/social/inbox/threads/{thread_id}/policy-checkinbox:read

Check thread messaging policy

Live evaluation of Meta messaging window and policy eligibility for this conversation. Required platform scope: `inbox:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "thread_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Thread Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/social/automations/capabilitiesautomations:read

Get automation capabilities

What this organization can automate, per connected account. The frontend builds its whole create-automation catalog from this, so a platform the backend cannot serve is structurally impossible to offer in the UI. Required platform scope: `automations:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/social/automationsautomations:read

List social automations

Required platform scope: `automations:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "account_id",
    "in": "query",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Account Id"
    }
  },
  {
    "name": "trigger",
    "in": "query",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Trigger"
    }
  },
  {
    "name": "status",
    "in": "query",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Status"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": [
        {
          "id (required)": {
            "type": "string"
          },
          "name (required)": {
            "type": "string"
          },
          "trigger (required)": {
            "type": "string"
          },
          "status (required)": {
            "type": "string"
          },
          "platform (required)": {
            "type": "string"
          },
          "account_id (required)": {
            "type": "integer"
          },
          "account_name (required)": {
            "type": "string"
          },
          "account_handle": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "account_avatar": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "account_connected": {
            "type": "boolean",
            "default": true
          },
          "scope (required)": {
            "type": "string"
          },
          "scope_post_ids": [
            [
              {
                "type": "string"
              }
            ],
            {
              "type": "null"
            }
          ],
          "scope_post_titles": [
            [
              {
                "type": "string"
              }
            ],
            {
              "type": "null"
            }
          ],
          "match_mode (required)": {
            "type": "string"
          },
          "keywords": [
            [
              {
                "type": "string"
              }
            ],
            {
              "type": "null"
            }
          ],
          "negative_keywords": [
            [
              {
                "type": "string"
              }
            ],
            {
              "type": "null"
            }
          ],
          "case_sensitive": {
            "type": "boolean",
            "default": false
          },
          "priority (required)": {
            "type": "integer"
          },
          "stop_on_match (required)": {
            "type": "boolean"
          },
          "cooldown_seconds (required)": {
            "type": "integer"
          },
          "max_triggers_per_day (required)": {
            "type": "integer"
          },
          "once_per_participant (required)": {
            "type": "boolean"
          },
          "actions": [
            {
              "id (required)": {
                "type": "integer"
              },
              "position (required)": {
                "type": "integer"
              },
              "action_type (required)": {
                "type": "string"
              },
              "message_text": [
                "string",
                "null"
              ],
              "message_variants": [
                "array",
                "null"
              ],
              "delay_seconds": {
                "type": "integer",
                "default": 0
              },
              "config": [
                "object",
                "null"
              ]
            }
          ],
          "trigger_count": {
            "type": "integer",
            "default": 0
          },
          "last_triggered_at": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "created_at": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "delivery": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "delivery_note": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        }
      ]
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/social/automationsautomations:write

Create social automation

Required platform scope: `automations:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Request: application/json

{
  "name (required)": {
    "type": "string"
  },
  "trigger (required)": {
    "type": "string"
  },
  "status": {
    "type": "string",
    "default": "active"
  },
  "scope": {
    "type": "string",
    "default": "all"
  },
  "scope_post_ids": [
    [
      {
        "type": "string"
      }
    ],
    {
      "type": "null"
    }
  ],
  "scope_post_titles": [
    [
      {
        "type": "string"
      }
    ],
    {
      "type": "null"
    }
  ],
  "match_mode": {
    "type": "string",
    "default": "word"
  },
  "keywords": [
    [
      {
        "type": "string"
      }
    ],
    {
      "type": "null"
    }
  ],
  "negative_keywords": [
    [
      {
        "type": "string"
      }
    ],
    {
      "type": "null"
    }
  ],
  "case_sensitive": {
    "type": "boolean",
    "default": false
  },
  "priority": [
    {
      "type": "integer"
    },
    {
      "type": "null"
    }
  ],
  "stop_on_match": {
    "type": "boolean",
    "default": true
  },
  "cooldown_seconds": {
    "type": "integer",
    "default": 0
  },
  "max_triggers_per_day": {
    "type": "integer",
    "default": 0
  },
  "once_per_participant": {
    "type": "boolean",
    "default": false
  },
  "actions": [
    {
      "action_type (required)": {
        "type": "string"
      },
      "message_text": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "message_variants": [
        [
          "string"
        ],
        {
          "type": "null"
        }
      ],
      "delay_seconds": {
        "type": "integer",
        "default": 0
      },
      "config": [
        {
          "type": "object"
        },
        {
          "type": "null"
        }
      ]
    }
  ],
  "account_id (required)": {
    "type": "integer"
  }
}

Responses

{
  "201": {
    "description": "Successful Response",
    "content": {
      "application/json": {
        "id (required)": {
          "type": "string"
        },
        "name (required)": {
          "type": "string"
        },
        "trigger (required)": {
          "type": "string"
        },
        "status (required)": {
          "type": "string"
        },
        "platform (required)": {
          "type": "string"
        },
        "account_id (required)": {
          "type": "integer"
        },
        "account_name (required)": {
          "type": "string"
        },
        "account_handle": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "account_avatar": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "account_connected": {
          "type": "boolean",
          "default": true
        },
        "scope (required)": {
          "type": "string"
        },
        "scope_post_ids": [
          [
            {
              "type": "string"
            }
          ],
          {
            "type": "null"
          }
        ],
        "scope_post_titles": [
          [
            {
              "type": "string"
            }
          ],
          {
            "type": "null"
          }
        ],
        "match_mode (required)": {
          "type": "string"
        },
        "keywords": [
          [
            {
              "type": "string"
            }
          ],
          {
            "type": "null"
          }
        ],
        "negative_keywords": [
          [
            {
              "type": "string"
            }
          ],
          {
            "type": "null"
          }
        ],
        "case_sensitive": {
          "type": "boolean",
          "default": false
        },
        "priority (required)": {
          "type": "integer"
        },
        "stop_on_match (required)": {
          "type": "boolean"
        },
        "cooldown_seconds (required)": {
          "type": "integer"
        },
        "max_triggers_per_day (required)": {
          "type": "integer"
        },
        "once_per_participant (required)": {
          "type": "boolean"
        },
        "actions": [
          {
            "id (required)": {
              "type": "integer"
            },
            "position (required)": {
              "type": "integer"
            },
            "action_type (required)": {
              "type": "string"
            },
            "message_text": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "message_variants": [
              [
                "string"
              ],
              {
                "type": "null"
              }
            ],
            "delay_seconds": {
              "type": "integer",
              "default": 0
            },
            "config": [
              {
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          }
        ],
        "trigger_count": {
          "type": "integer",
          "default": 0
        },
        "last_triggered_at": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "created_at": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "delivery": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "delivery_note": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ]
      }
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
PUT/social/automations/{automation_id}automations:write

Update social automation

Required platform scope: `automations:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "automation_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Automation Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Request: application/json

{
  "name": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "status": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "scope": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "scope_post_ids": [
    [
      {
        "type": "string"
      }
    ],
    {
      "type": "null"
    }
  ],
  "scope_post_titles": [
    [
      {
        "type": "string"
      }
    ],
    {
      "type": "null"
    }
  ],
  "match_mode": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "keywords": [
    [
      {
        "type": "string"
      }
    ],
    {
      "type": "null"
    }
  ],
  "negative_keywords": [
    [
      {
        "type": "string"
      }
    ],
    {
      "type": "null"
    }
  ],
  "case_sensitive": [
    {
      "type": "boolean"
    },
    {
      "type": "null"
    }
  ],
  "priority": [
    {
      "type": "integer"
    },
    {
      "type": "null"
    }
  ],
  "stop_on_match": [
    {
      "type": "boolean"
    },
    {
      "type": "null"
    }
  ],
  "cooldown_seconds": [
    {
      "type": "integer"
    },
    {
      "type": "null"
    }
  ],
  "max_triggers_per_day": [
    {
      "type": "integer"
    },
    {
      "type": "null"
    }
  ],
  "once_per_participant": [
    {
      "type": "boolean"
    },
    {
      "type": "null"
    }
  ],
  "actions": [
    [
      {
        "action_type (required)": {
          "type": "string"
        },
        "message_text": [
          "string",
          "null"
        ],
        "message_variants": [
          "array",
          "null"
        ],
        "delay_seconds": {
          "type": "integer",
          "default": 0
        },
        "config": [
          "object",
          "null"
        ]
      }
    ],
    {
      "type": "null"
    }
  ]
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {
        "id (required)": {
          "type": "string"
        },
        "name (required)": {
          "type": "string"
        },
        "trigger (required)": {
          "type": "string"
        },
        "status (required)": {
          "type": "string"
        },
        "platform (required)": {
          "type": "string"
        },
        "account_id (required)": {
          "type": "integer"
        },
        "account_name (required)": {
          "type": "string"
        },
        "account_handle": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "account_avatar": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "account_connected": {
          "type": "boolean",
          "default": true
        },
        "scope (required)": {
          "type": "string"
        },
        "scope_post_ids": [
          [
            {
              "type": "string"
            }
          ],
          {
            "type": "null"
          }
        ],
        "scope_post_titles": [
          [
            {
              "type": "string"
            }
          ],
          {
            "type": "null"
          }
        ],
        "match_mode (required)": {
          "type": "string"
        },
        "keywords": [
          [
            {
              "type": "string"
            }
          ],
          {
            "type": "null"
          }
        ],
        "negative_keywords": [
          [
            {
              "type": "string"
            }
          ],
          {
            "type": "null"
          }
        ],
        "case_sensitive": {
          "type": "boolean",
          "default": false
        },
        "priority (required)": {
          "type": "integer"
        },
        "stop_on_match (required)": {
          "type": "boolean"
        },
        "cooldown_seconds (required)": {
          "type": "integer"
        },
        "max_triggers_per_day (required)": {
          "type": "integer"
        },
        "once_per_participant (required)": {
          "type": "boolean"
        },
        "actions": [
          {
            "id (required)": {
              "type": "integer"
            },
            "position (required)": {
              "type": "integer"
            },
            "action_type (required)": {
              "type": "string"
            },
            "message_text": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "message_variants": [
              [
                "string"
              ],
              {
                "type": "null"
              }
            ],
            "delay_seconds": {
              "type": "integer",
              "default": 0
            },
            "config": [
              {
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          }
        ],
        "trigger_count": {
          "type": "integer",
          "default": 0
        },
        "last_triggered_at": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "created_at": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "delivery": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "delivery_note": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ]
      }
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
PATCH/social/automations/{automation_id}/toggleautomations:write

Toggle social automation

Required platform scope: `automations:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "automation_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Automation Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {
        "id (required)": {
          "type": "string"
        },
        "name (required)": {
          "type": "string"
        },
        "trigger (required)": {
          "type": "string"
        },
        "status (required)": {
          "type": "string"
        },
        "platform (required)": {
          "type": "string"
        },
        "account_id (required)": {
          "type": "integer"
        },
        "account_name (required)": {
          "type": "string"
        },
        "account_handle": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "account_avatar": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "account_connected": {
          "type": "boolean",
          "default": true
        },
        "scope (required)": {
          "type": "string"
        },
        "scope_post_ids": [
          [
            {
              "type": "string"
            }
          ],
          {
            "type": "null"
          }
        ],
        "scope_post_titles": [
          [
            {
              "type": "string"
            }
          ],
          {
            "type": "null"
          }
        ],
        "match_mode (required)": {
          "type": "string"
        },
        "keywords": [
          [
            {
              "type": "string"
            }
          ],
          {
            "type": "null"
          }
        ],
        "negative_keywords": [
          [
            {
              "type": "string"
            }
          ],
          {
            "type": "null"
          }
        ],
        "case_sensitive": {
          "type": "boolean",
          "default": false
        },
        "priority (required)": {
          "type": "integer"
        },
        "stop_on_match (required)": {
          "type": "boolean"
        },
        "cooldown_seconds (required)": {
          "type": "integer"
        },
        "max_triggers_per_day (required)": {
          "type": "integer"
        },
        "once_per_participant (required)": {
          "type": "boolean"
        },
        "actions": [
          {
            "id (required)": {
              "type": "integer"
            },
            "position (required)": {
              "type": "integer"
            },
            "action_type (required)": {
              "type": "string"
            },
            "message_text": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "message_variants": [
              [
                "string"
              ],
              {
                "type": "null"
              }
            ],
            "delay_seconds": {
              "type": "integer",
              "default": 0
            },
            "config": [
              {
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          }
        ],
        "trigger_count": {
          "type": "integer",
          "default": 0
        },
        "last_triggered_at": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "created_at": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "delivery": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "delivery_note": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ]
      }
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
DELETE/social/automations/{automation_id}automations:write

Delete social automation

Required platform scope: `automations:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "automation_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Automation Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/social/automations/testautomations:write

Test social automations

Dry-runs a message against an account's automations without sending anything. Reports why each automation declined rather than only whether one matched, so a keyword that looks like it should fire can be diagnosed here instead of by posting a real comment and waiting. Required platform scope: `automations:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Request: application/json

{
  "account_id (required)": {
    "type": "integer"
  },
  "trigger": {
    "type": "string",
    "default": "comment_received"
  },
  "message_text": {
    "type": "string",
    "default": ""
  },
  "post_id": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ]
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {
        "matched (required)": {
          "type": "boolean"
        },
        "match": [
          {
            "automation_id (required)": {
              "type": "string"
            },
            "automation_name (required)": {
              "type": "string"
            },
            "matched_keyword": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "would_run": [
              {
                "type": "object"
              }
            ]
          },
          {
            "type": "null"
          }
        ],
        "evaluated": [
          {
            "type": "object"
          }
        ],
        "info": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ]
      }
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/social/automations/{automation_id}/executionsautomations:read

List automation executions

Recent runs and skips for one automation -- the answer to "why didn't it fire". Includes declined events with their reason (cooldown, negative keyword, expired messaging window), which previously vanished into a `continue` in the engine. Required platform scope: `automations:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "automation_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Automation Id"
    }
  },
  {
    "name": "limit",
    "in": "query",
    "required": false,
    "schema": {
      "type": "integer",
      "maximum": 200,
      "minimum": 1,
      "default": 50,
      "title": "Limit"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": [
        {
          "id (required)": {
            "type": "integer"
          },
          "automation_id (required)": {
            "type": "string"
          },
          "automation_name": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "platform": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "trigger (required)": {
            "type": "string"
          },
          "event_key": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "status (required)": {
            "type": "string"
          },
          "skip_reason": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "matched_keyword": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "participant_id": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "error_detail": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "actions_run": [
            [
              {
                "type": "object"
              }
            ],
            {
              "type": "null"
            }
          ],
          "created_at": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        }
      ]
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/social/automations/{automation_id}automations:read

Get social automation

Required platform scope: `automations:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "automation_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Automation Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {
        "id (required)": {
          "type": "string"
        },
        "name (required)": {
          "type": "string"
        },
        "trigger (required)": {
          "type": "string"
        },
        "status (required)": {
          "type": "string"
        },
        "platform (required)": {
          "type": "string"
        },
        "account_id (required)": {
          "type": "integer"
        },
        "account_name (required)": {
          "type": "string"
        },
        "account_handle": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "account_avatar": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "account_connected": {
          "type": "boolean",
          "default": true
        },
        "scope (required)": {
          "type": "string"
        },
        "scope_post_ids": [
          [
            {
              "type": "string"
            }
          ],
          {
            "type": "null"
          }
        ],
        "scope_post_titles": [
          [
            {
              "type": "string"
            }
          ],
          {
            "type": "null"
          }
        ],
        "match_mode (required)": {
          "type": "string"
        },
        "keywords": [
          [
            {
              "type": "string"
            }
          ],
          {
            "type": "null"
          }
        ],
        "negative_keywords": [
          [
            {
              "type": "string"
            }
          ],
          {
            "type": "null"
          }
        ],
        "case_sensitive": {
          "type": "boolean",
          "default": false
        },
        "priority (required)": {
          "type": "integer"
        },
        "stop_on_match (required)": {
          "type": "boolean"
        },
        "cooldown_seconds (required)": {
          "type": "integer"
        },
        "max_triggers_per_day (required)": {
          "type": "integer"
        },
        "once_per_participant (required)": {
          "type": "boolean"
        },
        "actions": [
          {
            "id (required)": {
              "type": "integer"
            },
            "position (required)": {
              "type": "integer"
            },
            "action_type (required)": {
              "type": "string"
            },
            "message_text": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "message_variants": [
              [
                "string"
              ],
              {
                "type": "null"
              }
            ],
            "delay_seconds": {
              "type": "integer",
              "default": 0
            },
            "config": [
              {
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          }
        ],
        "trigger_count": {
          "type": "integer",
          "default": 0
        },
        "last_triggered_at": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "created_at": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "delivery": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "delivery_note": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ]
      }
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/social/analytics/overviewanalytics:read

Get social analytics overview

Cross-platform analytics from saved reports; collection runs in Celery. Metrics a platform does not report come back as null with a matching entry in `notices`, so the dashboard can show what is missing and why. Required platform scope: `analytics:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "range",
    "in": "query",
    "required": false,
    "schema": {
      "type": "string",
      "description": "One of 7d, 28d, 30d, 90d, 365d",
      "default": "28d",
      "title": "Range"
    },
    "description": "One of 7d, 28d, 30d, 90d, 365d"
  },
  {
    "name": "platform",
    "in": "query",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Restrict to a single platform",
      "title": "Platform"
    },
    "description": "Restrict to a single platform"
  },
  {
    "name": "refresh",
    "in": "query",
    "required": false,
    "schema": {
      "type": "boolean",
      "description": "Refresh the overview snapshot",
      "default": false,
      "title": "Refresh"
    },
    "description": "Refresh the overview snapshot"
  },
  {
    "name": "account_id",
    "in": "query",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 1
        },
        {
          "type": "null"
        }
      ],
      "description": "Restrict to one account in this workspace",
      "title": "Account Id"
    },
    "description": "Restrict to one account in this workspace"
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/social/analytics/video/{account_id}/{video_id}analytics:read

Get social analytics video

Per-video deep dive, including the real YouTube audience retention curve. Required platform scope: `analytics:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "account_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Account Id"
    }
  },
  {
    "name": "video_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Video Id"
    }
  },
  {
    "name": "range",
    "in": "query",
    "required": false,
    "schema": {
      "type": "string",
      "default": "28d",
      "title": "Range"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/social/ideas/generatesocial:write

Generate ideas

Required platform scope: `social:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Request: application/json

{
  "count": {
    "type": "integer",
    "default": 7
  },
  "days": {
    "type": "integer",
    "default": 14
  },
  "start_date": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "timezone": {
    "type": "string",
    "default": "UTC"
  },
  "account_ids": [
    {
      "type": "integer"
    }
  ],
  "focus": {
    "type": "string",
    "default": ""
  }
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/social/youtube/insights/channel/{account_id}analytics:read

Get youtube channel insights

Required platform scope: `analytics:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "account_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Account Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/social/youtube/insights/videos/{account_id}analytics:read

Get youtube channel videos

Required platform scope: `analytics:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "account_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Account Id"
    }
  },
  {
    "name": "limit",
    "in": "query",
    "required": false,
    "schema": {
      "type": "integer",
      "default": 25,
      "title": "Limit"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/social/instagram/insights/account/{account_id}analytics:read

Get instagram account insights

Required platform scope: `analytics:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "account_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Account Id"
    }
  },
  {
    "name": "period",
    "in": "query",
    "required": false,
    "schema": {
      "type": "string",
      "default": "day",
      "title": "Period"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/social/instagram/insights/media/{account_id}analytics:read

Get instagram media insights

Required platform scope: `analytics:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "account_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Account Id"
    }
  },
  {
    "name": "limit",
    "in": "query",
    "required": false,
    "schema": {
      "type": "integer",
      "default": 25,
      "title": "Limit"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/social/instagram/insights/stories/{account_id}analytics:read

Get instagram stories insights

Required platform scope: `analytics:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "account_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Account Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/social/facebook/insights/page/{account_id}analytics:read

Get facebook page insights

Required platform scope: `analytics:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "account_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Account Id"
    }
  },
  {
    "name": "period",
    "in": "query",
    "required": false,
    "schema": {
      "type": "string",
      "default": "day",
      "title": "Period"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/social/facebook/insights/account/{account_id}analytics:read

Get facebook page insights

Required platform scope: `analytics:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "account_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Account Id"
    }
  },
  {
    "name": "period",
    "in": "query",
    "required": false,
    "schema": {
      "type": "string",
      "default": "day",
      "title": "Period"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/social/facebook/insights/posts/{account_id}analytics:read

Get facebook posts insights

Required platform scope: `analytics:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "account_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Account Id"
    }
  },
  {
    "name": "limit",
    "in": "query",
    "required": false,
    "schema": {
      "type": "integer",
      "default": 25,
      "title": "Limit"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/social/tiktok/insights/account/{account_id}analytics:read

Get tiktok account insights

Required platform scope: `analytics:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "account_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Account Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/social/tiktok/insights/videos/{account_id}analytics:read

Get tiktok user videos

Required platform scope: `analytics:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "account_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Account Id"
    }
  },
  {
    "name": "limit",
    "in": "query",
    "required": false,
    "schema": {
      "type": "integer",
      "default": 20,
      "title": "Limit"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/social/tiktok/creator-info/{account_id}analytics:read

Get tiktok creator info

Posting options for the connected creator, for the composer's consent step. TikTok's Direct Post rules require the creator to pick the privacy level and the interaction settings themselves, so the composer must render exactly what this account allows rather than assume anything. Required platform scope: `analytics:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "account_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Account Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/messages/threadsinbox:read

List threads

Required platform scope: `inbox:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "channel",
    "in": "query",
    "required": false,
    "schema": {
      "enum": [
        "all",
        "whatsapp",
        "instagram",
        "facebook",
        "website"
      ],
      "type": "string",
      "default": "all",
      "title": "Channel"
    }
  },
  {
    "name": "search",
    "in": "query",
    "required": false,
    "schema": {
      "type": "string",
      "default": "",
      "title": "Search"
    }
  },
  {
    "name": "status",
    "in": "query",
    "required": false,
    "schema": {
      "enum": [
        "all",
        "open",
        "closed",
        "needs_human"
      ],
      "type": "string",
      "default": "all",
      "title": "Status"
    }
  },
  {
    "name": "unread_only",
    "in": "query",
    "required": false,
    "schema": {
      "type": "boolean",
      "default": false,
      "title": "Unread Only"
    }
  },
  {
    "name": "awaiting_reply",
    "in": "query",
    "required": false,
    "schema": {
      "type": "boolean",
      "default": false,
      "title": "Awaiting Reply"
    }
  },
  {
    "name": "assigned_to_me",
    "in": "query",
    "required": false,
    "schema": {
      "type": "boolean",
      "default": false,
      "title": "Assigned To Me"
    }
  },
  {
    "name": "source_id",
    "in": "query",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Source Id"
    }
  },
  {
    "name": "limit",
    "in": "query",
    "required": false,
    "schema": {
      "type": "integer",
      "maximum": 100,
      "minimum": 1,
      "default": 50,
      "title": "Limit"
    }
  },
  {
    "name": "offset",
    "in": "query",
    "required": false,
    "schema": {
      "type": "integer",
      "minimum": 0,
      "default": 0,
      "title": "Offset"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
PUT/messages/social/{thread_id}/aiinbox:write

Set conversation ai

Required platform scope: `inbox:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "thread_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Thread Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Request: application/json

{
  "enabled (required)": {
    "type": "boolean"
  }
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/messages/social/{thread_id}/suggestionsinbox:write

Suggest reply

Required platform scope: `inbox:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "thread_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Thread Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/whatsapp/overviewinbox:read

Get whatsapp overview

Required platform scope: `inbox:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {
        "active_conversations (required)": {
          "type": "integer"
        },
        "unread_conversations (required)": {
          "type": "integer"
        },
        "templates_pending (required)": {
          "type": "integer"
        },
        "templates_approved (required)": {
          "type": "integer"
        },
        "contacts_count (required)": {
          "type": "integer"
        },
        "last_message_at": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ]
      }
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/whatsapp/conversationsinbox:read

List whatsapp conversations

Required platform scope: `inbox:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "integration_id",
    "in": "query",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Integration Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": [
        {
          "id (required)": {
            "type": "integer"
          },
          "contact_id (required)": {
            "type": "integer"
          },
          "contact_name": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "contact_phone": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "contact_username": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "linked_email": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "linked_sent_email_id": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "email_linked_at": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "status": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "last_message_at": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "last_message_preview": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "unread_count": {
            "type": "integer",
            "default": 0
          },
          "customer_service_window_expires_at": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "template_required": {
            "type": "boolean",
            "default": false
          },
          "assigned_user_id": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "assigned_user_name": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "ai_auto_reply_status": {
            "type": "string",
            "default": "active"
          },
          "ai_auto_reply_reason": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "ai_auto_reply_completed_at": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "window_active": {
            "type": "boolean",
            "default": false
          },
          "created_at": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "updated_at": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        }
      ]
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/whatsapp/conversations/{conversation_id}inbox:read

Get whatsapp conversation

Required platform scope: `inbox:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "conversation_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Conversation Id"
    }
  },
  {
    "name": "limit",
    "in": "query",
    "required": false,
    "schema": {
      "type": "integer",
      "default": 50,
      "title": "Limit"
    }
  },
  {
    "name": "offset",
    "in": "query",
    "required": false,
    "schema": {
      "type": "integer",
      "default": 0,
      "title": "Offset"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {
        "conversation (required)": {
          "id (required)": {
            "type": "integer"
          },
          "contact_id (required)": {
            "type": "integer"
          },
          "contact_name": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "contact_phone": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "contact_username": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "linked_email": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "linked_sent_email_id": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "email_linked_at": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "status": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "last_message_at": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "last_message_preview": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "unread_count": {
            "type": "integer",
            "default": 0
          },
          "customer_service_window_expires_at": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "template_required": {
            "type": "boolean",
            "default": false
          },
          "assigned_user_id": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "assigned_user_name": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "ai_auto_reply_status": {
            "type": "string",
            "default": "active"
          },
          "ai_auto_reply_reason": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "ai_auto_reply_completed_at": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "window_active": {
            "type": "boolean",
            "default": false
          },
          "created_at": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "updated_at": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "contact (required)": {
          "id (required)": {
            "type": "integer"
          },
          "profile_picture_url": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "contact_phone": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "contact_user_id": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "contact_username": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "contact_name": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "linked_email": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "linked_sent_email_id": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "email_linked_at": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "tags": [
            {
              "type": "string"
            }
          ],
          "notes_summary": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "assigned_user_id": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "assigned_user_name": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "last_inbound_at": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "last_outbound_at": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "created_at": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "updated_at": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "messages (required)": [
          {
            "id (required)": {
              "type": "integer"
            },
            "meta_message_id": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "reply_to_message_id": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "reply_to_meta_message_id": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "reaction_target_message_id": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "reaction_target_meta_message_id": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "reaction_emoji": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "message_type": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "message_body": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "media_url": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "template_name": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "template_language": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "direction": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "status": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "sent_at": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "delivered_at": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "read_at": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "failed_at": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "customer_service_window_expires_at": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "created_at": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "updated_at": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        ],
        "notes (required)": [
          {
            "id (required)": {
              "type": "integer"
            },
            "conversation_id (required)": {
              "type": "integer"
            },
            "contact_id (required)": {
              "type": "integer"
            },
            "user_id": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "user_name": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "note_body (required)": {
              "type": "string"
            },
            "created_at": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "updated_at": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        ],
        "suggested_replies": [
          {
            "type": "string"
          }
        ]
      }
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/whatsapp/conversations/{conversation_id}/suggested-repliesinbox:write

Generate whatsapp suggested replies

Required platform scope: `inbox:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "conversation_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Conversation Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {
        "suggested_replies": [
          {
            "type": "string"
          }
        ]
      }
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/whatsapp/conversations/{conversation_id}/replyinbox:write

Reply to whatsapp conversation

Required platform scope: `inbox:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "conversation_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Conversation Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Request: application/json

{
  "body": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "reply_to_message_id": [
    {
      "type": "integer"
    },
    {
      "type": "null"
    }
  ],
  "media_url": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "media_type": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ]
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {
        "id (required)": {
          "type": "integer"
        },
        "meta_message_id": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "reply_to_message_id": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "reply_to_meta_message_id": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "reaction_target_message_id": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "reaction_target_meta_message_id": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "reaction_emoji": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "message_type": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "message_body": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "media_url": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "template_name": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "template_language": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "direction": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "status": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "sent_at": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "delivered_at": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "read_at": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "failed_at": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "customer_service_window_expires_at": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "created_at": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "updated_at": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ]
      }
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/whatsapp/conversations/{conversation_id}/messages/{message_id}/reactioninbox:write

React to whatsapp message

Required platform scope: `inbox:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "conversation_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Conversation Id"
    }
  },
  {
    "name": "message_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Message Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Request: application/json

{
  "emoji": {
    "type": "string",
    "default": ""
  }
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {
        "id (required)": {
          "type": "integer"
        },
        "meta_message_id": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "reply_to_message_id": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "reply_to_meta_message_id": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "reaction_target_message_id": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "reaction_target_meta_message_id": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "reaction_emoji": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "message_type": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "message_body": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "media_url": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "template_name": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "template_language": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "direction": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "status": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "sent_at": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "delivered_at": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "read_at": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "failed_at": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "customer_service_window_expires_at": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "created_at": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "updated_at": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ]
      }
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
PATCH/whatsapp/conversations/{conversation_id}inbox:write

Update whatsapp conversation

Required platform scope: `inbox:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "conversation_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Conversation Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Request: application/json

{
  "status": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "assigned_user_id": [
    {
      "type": "integer"
    },
    {
      "type": "null"
    }
  ],
  "ai_auto_reply_status": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "ai_auto_reply_reason": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ]
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {
        "id (required)": {
          "type": "integer"
        },
        "contact_id (required)": {
          "type": "integer"
        },
        "contact_name": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "contact_phone": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "contact_username": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "linked_email": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "linked_sent_email_id": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "email_linked_at": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "status": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "last_message_at": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "last_message_preview": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "unread_count": {
          "type": "integer",
          "default": 0
        },
        "customer_service_window_expires_at": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "template_required": {
          "type": "boolean",
          "default": false
        },
        "assigned_user_id": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "assigned_user_name": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "ai_auto_reply_status": {
          "type": "string",
          "default": "active"
        },
        "ai_auto_reply_reason": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "ai_auto_reply_completed_at": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "window_active": {
          "type": "boolean",
          "default": false
        },
        "created_at": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "updated_at": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ]
      }
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/whatsapp/contactsinbox:read

List whatsapp contacts

Required platform scope: `inbox:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "integration_id",
    "in": "query",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Integration Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": [
        {
          "id (required)": {
            "type": "integer"
          },
          "profile_picture_url": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "contact_phone": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "contact_user_id": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "contact_username": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "contact_name": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "linked_email": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "linked_sent_email_id": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "email_linked_at": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "tags": [
            {
              "type": "string"
            }
          ],
          "notes_summary": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "assigned_user_id": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "assigned_user_name": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "last_inbound_at": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "last_outbound_at": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "created_at": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "updated_at": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        }
      ]
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/whatsapp/contacts/{contact_id}inbox:read

Get whatsapp contact

Required platform scope: `inbox:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "contact_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Contact Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {
        "id (required)": {
          "type": "integer"
        },
        "profile_picture_url": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "contact_phone": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "contact_user_id": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "contact_username": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "contact_name": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "linked_email": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "linked_sent_email_id": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "email_linked_at": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "tags": [
          {
            "type": "string"
          }
        ],
        "notes_summary": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "assigned_user_id": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "assigned_user_name": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "last_inbound_at": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "last_outbound_at": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "created_at": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "updated_at": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ]
      }
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
PATCH/whatsapp/contacts/{contact_id}inbox:write

Update whatsapp contact

Required platform scope: `inbox:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "contact_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Contact Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Request: application/json

{
  "contact_name": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "linked_email": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "tags": [
    [
      {
        "type": "string"
      }
    ],
    {
      "type": "null"
    }
  ],
  "notes_summary": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "assigned_user_id": [
    {
      "type": "integer"
    },
    {
      "type": "null"
    }
  ]
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {
        "id (required)": {
          "type": "integer"
        },
        "profile_picture_url": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "contact_phone": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "contact_user_id": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "contact_username": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "contact_name": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "linked_email": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "linked_sent_email_id": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "email_linked_at": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "tags": [
          {
            "type": "string"
          }
        ],
        "notes_summary": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "assigned_user_id": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "assigned_user_name": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "last_inbound_at": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "last_outbound_at": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "created_at": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "updated_at": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ]
      }
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/whatsapp/contacts/{contact_id}/notesinbox:write

Create whatsapp note

Required platform scope: `inbox:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "contact_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Contact Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Request: application/json

{
  "note_body (required)": {
    "type": "string"
  }
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {
        "id (required)": {
          "type": "integer"
        },
        "conversation_id (required)": {
          "type": "integer"
        },
        "contact_id (required)": {
          "type": "integer"
        },
        "user_id": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "user_name": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "note_body (required)": {
          "type": "string"
        },
        "created_at": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "updated_at": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ]
      }
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/whatsapp/templatesinbox:read

List whatsapp templates

Required platform scope: `inbox:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "integration_id",
    "in": "query",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Integration Id"
    }
  },
  {
    "name": "all_integrations",
    "in": "query",
    "required": false,
    "schema": {
      "type": "boolean",
      "default": false,
      "title": "All Integrations"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": [
        {
          "id (required)": {
            "type": "integer"
          },
          "organization_id (required)": {
            "type": "integer"
          },
          "integration_id (required)": {
            "type": "integer"
          },
          "waba_id": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "meta_template_id": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "name (required)": {
            "type": "string"
          },
          "category (required)": {
            "type": "string"
          },
          "language (required)": {
            "type": "string"
          },
          "header": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "body (required)": {
            "type": "string"
          },
          "footer": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "buttons_json": [
            {
              "type": "object"
            }
          ],
          "variables_json": [
            {
              "type": "string"
            }
          ],
          "status (required)": {
            "type": "string"
          },
          "rejection_reason": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "last_submitted_at": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "created_at (required)": {
            "type": "string"
          },
          "updated_at (required)": {
            "type": "string"
          }
        }
      ]
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/whatsapp/messages/template-sendinbox:write

Send new whatsapp template message

Required platform scope: `inbox:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Request: application/json

{
  "integration_id": [
    {
      "type": "integer"
    },
    {
      "type": "null"
    }
  ],
  "phone_number (required)": {
    "type": "string"
  },
  "template_id (required)": {
    "type": "integer"
  },
  "variables": [
    {
      "type": "string"
    }
  ]
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {
        "id (required)": {
          "type": "integer"
        },
        "meta_message_id": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "reply_to_message_id": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "reply_to_meta_message_id": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "reaction_target_message_id": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "reaction_target_meta_message_id": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "reaction_emoji": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "message_type": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "message_body": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "media_url": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "template_name": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "template_language": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "direction": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "status": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "sent_at": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "delivered_at": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "read_at": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "failed_at": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "customer_service_window_expires_at": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "created_at": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "updated_at": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ]
      }
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/media/stock/searchmedia:read

Search stock photos

Search the stock photography library. The same search the design assistant runs, exposed so the editor's photo picker offers the user the library the assistant is already choosing from - two different sets of pictures on the two surfaces would be its own bug. `configured` is false rather than an error when no key is set, so the panel can hide the tab instead of showing a failure the user cannot act on. Attribution travels with every result: Pexels asks that the photographer and the source be credited wherever a photo from their API is shown. Required platform scope: `media:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "query",
    "in": "query",
    "required": true,
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 120,
      "description": "What the picture should show.",
      "title": "Query"
    },
    "description": "What the picture should show."
  },
  {
    "name": "orientation",
    "in": "query",
    "required": false,
    "schema": {
      "type": "string",
      "description": "landscape, portrait or square.",
      "default": "landscape",
      "title": "Orientation"
    },
    "description": "landscape, portrait or square."
  },
  {
    "name": "limit",
    "in": "query",
    "required": false,
    "schema": {
      "type": "integer",
      "maximum": 8,
      "minimum": 1,
      "default": 4,
      "title": "Limit"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/mediamedia:read

List media

List media assets stored in the organization for websites and graphic artboards. Required platform scope: `media:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "organization_id",
    "in": "query",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "description": "Optional organization ID override",
      "title": "Organization Id"
    },
    "description": "Optional organization ID override"
  },
  {
    "name": "source",
    "in": "query",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Filter by upload or graphics_export",
      "title": "Source"
    },
    "description": "Filter by upload or graphics_export"
  },
  {
    "name": "limit",
    "in": "query",
    "required": false,
    "schema": {
      "type": "integer",
      "maximum": 200,
      "minimum": 1,
      "default": 50,
      "title": "Limit"
    }
  },
  {
    "name": "offset",
    "in": "query",
    "required": false,
    "schema": {
      "type": "integer",
      "minimum": 0,
      "default": 0,
      "title": "Offset"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": [
        {
          "name (required)": {
            "type": "string"
          },
          "url (required)": {
            "type": "string"
          },
          "mime_type": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "size_bytes": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "source": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "id (required)": {
            "type": "string"
          },
          "organization_id (required)": {
            "type": "integer"
          },
          "created_at (required)": {
            "type": "string"
          }
        }
      ]
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/builder/projectssites:read

List projects

List website projects within an organization. Required platform scope: `sites:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "organization_id",
    "in": "query",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "description": "Optional organization ID override",
      "title": "Organization Id"
    },
    "description": "Optional organization ID override"
  },
  {
    "name": "status",
    "in": "query",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Filter by status: draft | published",
      "title": "Status"
    },
    "description": "Filter by status: draft | published"
  },
  {
    "name": "search",
    "in": "query",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Search by name",
      "title": "Search"
    },
    "description": "Search by name"
  },
  {
    "name": "limit",
    "in": "query",
    "required": false,
    "schema": {
      "type": "integer",
      "maximum": 100,
      "minimum": 1,
      "default": 50,
      "title": "Limit"
    }
  },
  {
    "name": "offset",
    "in": "query",
    "required": false,
    "schema": {
      "type": "integer",
      "minimum": 0,
      "default": 0,
      "title": "Offset"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": [
        {
          "name (required)": {
            "type": "string"
          },
          "slug": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "template": {
            "type": "string",
            "default": "blank"
          },
          "status": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "seo": [
            {
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "engine": {
            "type": "string",
            "default": "builder"
          },
          "id (required)": {
            "type": "string"
          },
          "organization_id (required)": {
            "type": "integer"
          },
          "published_at": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "created_at (required)": {
            "type": "string"
          },
          "updated_at (required)": {
            "type": "string"
          },
          "domain": [
            {
              "host (required)": {
                "type": "string"
              },
              "id (required)": {
                "type": "string"
              },
              "project_id (required)": {
                "type": "string"
              },
              "verified (required)": {
                "type": "boolean"
              },
              "is_primary": {
                "type": "boolean",
                "default": false
              },
              "added_at (required)": {
                "type": "string"
              }
            },
            {
              "type": "null"
            }
          ],
          "domains": [
            {
              "host (required)": {
                "type": "string"
              },
              "id (required)": {
                "type": "string"
              },
              "project_id (required)": {
                "type": "string"
              },
              "verified (required)": {
                "type": "boolean"
              },
              "is_primary": {
                "type": "boolean",
                "default": false
              },
              "added_at (required)": {
                "type": "string"
              }
            }
          ],
          "pages_count": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "forms": [
            {
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "draft_revision": {
            "type": "integer",
            "default": 0
          },
          "published_revision": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "plan": [
            {
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "built": {
            "type": "boolean",
            "default": true
          }
        }
      ]
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/builder/projectssites:write

Create project

Create a new website project with template scaffolds. Required platform scope: `sites:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "organization_id",
    "in": "query",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "description": "Optional organization ID override",
      "title": "Organization Id"
    },
    "description": "Optional organization ID override"
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Request: application/json

{
  "name (required)": {
    "type": "string"
  },
  "slug": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "template": {
    "type": "string",
    "default": "blank"
  },
  "status": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "seo": [
    {
      "type": "object"
    },
    {
      "type": "null"
    }
  ],
  "initial_pages": [
    [
      {
        "type": "object"
      }
    ],
    {
      "type": "null"
    }
  ],
  "setup": [
    {
      "category (required)": {
        "type": "string",
        "enum": [
          "saas",
          "portfolio",
          "service",
          "help-center",
          "store"
        ]
      },
      "features": {
        "aiChat": {
          "type": "boolean",
          "default": false
        },
        "newsletter": {
          "type": "boolean",
          "default": false
        },
        "blog": {
          "type": "boolean",
          "default": false
        },
        "contact": {
          "type": "boolean",
          "default": false
        },
        "digitalProducts": {
          "type": "boolean",
          "default": false
        }
      },
      "designBrief (required)": {
        "type": "string"
      }
    },
    {
      "type": "null"
    }
  ]
}

Responses

{
  "201": {
    "description": "Successful Response",
    "content": {
      "application/json": {
        "name (required)": {
          "type": "string"
        },
        "slug": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "template": {
          "type": "string",
          "default": "blank"
        },
        "status": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "seo": [
          {
            "type": "object"
          },
          {
            "type": "null"
          }
        ],
        "engine": {
          "type": "string",
          "default": "builder"
        },
        "id (required)": {
          "type": "string"
        },
        "organization_id (required)": {
          "type": "integer"
        },
        "published_at": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "created_at (required)": {
          "type": "string"
        },
        "updated_at (required)": {
          "type": "string"
        },
        "domain": [
          {
            "host (required)": {
              "type": "string"
            },
            "id (required)": {
              "type": "string"
            },
            "project_id (required)": {
              "type": "string"
            },
            "verified (required)": {
              "type": "boolean"
            },
            "is_primary": {
              "type": "boolean",
              "default": false
            },
            "added_at (required)": {
              "type": "string"
            }
          },
          {
            "type": "null"
          }
        ],
        "domains": [
          {
            "host (required)": {
              "type": "string"
            },
            "id (required)": {
              "type": "string"
            },
            "project_id (required)": {
              "type": "string"
            },
            "verified (required)": {
              "type": "boolean"
            },
            "is_primary": {
              "type": "boolean",
              "default": false
            },
            "added_at (required)": {
              "type": "string"
            }
          }
        ],
        "pages_count": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "forms": [
          {
            "type": "object"
          },
          {
            "type": "null"
          }
        ],
        "draft_revision": {
          "type": "integer",
          "default": 0
        },
        "published_revision": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "plan": [
          {
            "type": "object"
          },
          {
            "type": "null"
          }
        ],
        "built": {
          "type": "boolean",
          "default": true
        }
      }
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/builder/projects/{project_id}sites:read

Get project

Get project details. Required platform scope: `sites:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "project_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "format": "uuid",
      "title": "Project Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {
        "name (required)": {
          "type": "string"
        },
        "slug": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "template": {
          "type": "string",
          "default": "blank"
        },
        "status": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "seo": [
          {
            "type": "object"
          },
          {
            "type": "null"
          }
        ],
        "engine": {
          "type": "string",
          "default": "builder"
        },
        "id (required)": {
          "type": "string"
        },
        "organization_id (required)": {
          "type": "integer"
        },
        "published_at": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "created_at (required)": {
          "type": "string"
        },
        "updated_at (required)": {
          "type": "string"
        },
        "domain": [
          {
            "host (required)": {
              "type": "string"
            },
            "id (required)": {
              "type": "string"
            },
            "project_id (required)": {
              "type": "string"
            },
            "verified (required)": {
              "type": "boolean"
            },
            "is_primary": {
              "type": "boolean",
              "default": false
            },
            "added_at (required)": {
              "type": "string"
            }
          },
          {
            "type": "null"
          }
        ],
        "domains": [
          {
            "host (required)": {
              "type": "string"
            },
            "id (required)": {
              "type": "string"
            },
            "project_id (required)": {
              "type": "string"
            },
            "verified (required)": {
              "type": "boolean"
            },
            "is_primary": {
              "type": "boolean",
              "default": false
            },
            "added_at (required)": {
              "type": "string"
            }
          }
        ],
        "pages_count": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "forms": [
          {
            "type": "object"
          },
          {
            "type": "null"
          }
        ],
        "draft_revision": {
          "type": "integer",
          "default": 0
        },
        "published_revision": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "plan": [
          {
            "type": "object"
          },
          {
            "type": "null"
          }
        ],
        "built": {
          "type": "boolean",
          "default": true
        }
      }
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/builder/projects/{project_id}/treesites:read

Get project tree

Get complete hierarchical project tree (pages -> sections -> elements). Required platform scope: `sites:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "project_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "format": "uuid",
      "title": "Project Id"
    }
  },
  {
    "name": "is_published",
    "in": "query",
    "required": false,
    "schema": {
      "type": "boolean",
      "description": "Load draft tree (false) or published tree (true)",
      "default": false,
      "title": "Is Published"
    },
    "description": "Load draft tree (false) or published tree (true)"
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {
        "name (required)": {
          "type": "string"
        },
        "slug": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "template": {
          "type": "string",
          "default": "blank"
        },
        "status": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "seo": [
          {
            "type": "object"
          },
          {
            "type": "null"
          }
        ],
        "engine": {
          "type": "string",
          "default": "builder"
        },
        "id (required)": {
          "type": "string"
        },
        "organization_id (required)": {
          "type": "integer"
        },
        "published_at": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "created_at (required)": {
          "type": "string"
        },
        "updated_at (required)": {
          "type": "string"
        },
        "domain": [
          {
            "host (required)": {
              "type": "string"
            },
            "id (required)": {
              "type": "string"
            },
            "project_id (required)": {
              "type": "string"
            },
            "verified (required)": {
              "type": "boolean"
            },
            "is_primary": {
              "type": "boolean",
              "default": false
            },
            "added_at (required)": {
              "type": "string"
            }
          },
          {
            "type": "null"
          }
        ],
        "domains": [
          {
            "host (required)": {
              "type": "string"
            },
            "id (required)": {
              "type": "string"
            },
            "project_id (required)": {
              "type": "string"
            },
            "verified (required)": {
              "type": "boolean"
            },
            "is_primary": {
              "type": "boolean",
              "default": false
            },
            "added_at (required)": {
              "type": "string"
            }
          }
        ],
        "pages_count": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "forms": [
          {
            "type": "object"
          },
          {
            "type": "null"
          }
        ],
        "draft_revision": {
          "type": "integer",
          "default": 0
        },
        "published_revision": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "plan": [
          {
            "type": "object"
          },
          {
            "type": "null"
          }
        ],
        "built": {
          "type": "boolean",
          "default": true
        },
        "pages": [
          {
            "logical_key": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "name (required)": {
              "type": "string"
            },
            "path (required)": {
              "type": "string"
            },
            "sort_order": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "is_published": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "seo": [
              {
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "id (required)": {
              "type": "string"
            },
            "project_id (required)": {
              "type": "string"
            },
            "sections": [
              {
                "name (required)": "string",
                "height (required)": "integer",
                "background": "object",
                "sort_order": "object",
                "props": "object",
                "id (required)": "string",
                "page_id (required)": "string",
                "elements": "array"
              }
            ]
          }
        ]
      }
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
PATCH/builder/projects/{project_id}sites:write

Update project

Update website project settings, name, slug, template, SEO or form backends. Required platform scope: `sites:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "project_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "format": "uuid",
      "title": "Project Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Request: application/json

{
  "name": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "slug": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "template": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "status": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "seo": [
    {
      "type": "object"
    },
    {
      "type": "null"
    }
  ],
  "forms": [
    {
      "type": "object"
    },
    {
      "type": "null"
    }
  ],
  "plan": [
    {
      "type": "object"
    },
    {
      "type": "null"
    }
  ],
  "features": [
    {
      "aiChat": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "newsletter": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "blog": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "contact": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "digitalProducts": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ]
    },
    {
      "type": "null"
    }
  ]
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {
        "name (required)": {
          "type": "string"
        },
        "slug": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "template": {
          "type": "string",
          "default": "blank"
        },
        "status": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "seo": [
          {
            "type": "object"
          },
          {
            "type": "null"
          }
        ],
        "engine": {
          "type": "string",
          "default": "builder"
        },
        "id (required)": {
          "type": "string"
        },
        "organization_id (required)": {
          "type": "integer"
        },
        "published_at": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "created_at (required)": {
          "type": "string"
        },
        "updated_at (required)": {
          "type": "string"
        },
        "domain": [
          {
            "host (required)": {
              "type": "string"
            },
            "id (required)": {
              "type": "string"
            },
            "project_id (required)": {
              "type": "string"
            },
            "verified (required)": {
              "type": "boolean"
            },
            "is_primary": {
              "type": "boolean",
              "default": false
            },
            "added_at (required)": {
              "type": "string"
            }
          },
          {
            "type": "null"
          }
        ],
        "domains": [
          {
            "host (required)": {
              "type": "string"
            },
            "id (required)": {
              "type": "string"
            },
            "project_id (required)": {
              "type": "string"
            },
            "verified (required)": {
              "type": "boolean"
            },
            "is_primary": {
              "type": "boolean",
              "default": false
            },
            "added_at (required)": {
              "type": "string"
            }
          }
        ],
        "pages_count": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "forms": [
          {
            "type": "object"
          },
          {
            "type": "null"
          }
        ],
        "draft_revision": {
          "type": "integer",
          "default": 0
        },
        "published_revision": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "plan": [
          {
            "type": "object"
          },
          {
            "type": "null"
          }
        ],
        "built": {
          "type": "boolean",
          "default": true
        }
      }
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/builder/projects/{project_id}/publishsites:publish

Publish project

Promote current draft pages, sections, and elements into the live published snapshot. Required platform scope: `sites:publish`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "project_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "format": "uuid",
      "title": "Project Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Request: application/json

[
  {
    "pages (required)": [
      {
        "logical_key": [
          "string",
          "null"
        ],
        "id": [
          "string",
          "null"
        ],
        "name": {
          "type": "string",
          "default": "Home"
        },
        "path": {
          "type": "string",
          "default": "/"
        },
        "sort_order": [
          "integer",
          "null"
        ],
        "seo": [
          "object",
          "null"
        ],
        "sections": [
          "object"
        ]
      }
    ],
    "base_revision": [
      {
        "type": "integer"
      },
      {
        "type": "null"
      }
    ]
  },
  {
    "type": "null"
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {
        "success (required)": {
          "type": "boolean"
        },
        "status (required)": {
          "type": "string"
        },
        "published_at (required)": {
          "type": "string"
        },
        "public_url (required)": {
          "type": "string"
        },
        "slug": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "custom_domain": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "draft_revision": {
          "type": "integer",
          "default": 0
        }
      }
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/builder/projects/{project_id}/revisionssites:read

List revisions

Saved versions of the site, newest first: checkpoints, autosaves, publishes. Required platform scope: `sites:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "project_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "format": "uuid",
      "title": "Project Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": [
        {
          "id (required)": {
            "type": "string"
          },
          "kind (required)": {
            "type": "string"
          },
          "label (required)": {
            "type": "string"
          },
          "draft_revision (required)": {
            "type": "integer"
          },
          "created_at (required)": {
            "type": "string"
          },
          "created_by": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "pages": [
            {
              "type": "string"
            }
          ],
          "sections": {
            "type": "integer",
            "default": 0
          }
        }
      ]
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/builder/projects/{project_id}/revisions/{revision_id}/restoresites:write

Restore revision

Make a saved version the draft again. The live site is unchanged until published. Required platform scope: `sites:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "project_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "format": "uuid",
      "title": "Project Id"
    }
  },
  {
    "name": "revision_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "format": "uuid",
      "title": "Revision Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {
        "name (required)": {
          "type": "string"
        },
        "slug": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "template": {
          "type": "string",
          "default": "blank"
        },
        "status": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "seo": [
          {
            "type": "object"
          },
          {
            "type": "null"
          }
        ],
        "engine": {
          "type": "string",
          "default": "builder"
        },
        "id (required)": {
          "type": "string"
        },
        "organization_id (required)": {
          "type": "integer"
        },
        "published_at": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "created_at (required)": {
          "type": "string"
        },
        "updated_at (required)": {
          "type": "string"
        },
        "domain": [
          {
            "host (required)": {
              "type": "string"
            },
            "id (required)": {
              "type": "string"
            },
            "project_id (required)": {
              "type": "string"
            },
            "verified (required)": {
              "type": "boolean"
            },
            "is_primary": {
              "type": "boolean",
              "default": false
            },
            "added_at (required)": {
              "type": "string"
            }
          },
          {
            "type": "null"
          }
        ],
        "domains": [
          {
            "host (required)": {
              "type": "string"
            },
            "id (required)": {
              "type": "string"
            },
            "project_id (required)": {
              "type": "string"
            },
            "verified (required)": {
              "type": "boolean"
            },
            "is_primary": {
              "type": "boolean",
              "default": false
            },
            "added_at (required)": {
              "type": "string"
            }
          }
        ],
        "pages_count": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "forms": [
          {
            "type": "object"
          },
          {
            "type": "null"
          }
        ],
        "draft_revision": {
          "type": "integer",
          "default": 0
        },
        "published_revision": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "plan": [
          {
            "type": "object"
          },
          {
            "type": "null"
          }
        ],
        "built": {
          "type": "boolean",
          "default": true
        },
        "pages": [
          {
            "logical_key": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "name (required)": {
              "type": "string"
            },
            "path (required)": {
              "type": "string"
            },
            "sort_order": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "is_published": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "seo": [
              {
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "id (required)": {
              "type": "string"
            },
            "project_id (required)": {
              "type": "string"
            },
            "sections": [
              {
                "name (required)": "string",
                "height (required)": "integer",
                "background": "object",
                "sort_order": "object",
                "props": "object",
                "id (required)": "string",
                "page_id (required)": "string",
                "elements": "array"
              }
            ]
          }
        ]
      }
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/builder/projects/{project_id}/unpublishsites:publish

Unpublish project

Take a published website offline (status -> draft). Required platform scope: `sites:publish`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "project_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "format": "uuid",
      "title": "Project Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {
        "name (required)": {
          "type": "string"
        },
        "slug": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "template": {
          "type": "string",
          "default": "blank"
        },
        "status": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "seo": [
          {
            "type": "object"
          },
          {
            "type": "null"
          }
        ],
        "engine": {
          "type": "string",
          "default": "builder"
        },
        "id (required)": {
          "type": "string"
        },
        "organization_id (required)": {
          "type": "integer"
        },
        "published_at": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "created_at (required)": {
          "type": "string"
        },
        "updated_at (required)": {
          "type": "string"
        },
        "domain": [
          {
            "host (required)": {
              "type": "string"
            },
            "id (required)": {
              "type": "string"
            },
            "project_id (required)": {
              "type": "string"
            },
            "verified (required)": {
              "type": "boolean"
            },
            "is_primary": {
              "type": "boolean",
              "default": false
            },
            "added_at (required)": {
              "type": "string"
            }
          },
          {
            "type": "null"
          }
        ],
        "domains": [
          {
            "host (required)": {
              "type": "string"
            },
            "id (required)": {
              "type": "string"
            },
            "project_id (required)": {
              "type": "string"
            },
            "verified (required)": {
              "type": "boolean"
            },
            "is_primary": {
              "type": "boolean",
              "default": false
            },
            "added_at (required)": {
              "type": "string"
            }
          }
        ],
        "pages_count": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "forms": [
          {
            "type": "object"
          },
          {
            "type": "null"
          }
        ],
        "draft_revision": {
          "type": "integer",
          "default": 0
        },
        "published_revision": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "plan": [
          {
            "type": "object"
          },
          {
            "type": "null"
          }
        ],
        "built": {
          "type": "boolean",
          "default": true
        }
      }
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/builder/projects/{project_id}/domainsites:read

Get project domain

Get the custom domain associated with the project. Required platform scope: `sites:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "project_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "format": "uuid",
      "title": "Project Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": [
        {
          "host (required)": {
            "type": "string"
          },
          "id (required)": {
            "type": "string"
          },
          "project_id (required)": {
            "type": "string"
          },
          "verified (required)": {
            "type": "boolean"
          },
          "is_primary": {
            "type": "boolean",
            "default": false
          },
          "added_at (required)": {
            "type": "string"
          }
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/builder/projects/{project_id}/pagessites:read

List pages

List pages of a project. Required platform scope: `sites:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "project_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "format": "uuid",
      "title": "Project Id"
    }
  },
  {
    "name": "is_published",
    "in": "query",
    "required": false,
    "schema": {
      "type": "boolean",
      "description": "Filter draft pages (false) or published pages (true)",
      "default": false,
      "title": "Is Published"
    },
    "description": "Filter draft pages (false) or published pages (true)"
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": [
        {
          "logical_key": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "name (required)": {
            "type": "string"
          },
          "path (required)": {
            "type": "string"
          },
          "sort_order": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "is_published": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "seo": [
            {
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "id (required)": {
            "type": "string"
          },
          "project_id (required)": {
            "type": "string"
          }
        }
      ]
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/builder/projects/{project_id}/forms/{kind}/submissionssites:read

List form submissions

Submissions this site has collected, newest first. Required platform scope: `sites:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "project_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "format": "uuid",
      "title": "Project Id"
    }
  },
  {
    "name": "kind",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Kind"
    }
  },
  {
    "name": "limit",
    "in": "query",
    "required": false,
    "schema": {
      "type": "integer",
      "maximum": 200,
      "minimum": 1,
      "default": 50,
      "title": "Limit"
    }
  },
  {
    "name": "offset",
    "in": "query",
    "required": false,
    "schema": {
      "type": "integer",
      "minimum": 0,
      "default": 0,
      "title": "Offset"
    }
  },
  {
    "name": "live_only",
    "in": "query",
    "required": false,
    "schema": {
      "type": "boolean",
      "default": false,
      "title": "Live Only"
    }
  },
  {
    "name": "include_test",
    "in": "query",
    "required": false,
    "schema": {
      "type": "boolean",
      "default": false,
      "title": "Include Test"
    }
  },
  {
    "name": "submission_id",
    "in": "query",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 1
        },
        {
          "type": "null"
        }
      ],
      "title": "Submission Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {
        "items": [
          {
            "id (required)": {
              "type": "string"
            },
            "kind (required)": {
              "type": "string"
            },
            "data": {
              "type": "object"
            },
            "element_id": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "page_id": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "is_test": {
              "type": "boolean",
              "default": false
            },
            "confirmation_status": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "created_at (required)": {
              "type": "string"
            }
          }
        ],
        "total": {
          "type": "integer",
          "default": 0
        }
      }
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/builder/projects/{project_id}/blogssites:read

List blogs

Required platform scope: `sites:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "project_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "format": "uuid",
      "title": "Project Id"
    }
  },
  {
    "name": "offset",
    "in": "query",
    "required": false,
    "schema": {
      "type": "integer",
      "minimum": 0,
      "default": 0,
      "title": "Offset"
    }
  },
  {
    "name": "limit",
    "in": "query",
    "required": false,
    "schema": {
      "type": "integer",
      "maximum": 100,
      "minimum": 1,
      "default": 50,
      "title": "Limit"
    }
  },
  {
    "name": "search",
    "in": "query",
    "required": false,
    "schema": {
      "type": "string",
      "maxLength": 200,
      "default": "",
      "title": "Search"
    }
  },
  {
    "name": "status",
    "in": "query",
    "required": false,
    "schema": {
      "enum": [
        "all",
        "draft",
        "published",
        "changed"
      ],
      "type": "string",
      "default": "all",
      "title": "Status"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/builder/projects/{project_id}/blogssites:write

Create blog

Required platform scope: `sites:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "project_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "format": "uuid",
      "title": "Project Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Request: application/json

{
  "title": {
    "type": "string",
    "default": ""
  },
  "slug": {
    "type": "string",
    "default": ""
  },
  "content_json": {
    "type": "object"
  },
  "description": {
    "type": "string",
    "default": ""
  },
  "summary": {
    "type": "string",
    "default": ""
  },
  "cover_image": {
    "type": "string",
    "default": ""
  },
  "cover_alt": {
    "type": "string",
    "default": ""
  },
  "cover_design_id": {
    "type": "string",
    "default": ""
  },
  "category": {
    "type": "string",
    "default": ""
  },
  "section": {
    "type": "string",
    "default": ""
  },
  "tags": [
    {
      "type": "string"
    }
  ],
  "author_name": {
    "type": "string",
    "default": ""
  },
  "author_avatar": {
    "type": "string",
    "default": ""
  },
  "seo_title": {
    "type": "string",
    "default": ""
  },
  "canonical_url": {
    "type": "string",
    "default": ""
  },
  "noindex": {
    "type": "boolean",
    "default": false
  },
  "featured": {
    "type": "boolean",
    "default": false
  }
}

Responses

{
  "201": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/builder/projects/{project_id}/blogs/taxonomysites:read

Taxonomy

Required platform scope: `sites:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "project_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "format": "uuid",
      "title": "Project Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/builder/projects/{project_id}/blogs/categoriessites:read

List categories

Required platform scope: `sites:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "project_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "format": "uuid",
      "title": "Project Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/builder/projects/{project_id}/blogs/categoriessites:write

Create category

Required platform scope: `sites:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "project_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "format": "uuid",
      "title": "Project Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Request: application/json

{
  "name (required)": {
    "type": "string"
  }
}

Responses

{
  "201": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/builder/projects/{project_id}/blogs/check-slugsites:read

Check slug

Required platform scope: `sites:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "project_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "format": "uuid",
      "title": "Project Id"
    }
  },
  {
    "name": "slug",
    "in": "query",
    "required": true,
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160,
      "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
      "title": "Slug"
    }
  },
  {
    "name": "post_id",
    "in": "query",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "Post Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/builder/projects/{project_id}/blogs/{post_id}sites:read

Get blog

Required platform scope: `sites:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "post_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "format": "uuid",
      "title": "Post Id"
    }
  },
  {
    "name": "project_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "format": "uuid",
      "title": "Project Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
PUT/builder/projects/{project_id}/blogs/{post_id}sites:write

Save blog

Required platform scope: `sites:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "post_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "format": "uuid",
      "title": "Post Id"
    }
  },
  {
    "name": "project_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "format": "uuid",
      "title": "Project Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Request: application/json

{
  "revision (required)": {
    "type": "integer"
  },
  "draft (required)": {
    "title": {
      "type": "string",
      "default": ""
    },
    "slug": {
      "type": "string",
      "default": ""
    },
    "content_json": {
      "type": "object"
    },
    "description": {
      "type": "string",
      "default": ""
    },
    "summary": {
      "type": "string",
      "default": ""
    },
    "cover_image": {
      "type": "string",
      "default": ""
    },
    "cover_alt": {
      "type": "string",
      "default": ""
    },
    "cover_design_id": {
      "type": "string",
      "default": ""
    },
    "category": {
      "type": "string",
      "default": ""
    },
    "section": {
      "type": "string",
      "default": ""
    },
    "tags": [
      {
        "type": "string"
      }
    ],
    "author_name": {
      "type": "string",
      "default": ""
    },
    "author_avatar": {
      "type": "string",
      "default": ""
    },
    "seo_title": {
      "type": "string",
      "default": ""
    },
    "canonical_url": {
      "type": "string",
      "default": ""
    },
    "noindex": {
      "type": "boolean",
      "default": false
    },
    "featured": {
      "type": "boolean",
      "default": false
    }
  }
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/builder/projects/{project_id}/blogs/{post_id}/publishsites:publish

Publish blog

Required platform scope: `sites:publish`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "post_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "format": "uuid",
      "title": "Post Id"
    }
  },
  {
    "name": "project_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "format": "uuid",
      "title": "Project Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Request: application/json

{
  "revision (required)": {
    "type": "integer"
  },
  "draft (required)": {
    "title": {
      "type": "string",
      "default": ""
    },
    "slug": {
      "type": "string",
      "default": ""
    },
    "content_json": {
      "type": "object"
    },
    "description": {
      "type": "string",
      "default": ""
    },
    "summary": {
      "type": "string",
      "default": ""
    },
    "cover_image": {
      "type": "string",
      "default": ""
    },
    "cover_alt": {
      "type": "string",
      "default": ""
    },
    "cover_design_id": {
      "type": "string",
      "default": ""
    },
    "category": {
      "type": "string",
      "default": ""
    },
    "section": {
      "type": "string",
      "default": ""
    },
    "tags": [
      {
        "type": "string"
      }
    ],
    "author_name": {
      "type": "string",
      "default": ""
    },
    "author_avatar": {
      "type": "string",
      "default": ""
    },
    "seo_title": {
      "type": "string",
      "default": ""
    },
    "canonical_url": {
      "type": "string",
      "default": ""
    },
    "noindex": {
      "type": "boolean",
      "default": false
    },
    "featured": {
      "type": "boolean",
      "default": false
    }
  }
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/builder/projects/{project_id}/blogs/{post_id}/unpublishsites:publish

Unpublish blog

Required platform scope: `sites:publish`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "post_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "format": "uuid",
      "title": "Post Id"
    }
  },
  {
    "name": "project_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "format": "uuid",
      "title": "Project Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Request: application/json

{
  "revision (required)": {
    "type": "integer"
  }
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
DELETE/builder/projects/{project_id}/blogs/{post_id}sites:write

Delete blog

Required platform scope: `sites:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "post_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "format": "uuid",
      "title": "Post Id"
    }
  },
  {
    "name": "project_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "format": "uuid",
      "title": "Project Id"
    }
  },
  {
    "name": "revision",
    "in": "query",
    "required": true,
    "schema": {
      "type": "integer",
      "minimum": 1,
      "title": "Revision"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "204": {
    "description": "Successful Response",
    "content": {}
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/commerce/projects/{project_id}/storesites:read

Get store

Required platform scope: `sites:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "project_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "format": "uuid",
      "title": "Project Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
PUT/commerce/projects/{project_id}/storesites:write

Save store

Required platform scope: `sites:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "project_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "format": "uuid",
      "title": "Project Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Request: application/json

{
  "enabled": [
    {
      "type": "boolean"
    },
    {
      "type": "null"
    }
  ],
  "support_email": [
    {
      "type": "string"
    },
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "refund_policy": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "default_currency": [
    {
      "type": "string",
      "enum": [
        "usd",
        "aud",
        "cad",
        "eur",
        "gbp",
        "nzd",
        "sgd",
        "chf",
        "sek",
        "nok",
        "dkk",
        "hkd",
        "mxn",
        "pln",
        "czk"
      ]
    },
    {
      "type": "null"
    }
  ]
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/commerce/projects/{project_id}/productssites:read

List products

Required platform scope: `sites:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "project_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "format": "uuid",
      "title": "Project Id"
    }
  },
  {
    "name": "status",
    "in": "query",
    "required": false,
    "schema": {
      "enum": [
        "all",
        "draft",
        "published",
        "archived"
      ],
      "type": "string",
      "default": "all",
      "title": "Status"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/commerce/projects/{project_id}/productssites:write

Create product

Required platform scope: `sites:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "project_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "format": "uuid",
      "title": "Project Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Request: application/json

{
  "title (required)": {
    "type": "string"
  },
  "slug": {
    "type": "string",
    "default": ""
  },
  "summary": {
    "type": "string",
    "default": ""
  },
  "description": {
    "type": "string",
    "default": ""
  },
  "description_json": [
    {
      "type": "object"
    },
    {
      "type": "null"
    }
  ],
  "price_cents": {
    "type": "integer",
    "default": 0
  },
  "currency": {
    "type": "string",
    "enum": [
      "usd",
      "aud",
      "cad",
      "eur",
      "gbp",
      "nzd",
      "sgd",
      "chf",
      "sek",
      "nok",
      "dkk",
      "hkd",
      "mxn",
      "pln",
      "czk"
    ],
    "default": "usd"
  },
  "cover_image": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "images": [
    [
      {
        "url (required)": {
          "type": "string"
        },
        "alt": {
          "type": "string",
          "default": ""
        }
      }
    ],
    {
      "type": "null"
    }
  ],
  "page": {
    "layout": {
      "type": "string",
      "enum": [
        "showcase",
        "split"
      ],
      "default": "showcase"
    },
    "image_ratio": {
      "type": "string",
      "enum": [
        "landscape",
        "square",
        "portrait"
      ],
      "default": "landscape"
    },
    "button_text": {
      "type": "string",
      "default": ""
    },
    "details": [
      {
        "label (required)": {
          "type": "string"
        },
        "value (required)": {
          "type": "string"
        }
      }
    ],
    "show_includes": {
      "type": "boolean",
      "default": true
    },
    "show_support": {
      "type": "boolean",
      "default": true
    }
  },
  "status": {
    "type": "string",
    "enum": [
      "draft",
      "published",
      "archived"
    ],
    "default": "draft"
  },
  "content": {
    "type": "string",
    "default": ""
  },
  "links": [
    {
      "label (required)": {
        "type": "string"
      },
      "url (required)": {
        "type": "string"
      }
    }
  ],
  "sort_order": {
    "type": "integer",
    "default": 0
  }
}

Responses

{
  "201": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/commerce/projects/{project_id}/products/{product_id}sites:read

Get product

Required platform scope: `sites:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "product_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "format": "uuid",
      "title": "Product Id"
    }
  },
  {
    "name": "project_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "format": "uuid",
      "title": "Project Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
PUT/commerce/projects/{project_id}/products/{product_id}sites:write

Update product

Required platform scope: `sites:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "product_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "format": "uuid",
      "title": "Product Id"
    }
  },
  {
    "name": "project_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "format": "uuid",
      "title": "Project Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Request: application/json

{
  "title (required)": {
    "type": "string"
  },
  "slug": {
    "type": "string",
    "default": ""
  },
  "summary": {
    "type": "string",
    "default": ""
  },
  "description": {
    "type": "string",
    "default": ""
  },
  "description_json": [
    {
      "type": "object"
    },
    {
      "type": "null"
    }
  ],
  "price_cents": {
    "type": "integer",
    "default": 0
  },
  "currency": {
    "type": "string",
    "enum": [
      "usd",
      "aud",
      "cad",
      "eur",
      "gbp",
      "nzd",
      "sgd",
      "chf",
      "sek",
      "nok",
      "dkk",
      "hkd",
      "mxn",
      "pln",
      "czk"
    ],
    "default": "usd"
  },
  "cover_image": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "images": [
    [
      {
        "url (required)": {
          "type": "string"
        },
        "alt": {
          "type": "string",
          "default": ""
        }
      }
    ],
    {
      "type": "null"
    }
  ],
  "page": {
    "layout": {
      "type": "string",
      "enum": [
        "showcase",
        "split"
      ],
      "default": "showcase"
    },
    "image_ratio": {
      "type": "string",
      "enum": [
        "landscape",
        "square",
        "portrait"
      ],
      "default": "landscape"
    },
    "button_text": {
      "type": "string",
      "default": ""
    },
    "details": [
      {
        "label (required)": {
          "type": "string"
        },
        "value (required)": {
          "type": "string"
        }
      }
    ],
    "show_includes": {
      "type": "boolean",
      "default": true
    },
    "show_support": {
      "type": "boolean",
      "default": true
    }
  },
  "status": {
    "type": "string",
    "enum": [
      "draft",
      "published",
      "archived"
    ],
    "default": "draft"
  },
  "content": {
    "type": "string",
    "default": ""
  },
  "links": [
    {
      "label (required)": {
        "type": "string"
      },
      "url (required)": {
        "type": "string"
      }
    }
  ],
  "sort_order": {
    "type": "integer",
    "default": 0
  }
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
DELETE/commerce/projects/{project_id}/products/{product_id}sites:write

Delete product

Required platform scope: `sites:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "product_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "format": "uuid",
      "title": "Product Id"
    }
  },
  {
    "name": "project_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "format": "uuid",
      "title": "Project Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "204": {
    "description": "Successful Response",
    "content": {}
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/commerce/projects/{project_id}/orderssites:read

List orders

Required platform scope: `sites:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "project_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "format": "uuid",
      "title": "Project Id"
    }
  },
  {
    "name": "offset",
    "in": "query",
    "required": false,
    "schema": {
      "type": "integer",
      "minimum": 0,
      "default": 0,
      "title": "Offset"
    }
  },
  {
    "name": "limit",
    "in": "query",
    "required": false,
    "schema": {
      "type": "integer",
      "maximum": 100,
      "minimum": 1,
      "default": 25,
      "title": "Limit"
    }
  },
  {
    "name": "status",
    "in": "query",
    "required": false,
    "schema": {
      "enum": [
        "all",
        "paid",
        "pending",
        "refunded",
        "disputed",
        "failed",
        "expired"
      ],
      "type": "string",
      "default": "all",
      "title": "Status"
    }
  },
  {
    "name": "search",
    "in": "query",
    "required": false,
    "schema": {
      "type": "string",
      "maxLength": 200,
      "default": "",
      "title": "Search"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/commerce/projects/{project_id}/customerssites:read

List customers

Required platform scope: `sites:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "project_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "format": "uuid",
      "title": "Project Id"
    }
  },
  {
    "name": "offset",
    "in": "query",
    "required": false,
    "schema": {
      "type": "integer",
      "minimum": 0,
      "default": 0,
      "title": "Offset"
    }
  },
  {
    "name": "limit",
    "in": "query",
    "required": false,
    "schema": {
      "type": "integer",
      "maximum": 100,
      "minimum": 1,
      "default": 25,
      "title": "Limit"
    }
  },
  {
    "name": "search",
    "in": "query",
    "required": false,
    "schema": {
      "type": "string",
      "maxLength": 200,
      "default": "",
      "title": "Search"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/commerce/projects/{project_id}/summarysites:read

Store summary

Required platform scope: `sites:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "project_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "format": "uuid",
      "title": "Project Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/videos/ai-edits/capabilitiesvideos:read

Capabilities

Required platform scope: `videos:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/videos/ai-edits/requests/{request_id}videos:read

Request status

Required platform scope: `videos:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "request_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Request Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
DELETE/videos/ai-edits/requests/{request_id}videos:write

Cancel

Required platform scope: `videos:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "request_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Request Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/videos/ai-edits/generate/quotevideos:write

Generate quote

Required platform scope: `videos:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Request: application/json

{
  "request_id (required)": {
    "type": "string"
  },
  "prompt (required)": {
    "type": "string"
  },
  "seconds": {
    "type": "integer",
    "enum": [
      5,
      10,
      15,
      20,
      30,
      45
    ],
    "default": 20
  },
  "orientation": {
    "type": "string",
    "enum": [
      "portrait",
      "landscape"
    ],
    "default": "portrait"
  },
  "voice": {
    "type": "string"
  },
  "style": {
    "type": "string",
    "enum": [
      "motion",
      "mix",
      "omni"
    ],
    "default": "mix"
  },
  "caption_template": {
    "type": "string",
    "enum": [
      "classic",
      "karaoke",
      "pill",
      "punch",
      "boxed",
      "minimal",
      "neon"
    ],
    "default": "karaoke"
  },
  "music_volume": {
    "type": "number",
    "default": 0.12
  },
  "music": {
    "type": "string",
    "enum": [
      "auto",
      "none"
    ],
    "default": "auto"
  },
  "sound_effects": {
    "type": "string",
    "enum": [
      "auto",
      "none"
    ],
    "default": "auto"
  },
  "sound_effects_volume": {
    "type": "number",
    "default": 0.16
  },
  "brand": [
    {
      "type": "object"
    },
    {
      "type": "null"
    }
  ],
  "review": {
    "type": "boolean",
    "default": false
  }
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
PUT/videos/ai-edits/generate/requests/{request_id}/draftvideos:write

Edit draft

Save the user's own edits to the script or storyboard (checked like the AI's). Required platform scope: `videos:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "request_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Request Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Request: application/json

{
  "revision (required)": {
    "type": "string"
  },
  "draft (required)": {
    "type": "object"
  }
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/videos/ai-edits/generate/requests/{request_id}/draft/revisevideos:write

Revise draft

Ask the AI for a change in your own words; the worker rewrites the plan and it waits for review again. Required platform scope: `videos:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "request_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Request Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Request: application/json

{
  "revision (required)": {
    "type": "string"
  },
  "instruction (required)": {
    "type": "string"
  }
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/videos/ai-edits/generate/requests/{request_id}/draft/approvevideos:write

Approve draft

Make the video from the approved plan: the rest of the quote is reserved now, unused credits return. Required platform scope: `videos:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "request_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Request Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Request: application/json

{
  "revision (required)": {
    "type": "string"
  }
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/videos/music-libraryvideos:read

Catalogue

Required platform scope: `videos:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/videos/music-library/{track_id}/assetvideos:write

Create asset

Required platform scope: `videos:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "track_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Track Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Request: application/json

[
  {
    "duration": [
      {
        "type": "number"
      },
      {
        "type": "null"
      }
    ]
  },
  {
    "type": "null"
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/videos/sound-effects-libraryvideos:read

Catalogue

Required platform scope: `videos:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/videos/sound-effects-library/{effect_id}/assetvideos:write

Create asset

Required platform scope: `videos:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "effect_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Effect Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Request: application/json

[
  {
    "duration": [
      {
        "type": "number"
      },
      {
        "type": "null"
      }
    ]
  },
  {
    "type": "null"
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/campaigns/previewcampaigns:write

Preview campaign item

Required platform scope: `campaigns:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Request: application/json

{
  "type": "object"
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {
        "type": "object"
      }
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/campaigns/{campaign_id}/clickscampaigns:read

Get campaign clicks

Required platform scope: `campaigns:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "campaign_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Campaign Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/whatsapp/templatestemplates:write

Create whatsapp template

Required platform scope: `templates:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Request: application/json

{
  "integration_id": [
    {
      "type": "integer"
    },
    {
      "type": "null"
    }
  ],
  "name (required)": {
    "type": "string"
  },
  "category (required)": {
    "type": "string"
  },
  "language (required)": {
    "type": "string"
  },
  "header": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "body (required)": {
    "type": "string"
  },
  "footer": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "buttons_json": [
    {
      "type": "object"
    }
  ],
  "variables_json": [
    {
      "type": "string"
    }
  ]
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {
        "id (required)": {
          "type": "integer"
        },
        "organization_id (required)": {
          "type": "integer"
        },
        "integration_id (required)": {
          "type": "integer"
        },
        "waba_id": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "meta_template_id": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "name (required)": {
          "type": "string"
        },
        "category (required)": {
          "type": "string"
        },
        "language (required)": {
          "type": "string"
        },
        "header": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "body (required)": {
          "type": "string"
        },
        "footer": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "buttons_json": [
          {
            "type": "object"
          }
        ],
        "variables_json": [
          {
            "type": "string"
          }
        ],
        "status (required)": {
          "type": "string"
        },
        "rejection_reason": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "last_submitted_at": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "created_at (required)": {
          "type": "string"
        },
        "updated_at (required)": {
          "type": "string"
        }
      }
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
PUT/whatsapp/templates/{template_id}templates:write

Update whatsapp template

Required platform scope: `templates:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "template_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Template Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Request: application/json

{
  "name": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "category": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "language": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "header": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "body": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "footer": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "buttons_json": [
    [
      {
        "type": "object"
      }
    ],
    {
      "type": "null"
    }
  ],
  "variables_json": [
    [
      {
        "type": "string"
      }
    ],
    {
      "type": "null"
    }
  ],
  "status": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ]
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {
        "id (required)": {
          "type": "integer"
        },
        "organization_id (required)": {
          "type": "integer"
        },
        "integration_id (required)": {
          "type": "integer"
        },
        "waba_id": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "meta_template_id": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "name (required)": {
          "type": "string"
        },
        "category (required)": {
          "type": "string"
        },
        "language (required)": {
          "type": "string"
        },
        "header": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "body (required)": {
          "type": "string"
        },
        "footer": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "buttons_json": [
          {
            "type": "object"
          }
        ],
        "variables_json": [
          {
            "type": "string"
          }
        ],
        "status (required)": {
          "type": "string"
        },
        "rejection_reason": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "last_submitted_at": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "created_at (required)": {
          "type": "string"
        },
        "updated_at (required)": {
          "type": "string"
        }
      }
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
DELETE/whatsapp/templates/{template_id}templates:write

Delete whatsapp template

Required platform scope: `templates:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "template_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Template Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/whatsapp/templates/{template_id}/submittemplates:write

Submit whatsapp template

Required platform scope: `templates:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "template_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Template Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {
        "id (required)": {
          "type": "integer"
        },
        "organization_id (required)": {
          "type": "integer"
        },
        "integration_id (required)": {
          "type": "integer"
        },
        "waba_id": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "meta_template_id": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "name (required)": {
          "type": "string"
        },
        "category (required)": {
          "type": "string"
        },
        "language (required)": {
          "type": "string"
        },
        "header": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "body (required)": {
          "type": "string"
        },
        "footer": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "buttons_json": [
          {
            "type": "object"
          }
        ],
        "variables_json": [
          {
            "type": "string"
          }
        ],
        "status (required)": {
          "type": "string"
        },
        "rejection_reason": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "last_submitted_at": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "created_at (required)": {
          "type": "string"
        },
        "updated_at (required)": {
          "type": "string"
        }
      }
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/whatsapp/templates/synctemplates:write

Sync whatsapp templates endpoint

Required platform scope: `templates:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "integration_id",
    "in": "query",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Integration Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": [
        {
          "id (required)": {
            "type": "integer"
          },
          "organization_id (required)": {
            "type": "integer"
          },
          "integration_id (required)": {
            "type": "integer"
          },
          "waba_id": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "meta_template_id": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "name (required)": {
            "type": "string"
          },
          "category (required)": {
            "type": "string"
          },
          "language (required)": {
            "type": "string"
          },
          "header": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "body (required)": {
            "type": "string"
          },
          "footer": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "buttons_json": [
            {
              "type": "object"
            }
          ],
          "variables_json": [
            {
              "type": "string"
            }
          ],
          "status (required)": {
            "type": "string"
          },
          "rejection_reason": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "last_submitted_at": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "created_at (required)": {
            "type": "string"
          },
          "updated_at (required)": {
            "type": "string"
          }
        }
      ]
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/whatsapp/automationsautomations:read

Get whatsapp automations

Required platform scope: `automations:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "integration_id",
    "in": "query",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Integration Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {
        "id": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "default_assignment_user_id": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "business_hours_json": [
          {
            "type": "object"
          },
          {
            "type": "null"
          }
        ],
        "auto_reply_enabled": {
          "type": "boolean",
          "default": false
        },
        "after_hours_auto_reply_enabled": {
          "type": "boolean",
          "default": false
        },
        "ai_suggestion_enabled": {
          "type": "boolean",
          "default": true
        },
        "template_fallback_message": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "rules_json": [
          {
            "type": "object"
          },
          {
            "type": "null"
          }
        ]
      }
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
PUT/whatsapp/automationsautomations:write

Update whatsapp automations

Required platform scope: `automations:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "integration_id",
    "in": "query",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Integration Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Request: application/json

{
  "default_assignment_user_id": [
    {
      "type": "integer"
    },
    {
      "type": "null"
    }
  ],
  "business_hours_json": [
    {
      "type": "object"
    },
    {
      "type": "null"
    }
  ],
  "auto_reply_enabled": [
    {
      "type": "boolean"
    },
    {
      "type": "null"
    }
  ],
  "after_hours_auto_reply_enabled": [
    {
      "type": "boolean"
    },
    {
      "type": "null"
    }
  ],
  "ai_suggestion_enabled": [
    {
      "type": "boolean"
    },
    {
      "type": "null"
    }
  ],
  "template_fallback_message": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "rules_json": [
    {
      "type": "object"
    },
    {
      "type": "null"
    }
  ]
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {
        "id": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "default_assignment_user_id": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "business_hours_json": [
          {
            "type": "object"
          },
          {
            "type": "null"
          }
        ],
        "auto_reply_enabled": {
          "type": "boolean",
          "default": false
        },
        "after_hours_auto_reply_enabled": {
          "type": "boolean",
          "default": false
        },
        "ai_suggestion_enabled": {
          "type": "boolean",
          "default": true
        },
        "template_fallback_message": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "rules_json": [
          {
            "type": "object"
          },
          {
            "type": "null"
          }
        ]
      }
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/whatsapp/settingsautomations:read

Get whatsapp settings

Required platform scope: `automations:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "integration_id",
    "in": "query",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Integration Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {
        "connected_number": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "business_account_id": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "webhook_status": {
          "type": "string",
          "default": "pending"
        },
        "default_assignment_user_id": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "business_hours_json": [
          {
            "type": "object"
          },
          {
            "type": "null"
          }
        ],
        "auto_reply_enabled": {
          "type": "boolean",
          "default": false
        },
        "ai_suggestion_enabled": {
          "type": "boolean",
          "default": true
        },
        "ai_objective": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "brand_id": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "first_response_mode": {
          "type": "string",
          "enum": [
            "auto_reply",
            "default_reply",
            "manual"
          ],
          "default": "auto_reply"
        },
        "default_reply_message": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "template_fallback_message": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "rules_json": {
          "type": "object"
        },
        "connection_status": {
          "type": "string",
          "default": "not_connected"
        }
      }
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/ai/reply-defaultsinbox:read

Get reply defaults

Starting values for an AI auto-reply form: My Brand's writing style and this member's last objectives. Required platform scope: `inbox:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/telephony/numberscampaigns:read

List numbers

Required platform scope: `campaigns:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/telephony/messages/ratescampaigns:read

Message rates

Required platform scope: `campaigns:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/telephony/messages/quotecampaigns:read

Quote message

Required platform scope: `campaigns:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Request: application/json

{
  "phone_number_id (required)": {
    "type": "string"
  },
  "to (required)": {
    "type": "string"
  },
  "text (required)": {
    "type": "string"
  }
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/telephony/messages/sendcampaigns:send

Send message

Required platform scope: `campaigns:send`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Request: application/json

{
  "phone_number_id (required)": {
    "type": "string"
  },
  "to (required)": {
    "type": "string"
  },
  "text (required)": {
    "type": "string"
  },
  "request_id (required)": {
    "type": "string"
  },
  "max_credits (required)": {
    "type": "integer"
  }
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/telephony/accessops:read

Telephony access

Whether this user sees the Calls tab, and what they can do there. Required platform scope: `ops:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/telephony/overviewops:read

Telephony overview

Required platform scope: `ops:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/telephony/callsops:read

List calls

Required platform scope: `ops:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "view",
    "in": "query",
    "required": false,
    "schema": {
      "type": "string",
      "pattern": "^(all|missed|voicemail|inbound|outbound|unread|ai|live|follow_up)$",
      "default": "all",
      "title": "View"
    }
  },
  {
    "name": "number_id",
    "in": "query",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Number Id"
    }
  },
  {
    "name": "q",
    "in": "query",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 80
        },
        {
          "type": "null"
        }
      ],
      "title": "Q"
    }
  },
  {
    "name": "before",
    "in": "query",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Before"
    }
  },
  {
    "name": "limit",
    "in": "query",
    "required": false,
    "schema": {
      "type": "integer",
      "maximum": 100,
      "minimum": 1,
      "default": 40,
      "title": "Limit"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/telephony/calls/{call_id}ops:read

Get call

Required platform scope: `ops:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "call_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Call Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/telephony/calls/{call_id}/recording-urlops:read

Recording url

Required platform scope: `ops:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "call_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Call Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/telephony/messages/threadsops:read

Message threads

Required platform scope: `ops:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "limit",
    "in": "query",
    "required": false,
    "schema": {
      "type": "integer",
      "maximum": 100,
      "minimum": 1,
      "default": 50,
      "title": "Limit"
    }
  },
  {
    "name": "before",
    "in": "query",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Before"
    }
  },
  {
    "name": "q",
    "in": "query",
    "required": false,
    "schema": {
      "type": "string",
      "maxLength": 30,
      "default": "",
      "title": "Q"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/telephony/messages/threadops:read

Message thread

Required platform scope: `ops:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "phone_number_id",
    "in": "query",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Phone Number Id"
    }
  },
  {
    "name": "counterpart",
    "in": "query",
    "required": true,
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 20,
      "title": "Counterpart"
    }
  },
  {
    "name": "before",
    "in": "query",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Before"
    }
  },
  {
    "name": "limit",
    "in": "query",
    "required": false,
    "schema": {
      "type": "integer",
      "maximum": 100,
      "minimum": 1,
      "default": 50,
      "title": "Limit"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/crm/metacrm:read

Meta

Required platform scope: `crm:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/crm/leadscrm:read

Leads

Required platform scope: `crm:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "include_test",
    "in": "query",
    "required": false,
    "schema": {
      "type": "boolean",
      "default": false,
      "title": "Include Test"
    }
  },
  {
    "name": "pipeline_id",
    "in": "query",
    "required": false,
    "schema": {
      "type": "string",
      "maxLength": 100,
      "default": "",
      "title": "Pipeline Id"
    }
  },
  {
    "name": "filter",
    "in": "query",
    "required": false,
    "schema": {
      "type": "string",
      "pattern": "^(all|mine|unassigned|due|open|closed|archived)$",
      "default": "all",
      "title": "Filter"
    }
  },
  {
    "name": "q",
    "in": "query",
    "required": false,
    "schema": {
      "type": "string",
      "maxLength": 150,
      "default": "",
      "title": "Q"
    }
  },
  {
    "name": "cursor",
    "in": "query",
    "required": false,
    "schema": {
      "type": "string",
      "maxLength": 2048,
      "default": "",
      "title": "Cursor"
    }
  },
  {
    "name": "limit",
    "in": "query",
    "required": false,
    "schema": {
      "type": "integer",
      "maximum": 100,
      "minimum": 1,
      "default": 100,
      "title": "Limit"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/crm/leadscrm:write

Create lead

Required platform scope: `crm:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Idempotency-Key"
    }
  }
]

Request: application/json

{
  "pipeline_id (required)": {
    "type": "string"
  },
  "title (required)": {
    "type": "string"
  },
  "name (required)": {
    "type": "string"
  },
  "company": {
    "type": "string",
    "default": ""
  },
  "email": {
    "type": "string",
    "default": ""
  },
  "phone": {
    "type": "string",
    "default": ""
  },
  "requirement": {
    "type": "string",
    "default": ""
  },
  "owner_user_id": [
    {
      "type": "integer"
    },
    {
      "type": "null"
    }
  ],
  "amount_minor": [
    {
      "type": "integer"
    },
    {
      "type": "null"
    }
  ],
  "currency": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "source_kind": [
    {
      "type": "string",
      "enum": [
        "email",
        "whatsapp",
        "social",
        "call",
        "form",
        "dataset",
        "website"
      ]
    },
    {
      "type": "null"
    }
  ],
  "source_id": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "service": {
    "type": "string",
    "default": ""
  },
  "timeframe": {
    "type": "string",
    "default": ""
  }
}

Responses

{
  "201": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/crm/leads/{lead_id}crm:read

Lead detail

Required platform scope: `crm:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "lead_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Lead Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
PATCH/crm/leads/{lead_id}crm:write

Edit

Required platform scope: `crm:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "lead_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Lead Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Idempotency-Key"
    }
  }
]

Request: application/json

{
  "expected_version (required)": {
    "type": "integer"
  },
  "title": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "requirement": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "service": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "timeframe": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "amount_minor": [
    {
      "type": "integer"
    },
    {
      "type": "null"
    }
  ],
  "currency": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ]
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/crm/leads/{lead_id}/transitioncrm:write

Transition

Required platform scope: `crm:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "lead_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Lead Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Idempotency-Key"
    }
  }
]

Request: application/json

{
  "expected_version (required)": {
    "type": "integer"
  },
  "stage (required)": {
    "type": "string"
  },
  "reason": {
    "type": "string",
    "default": ""
  }
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/crm/leads/{lead_id}/closecrm:write

Close

Required platform scope: `crm:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "lead_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Lead Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Idempotency-Key"
    }
  }
]

Request: application/json

{
  "expected_version (required)": {
    "type": "integer"
  },
  "outcome (required)": {
    "type": "string",
    "enum": [
      "won",
      "lost"
    ]
  },
  "reason (required)": {
    "type": "string"
  }
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/crm/leads/{lead_id}/reopencrm:write

Reopen

Required platform scope: `crm:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "lead_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Lead Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Idempotency-Key"
    }
  }
]

Request: application/json

{
  "expected_version (required)": {
    "type": "integer"
  },
  "reason (required)": {
    "type": "string"
  }
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/crm/leads/{lead_id}/assigncrm:write

Assign

Required platform scope: `crm:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "lead_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Lead Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Idempotency-Key"
    }
  }
]

Request: application/json

{
  "expected_version (required)": {
    "type": "integer"
  },
  "owner_user_id (required)": [
    {
      "type": "integer"
    },
    {
      "type": "null"
    }
  ]
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/crm/leads/{lead_id}/notescrm:write

Note

Required platform scope: `crm:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "lead_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Lead Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Idempotency-Key"
    }
  }
]

Request: application/json

{
  "body (required)": {
    "type": "string"
  }
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/crm/leads/{lead_id}/taskscrm:write

Task

Required platform scope: `crm:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "lead_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Lead Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Idempotency-Key"
    }
  }
]

Request: application/json

{
  "title (required)": {
    "type": "string"
  },
  "due_at (required)": {
    "type": "string"
  }
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/crm/tasks/{task_id}/completecrm:write

Complete task

Required platform scope: `crm:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "task_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Task Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Idempotency-Key"
    }
  }
]

Request: application/json

{
  "expected_version (required)": {
    "type": "integer"
  }
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
PATCH/crm/tasks/{task_id}crm:write

Edit task

Required platform scope: `crm:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "task_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Task Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Idempotency-Key"
    }
  }
]

Request: application/json

{
  "expected_version (required)": {
    "type": "integer"
  },
  "title (required)": {
    "type": "string"
  },
  "due_at (required)": {
    "type": "string"
  }
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/crm/tasks/{task_id}/cancelcrm:write

Cancel task

Required platform scope: `crm:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "task_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Task Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Idempotency-Key"
    }
  }
]

Request: application/json

{
  "expected_version (required)": {
    "type": "integer"
  }
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/crm/leads/{lead_id}/archivecrm:write

Archive

Required platform scope: `crm:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "lead_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Lead Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Idempotency-Key"
    }
  }
]

Request: application/json

{
  "expected_version (required)": {
    "type": "integer"
  },
  "reason (required)": {
    "type": "string"
  }
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/tickets/metatickets:read

Meta

Required platform scope: `tickets:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/ticketstickets:read

Listing

Required platform scope: `tickets:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "include_test",
    "in": "query",
    "required": false,
    "schema": {
      "type": "boolean",
      "default": false,
      "title": "Include Test"
    }
  },
  {
    "name": "view",
    "in": "query",
    "required": false,
    "schema": {
      "type": "string",
      "default": "unresolved",
      "title": "View"
    }
  },
  {
    "name": "q",
    "in": "query",
    "required": false,
    "schema": {
      "type": "string",
      "maxLength": 200,
      "default": "",
      "title": "Q"
    }
  },
  {
    "name": "label_id",
    "in": "query",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Label Id"
    }
  },
  {
    "name": "status",
    "in": "query",
    "required": false,
    "schema": {
      "type": "string",
      "default": "",
      "title": "Status"
    }
  },
  {
    "name": "priority",
    "in": "query",
    "required": false,
    "schema": {
      "type": "string",
      "default": "",
      "title": "Priority"
    }
  },
  {
    "name": "owner",
    "in": "query",
    "required": false,
    "schema": {
      "type": "string",
      "default": "",
      "title": "Owner"
    }
  },
  {
    "name": "limit",
    "in": "query",
    "required": false,
    "schema": {
      "type": "integer",
      "maximum": 100,
      "minimum": 1,
      "default": 50,
      "title": "Limit"
    }
  },
  {
    "name": "cursor",
    "in": "query",
    "required": false,
    "schema": {
      "type": "string",
      "maxLength": 2048,
      "default": "",
      "title": "Cursor"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/ticketstickets:write

Create

Required platform scope: `tickets:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Idempotency-Key"
    }
  }
]

Request: application/json

{
  "subject (required)": {
    "type": "string"
  },
  "requester (required)": {
    "type": "string"
  },
  "summary": {
    "type": "string",
    "default": ""
  },
  "source": [
    {
      "kind (required)": {
        "type": "string",
        "enum": [
          "website",
          "email",
          "whatsapp",
          "social"
        ]
      },
      "id (required)": {
        "type": "string"
      }
    },
    {
      "type": "null"
    }
  ],
  "customer_id": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "new_customer": [
    {
      "name (required)": {
        "type": "string"
      },
      "email": {
        "type": "string",
        "default": ""
      },
      "phone": {
        "type": "string",
        "default": ""
      }
    },
    {
      "type": "null"
    }
  ],
  "owner_user_id": [
    {
      "type": "integer"
    },
    {
      "type": "null"
    }
  ],
  "priority": {
    "type": "string",
    "enum": [
      "low",
      "normal",
      "high",
      "urgent"
    ],
    "default": "normal"
  },
  "attachment_ids": [
    {
      "type": "integer"
    }
  ],
  "label_ids": [
    {
      "type": "integer"
    }
  ]
}

Responses

{
  "201": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/tickets/{id}tickets:read

Detail

Required platform scope: `tickets:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
PATCH/tickets/{id}tickets:write

Edit

Required platform scope: `tickets:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Idempotency-Key"
    }
  }
]

Request: application/json

{
  "resolution_override": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "expected_version (required)": {
    "type": "integer"
  },
  "subject": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "status": [
    {
      "type": "string",
      "enum": [
        "new",
        "in_progress",
        "waiting_customer",
        "waiting_internal",
        "resolved"
      ]
    },
    {
      "type": "null"
    }
  ],
  "priority": [
    {
      "type": "string",
      "enum": [
        "low",
        "normal",
        "high",
        "urgent"
      ]
    },
    {
      "type": "null"
    }
  ],
  "owner_user_id": [
    {
      "type": "integer"
    },
    {
      "type": "null"
    }
  ],
  "due_at": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "summary": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "label_ids": [
    [
      {
        "type": "integer"
      }
    ],
    {
      "type": "null"
    }
  ]
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/tickets/{id}/notestickets:write

Note

Required platform scope: `tickets:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Idempotency-Key"
    }
  }
]

Request: application/json

{
  "text (required)": {
    "type": "string"
  }
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/tickets/{id}/attachmentstickets:write

Attach files

Link files uploaded through POST /attachments/upload to the ticket. Required platform scope: `tickets:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Idempotency-Key"
    }
  }
]

Request: application/json

{
  "attachment_ids (required)": [
    {
      "type": "integer"
    }
  ]
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/tickets/{id}/email-draftstickets:read

Email drafts

Required platform scope: `tickets:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/tickets/{id}/email-draftstickets:write

Draft email

Required platform scope: `tickets:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Idempotency-Key"
    }
  }
]

Request: application/json

{
  "expected_version (required)": {
    "type": "integer"
  },
  "email_id": [
    {
      "type": "integer"
    },
    {
      "type": "null"
    }
  ],
  "account_id": [
    {
      "type": "integer"
    },
    {
      "type": "null"
    }
  ],
  "recipient (required)": {
    "type": "string"
  },
  "body (required)": {
    "type": "string"
  }
}

Responses

{
  "201": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/tickets/{id}/email-drafts/{draft_id}/{action}email:send

Send email

Required platform scope: `email:send`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Id"
    }
  },
  {
    "name": "draft_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Draft Id"
    }
  },
  {
    "name": "action",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Action"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Request: application/json

{
  "type": "object"
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
PATCH/tickets/{id}/email-drafts/{draft_id}tickets:write

Edit email draft

Required platform scope: `tickets:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Id"
    }
  },
  {
    "name": "draft_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Draft Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Request: application/json

{
  "text (required)": {
    "type": "string"
  }
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/meetings/statusops:read

Status

Required platform scope: `ops:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/meetings/typesops:read

Types

Required platform scope: `ops:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/meetings/types/{type_id}/invitationsops:write

Invite

Required platform scope: `ops:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "type_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Type Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Request: application/json

{
  "email (required)": {
    "type": "string"
  },
  "lead_id": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "expires_in_days": {
    "type": "integer",
    "default": 7
  }
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/meetings/invitations/{invitation_id}/revokeops:write

Revoke invite

Required platform scope: `ops:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "invitation_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Invitation Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/meetings/invitationsops:read

Invitations

Required platform scope: `ops:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "lead_id",
    "in": "query",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 36
        },
        {
          "type": "null"
        }
      ],
      "title": "Lead Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/meetings/bookingsops:read

Bookings

Required platform scope: `ops:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "start",
    "in": "query",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Start"
    }
  },
  {
    "name": "end",
    "in": "query",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "End"
    }
  },
  {
    "name": "lead_id",
    "in": "query",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 36
        },
        {
          "type": "null"
        }
      ],
      "title": "Lead Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/meetings/bookings/{booking_id}/cancelops:write

Cancel

Required platform scope: `ops:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "booking_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Booking Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Request: application/json

{
  "version (required)": {
    "type": "integer"
  }
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/meetings/bookings/{booking_id}/ai-notesops:read

Get notes

Required platform scope: `ops:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "booking_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Booking Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/workflows/catalogops:read

Catalog

Required platform scope: `ops:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/workflowsops:read

Listing

Required platform scope: `ops:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "limit",
    "in": "query",
    "required": false,
    "schema": {
      "type": "integer",
      "maximum": 100,
      "minimum": 1,
      "default": 50,
      "title": "Limit"
    }
  },
  {
    "name": "offset",
    "in": "query",
    "required": false,
    "schema": {
      "type": "integer",
      "maximum": 10000,
      "minimum": 0,
      "default": 0,
      "title": "Offset"
    }
  },
  {
    "name": "search",
    "in": "query",
    "required": false,
    "schema": {
      "type": "string",
      "maxLength": 120,
      "default": "",
      "title": "Search"
    }
  },
  {
    "name": "status",
    "in": "query",
    "required": false,
    "schema": {
      "enum": [
        "all",
        "draft",
        "active",
        "paused",
        "archived"
      ],
      "type": "string",
      "default": "all",
      "title": "Status"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/workflowsops:write

Create

Required platform scope: `ops:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Idempotency-Key"
    }
  }
]

Request: application/json

{
  "name": {
    "type": "string",
    "default": "Untitled workflow"
  },
  "template": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "account_id": [
    {
      "type": "integer"
    },
    {
      "type": "null"
    }
  ]
}

Responses

{
  "201": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/workflows/runsops:read

Runs

Required platform scope: `ops:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "limit",
    "in": "query",
    "required": false,
    "schema": {
      "type": "integer",
      "maximum": 100,
      "minimum": 1,
      "default": 50,
      "title": "Limit"
    }
  },
  {
    "name": "offset",
    "in": "query",
    "required": false,
    "schema": {
      "type": "integer",
      "maximum": 10000,
      "minimum": 0,
      "default": 0,
      "title": "Offset"
    }
  },
  {
    "name": "workflow_id",
    "in": "query",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 36
        },
        {
          "type": "null"
        }
      ],
      "title": "Workflow Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/workflows/runs/{run_id}ops:read

Run detail

Required platform scope: `ops:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "run_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Run Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/workflows/{id}ops:read

Detail

Required platform scope: `ops:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
PATCH/workflows/{id}/draftops:write

Save

Required platform scope: `ops:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Idempotency-Key"
    }
  }
]

Request: application/json

{
  "name (required)": {
    "type": "string"
  },
  "expected_revision (required)": {
    "type": "integer"
  },
  "graph (required)": {
    "schema_version": {
      "type": "integer",
      "default": 1
    },
    "nodes": [
      {
        "id (required)": {
          "type": "string"
        },
        "type (required)": {
          "type": "string"
        },
        "name": {
          "type": "string",
          "default": ""
        },
        "position": {
          "x": "number",
          "y": "number"
        },
        "config": {
          "type": "object"
        }
      }
    ],
    "edges": [
      {
        "id (required)": {
          "type": "string"
        },
        "source (required)": {
          "type": "string"
        },
        "target (required)": {
          "type": "string"
        },
        "sourceHandle": {
          "type": "string",
          "default": "next"
        }
      }
    ]
  }
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/workflows/{id}/previewops:write

Preview

Required platform scope: `ops:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Request: application/json

{
  "graph (required)": {
    "schema_version": {
      "type": "integer",
      "default": 1
    },
    "nodes": [
      {
        "id (required)": {
          "type": "string"
        },
        "type (required)": {
          "type": "string"
        },
        "name": {
          "type": "string",
          "default": ""
        },
        "position": {
          "x": "number",
          "y": "number"
        },
        "config": {
          "type": "object"
        }
      }
    ],
    "edges": [
      {
        "id (required)": {
          "type": "string"
        },
        "source (required)": {
          "type": "string"
        },
        "target (required)": {
          "type": "string"
        },
        "sourceHandle": {
          "type": "string",
          "default": "next"
        }
      }
    ]
  },
  "node_id": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "output": {
    "type": "string",
    "default": "next"
  },
  "sample_id": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ]
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/workflows/{id}/validateops:write

Preview

Required platform scope: `ops:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Request: application/json

{
  "graph (required)": {
    "schema_version": {
      "type": "integer",
      "default": 1
    },
    "nodes": [
      {
        "id (required)": {
          "type": "string"
        },
        "type (required)": {
          "type": "string"
        },
        "name": {
          "type": "string",
          "default": ""
        },
        "position": {
          "x": "number",
          "y": "number"
        },
        "config": {
          "type": "object"
        }
      }
    ],
    "edges": [
      {
        "id (required)": {
          "type": "string"
        },
        "source (required)": {
          "type": "string"
        },
        "target (required)": {
          "type": "string"
        },
        "sourceHandle": {
          "type": "string",
          "default": "next"
        }
      }
    ]
  },
  "node_id": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "output": {
    "type": "string",
    "default": "next"
  },
  "sample_id": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ]
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/workflows/{id}/publishops:write

Publish

Required platform scope: `ops:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Idempotency-Key"
    }
  }
]

Request: application/json

{
  "expected_revision (required)": {
    "type": "integer"
  },
  "graph_hash (required)": {
    "type": "string"
  }
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/workflows/{id}/pause-enrolmentops:write

Pause

Required platform scope: `ops:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Idempotency-Key"
    }
  }
]

Request: application/json

{
  "expected_revision (required)": {
    "type": "integer"
  }
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/workflows/{id}/archiveops:write

Archive

Required platform scope: `ops:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Idempotency-Key"
    }
  }
]

Request: application/json

{
  "expected_revision (required)": {
    "type": "integer"
  }
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/domains/configops:read

Get domain config

Required platform scope: `ops:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {
        "enabled (required)": {
          "type": "boolean"
        },
        "sandbox (required)": {
          "type": "boolean"
        },
        "tlds (required)": [
          {
            "type": "string"
          }
        ],
        "max_years (required)": {
          "type": "integer"
        },
        "gateway (required)": {
          "type": "string",
          "enum": [
            "stripe",
            "esewa"
          ]
        },
        "currency (required)": {
          "type": "string"
        },
        "exchange_rate (required)": {
          "type": "number"
        },
        "decimal_places": {
          "type": "integer",
          "default": 2
        },
        "dns_targets (required)": {
          "type": "object"
        },
        "auto_renew_available": {
          "type": "boolean",
          "default": false
        },
        "card": [
          {
            "type": "object"
          },
          {
            "type": "null"
          }
        ]
      }
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/domains/searchops:read

Search domains

Required platform scope: `ops:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "q",
    "in": "query",
    "required": true,
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 253,
      "title": "Q"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {
        "query (required)": {
          "type": "string"
        },
        "exact": [
          {
            "name (required)": {
              "type": "string"
            },
            "tld (required)": {
              "type": "string"
            },
            "status (required)": {
              "type": "string"
            },
            "available (required)": {
              "type": "boolean"
            },
            "price_usd": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "renew_price_usd": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          {
            "type": "null"
          }
        ],
        "results (required)": [
          {
            "name (required)": {
              "type": "string"
            },
            "tld (required)": {
              "type": "string"
            },
            "status (required)": {
              "type": "string"
            },
            "available (required)": {
              "type": "boolean"
            },
            "price_usd": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "renew_price_usd": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          }
        ],
        "suggestions (required)": [
          {
            "name (required)": {
              "type": "string"
            },
            "tld (required)": {
              "type": "string"
            },
            "status (required)": {
              "type": "string"
            },
            "available (required)": {
              "type": "boolean"
            },
            "price_usd": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "renew_price_usd": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          }
        ]
      }
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/domains/quoteops:read

Quote domain

Required platform scope: `ops:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "domain_name",
    "in": "query",
    "required": true,
    "schema": {
      "type": "string",
      "maxLength": 253,
      "title": "Domain Name"
    }
  },
  {
    "name": "years",
    "in": "query",
    "required": false,
    "schema": {
      "type": "integer",
      "maximum": 10,
      "minimum": 1,
      "default": 1,
      "title": "Years"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {
        "domain_name (required)": {
          "type": "string"
        },
        "years (required)": {
          "type": "integer"
        },
        "amount_usd (required)": {
          "type": "number"
        },
        "amount (required)": {
          "type": "number"
        },
        "currency (required)": {
          "type": "string"
        }
      }
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/domainsops:read

List domains

Required platform scope: `ops:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": [
        {
          "id (required)": {
            "type": "string"
          },
          "name (required)": {
            "type": "string"
          },
          "status (required)": {
            "type": "string"
          },
          "project_id": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "project_name": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "website_verified": {
            "type": "boolean",
            "default": false
          },
          "registered_at": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "expires_at": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "privacy_enabled (required)": {
            "type": "boolean"
          },
          "theft_protection (required)": {
            "type": "boolean"
          },
          "dns_managed (required)": {
            "type": "boolean"
          },
          "nameservers": [
            [
              {
                "type": "string"
              }
            ],
            {
              "type": "null"
            }
          ],
          "nameservers_parked": {
            "type": "boolean",
            "default": false
          },
          "auto_renew": {
            "type": "boolean",
            "default": false
          },
          "renewal_error": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "last_synced_at": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "created_at": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        }
      ]
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/domains/{domain_id}ops:read

Get domain

Required platform scope: `ops:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "domain_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "format": "uuid",
      "title": "Domain Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {
        "id (required)": {
          "type": "string"
        },
        "name (required)": {
          "type": "string"
        },
        "status (required)": {
          "type": "string"
        },
        "project_id": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "project_name": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "website_verified": {
          "type": "boolean",
          "default": false
        },
        "registered_at": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "expires_at": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "privacy_enabled (required)": {
          "type": "boolean"
        },
        "theft_protection (required)": {
          "type": "boolean"
        },
        "dns_managed (required)": {
          "type": "boolean"
        },
        "nameservers": [
          [
            {
              "type": "string"
            }
          ],
          {
            "type": "null"
          }
        ],
        "nameservers_parked": {
          "type": "boolean",
          "default": false
        },
        "auto_renew": {
          "type": "boolean",
          "default": false
        },
        "renewal_error": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "last_synced_at": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "created_at": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "auth_code": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "order_locks": [
          {
            "type": "string"
          }
        ],
        "registry_status": [
          {
            "type": "string"
          }
        ],
        "raa_verification_status": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "privacy_supported": {
          "type": "boolean",
          "default": true
        },
        "child_nameservers": [
          {
            "hostname (required)": {
              "type": "string"
            },
            "ips (required)": [
              {
                "type": "string"
              }
            ]
          }
        ],
        "default_nameservers": [
          {
            "type": "string"
          }
        ],
        "contact": [
          {
            "type": "object"
          },
          {
            "type": "null"
          }
        ],
        "orders": [
          {
            "id (required)": {
              "type": "string"
            },
            "kind (required)": {
              "type": "string"
            },
            "domain_name (required)": {
              "type": "string"
            },
            "years (required)": {
              "type": "integer"
            },
            "amount_usd (required)": {
              "type": "number"
            },
            "charge_amount (required)": {
              "type": "number"
            },
            "charge_currency (required)": {
              "type": "string"
            },
            "provider": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "status (required)": {
              "type": "string"
            },
            "error": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "domain_id": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "project_id": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "workspace_id": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "months": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "seats": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "created_at (required)": {
              "type": "string"
            },
            "paid_at": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "completed_at": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "contact": [
              {
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          }
        ]
      }
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/domains/{domain_id}/dnsops:read

List dns records

Required platform scope: `ops:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "domain_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "format": "uuid",
      "title": "Domain Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": [
        {
          "type (required)": {
            "type": "string",
            "enum": [
              "A",
              "AAAA",
              "CNAME",
              "MX",
              "NS",
              "TXT",
              "SRV"
            ]
          },
          "host": {
            "type": "string",
            "default": "@"
          },
          "value (required)": {
            "type": "string"
          },
          "ttl": {
            "type": "integer",
            "default": 14400
          },
          "priority": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "port": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "weight": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "status": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        }
      ]
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/domains/{domain_id}/dnsops:write

Add dns record

Required platform scope: `ops:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "domain_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "format": "uuid",
      "title": "Domain Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Request: application/json

{
  "type (required)": {
    "type": "string",
    "enum": [
      "A",
      "AAAA",
      "CNAME",
      "MX",
      "NS",
      "TXT",
      "SRV"
    ]
  },
  "host": {
    "type": "string",
    "default": "@"
  },
  "value (required)": {
    "type": "string"
  },
  "ttl": {
    "type": "integer",
    "default": 14400
  },
  "priority": [
    {
      "type": "integer"
    },
    {
      "type": "null"
    }
  ],
  "port": [
    {
      "type": "integer"
    },
    {
      "type": "null"
    }
  ],
  "weight": [
    {
      "type": "integer"
    },
    {
      "type": "null"
    }
  ],
  "status": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ]
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": [
        {
          "type (required)": {
            "type": "string",
            "enum": [
              "A",
              "AAAA",
              "CNAME",
              "MX",
              "NS",
              "TXT",
              "SRV"
            ]
          },
          "host": {
            "type": "string",
            "default": "@"
          },
          "value (required)": {
            "type": "string"
          },
          "ttl": {
            "type": "integer",
            "default": 14400
          },
          "priority": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "port": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "weight": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "status": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        }
      ]
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
PUT/domains/{domain_id}/dnsops:write

Update dns record

Required platform scope: `ops:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "domain_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "format": "uuid",
      "title": "Domain Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Request: application/json

{
  "original (required)": {
    "type (required)": {
      "type": "string",
      "enum": [
        "A",
        "AAAA",
        "CNAME",
        "MX",
        "NS",
        "TXT",
        "SRV"
      ]
    },
    "host": {
      "type": "string",
      "default": "@"
    },
    "value (required)": {
      "type": "string"
    },
    "ttl": {
      "type": "integer",
      "default": 14400
    },
    "priority": [
      {
        "type": "integer"
      },
      {
        "type": "null"
      }
    ],
    "port": [
      {
        "type": "integer"
      },
      {
        "type": "null"
      }
    ],
    "weight": [
      {
        "type": "integer"
      },
      {
        "type": "null"
      }
    ],
    "status": [
      {
        "type": "string"
      },
      {
        "type": "null"
      }
    ]
  },
  "record (required)": {
    "type (required)": {
      "type": "string",
      "enum": [
        "A",
        "AAAA",
        "CNAME",
        "MX",
        "NS",
        "TXT",
        "SRV"
      ]
    },
    "host": {
      "type": "string",
      "default": "@"
    },
    "value (required)": {
      "type": "string"
    },
    "ttl": {
      "type": "integer",
      "default": 14400
    },
    "priority": [
      {
        "type": "integer"
      },
      {
        "type": "null"
      }
    ],
    "port": [
      {
        "type": "integer"
      },
      {
        "type": "null"
      }
    ],
    "weight": [
      {
        "type": "integer"
      },
      {
        "type": "null"
      }
    ],
    "status": [
      {
        "type": "string"
      },
      {
        "type": "null"
      }
    ]
  }
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": [
        {
          "type (required)": {
            "type": "string",
            "enum": [
              "A",
              "AAAA",
              "CNAME",
              "MX",
              "NS",
              "TXT",
              "SRV"
            ]
          },
          "host": {
            "type": "string",
            "default": "@"
          },
          "value (required)": {
            "type": "string"
          },
          "ttl": {
            "type": "integer",
            "default": 14400
          },
          "priority": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "port": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "weight": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "status": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        }
      ]
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/domains/{domain_id}/dns/deleteops:write

Delete dns record

Required platform scope: `ops:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "domain_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "format": "uuid",
      "title": "Domain Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Request: application/json

{
  "type (required)": {
    "type": "string",
    "enum": [
      "A",
      "AAAA",
      "CNAME",
      "MX",
      "NS",
      "TXT",
      "SRV"
    ]
  },
  "host": {
    "type": "string",
    "default": "@"
  },
  "value (required)": {
    "type": "string"
  },
  "ttl": {
    "type": "integer",
    "default": 14400
  },
  "priority": [
    {
      "type": "integer"
    },
    {
      "type": "null"
    }
  ],
  "port": [
    {
      "type": "integer"
    },
    {
      "type": "null"
    }
  ],
  "weight": [
    {
      "type": "integer"
    },
    {
      "type": "null"
    }
  ],
  "status": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ]
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": [
        {
          "type (required)": {
            "type": "string",
            "enum": [
              "A",
              "AAAA",
              "CNAME",
              "MX",
              "NS",
              "TXT",
              "SRV"
            ]
          },
          "host": {
            "type": "string",
            "default": "@"
          },
          "value (required)": {
            "type": "string"
          },
          "ttl": {
            "type": "integer",
            "default": 14400
          },
          "priority": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "port": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "weight": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "status": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        }
      ]
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/analytics/availabilityanalytics:read

Get analytics availability

Current section availability, independent of the selected reporting period. Required platform scope: `analytics:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/analytics/overviewanalytics:read

Get account overview

Inclusive calendar dates in UTC; current workload is independent of the range. Required platform scope: `analytics:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "start_date",
    "in": "query",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Start Date"
    }
  },
  {
    "name": "end_date",
    "in": "query",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "End Date"
    }
  },
  {
    "name": "days",
    "in": "query",
    "required": false,
    "schema": {
      "type": "integer",
      "maximum": 90,
      "minimum": 1,
      "default": 30,
      "title": "Days"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/analytics/statsanalytics:read

Get dashboard stats

Required platform scope: `analytics:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "start_date",
    "in": "query",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Start Date"
    }
  },
  {
    "name": "end_date",
    "in": "query",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "End Date"
    }
  },
  {
    "name": "all_members",
    "in": "query",
    "required": false,
    "schema": {
      "type": "boolean",
      "default": false,
      "title": "All Members"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/graphics/presetsgraphics:read

Get presets

Return canvas dimension presets for social media, video thumbnails, and banners. Required platform scope: `graphics:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/graphics/projects/pagedgraphics:read

List graphic projects paged

Page through an organization's designs, with all/draft/ready totals for the tabs. Required platform scope: `graphics:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "favorite",
    "in": "query",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "description": "Filter by favourite designs",
      "title": "Favorite"
    },
    "description": "Filter by favourite designs"
  },
  {
    "name": "organization_id",
    "in": "query",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "description": "Optional organization ID override",
      "title": "Organization Id"
    },
    "description": "Optional organization ID override"
  },
  {
    "name": "category",
    "in": "query",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Category filter (Social, YouTube, etc.)",
      "title": "Category"
    },
    "description": "Category filter (Social, YouTube, etc.)"
  },
  {
    "name": "status",
    "in": "query",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Status filter (draft, published)",
      "title": "Status"
    },
    "description": "Status filter (draft, published)"
  },
  {
    "name": "search",
    "in": "query",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Search by title",
      "title": "Search"
    },
    "description": "Search by title"
  },
  {
    "name": "limit",
    "in": "query",
    "required": false,
    "schema": {
      "type": "integer",
      "maximum": 100,
      "minimum": 1,
      "default": 12,
      "title": "Limit"
    }
  },
  {
    "name": "offset",
    "in": "query",
    "required": false,
    "schema": {
      "type": "integer",
      "minimum": 0,
      "default": 0,
      "title": "Offset"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {
        "items (required)": [
          {
            "name (required)": {
              "type": "string"
            },
            "category": {
              "type": "string",
              "default": "Custom"
            },
            "status": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "canvas_width": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "canvas_height": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "width": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "height": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "unit": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "ratio_id": {
              "type": "string",
              "default": "custom"
            },
            "thumbnail_url": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "favorite": {
              "type": "boolean",
              "default": false
            },
            "id (required)": {
              "type": "string"
            },
            "organization_id (required)": {
              "type": "integer"
            },
            "created_at (required)": {
              "type": "string"
            },
            "updated_at (required)": {
              "type": "string"
            },
            "pages_count": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ]
          }
        ],
        "total (required)": {
          "type": "integer"
        },
        "limit (required)": {
          "type": "integer"
        },
        "offset (required)": {
          "type": "integer"
        },
        "has_more (required)": {
          "type": "boolean"
        },
        "counts (required)": {
          "all": {
            "type": "integer",
            "default": 0
          },
          "draft": {
            "type": "integer",
            "default": 0
          },
          "published": {
            "type": "integer",
            "default": 0
          },
          "favorites": {
            "type": "integer",
            "default": 0
          }
        }
      }
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/graphics/projectsgraphics:write

Create graphic project

Create a new graphics artboard project with pre-configured aspect ratio and initial slide. Required platform scope: `graphics:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "organization_id",
    "in": "query",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "description": "Optional organization ID override",
      "title": "Organization Id"
    },
    "description": "Optional organization ID override"
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Request: application/json

{
  "name (required)": {
    "type": "string"
  },
  "category": {
    "type": "string",
    "default": "Custom"
  },
  "status": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "canvas_width": [
    {
      "type": "integer"
    },
    {
      "type": "null"
    }
  ],
  "canvas_height": [
    {
      "type": "integer"
    },
    {
      "type": "null"
    }
  ],
  "width": [
    {
      "type": "integer"
    },
    {
      "type": "null"
    }
  ],
  "height": [
    {
      "type": "integer"
    },
    {
      "type": "null"
    }
  ],
  "unit": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "ratio_id": {
    "type": "string",
    "default": "custom"
  },
  "thumbnail_url": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "initial_pages": [
    [
      {
        "type": "object"
      }
    ],
    {
      "type": "null"
    }
  ],
  "initial_page_background": [
    {
      "type": "object"
    },
    {
      "type": "null"
    }
  ]
}

Responses

{
  "201": {
    "description": "Successful Response",
    "content": {
      "application/json": {
        "name (required)": {
          "type": "string"
        },
        "category": {
          "type": "string",
          "default": "Custom"
        },
        "status": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "canvas_width": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "canvas_height": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "width": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "height": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "unit": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "ratio_id": {
          "type": "string",
          "default": "custom"
        },
        "thumbnail_url": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "favorite": {
          "type": "boolean",
          "default": false
        },
        "id (required)": {
          "type": "string"
        },
        "organization_id (required)": {
          "type": "integer"
        },
        "created_at (required)": {
          "type": "string"
        },
        "updated_at (required)": {
          "type": "string"
        },
        "pages_count": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "pages": [
          {
            "name": {
              "type": "string",
              "default": "Page"
            },
            "sort_order": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "background": {
              "type": "object"
            },
            "id (required)": {
              "type": "string"
            },
            "project_id (required)": {
              "type": "string"
            },
            "groups": [
              {
                "name": "string",
                "parent_id": "object",
                "locked": "object",
                "hidden": "object",
                "id (required)": "string",
                "page_id (required)": "string"
              }
            ],
            "elements": [
              {
                "kind (required)": "string",
                "z_index": "object",
                "group_id": "object",
                "x (required)": "number",
                "y (required)": "number",
                "w (required)": "number",
                "h (required)": "number",
                "rotation": "object",
                "locked": "object",
                "hidden": "object",
                "props": "object",
                "id (required)": "string",
                "page_id (required)": "string"
              }
            ]
          }
        ]
      }
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/graphics/projects/{project_id}/detailgraphics:read

Get graphic project detail

Get complete artboard project structure (pages -> groups -> elements). Required platform scope: `graphics:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "project_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "format": "uuid",
      "title": "Project Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {
        "name (required)": {
          "type": "string"
        },
        "category": {
          "type": "string",
          "default": "Custom"
        },
        "status": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "canvas_width": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "canvas_height": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "width": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "height": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "unit": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "ratio_id": {
          "type": "string",
          "default": "custom"
        },
        "thumbnail_url": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "favorite": {
          "type": "boolean",
          "default": false
        },
        "id (required)": {
          "type": "string"
        },
        "organization_id (required)": {
          "type": "integer"
        },
        "created_at (required)": {
          "type": "string"
        },
        "updated_at (required)": {
          "type": "string"
        },
        "pages_count": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "pages": [
          {
            "name": {
              "type": "string",
              "default": "Page"
            },
            "sort_order": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "background": {
              "type": "object"
            },
            "id (required)": {
              "type": "string"
            },
            "project_id (required)": {
              "type": "string"
            },
            "groups": [
              {
                "name": "string",
                "parent_id": "object",
                "locked": "object",
                "hidden": "object",
                "id (required)": "string",
                "page_id (required)": "string"
              }
            ],
            "elements": [
              {
                "kind (required)": "string",
                "z_index": "object",
                "group_id": "object",
                "x (required)": "number",
                "y (required)": "number",
                "w (required)": "number",
                "h (required)": "number",
                "rotation": "object",
                "locked": "object",
                "hidden": "object",
                "props": "object",
                "id (required)": "string",
                "page_id (required)": "string"
              }
            ]
          }
        ]
      }
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
PATCH/graphics/projects/{project_id}graphics:write

Update graphic project

Update graphic project metadata or canvas bounds. Required platform scope: `graphics:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "project_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "format": "uuid",
      "title": "Project Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Request: application/json

{
  "favorite": {
    "type": "boolean",
    "default": false
  },
  "name": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "category": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "status": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "canvas_width": [
    {
      "type": "integer"
    },
    {
      "type": "null"
    }
  ],
  "canvas_height": [
    {
      "type": "integer"
    },
    {
      "type": "null"
    }
  ],
  "unit": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "ratio_id": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "thumbnail_url": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ]
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {
        "name (required)": {
          "type": "string"
        },
        "category": {
          "type": "string",
          "default": "Custom"
        },
        "status": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "canvas_width": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "canvas_height": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "width": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "height": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "unit": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "ratio_id": {
          "type": "string",
          "default": "custom"
        },
        "thumbnail_url": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "favorite": {
          "type": "boolean",
          "default": false
        },
        "id (required)": {
          "type": "string"
        },
        "organization_id (required)": {
          "type": "integer"
        },
        "created_at (required)": {
          "type": "string"
        },
        "updated_at (required)": {
          "type": "string"
        },
        "pages_count": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ]
      }
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
DELETE/graphics/projects/{project_id}graphics:write

Delete graphic project

Move a graphic project and all artboard slides to Trash for three months. Required platform scope: `graphics:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "project_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "format": "uuid",
      "title": "Project Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/graphics/projects/{project_id}/duplicategraphics:write

Duplicate graphic project

Duplicate an entire graphic design project. Required platform scope: `graphics:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "project_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "format": "uuid",
      "title": "Project Id"
    }
  },
  {
    "name": "new_name",
    "in": "query",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "New Name"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "201": {
    "description": "Successful Response",
    "content": {
      "application/json": {
        "name (required)": {
          "type": "string"
        },
        "category": {
          "type": "string",
          "default": "Custom"
        },
        "status": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "canvas_width": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "canvas_height": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "width": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "height": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "unit": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "ratio_id": {
          "type": "string",
          "default": "custom"
        },
        "thumbnail_url": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "favorite": {
          "type": "boolean",
          "default": false
        },
        "id (required)": {
          "type": "string"
        },
        "organization_id (required)": {
          "type": "integer"
        },
        "created_at (required)": {
          "type": "string"
        },
        "updated_at (required)": {
          "type": "string"
        },
        "pages_count": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "pages": [
          {
            "name": {
              "type": "string",
              "default": "Page"
            },
            "sort_order": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "background": {
              "type": "object"
            },
            "id (required)": {
              "type": "string"
            },
            "project_id (required)": {
              "type": "string"
            },
            "groups": [
              {
                "name": "string",
                "parent_id": "object",
                "locked": "object",
                "hidden": "object",
                "id (required)": "string",
                "page_id (required)": "string"
              }
            ],
            "elements": [
              {
                "kind (required)": "string",
                "z_index": "object",
                "group_id": "object",
                "x (required)": "number",
                "y (required)": "number",
                "w (required)": "number",
                "h (required)": "number",
                "rotation": "object",
                "locked": "object",
                "hidden": "object",
                "props": "object",
                "id (required)": "string",
                "page_id (required)": "string"
              }
            ]
          }
        ]
      }
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/graphics/templatesgraphics:read

List templates

List available Canva-style graphic design templates. Required platform scope: `graphics:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "category",
    "in": "query",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Category filter",
      "title": "Category"
    },
    "description": "Category filter"
  },
  {
    "name": "ratio_id",
    "in": "query",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Aspect ratio filter",
      "title": "Ratio Id"
    },
    "description": "Aspect ratio filter"
  },
  {
    "name": "limit",
    "in": "query",
    "required": false,
    "schema": {
      "type": "integer",
      "maximum": 100,
      "minimum": 1,
      "default": 50,
      "title": "Limit"
    }
  },
  {
    "name": "offset",
    "in": "query",
    "required": false,
    "schema": {
      "type": "integer",
      "minimum": 0,
      "default": 0,
      "title": "Offset"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": [
        {
          "id (required)": {
            "type": "string"
          },
          "name (required)": {
            "type": "string"
          },
          "category (required)": {
            "type": "string"
          },
          "ratio_id (required)": {
            "type": "string"
          },
          "width (required)": {
            "type": "integer"
          },
          "height (required)": {
            "type": "integer"
          },
          "thumbnail (required)": {
            "type": "string"
          },
          "thumbnail_url": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "pages_data": [
            {
              "type": "object"
            }
          ],
          "tags": [
            {
              "type": "string"
            }
          ],
          "is_public": {
            "type": "boolean",
            "default": true
          }
        }
      ]
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/graphics/templates/{template_id}/clonegraphics:write

Clone template to project

Clone a design template directly into a live editable graphic project. Required platform scope: `graphics:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "template_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "format": "uuid",
      "title": "Template Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Request: application/json

{
  "name": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "organization_id": [
    {
      "type": "integer"
    },
    {
      "type": "null"
    }
  ]
}

Responses

{
  "201": {
    "description": "Successful Response",
    "content": {
      "application/json": {
        "name (required)": {
          "type": "string"
        },
        "category": {
          "type": "string",
          "default": "Custom"
        },
        "status": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "canvas_width": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "canvas_height": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "width": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "height": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "unit": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "ratio_id": {
          "type": "string",
          "default": "custom"
        },
        "thumbnail_url": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "favorite": {
          "type": "boolean",
          "default": false
        },
        "id (required)": {
          "type": "string"
        },
        "organization_id (required)": {
          "type": "integer"
        },
        "created_at (required)": {
          "type": "string"
        },
        "updated_at (required)": {
          "type": "string"
        },
        "pages_count": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "pages": [
          {
            "name": {
              "type": "string",
              "default": "Page"
            },
            "sort_order": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "background": {
              "type": "object"
            },
            "id (required)": {
              "type": "string"
            },
            "project_id (required)": {
              "type": "string"
            },
            "groups": [
              {
                "name": "string",
                "parent_id": "object",
                "locked": "object",
                "hidden": "object",
                "id (required)": "string",
                "page_id (required)": "string"
              }
            ],
            "elements": [
              {
                "kind (required)": "string",
                "z_index": "object",
                "group_id": "object",
                "x (required)": "number",
                "y (required)": "number",
                "w (required)": "number",
                "h (required)": "number",
                "rotation": "object",
                "locked": "object",
                "hidden": "object",
                "props": "object",
                "id (required)": "string",
                "page_id (required)": "string"
              }
            ]
          }
        ]
      }
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/graphics/trashgraphics:read

List trash

Required platform scope: `graphics:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/graphics/trash/{project_id}/restoregraphics:write

Restore trash project

Required platform scope: `graphics:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "project_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "format": "uuid",
      "title": "Project Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/routines/templatesroutines:read

Templates

Required platform scope: `routines:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/routines/optionsroutines:read

Options

What the setup sheet offers: connected accounts, whether the blog is on, email lists and senders. Required platform scope: `routines:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/routines/samplesroutines:read

Samples

Required platform scope: `routines:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "source",
    "in": "query",
    "required": true,
    "schema": {
      "enum": [
        "designs",
        "templates",
        "posts",
        "uploads",
        "videos"
      ],
      "type": "string",
      "title": "Source"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/routines/preview-scheduleroutines:write

Preview schedule

The sentence and the next few dates for a schedule, as the person edits it. Required platform scope: `routines:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Request: application/json

{
  "kind (required)": {
    "type": "string",
    "enum": [
      "social",
      "blog",
      "newsletter"
    ]
  },
  "schedule (required)": {
    "type": "object"
  }
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/routinesroutines:read

List routines

Required platform scope: `routines:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/routinesroutines:write

Create routine

Required platform scope: `routines:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Request: application/json

{
  "kind (required)": {
    "type": "string",
    "enum": [
      "social",
      "blog",
      "newsletter"
    ]
  },
  "format": [
    {
      "type": "string",
      "enum": [
        "graphics",
        "carousel",
        "reels",
        "plan"
      ]
    },
    {
      "type": "null"
    }
  ],
  "name": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "settings": {
    "type": "object"
  },
  "samples": [
    {
      "type": "object"
    }
  ],
  "schedule (required)": {
    "type": "object"
  },
  "start_now": {
    "type": "boolean",
    "default": true
  }
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/routines/{routine_id}routines:read

Get routine

Required platform scope: `routines:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "routine_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Routine Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
PATCH/routines/{routine_id}routines:write

Update routine

Required platform scope: `routines:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "routine_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Routine Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Request: application/json

{
  "name": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "settings": [
    {
      "type": "object"
    },
    {
      "type": "null"
    }
  ],
  "samples": [
    [
      {
        "type": "object"
      }
    ],
    {
      "type": "null"
    }
  ],
  "schedule": [
    {
      "type": "object"
    },
    {
      "type": "null"
    }
  ],
  "guidance": [
    [
      {
        "type": "object"
      }
    ],
    {
      "type": "null"
    }
  ]
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/routines/{routine_id}/pauseroutines:write

Pause routine

Required platform scope: `routines:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "routine_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Routine Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/routines/{routine_id}/resumeroutines:write

Resume routine

Required platform scope: `routines:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "routine_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Routine Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/routines/{routine_id}/runroutines:write

Run routine now

Required platform scope: `routines:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "routine_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Routine Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/routines/runs/{run_id}routines:read

Get run

Required platform scope: `routines:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "run_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Run Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/routines/items/{item_id}/approveroutines:write

Approve item

Required platform scope: `routines:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "item_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Item Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Request: application/json

{
  "scheduled_at": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "caption": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "account_ids": [
    [
      {
        "type": "integer"
      }
    ],
    {
      "type": "null"
    }
  ],
  "publish": {
    "type": "boolean",
    "default": true
  },
  "subject_index": [
    {
      "type": "integer"
    },
    {
      "type": "null"
    }
  ]
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
PATCH/routines/items/{item_id}routines:write

Edit item

Keep an edit to the caption or time before approving. Required platform scope: `routines:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "item_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Item Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Request: application/json

{
  "caption": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "suggested_at": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ]
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/routines/items/{item_id}/rejectroutines:write

Reject item

Required platform scope: `routines:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "item_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Item Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Request: application/json

{
  "reason": [
    {
      "type": "string",
      "enum": [
        "off_brand",
        "wrong_topic",
        "too_salesy",
        "bad_design",
        "bad_caption",
        "bad_writing",
        "other"
      ]
    },
    {
      "type": "null"
    }
  ],
  "note": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ]
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/routines/items/{item_id}/regenerateroutines:write

Regenerate item

Required platform scope: `routines:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "item_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Item Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Request: application/json

{
  "part": {
    "type": "string",
    "enum": [
      "design",
      "caption",
      "both",
      "idea",
      "video"
    ],
    "default": "both"
  },
  "note": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ]
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/routines/runs/{run_id}/approve-allroutines:write

Approve all

Approve every ready post at its suggested time. Reel ideas and anything past its time are left for a person. Required platform scope: `routines:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "run_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Run Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/tasks/counttasks:read

Count tasks

Required platform scope: `tasks:read`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/tasks/{key}/snoozetasks:write

Snooze task

Required platform scope: `tasks:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "key",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Key"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Request: application/json

{
  "until": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ]
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/tasks/{key}/dismisstasks:write

Dismiss task

Required platform scope: `tasks:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "key",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Key"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/tasks/{key}/restoretasks:write

Restore task

Undo a dismissal. Required platform scope: `tasks:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "key",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Key"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/tasks/{key}/assigntasks:write

Assign task

Required platform scope: `tasks:write`. Uses the key's workspace and current owner permissions.

Parameters

[
  {
    "name": "key",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Key"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Request: application/json

{
  "user_id": [
    {
      "type": "integer"
    },
    {
      "type": "null"
    }
  ]
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/datasets/{dataset_id}/records/{record_id}datasets:read

Get dataset record

Parameters

[
  {
    "name": "dataset_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Dataset Id"
    }
  },
  {
    "name": "record_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Record Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {
        "id (required)": {
          "type": "integer"
        },
        "dataset_id (required)": {
          "type": "integer"
        },
        "created_at (required)": {
          "type": "string"
        },
        "values (required)": [
          {
            "dataset_field_id (required)": {
              "type": "integer"
            },
            "value": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "id (required)": {
              "type": "integer"
            },
            "dataset_record_id (required)": {
              "type": "integer"
            },
            "field (required)": {
              "field_key (required)": {
                "type": "string"
              },
              "field_name (required)": {
                "type": "string"
              },
              "field_type (required)": {
                "type": "string"
              },
              "is_required": {
                "type": "boolean",
                "default": false
              },
              "id (required)": {
                "type": "integer"
              },
              "dataset_id (required)": {
                "type": "integer"
              }
            }
          }
        ]
      }
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/tickets/customerstickets:read

Search ticket customers

Find an existing customer by name, email or phone before creating a ticket for them. Required platform scope: `tickets:read`. The key owner needs ticket management access.

Parameters

[
  {
    "name": "q",
    "in": "query",
    "required": false,
    "schema": {
      "type": "string",
      "maxLength": 200,
      "default": "",
      "title": "Q"
    }
  },
  {
    "name": "page",
    "in": "query",
    "required": false,
    "schema": {
      "type": "integer",
      "maximum": 10001,
      "minimum": 1,
      "default": 1,
      "title": "Page"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/taskstasks:read

List my tasks

The person's tasks worked out live from the workspace (scope mine, unassigned or team; team needs admin or team manager). Message previews need inbox:read (email:read for email). Required platform scope: `tasks:read`.

Parameters

[
  {
    "name": "scope",
    "in": "query",
    "required": false,
    "schema": {
      "enum": [
        "mine",
        "unassigned",
        "team"
      ],
      "type": "string",
      "default": "mine",
      "title": "Scope"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/tickets/customers/{customer_id}/eraseprivacy:write

Erase a ticket customer

For privacy requests. Redacts the customer and their tickets (ids and numbers remain), deletes ticket attachments and tombstones the customer's email addresses. Stops with 409 when tickets are linked to conversations or the customer has CRM leads. Required platform scope: `privacy:write`; the key owner must be a workspace administrator.

Parameters

[
  {
    "name": "customer_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Customer Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/campaigns/{campaign_id}/startcampaigns:write

Start campaign

Stop cancels pending work and marks the campaign deleted. Pause preserves it for resume. Start launches a draft or resumes eligible campaigns.

Parameters

[
  {
    "name": "campaign_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Campaign Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {
        "name (required)": {
          "type": "string"
        },
        "channel": {
          "type": "string",
          "default": "email"
        },
        "type": {
          "type": "string",
          "enum": [
            "sales"
          ]
        },
        "flow_type": {
          "type": "string",
          "enum": [
            "template",
            "ai_powered"
          ]
        },
        "dataset_id (required)": {
          "type": "integer"
        },
        "template_id": [
          {},
          {
            "type": "null"
          }
        ],
        "template_variants": [
          [
            {
              "source_template_id": [
                "integer",
                "null"
              ],
              "label (required)": {
                "type": "string"
              },
              "subject": {
                "type": "string",
                "default": ""
              },
              "body": {
                "type": "string",
                "default": ""
              },
              "followups": [
                "object"
              ]
            }
          ],
          {
            "type": "null"
          }
        ],
        "ai_objective": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "ai_fields": [
          [
            {
              "type": "string"
            }
          ],
          {
            "type": "null"
          }
        ],
        "emails_per_day": {
          "type": "integer",
          "default": 50
        },
        "interval_minutes": {
          "type": "integer",
          "default": 0
        },
        "interval_seconds": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "auto_reply_enabled": {
          "type": "boolean",
          "default": false
        },
        "followup_objectives": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "style_tune": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "min_reply_minutes": {
          "type": "integer",
          "default": 60
        },
        "max_reply_minutes": {
          "type": "integer",
          "default": 300
        },
        "track_opens": {
          "type": "boolean",
          "default": true
        },
        "track_clicks": {
          "type": "boolean",
          "default": true
        },
        "show_unsubscribe": {
          "type": "boolean",
          "default": false
        },
        "unsubscribe_text": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "attachment_ids": [
          [
            {
              "type": "integer"
            }
          ],
          {
            "type": "null"
          }
        ],
        "scheduled_start_at": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "schedule_config": [
          {
            "type": "object"
          },
          {
            "type": "null"
          }
        ],
        "timezone": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "connected_account_ids": [
          [
            {
              "type": "integer"
            }
          ],
          {
            "type": "null"
          }
        ],
        "whatsapp_template_id": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "whatsapp_integration_ids": [
          [
            {
              "type": "integer"
            }
          ],
          {
            "type": "null"
          }
        ],
        "ai_followups": [
          [
            {
              "type": "object"
            }
          ],
          {
            "type": "null"
          }
        ],
        "brand_id": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "id (required)": {
          "type": "integer"
        },
        "status (required)": {
          "type": "string",
          "enum": [
            "draft",
            "active",
            "paused",
            "paused_limit",
            "paused_by_user",
            "completed",
            "scheduled",
            "initializing",
            "deleted",
            "failed",
            "failed_init"
          ]
        },
        "status_message": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "user_id (required)": {
          "type": "integer"
        },
        "organization_id (required)": {
          "type": "integer"
        },
        "created_at (required)": {
          "type": "string"
        },
        "updated_at": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "subject": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "body": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "followups": [
          {
            "type": "object"
          }
        ],
        "attachments": [
          [
            {
              "filename (required)": {
                "type": "string"
              },
              "content_type": [
                "string",
                "null"
              ],
              "file_size": [
                "integer",
                "null"
              ],
              "id (required)": {
                "type": "integer"
              },
              "created_at (required)": {
                "type": "string"
              },
              "file_url": [
                "string",
                "null"
              ],
              "private_download_url": [
                "string",
                "null"
              ],
              "content_id": [
                "string",
                "null"
              ],
              "inline_url": [
                "string",
                "null"
              ]
            }
          ],
          {
            "type": "null"
          }
        ],
        "brand_name": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ]
      }
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/campaigns/{campaign_id}/pausecampaigns:write

Pause campaign

Stop cancels pending work and marks the campaign deleted. Pause preserves it for resume. Start launches a draft or resumes eligible campaigns.

Parameters

[
  {
    "name": "campaign_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Campaign Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {
        "name (required)": {
          "type": "string"
        },
        "channel": {
          "type": "string",
          "default": "email"
        },
        "type": {
          "type": "string",
          "enum": [
            "sales"
          ]
        },
        "flow_type": {
          "type": "string",
          "enum": [
            "template",
            "ai_powered"
          ]
        },
        "dataset_id (required)": {
          "type": "integer"
        },
        "template_id": [
          {},
          {
            "type": "null"
          }
        ],
        "template_variants": [
          [
            {
              "source_template_id": [
                "integer",
                "null"
              ],
              "label (required)": {
                "type": "string"
              },
              "subject": {
                "type": "string",
                "default": ""
              },
              "body": {
                "type": "string",
                "default": ""
              },
              "followups": [
                "object"
              ]
            }
          ],
          {
            "type": "null"
          }
        ],
        "ai_objective": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "ai_fields": [
          [
            {
              "type": "string"
            }
          ],
          {
            "type": "null"
          }
        ],
        "emails_per_day": {
          "type": "integer",
          "default": 50
        },
        "interval_minutes": {
          "type": "integer",
          "default": 0
        },
        "interval_seconds": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "auto_reply_enabled": {
          "type": "boolean",
          "default": false
        },
        "followup_objectives": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "style_tune": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "min_reply_minutes": {
          "type": "integer",
          "default": 60
        },
        "max_reply_minutes": {
          "type": "integer",
          "default": 300
        },
        "track_opens": {
          "type": "boolean",
          "default": true
        },
        "track_clicks": {
          "type": "boolean",
          "default": true
        },
        "show_unsubscribe": {
          "type": "boolean",
          "default": false
        },
        "unsubscribe_text": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "attachment_ids": [
          [
            {
              "type": "integer"
            }
          ],
          {
            "type": "null"
          }
        ],
        "scheduled_start_at": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "schedule_config": [
          {
            "type": "object"
          },
          {
            "type": "null"
          }
        ],
        "timezone": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "connected_account_ids": [
          [
            {
              "type": "integer"
            }
          ],
          {
            "type": "null"
          }
        ],
        "whatsapp_template_id": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "whatsapp_integration_ids": [
          [
            {
              "type": "integer"
            }
          ],
          {
            "type": "null"
          }
        ],
        "ai_followups": [
          [
            {
              "type": "object"
            }
          ],
          {
            "type": "null"
          }
        ],
        "brand_id": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "id (required)": {
          "type": "integer"
        },
        "status (required)": {
          "type": "string",
          "enum": [
            "draft",
            "active",
            "paused",
            "paused_limit",
            "paused_by_user",
            "completed",
            "scheduled",
            "initializing",
            "deleted",
            "failed",
            "failed_init"
          ]
        },
        "status_message": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "user_id (required)": {
          "type": "integer"
        },
        "organization_id (required)": {
          "type": "integer"
        },
        "created_at (required)": {
          "type": "string"
        },
        "updated_at": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "subject": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "body": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "followups": [
          {
            "type": "object"
          }
        ],
        "attachments": [
          [
            {
              "filename (required)": {
                "type": "string"
              },
              "content_type": [
                "string",
                "null"
              ],
              "file_size": [
                "integer",
                "null"
              ],
              "id (required)": {
                "type": "integer"
              },
              "created_at (required)": {
                "type": "string"
              },
              "file_url": [
                "string",
                "null"
              ],
              "private_download_url": [
                "string",
                "null"
              ],
              "content_id": [
                "string",
                "null"
              ],
              "inline_url": [
                "string",
                "null"
              ]
            }
          ],
          {
            "type": "null"
          }
        ],
        "brand_name": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ]
      }
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/campaigns/{campaign_id}/resumecampaigns:write

Resume campaign

Stop cancels pending work and marks the campaign deleted. Pause preserves it for resume. Start launches a draft or resumes eligible campaigns.

Parameters

[
  {
    "name": "campaign_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Campaign Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {
        "name (required)": {
          "type": "string"
        },
        "channel": {
          "type": "string",
          "default": "email"
        },
        "type": {
          "type": "string",
          "enum": [
            "sales"
          ]
        },
        "flow_type": {
          "type": "string",
          "enum": [
            "template",
            "ai_powered"
          ]
        },
        "dataset_id (required)": {
          "type": "integer"
        },
        "template_id": [
          {},
          {
            "type": "null"
          }
        ],
        "template_variants": [
          [
            {
              "source_template_id": [
                "integer",
                "null"
              ],
              "label (required)": {
                "type": "string"
              },
              "subject": {
                "type": "string",
                "default": ""
              },
              "body": {
                "type": "string",
                "default": ""
              },
              "followups": [
                "object"
              ]
            }
          ],
          {
            "type": "null"
          }
        ],
        "ai_objective": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "ai_fields": [
          [
            {
              "type": "string"
            }
          ],
          {
            "type": "null"
          }
        ],
        "emails_per_day": {
          "type": "integer",
          "default": 50
        },
        "interval_minutes": {
          "type": "integer",
          "default": 0
        },
        "interval_seconds": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "auto_reply_enabled": {
          "type": "boolean",
          "default": false
        },
        "followup_objectives": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "style_tune": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "min_reply_minutes": {
          "type": "integer",
          "default": 60
        },
        "max_reply_minutes": {
          "type": "integer",
          "default": 300
        },
        "track_opens": {
          "type": "boolean",
          "default": true
        },
        "track_clicks": {
          "type": "boolean",
          "default": true
        },
        "show_unsubscribe": {
          "type": "boolean",
          "default": false
        },
        "unsubscribe_text": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "attachment_ids": [
          [
            {
              "type": "integer"
            }
          ],
          {
            "type": "null"
          }
        ],
        "scheduled_start_at": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "schedule_config": [
          {
            "type": "object"
          },
          {
            "type": "null"
          }
        ],
        "timezone": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "connected_account_ids": [
          [
            {
              "type": "integer"
            }
          ],
          {
            "type": "null"
          }
        ],
        "whatsapp_template_id": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "whatsapp_integration_ids": [
          [
            {
              "type": "integer"
            }
          ],
          {
            "type": "null"
          }
        ],
        "ai_followups": [
          [
            {
              "type": "object"
            }
          ],
          {
            "type": "null"
          }
        ],
        "brand_id": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "id (required)": {
          "type": "integer"
        },
        "status (required)": {
          "type": "string",
          "enum": [
            "draft",
            "active",
            "paused",
            "paused_limit",
            "paused_by_user",
            "completed",
            "scheduled",
            "initializing",
            "deleted",
            "failed",
            "failed_init"
          ]
        },
        "status_message": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "user_id (required)": {
          "type": "integer"
        },
        "organization_id (required)": {
          "type": "integer"
        },
        "created_at (required)": {
          "type": "string"
        },
        "updated_at": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "subject": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "body": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "followups": [
          {
            "type": "object"
          }
        ],
        "attachments": [
          [
            {
              "filename (required)": {
                "type": "string"
              },
              "content_type": [
                "string",
                "null"
              ],
              "file_size": [
                "integer",
                "null"
              ],
              "id (required)": {
                "type": "integer"
              },
              "created_at (required)": {
                "type": "string"
              },
              "file_url": [
                "string",
                "null"
              ],
              "private_download_url": [
                "string",
                "null"
              ],
              "content_id": [
                "string",
                "null"
              ],
              "inline_url": [
                "string",
                "null"
              ]
            }
          ],
          {
            "type": "null"
          }
        ],
        "brand_name": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ]
      }
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/campaigns/{campaign_id}/stopcampaigns:write

Stop campaign

Stop cancels pending work and marks the campaign deleted. Pause preserves it for resume. Start launches a draft or resumes eligible campaigns.

Parameters

[
  {
    "name": "campaign_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "integer",
      "title": "Campaign Id"
    }
  },
  {
    "name": "Idempotency-Key",
    "in": "header",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Required for JSON mutations; use a unique value per action.",
      "title": "Idempotency-Key"
    },
    "description": "Required for JSON mutations; use a unique value per action."
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/mcp/workspaceworkspace:read

Workspace summary for AI apps

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  }
}
GET/mcp/creditsworkspace:read

Credits and AI-app spend

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  }
}
GET/mcp/daily-briefworkspace:read

What needs attention today

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  }
}
POST/media/uploadsmedia:write

Create direct uploads

Request: application/json

{
  "files (required)": [
    {
      "name (required)": {
        "type": "string"
      },
      "mime (required)": {
        "type": "string"
      },
      "size (required)": {
        "type": "integer"
      }
    }
  ]
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/media/uploads/{upload_id}/completemedia:write

Finish a direct upload

Parameters

[
  {
    "name": "upload_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Upload Id"
    }
  }
]

Request: application/json

{
  "parts": [
    [
      {
        "part_number (required)": {
          "type": "integer"
        },
        "etag (required)": {
          "type": "string"
        }
      }
    ],
    {
      "type": "null"
    }
  ]
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/media/import-urlmedia:write

Import media from a public URL

Request: application/json

{
  "url (required)": {
    "type": "string"
  },
  "name": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ]
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/social/media/resolvesocial:write

Post-ready media with platform checks

Request: application/json

{
  "sources (required)": [
    {
      "asset_id": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "upload_id": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "url": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    }
  ],
  "platforms": [
    {
      "type": "string",
      "enum": [
        "instagram",
        "facebook",
        "tiktok",
        "youtube"
      ]
    }
  ],
  "post_type": {
    "type": "string",
    "default": "post"
  }
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/social/requirementssocial:read

Platform posting rules

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  }
}
POST/inbox/draftsinbox:write

Queue a reply for approval

Request: application/json

{
  "ref (required)": {
    "type": "string"
  },
  "text (required)": {
    "type": "string"
  },
  "note": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ]
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/inbox/draftsinbox:read

Replies waiting for approval

Parameters

[
  {
    "name": "status",
    "in": "query",
    "required": false,
    "schema": {
      "enum": [
        "pending",
        "sent",
        "discarded",
        "failed",
        "all"
      ],
      "type": "string",
      "default": "pending",
      "title": "Status"
    }
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/webhook-endpointswebhooks:read

List webhooks

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  }
}
POST/webhook-endpointswebhooks:write

Create a webhook

Returns the signing secret once. Events: ticket.created, ticket.updated, ticket.note_added, ticket.attachments_added.

Request: application/json

{
  "url (required)": {
    "type": "string"
  },
  "events (required)": [
    {
      "type": "string"
    }
  ],
  "description": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ]
}

Responses

{
  "201": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
PATCH/webhook-endpoints/{webhook_id}webhooks:write

Update a webhook

Setting is_active true re-enables a webhook that was disabled after failures.

Parameters

[
  {
    "name": "webhook_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Webhook Id"
    }
  }
]

Request: application/json

{
  "url": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "events": [
    [
      {
        "type": "string"
      }
    ],
    {
      "type": "null"
    }
  ],
  "description": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "is_active": [
    {
      "type": "boolean"
    },
    {
      "type": "null"
    }
  ]
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
DELETE/webhook-endpoints/{webhook_id}webhooks:write

Delete a webhook

Parameters

[
  {
    "name": "webhook_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Webhook Id"
    }
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/webhook-endpoints/{webhook_id}/rotate-secretwebhooks:write

Rotate the signing secret

The old secret stops verifying immediately; queued deliveries are signed with the new one.

Parameters

[
  {
    "name": "webhook_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Webhook Id"
    }
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/webhook-endpoints/{webhook_id}/testwebhooks:write

Send a test event

Parameters

[
  {
    "name": "webhook_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Webhook Id"
    }
  }
]

Responses

{
  "202": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/webhook-endpoints/{webhook_id}/deliverieswebhooks:read

Recent deliveries

Parameters

[
  {
    "name": "webhook_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Webhook Id"
    }
  },
  {
    "name": "status",
    "in": "query",
    "required": false,
    "schema": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^(pending|delivered|failed)$"
        },
        {
          "type": "null"
        }
      ],
      "title": "Status"
    }
  },
  {
    "name": "page",
    "in": "query",
    "required": false,
    "schema": {
      "type": "integer",
      "minimum": 1,
      "default": 1,
      "title": "Page"
    }
  },
  {
    "name": "size",
    "in": "query",
    "required": false,
    "schema": {
      "type": "integer",
      "maximum": 100,
      "minimum": 1,
      "default": 20,
      "title": "Size"
    }
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/webhook-endpoints/{webhook_id}/deliveries/{delivery_id}/retrywebhooks:write

Send a delivery again

Parameters

[
  {
    "name": "webhook_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Webhook Id"
    }
  },
  {
    "name": "delivery_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Delivery Id"
    }
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/graphics/compose-schemagraphics:read

Design composition schema

The exact compose_design contract the editor engine lays out (layouts, themes, content fields).

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  }
}
GET/sites/compose-schemasites:read

Website composition schema

The exact compose_website contract: theme, preset sections with their copy slots, pages and SEO.

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  }
}
POST/graphics/projects/{project_id}/composegraphics:write

Queue design operations

Parameters

[
  {
    "name": "project_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Project Id"
    }
  }
]

Request: application/json

{
  "pages (required)": [
    {
      "page_id": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "page_index": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "new_page": {
        "type": "boolean",
        "default": false
      },
      "path": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "compose": [
        {
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "ops": [
        {
          "op (required)": "string",
          "summary": "string",
          "ids": "array",
          "props": "object"
        }
      ]
    }
  ],
  "replace": {
    "type": "boolean",
    "default": false,
    "description": "Drop changes queued earlier and not rendered yet"
  },
  "use_brand": {
    "type": "boolean",
    "default": true
  }
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/graphics/projects/{project_id}/rendergraphics:write

Render a design

Parameters

[
  {
    "name": "project_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Project Id"
    }
  }
]

Request: application/json

{
  "where": {
    "type": "string",
    "enum": [
      "hosted",
      "local"
    ],
    "default": "hosted",
    "description": "Always hosted; kept for older clients."
  },
  "format": {
    "type": "string",
    "enum": [
      "png",
      "jpg",
      "mp4",
      "none"
    ],
    "default": "png"
  },
  "pages": [
    [
      {
        "type": "integer"
      }
    ],
    {
      "type": "null"
    }
  ],
  "scale": {
    "type": "number",
    "default": 1
  },
  "viewports": [
    {
      "type": "integer"
    }
  ]
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/sites/projects/{project_id}/composesites:write

Queue website operations

Parameters

[
  {
    "name": "project_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Project Id"
    }
  }
]

Request: application/json

{
  "pages (required)": [
    {
      "page_id": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "page_index": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "new_page": {
        "type": "boolean",
        "default": false
      },
      "path": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "compose": [
        {
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "ops": [
        {
          "op (required)": "string",
          "summary": "string",
          "ids": "array",
          "props": "object"
        }
      ]
    }
  ],
  "replace": {
    "type": "boolean",
    "default": false,
    "description": "Drop changes queued earlier and not rendered yet"
  },
  "use_brand": {
    "type": "boolean",
    "default": true
  }
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/sites/projects/{project_id}/rendersites:write

Apply and screenshot a website

Parameters

[
  {
    "name": "project_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Project Id"
    }
  }
]

Request: application/json

{
  "where": {
    "type": "string",
    "enum": [
      "hosted",
      "local"
    ],
    "default": "hosted",
    "description": "Always hosted; kept for older clients."
  },
  "format": {
    "type": "string",
    "enum": [
      "png",
      "jpg",
      "mp4",
      "none"
    ],
    "default": "png"
  },
  "pages": [
    [
      {
        "type": "integer"
      }
    ],
    {
      "type": "null"
    }
  ],
  "scale": {
    "type": "number",
    "default": 1
  },
  "viewports": [
    {
      "type": "integer"
    }
  ]
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/renders/{render_id}graphics:read

Render status and files

Parameters

[
  {
    "name": "render_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Render Id"
    }
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/graphics/projects/{project_id}/ai-designgraphics:write

Design with the AI design agent

Runs one turn of the Graphics studio's AI design agent on a saved page and queues the operations it proposes (like compose). Answers 202 with a run_id; read the result from /graphics/ai-runs/{run_id}, then render. Free; limited per caller.

Parameters

[
  {
    "name": "project_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Project Id"
    }
  }
]

Request: application/json

{
  "prompt (required)": {
    "type": "string",
    "description": "What to design or change, in the user's words."
  },
  "page_index": {
    "type": "integer",
    "default": 0,
    "description": "0-based page the agent works on."
  },
  "new_page": {
    "type": "boolean",
    "default": false,
    "description": "Design a new page at the end instead."
  },
  "element_ids": [
    {
      "type": "string"
    }
  ],
  "history": [
    {
      "role (required)": {
        "type": "string",
        "enum": [
          "user",
          "assistant"
        ]
      },
      "content (required)": {
        "type": "string"
      }
    }
  ],
  "use_brand": {
    "type": "boolean",
    "default": true
  }
}

Responses

{
  "202": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/graphics/projects/{project_id}/ai-directionsgraphics:write

Three creative directions

Three distinct creative directions (layout, theme, palette, type, imagery, headline) for a brief, before anything is built. Answers 202 with a run_id; read them from /graphics/ai-runs/{run_id}.

Parameters

[
  {
    "name": "project_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Project Id"
    }
  }
]

Request: application/json

{
  "prompt (required)": {
    "type": "string",
    "description": "The brief to propose directions for."
  },
  "use_brand": {
    "type": "boolean",
    "default": true
  }
}

Responses

{
  "202": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/graphics/ai-runs/{run_id}graphics:read

AI design run status

Parameters

[
  {
    "name": "run_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Run Id"
    }
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/graphics/motion-schemagraphics:read

Animation, transition and size contract

set_animation and set_page_transition exactly as the editor applies them (queue them as compose ops), the compose_design motion levels, and the canvas size presets.

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  }
}
GET/media/stock-videosmedia:read

Search stock video

Pexels footage for b-roll. Import a pick with media/import-url; credit the creator as Pexels asks.

Parameters

[
  {
    "name": "query",
    "in": "query",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Query"
    }
  },
  {
    "name": "orientation",
    "in": "query",
    "required": false,
    "schema": {
      "enum": [
        "portrait",
        "landscape",
        "square"
      ],
      "type": "string",
      "default": "portrait",
      "title": "Orientation"
    }
  },
  {
    "name": "limit",
    "in": "query",
    "required": false,
    "schema": {
      "type": "integer",
      "default": 8,
      "title": "Limit"
    }
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/videos/voiceovervideos:write

Record a voice-over

Narration audio with word timings. 1 credit per started 5 seconds of audio, reserved now and settled to the take.

Request: application/json

{
  "script (required)": {
    "type": "string",
    "description": "Spoken words only: no stage directions, markup or emoji."
  },
  "voice (required)": {
    "type": "string"
  },
  "speed": [
    {
      "type": "number"
    },
    {
      "type": "null"
    }
  ],
  "language": {
    "type": "string",
    "default": "en"
  }
}

Responses

{
  "202": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/videos/transcribevideos:write

Transcribe footage

Word timings and sentences for the workspace's own audio or video (up to 10 minutes). 1 credit per started 5 seconds.

Request: application/json

{
  "asset_id (required)": {
    "type": "string"
  },
  "language": {
    "type": "string",
    "default": "auto"
  }
}

Responses

{
  "202": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/videos/motion/rendervideos:write

Render a motion graphics scene

One server-rendered scene (the same templates as the AI video studio) with a preview frame. 5 credits, refunded if it fails.

Request: application/json

{
  "scene (required)": {
    "template (required)": {
      "type": "string"
    },
    "text": {
      "type": "string",
      "default": ""
    },
    "label": {
      "type": "string",
      "default": ""
    },
    "items": [
      {
        "type": "string"
      }
    ],
    "icon": [
      {
        "type": "string"
      },
      {
        "type": "null"
      }
    ],
    "icons": [
      {
        "type": "string"
      }
    ],
    "emphasis": [
      {
        "type": "string"
      },
      {
        "type": "null"
      }
    ],
    "intro": [
      {
        "type": "string"
      },
      {
        "type": "null"
      }
    ],
    "fx": [
      {
        "type": "string"
      },
      {
        "type": "null"
      }
    ],
    "beats": [
      {
        "type": "number"
      }
    ],
    "seconds": {
      "type": "number",
      "default": 3
    }
  },
  "orientation": {
    "type": "string",
    "enum": [
      "portrait",
      "landscape",
      "square"
    ],
    "default": "portrait"
  },
  "accent": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "variant": {
    "type": "integer",
    "default": 0
  },
  "image_asset_id": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "still": {
    "type": "boolean",
    "default": false,
    "description": "Preview the frame the scene is read at (1.2 s) instead of a late frame."
  }
}

Responses

{
  "202": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/videos/tool-jobs/{job_id}videos:read

Video step status

Status of any video step; finished files carry fresh links and previews.

Parameters

[
  {
    "name": "job_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Job Id"
    }
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/videos/projects/importvideos:write

Import an edit as a video project

Clips, overlays, caption cues with word timings and audio tracks become an editable project in Videos.

Request: application/json

{
  "title (required)": {
    "type": "string"
  },
  "orientation": {
    "type": "string",
    "enum": [
      "portrait",
      "landscape"
    ],
    "default": "portrait"
  },
  "fps": {
    "type": "integer",
    "enum": [
      24,
      25,
      30
    ],
    "default": 30
  },
  "background": {
    "type": "string",
    "default": "#000000"
  },
  "script": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "clips (required)": [
    {
      "asset_id": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "kind": {
        "type": "string",
        "enum": [
          "video",
          "blank"
        ],
        "default": "video"
      },
      "in": {
        "type": "number",
        "default": 0
      },
      "out (required)": {
        "type": "number"
      },
      "source_duration (required)": {
        "type": "number"
      },
      "background": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "volume": {
        "type": "number",
        "default": 1
      },
      "muted": {
        "type": "boolean",
        "default": false
      },
      "fade_in": {
        "type": "number",
        "default": 0
      },
      "fade_out": {
        "type": "number",
        "default": 0
      },
      "speed": {
        "type": "number",
        "default": 1
      }
    }
  ],
  "overlays": [
    {
      "kind (required)": {
        "type": "string",
        "enum": [
          "text",
          "image",
          "video",
          "shape"
        ]
      },
      "start (required)": {
        "type": "number"
      },
      "end (required)": {
        "type": "number"
      },
      "x (required)": {
        "type": "number"
      },
      "y (required)": {
        "type": "number"
      },
      "w (required)": {
        "type": "number"
      },
      "h (required)": {
        "type": "number"
      },
      "text": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "font_family": {
        "type": "string",
        "default": "Inter"
      },
      "font_size": {
        "type": "number",
        "default": 0.06
      },
      "color": {
        "type": "string",
        "default": "#ffffff"
      },
      "background": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "bold": {
        "type": "boolean",
        "default": true
      },
      "align": {
        "type": "string",
        "enum": [
          "left",
          "center",
          "right"
        ],
        "default": "center"
      },
      "asset_id": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "fit": {
        "type": "string",
        "enum": [
          "contain",
          "cover"
        ],
        "default": "cover"
      },
      "animation": {
        "type": "string",
        "enum": [
          "none",
          "fade",
          "slide-up",
          "slide-down",
          "slide-left",
          "slide-right",
          "drop",
          "zoom",
          "zoom-in",
          "zoom-out",
          "pop",
          "bounce",
          "spin",
          "wipe",
          "typewriter"
        ],
        "default": "fade"
      },
      "exit_animation": {
        "type": "string",
        "enum": [
          "none",
          "fade",
          "slide-up",
          "slide-down",
          "slide-left",
          "slide-right",
          "drop",
          "zoom",
          "zoom-in",
          "zoom-out",
          "pop",
          "bounce",
          "spin",
          "wipe",
          "typewriter"
        ],
        "default": "fade"
      },
      "animation_duration": {
        "type": "number",
        "default": 0.4
      },
      "media_in": {
        "type": "number",
        "default": 0
      },
      "media_duration": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "volume": {
        "type": "number",
        "default": 0
      }
    }
  ],
  "captions": [
    {
      "template": {
        "type": "string",
        "enum": [
          "classic",
          "karaoke",
          "pill",
          "punch",
          "boxed",
          "minimal",
          "neon"
        ],
        "default": "karaoke"
      },
      "highlight_color": {
        "type": "string",
        "default": "#facc15"
      },
      "words (required)": [
        {
          "text (required)": "string",
          "start (required)": "number",
          "end (required)": "number"
        }
      ],
      "timing_estimated": {
        "type": "boolean",
        "default": false
      }
    },
    {
      "type": "null"
    }
  ],
  "audio": [
    {
      "asset_id (required)": {
        "type": "string"
      },
      "role (required)": {
        "type": "string",
        "enum": [
          "voice",
          "music",
          "sfx"
        ]
      },
      "start (required)": {
        "type": "number"
      },
      "in": {
        "type": "number",
        "default": 0
      },
      "out (required)": {
        "type": "number"
      },
      "source_duration (required)": {
        "type": "number"
      },
      "volume": {
        "type": "number",
        "default": 1
      },
      "fade_in": {
        "type": "number",
        "default": 0
      },
      "fade_out": {
        "type": "number",
        "default": 0
      },
      "muted": {
        "type": "boolean",
        "default": false
      },
      "name": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    }
  ],
  "poster_asset_id": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "flattened_asset_id": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "story": [
    {
      "type": "object"
    },
    {
      "type": "null"
    }
  ],
  "story_assets": {
    "type": "object",
    "description": "Story image key -> media asset id."
  },
  "project_id": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ]
}

Responses

{
  "201": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/videos/libraryvideos:read

Video projects (compact)

Parameters

[
  {
    "name": "limit",
    "in": "query",
    "required": false,
    "schema": {
      "type": "integer",
      "default": 25,
      "title": "Limit"
    }
  },
  {
    "name": "offset",
    "in": "query",
    "required": false,
    "schema": {
      "type": "integer",
      "default": 0,
      "title": "Offset"
    }
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/videos/library/{project_id}videos:read

One video project (compact)

Parameters

[
  {
    "name": "project_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Project Id"
    }
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/videos/studiovideos:write

Make a video on the server

The AI video studio makes the whole video (script, voice, scenes, music). Reserves the quote's maximum; unused credits return. The project appears in Videos at once and finishes there; poll the request for progress.

Request: application/json

{
  "prompt (required)": {
    "type": "string"
  },
  "seconds": {
    "type": "integer",
    "enum": [
      5,
      10,
      15,
      20,
      30,
      45
    ],
    "default": 15
  },
  "orientation": {
    "type": "string",
    "enum": [
      "portrait",
      "landscape"
    ],
    "default": "portrait"
  },
  "voice": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "style": {
    "type": "string",
    "enum": [
      "motion",
      "mix",
      "omni"
    ],
    "default": "motion"
  },
  "caption_template": {
    "type": "string",
    "enum": [
      "classic",
      "karaoke",
      "pill",
      "punch",
      "boxed",
      "minimal",
      "neon"
    ],
    "default": "karaoke"
  },
  "music": {
    "type": "string",
    "enum": [
      "auto",
      "none"
    ],
    "default": "auto"
  },
  "sound_effects": {
    "type": "string",
    "enum": [
      "auto",
      "none"
    ],
    "default": "auto"
  },
  "use_brand": {
    "type": "boolean",
    "default": true
  },
  "review": {
    "type": "boolean",
    "default": false
  }
}

Responses

{
  "201": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/videos/story/rendervideos:write

Render a story video

A story spec rendered on the server. With preview_times: free stills at those seconds (check them first). Without: the silent MP4, 1 credit per started 5 seconds, settled to the rendered length.

Request: application/json

{
  "story (required)": {
    "type": "object",
    "description": "The story spec: {template:\"story\", width, height, accent, look, duration_seconds, words, scenes} (the automyc-video skill has the format). width and height are even pixels from 320 to 1920 (1080×1920 portrait, 1920×1080 landscape). duration_seconds is 3–180. Put the voice-over's word timings in words so headline words land as they are spoken. At most 64 KB of JSON."
  },
  "story_assets": {
    "type": "object",
    "description": "Image key used in the scenes (screen image, photo image, logo) → a workspace PNG, JPEG or WebP asset_id (from media_screenshot, media_import_url or an upload). Keys are 1–32 lowercase letters, digits, - or _. At most 12."
  },
  "preview_times": [
    {
      "type": "number"
    }
  ]
}

Responses

{
  "202": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/videos/assemblevideos:write

Assemble the final video

The final cut on the server: clips, overlays, captions and the audio mix in one postable MP4 with a poster, saved to Videos by default. 1 credit per started 10 seconds of output.

Request: application/json

{
  "title (required)": {
    "type": "string"
  },
  "orientation": {
    "type": "string",
    "enum": [
      "portrait",
      "landscape"
    ],
    "default": "portrait"
  },
  "fps": {
    "type": "integer",
    "enum": [
      24,
      25,
      30
    ],
    "default": 30
  },
  "background": {
    "type": "string",
    "default": "#000000"
  },
  "script": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "clips (required)": [
    {
      "asset_id": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "kind": {
        "type": "string",
        "enum": [
          "video",
          "image",
          "blank"
        ],
        "default": "video",
        "description": "video: footage or a rendered scene. image: a photo shown out − in seconds with a slow push-in. blank: a solid background colour."
      },
      "in": {
        "type": "number",
        "default": 0,
        "description": "video: where the clip starts in its file (seconds). Images and blanks: 0."
      },
      "out (required)": {
        "type": "number",
        "description": "video: where the clip ends in its file. Images and blanks: how long it shows."
      },
      "source_duration": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "background": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "volume": {
        "type": "number",
        "default": 1,
        "description": "The clip's own sound, linear (1 = as recorded)."
      },
      "muted": {
        "type": "boolean",
        "default": false,
        "description": "Drop the clip's own sound (stock footage, rendered scenes)."
      },
      "fade_in": {
        "type": "number",
        "default": 0
      },
      "fade_out": {
        "type": "number",
        "default": 0
      },
      "speed": {
        "type": "number",
        "default": 1,
        "description": "video clips: playback speed."
      },
      "zoom": {
        "type": "number",
        "default": 0.06,
        "description": "image clips: how far the push-in goes (0.04–0.08 looks natural, 0 holds still)."
      }
    }
  ],
  "overlays": [
    {
      "kind (required)": {
        "type": "string",
        "description": "image (a logo, a product shot, a screenshot) or video (picture in picture). Silent."
      },
      "asset_id (required)": {
        "type": "string"
      },
      "start (required)": {
        "type": "number"
      },
      "end (required)": {
        "type": "number"
      },
      "x": {
        "type": "number",
        "default": 0,
        "description": "Left edge of the box, as a fraction of the frame width."
      },
      "y": {
        "type": "number",
        "default": 0,
        "description": "Top edge of the box, as a fraction of the frame height."
      },
      "w": {
        "type": "number",
        "default": 1,
        "description": "Box width, fraction of the frame width."
      },
      "h": {
        "type": "number",
        "default": 1,
        "description": "Box height, fraction of the frame height."
      },
      "fit": {
        "type": "string",
        "enum": [
          "contain",
          "cover"
        ],
        "default": "contain",
        "description": "contain: whole picture inside the box. cover: fill the box, cropping."
      },
      "fade": {
        "type": "number",
        "default": 0.3,
        "description": "Fade in and out, seconds."
      },
      "media_in": {
        "type": "number",
        "default": 0,
        "description": "video overlays: where to start in the file."
      }
    }
  ],
  "captions": [
    {
      "template": {
        "type": "string",
        "enum": [
          "classic",
          "karaoke",
          "pill",
          "punch",
          "boxed",
          "minimal",
          "neon"
        ],
        "default": "karaoke"
      },
      "highlight_color": {
        "type": "string",
        "default": "#facc15"
      },
      "words (required)": [
        {
          "text (required)": "string",
          "start (required)": "number",
          "end (required)": "number"
        }
      ],
      "timing_estimated": {
        "type": "boolean",
        "default": false
      }
    },
    {
      "type": "null"
    }
  ],
  "audio": [
    {
      "asset_id (required)": {
        "type": "string"
      },
      "role (required)": {
        "type": "string",
        "enum": [
          "voice",
          "music",
          "sfx"
        ],
        "description": "voice: narration (music ducks under it). music: a bed. sfx: a sound effect."
      },
      "start": {
        "type": "number",
        "default": 0,
        "description": "When it starts in the video (seconds)."
      },
      "in": {
        "type": "number",
        "default": 0,
        "description": "Where to start in the file."
      },
      "out": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "volume": {
        "type": "number",
        "default": 1,
        "description": "Linear gain. Music under a voice sits well around 0.15–0.3; the final mix is loudness-normalised anyway."
      },
      "fade_in": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "fade_out": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "loop": {
        "type": "boolean",
        "default": false,
        "description": "music: repeat the track until the video ends."
      },
      "name": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    }
  ],
  "duck_music": {
    "type": "boolean",
    "default": true,
    "description": "Lower the music while the voice (or clip sound) plays."
  },
  "loudness": {
    "type": "number",
    "default": -14,
    "description": "Integrated loudness target, LUFS (-14 suits social platforms)."
  },
  "crf": {
    "type": "integer",
    "default": 19,
    "description": "H.264 quality: lower is better and bigger."
  },
  "poster_time": {
    "type": "number",
    "default": 0.5,
    "description": "The poster frame, seconds into the video."
  },
  "story": [
    {
      "type": "object"
    },
    {
      "type": "null"
    }
  ],
  "story_assets": {
    "type": "object",
    "description": "Story image key -> media asset id."
  },
  "project_id": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "save": {
    "type": "boolean",
    "default": true,
    "description": "Also save an editable project in Videos."
  }
}

Responses

{
  "202": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/videos/inspectvideos:write

Inspect a media file

What a workspace file is (duration, size, streams, optional loudness) and frames to look at. Free, rate-limited.

Request: application/json

{
  "asset_id (required)": {
    "type": "string",
    "description": "The workspace video, audio or image to inspect (asset_id from media_import_url, an upload or an earlier step)."
  },
  "frames": {
    "type": "integer",
    "default": 4,
    "description": "How many evenly spaced frames to return as images (0 for none). Ignored when times is given."
  },
  "times": [
    {
      "type": "number"
    }
  ],
  "width": {
    "type": "integer",
    "default": 432,
    "description": "Frame image width in pixels. Small frames are enough to check layout and timing."
  },
  "loudness": {
    "type": "boolean",
    "default": false,
    "description": "Also measure EBU R128 loudness (integrated LUFS, true peak, range). Use it on a voice-over or a final cut; delivery target is about -14 LUFS."
  }
}

Responses

{
  "202": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/media/screenshotvideos:write

Screenshot a web page

Screenshots of a public page at each width, saved as workspace images (for story screens and device scenes). Free, rate-limited.

Request: application/json

{
  "url (required)": {
    "type": "string",
    "description": "A public http(s) web page. Private, local and sign-in-only pages cannot be captured."
  },
  "widths": [
    {
      "type": "integer"
    }
  ],
  "full_page": {
    "type": "boolean",
    "default": false,
    "description": "Capture the whole scrolling page (capped at 12 000 px tall) instead of the first screen."
  },
  "scale": {
    "type": "integer",
    "default": 2,
    "description": "Device pixel ratio, 1 or 2. 2 gives crisp screens for 1080p videos."
  }
}

Responses

{
  "202": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/videos/code/rendervideos:write

Render a film written as Remotion code

A film the AI app wrote as Remotion code (the Automyc Director's sandbox and kit, the AI app's own model). With preview_seconds: free frames at those moments (look at them first). Without: the silent MP4, 1 credit per started 5 seconds. No Automyc AI is used.

Request: application/json

{
  "files (required)": {
    "type": "object",
    "description": "src file name → source. Video.tsx must export const Video."
  },
  "orientation": {
    "type": "string",
    "enum": [
      "portrait",
      "landscape",
      "square"
    ],
    "default": "portrait"
  },
  "seconds (required)": {
    "type": "number"
  },
  "words": [
    {
      "text (required)": {
        "type": "string"
      },
      "start (required)": {
        "type": "number"
      },
      "end (required)": {
        "type": "number"
      }
    }
  ],
  "lines": [
    {
      "text (required)": {
        "type": "string"
      },
      "start (required)": {
        "type": "number"
      },
      "end (required)": {
        "type": "number"
      },
      "visual": {
        "type": "string",
        "default": ""
      }
    }
  ],
  "media": [
    {
      "id (required)": {
        "type": "string",
        "description": "The key the code uses: MEDIA[id]"
      },
      "asset_id (required)": {
        "type": "string"
      },
      "about": {
        "type": "string",
        "default": ""
      }
    }
  ],
  "brand": {
    "name": {
      "type": "string",
      "default": ""
    },
    "palette": [
      {
        "type": "string"
      }
    ]
  },
  "preview_seconds": [
    {
      "type": "number"
    }
  ]
}

Responses

{
  "202": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/videos/code/guidevideos:read

How to write a code film

The project setup, the kit and the craft notes the Automyc Director works from, and Remotion's own reference pages by topic. Free.

Parameters

[
  {
    "name": "topic",
    "in": "query",
    "required": false,
    "schema": {
      "type": "string",
      "default": "",
      "title": "Topic"
    }
  },
  {
    "name": "orientation",
    "in": "query",
    "required": false,
    "schema": {
      "type": "string",
      "default": "portrait",
      "title": "Orientation"
    }
  },
  {
    "name": "seconds",
    "in": "query",
    "required": false,
    "schema": {
      "type": "number",
      "default": 30,
      "title": "Seconds"
    }
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/vibe/projectssites:read

Vibe Coding projects

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  }
}
POST/vibe/projectssites:write

Create a Vibe Coding project

Request: application/json

{
  "kind": {
    "type": "string",
    "enum": [
      "web",
      "mobile",
      "full"
    ],
    "default": "web"
  },
  "name": {
    "type": "string",
    "default": ""
  }
}

Responses

{
  "201": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/vibe/projects/{site_id}sites:read

A Vibe Coding project

Parameters

[
  {
    "name": "site_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Site Id"
    }
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/vibe/projects/{site_id}/guidesites:read

How to build in this project

The rules Automyc's own assistant follows for this kind of project, the workspace features the project can use and the project's memory notes, with the assistant's tools named as the AI app's tools.

Parameters

[
  {
    "name": "site_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Site Id"
    }
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/vibe/projects/{site_id}/appsites:write

Add a mobile app to a website

Parameters

[
  {
    "name": "site_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Site Id"
    }
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/vibe/projects/{site_id}/filessites:read

List project files

Parameters

[
  {
    "name": "site_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Site Id"
    }
  },
  {
    "name": "prefix",
    "in": "query",
    "required": false,
    "schema": {
      "type": "string",
      "maxLength": 512,
      "default": "",
      "title": "Prefix"
    }
  },
  {
    "name": "limit",
    "in": "query",
    "required": false,
    "schema": {
      "type": "integer",
      "maximum": 3000,
      "minimum": 1,
      "default": 800,
      "title": "Limit"
    }
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/vibe/projects/{site_id}/filesites:read

Read a project file

Text files come back by line (1-based `offset`, `limit` lines) with the hash of the whole file, which vibe edits pass back as base_hash so a file changed in the meantime is never overwritten.

Parameters

[
  {
    "name": "site_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Site Id"
    }
  },
  {
    "name": "path",
    "in": "query",
    "required": true,
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 1024,
      "title": "Path"
    }
  },
  {
    "name": "offset",
    "in": "query",
    "required": false,
    "schema": {
      "type": "integer",
      "maximum": 1000000,
      "minimum": 1,
      "default": 1,
      "title": "Offset"
    }
  },
  {
    "name": "limit",
    "in": "query",
    "required": false,
    "schema": {
      "type": "integer",
      "maximum": 20000,
      "minimum": 1,
      "default": 2000,
      "title": "Limit"
    }
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/vibe/projects/{site_id}/filessites:write

Write or edit project files

All changes are checked first (edits must match, sizes fit); only then is anything written, so a bad edit leaves the project as it was. A file that changed since its base_hash is reported `stale`.

Parameters

[
  {
    "name": "site_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Site Id"
    }
  }
]

Request: application/json

{
  "changes (required)": [
    {
      "path (required)": {
        "type": "string"
      },
      "content": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "data": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "edits": [
        {
          "old (required)": "string",
          "new (required)": "string",
          "replace_all": "boolean"
        }
      ],
      "base_hash": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "create": {
        "type": "boolean",
        "default": false
      }
    }
  ],
  "message": {
    "type": "string",
    "default": "",
    "description": "What this change does (kept in the audit trail)"
  }
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/vibe/projects/{site_id}/files/deletesites:write

Delete project files

Parameters

[
  {
    "name": "site_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Site Id"
    }
  }
]

Request: application/json

{
  "paths (required)": [
    {
      "type": "string"
    }
  ]
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/vibe/projects/{site_id}/files/renamesites:write

Move or rename a project file

Parameters

[
  {
    "name": "site_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Site Id"
    }
  }
]

Request: application/json

{
  "source (required)": {
    "type": "string"
  },
  "target (required)": {
    "type": "string"
  }
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/vibe/projects/{site_id}/searchsites:read

Search project files

Parameters

[
  {
    "name": "site_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Site Id"
    }
  },
  {
    "name": "q",
    "in": "query",
    "required": true,
    "schema": {
      "type": "string",
      "minLength": 2,
      "maxLength": 200,
      "title": "Q"
    }
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/vibe/projects/{site_id}/commandssites:write

Run a command in the project's box

Runs as the site's own user inside its sandbox, the same place Automyc's assistant runs commands. Changes the command makes to project files (npm install, generated code) come back to Automyc afterwards.

Parameters

[
  {
    "name": "site_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Site Id"
    }
  }
]

Request: application/json

{
  "command (required)": {
    "type": "string",
    "description": "A shell command, run with sh -lc in /workspace"
  },
  "timeout": {
    "type": "integer",
    "default": 45
  },
  "background": {
    "type": "boolean",
    "default": false,
    "description": "Start it and return a job id (for commands longer than ~50 s)"
  }
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/vibe/projects/{site_id}/commands/{job_id}sites:read

A background command

Parameters

[
  {
    "name": "site_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Site Id"
    }
  },
  {
    "name": "job_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Job Id"
    }
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/vibe/projects/{site_id}/previewsites:write

Wake the project's preview

Keeps the dev servers up for the next few minutes (the box costs hosting credits while it runs, as in the studio) and waits briefly for them. Call it again to keep the preview up while you work.

Parameters

[
  {
    "name": "site_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Site Id"
    }
  }
]

Request: application/json

{
  "wait": {
    "type": "integer",
    "default": 30,
    "description": "Seconds to wait for the preview to be running"
  },
  "restart": {
    "type": "boolean",
    "default": false
  }
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/vibe/projects/{site_id}/logssites:read

Dev server output

Parameters

[
  {
    "name": "site_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Site Id"
    }
  },
  {
    "name": "target",
    "in": "query",
    "required": false,
    "schema": {
      "enum": [
        "web",
        "app"
      ],
      "type": "string",
      "default": "web",
      "title": "Target"
    }
  },
  {
    "name": "after",
    "in": "query",
    "required": false,
    "schema": {
      "type": "integer",
      "minimum": 0,
      "default": 0,
      "title": "After"
    }
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/vibe/projects/{site_id}/inspectsites:write

Look at a page of the preview

Opens the page in the box's own browser at localhost (as the studio's assistant does), runs the steps, and reports the status, title, visible text, console errors, page errors and failed requests, with a screenshot.

Parameters

[
  {
    "name": "site_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Site Id"
    }
  }
]

Request: application/json

{
  "path": {
    "type": "string",
    "default": "/"
  },
  "target": {
    "type": "string",
    "enum": [
      "web",
      "app"
    ],
    "default": "web"
  },
  "viewport": {
    "type": "string",
    "enum": [
      "desktop",
      "laptop",
      "tablet",
      "phone"
    ],
    "default": "desktop"
  },
  "full_page": {
    "type": "boolean",
    "default": false
  },
  "color_scheme": {
    "type": "string",
    "enum": [
      "light",
      "dark"
    ],
    "default": "light"
  },
  "steps": [
    {
      "action (required)": {
        "type": "string",
        "enum": [
          "click",
          "fill",
          "press",
          "wait",
          "scroll",
          "select",
          "hover",
          "goto"
        ]
      },
      "selector": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "value": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "ms": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ]
    }
  ],
  "wait_for": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "screenshot": {
    "type": "boolean",
    "default": true
  }
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/vibe/projects/{site_id}/versionssites:read

Saved versions

Parameters

[
  {
    "name": "site_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Site Id"
    }
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/vibe/projects/{site_id}/versionssites:write

Save a version

Parameters

[
  {
    "name": "site_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Site Id"
    }
  }
]

Request: application/json

{
  "message (required)": {
    "type": "string"
  }
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/vibe/projects/{site_id}/versions/{version}/restoresites:write

Restore a version

Parameters

[
  {
    "name": "site_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Site Id"
    }
  },
  {
    "name": "version",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Version"
    }
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/vibe/projects/{site_id}/buildssites:read

Publishes of the project

Parameters

[
  {
    "name": "site_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Site Id"
    }
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/vibe/projects/{site_id}/publishsites:publish

Publish the project

Parameters

[
  {
    "name": "site_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Site Id"
    }
  }
]

Request: application/json

{
  "rollback_to": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "address": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ]
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/vibe/projects/{site_id}/databasesites:read

The preview database

The preview database only, with password hashes, tokens and keys masked. Live customer data stays in the dashboard.

Parameters

[
  {
    "name": "site_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Site Id"
    }
  },
  {
    "name": "table",
    "in": "query",
    "required": false,
    "schema": {
      "type": "string",
      "maxLength": 128,
      "default": "",
      "title": "Table"
    }
  },
  {
    "name": "offset",
    "in": "query",
    "required": false,
    "schema": {
      "type": "integer",
      "maximum": 10000000,
      "minimum": 0,
      "default": 0,
      "title": "Offset"
    }
  },
  {
    "name": "q",
    "in": "query",
    "required": false,
    "schema": {
      "type": "string",
      "maxLength": 200,
      "default": "",
      "title": "Q"
    }
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/vibe/projects/{site_id}/runssites:write

Ask the Vibe Coding assistant

Queue a request: build changes the code, chat answers questions, plan proposes steps without changing files. Holds up to 200 credits; charges what the request used (Claude tokens at cost + margin) when it finishes.

Parameters

[
  {
    "name": "site_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Site Id"
    }
  }
]

Request: application/json

{
  "prompt (required)": {
    "type": "string"
  },
  "mode": {
    "type": "string",
    "enum": [
      "build",
      "chat",
      "plan"
    ],
    "default": "build"
  },
  "model": {
    "type": "string",
    "default": "",
    "description": "A tier from the project's model_options (auto, lite, standard, ultra); empty = the default."
  },
  "fix": {
    "type": "boolean",
    "default": false,
    "description": "This asks to repair an error the assistant's last change caused (free a few times a day)."
  },
  "image_asset_ids": [
    {
      "type": "string"
    }
  ]
}

Responses

{
  "201": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/vibe/projects/{site_id}/runssites:read

The project's conversation

Parameters

[
  {
    "name": "site_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Site Id"
    }
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/vibe/projects/{site_id}/runs/{run_id}sites:read

Progress of an assistant request

Parameters

[
  {
    "name": "site_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Site Id"
    }
  },
  {
    "name": "run_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Run Id"
    }
  },
  {
    "name": "after",
    "in": "query",
    "required": false,
    "schema": {
      "type": "integer",
      "minimum": 0,
      "default": 0,
      "title": "After"
    }
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/vibe/projects/{site_id}/runs/{run_id}/stopsites:write

Stop an assistant request

Parameters

[
  {
    "name": "site_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Site Id"
    }
  },
  {
    "name": "run_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Run Id"
    }
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/vibe/projects/{site_id}/securitysites:read

Security checks

Parameters

[
  {
    "name": "site_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Site Id"
    }
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
POST/vibe/projects/{site_id}/securitysites:write

Start a security check

quick: free automatic checks. full: adds an AI review of the code, charged by what it used.

Parameters

[
  {
    "name": "site_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Site Id"
    }
  }
]

Request: application/json

{
  "kind": {
    "type": "string",
    "enum": [
      "quick",
      "full"
    ],
    "default": "quick"
  }
}

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}
GET/vibe/projects/{site_id}/usagesites:read

Cloud credits used

Parameters

[
  {
    "name": "site_id",
    "in": "path",
    "required": true,
    "schema": {
      "type": "string",
      "title": "Site Id"
    }
  }
]

Responses

{
  "200": {
    "description": "Successful Response",
    "content": {
      "application/json": {}
    }
  },
  "422": {
    "description": "Validation Error",
    "content": {
      "application/json": {
        "detail": [
          {
            "loc (required)": [
              [
                "string",
                "integer"
              ]
            ],
            "msg (required)": {
              "type": "string"
            },
            "type (required)": {
              "type": "string"
            },
            "input": {},
            "ctx": {
              "type": "object"
            }
          }
        ]
      }
    }
  }
}

Errors, retries and request history

Responses use FastAPI’s detail field. Successful resource responses include X-Request-ID. Read request receipts with GET /requests using audit:read. Receipts expose metadata, never message bodies or provider credentials.

StatusMeaning / action
400Invalid action or missing Idempotency-Key. Correct the request.
401Missing, invalid or revoked key; key owner no longer active.
402Workspace subscription or credit requirement.
403Missing API scope or current owner permission.
404Resource unavailable in this workspace.
409State conflict, reconnect requirement, or reused idempotency key. Inspect the resource.
422Payload validation error; inspect detail for field locations.
429120 authenticated requests per minute per key. Wait for Retry-After.
500 / 502 / 503Service or provider failure. Inspect the operation before attempting another send.

A completed JSON mutation replays its original response with Idempotency-Replayed: true. Keys are unique across your workspace for 30 days and receipts survive restarts and key rotation; after 30 days the stored response is removed and a reused key counts as a new request. Receipt metadata is kept for 13 months. Reusing a key with different content returns 409. If a process stops after provider dispatch, the receipt stays processing or uncertain and repeat dispatch is blocked. Inspect resource status and the provider before taking further action. This protects against duplicate dispatch; providers and background jobs still determine final delivery.

Legacy /platform-api/datasets endpoints remain available. Key creation, rotation and revocation use the signed-in admin session, rather than a public API key. Use the OpenAPI definition to build clients or future MCP tools; OAuth connection, billing and destructive workspace administration stay in the app.