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"Developer documentation
Publish to connected social accounts, send and reply to emails, control campaigns, and manage the resources behind your Automyc workflows.
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:readWorkspace summary, credits and the daily brief
datasets:readDatasets, fields, records, imports and exports
datasets:writeDatasets, fields, records, imports and exports
accounts:readAccount settings and sync; connect using OAuth in Automyc
accounts:writeAccount settings and sync; connect using OAuth in Automyc
social:readPosts, drafts, scheduling, media and publishing
social:writePosts, drafts, scheduling, media and publishing
social:publishPosts, drafts, scheduling, media and publishing
email:readEmail threads, inbox, schedules, sending and replies
email:writeEmail threads, inbox, schedules, sending and replies
email:sendEmail threads, inbox, schedules, sending and replies
campaigns:readCampaigns, recipients, schedules, lifecycle controls and SMS
campaigns:writeCampaigns, recipients, schedules, lifecycle controls and SMS
campaigns:sendCampaigns, recipients, schedules, lifecycle controls and SMS
templates:readReusable email templates and follow-ups
templates:writeReusable email templates and follow-ups
media:readUpload and retrieve email attachments
media:writeUpload and retrieve email attachments
brand:readWorkspace brand and knowledge settings
brand:writeWorkspace brand and knowledge settings
inbox:readComments, WhatsApp replies, labels, assignment and notes
inbox:writeComments, WhatsApp replies, labels, assignment and notes
automations:readRules, activation, testing and execution history
automations:writeRules, activation, testing and execution history
analytics:readSocial performance and provider insights
audit:readRequest receipts without bodies, keys or provider tokens
graphics:readDesign projects, templates, composing and rendering designs
graphics:writeDesign projects, templates, composing and rendering designs
videos:readVideo projects, voice-overs, transcripts, music and renders
videos:writeVideo projects, voice-overs, transcripts, music and renders
sites:readWebsites, pages, blog and store; publishing
sites:writeWebsites, pages, blog and store; publishing
sites:publishWebsites, pages, blog and store; publishing
crm:readLeads, pipelines and tasks; also grants customer tickets
crm:writeLeads, pipelines and tasks; also grants customer tickets
tickets:readCustomer tickets, notes, attachments and customer lookup only
tickets:writeCustomer tickets, notes, attachments and customer lookup only
privacy:writeErase a ticket customer and their tickets (key owner must be a workspace admin)
webhooks:readSigned event webhooks for this key; each event also needs its resource's read scope
webhooks:writeSigned event webhooks for this key; each event also needs its resource's read scope
ops:readMeetings, calls, workflows, domains and DNS
ops:writeMeetings, calls, workflows, domains and DNS
routines:readRoutines 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:writeRoutines 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:readMy tasks: what needs people now; snooze, dismiss, restore and assign. Message previews also need inbox:read or email:read
tasks:writeMy tasks: what needs people now; snooze, dismiss, restore and assign. Message previews also need inbox:read or email:read
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.
accounts:readcurl -X GET 'https://api.automyc.com/api/platform-api/v1/social/accounts' \
-H "Authorization: Bearer $AUTOMYC_API_KEY"social:publishcurl -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
]
}'social:publishcurl -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
}
}
}'social:publishcurl -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"
}'email:sendcurl -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>"
}'email:sendcurl -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>"
}'campaigns:writecurl -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"
}'campaigns:writecurl -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'campaigns:writecurl -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'campaigns:writecurl -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'campaigns:writecurl -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'// 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);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}.
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.
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
/datasetsdatasets:writeRequired platform scope: `datasets:write`. Uses the key's workspace and current owner permissions.
[
{
"name": "Idempotency-Key",
"in": "header",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Required for JSON mutations; use a unique value per action.",
"title": "Idempotency-Key"
},
"description": "Required for JSON mutations; use a unique value per action."
}
]{
"dataset_name (required)": {
"type": "string"
},
"dataset_status": {
"type": "string",
"default": "active"
},
"audience_type": {
"type": "string",
"default": "email"
},
"organization_id": [
{
"type": "integer"
},
{
"type": "null"
}
]
}{
"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"
}
}
]
}
}
}
}/datasets/{dataset_id}datasets:readRequired platform scope: `datasets:read`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/datasetsdatasets:readRequired platform scope: `datasets:read`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/datasets/{dataset_id}/bulk-fieldsdatasets:writeRequired platform scope: `datasets:write`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
][
{
"field_key (required)": {
"type": "string"
},
"field_name (required)": {
"type": "string"
},
"field_type (required)": {
"type": "string"
},
"is_required": {
"type": "boolean",
"default": false
}
}
]{
"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"
}
}
]
}
}
}
}/datasets/{dataset_id}/fieldsdatasets:writeRequired platform scope: `datasets:write`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"field_key (required)": {
"type": "string"
},
"field_name (required)": {
"type": "string"
},
"field_type (required)": {
"type": "string"
},
"is_required": {
"type": "boolean",
"default": false
}
}{
"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"
}
}
]
}
}
}
}/datasets/{dataset_id}/fieldsdatasets:readRequired platform scope: `datasets:read`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/datasets/{dataset_id}datasets:writeRequired platform scope: `datasets:write`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/datasets/{dataset_id}datasets:writeRequired platform scope: `datasets:write`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"dataset_name (required)": {
"type": "string"
},
"dataset_status": {
"type": "string",
"default": "active"
},
"audience_type": {
"type": "string",
"default": "email"
},
"organization_id": [
{
"type": "integer"
},
{
"type": "null"
}
]
}{
"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"
}
}
]
}
}
}
}/datasets/{dataset_id}/fields/{field_id}datasets:writeRequired platform scope: `datasets:write`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/datasets/{dataset_id}/recordsdatasets:writeRequired platform scope: `datasets:write`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"values (required)": [
{
"dataset_field_id (required)": {
"type": "integer"
},
"value": [
{
"type": "string"
},
{
"type": "null"
}
]
}
]
}{
"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"
}
}
]
}
}
}
}/datasets/{dataset_id}/recordsdatasets:readRequired platform scope: `datasets:read`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/datasets/{dataset_id}/exportdatasets:readRequired platform scope: `datasets:read`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/datasets/{dataset_id}/records/{record_id}datasets:writeRequired platform scope: `datasets:write`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/datasets/{dataset_id}/records/{record_id}datasets:writeRequired platform scope: `datasets:write`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"values (required)": [
{
"dataset_field_id (required)": {
"type": "integer"
},
"value": [
{
"type": "string"
},
{
"type": "null"
}
]
}
]
}{
"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"
}
}
]
}
}
}
}/datasets/{dataset_id}/import-csvdatasets:writeRequired platform scope: `datasets:write`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"file (required)": {
"type": "string"
}
}{
"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"
}
}
]
}
}
}
}/datasets/contacts/listdatasets:readGet 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.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/campaigns/datasets/import-csvcampaigns:writeRequired platform scope: `campaigns:write`. Uses the key's workspace and current owner permissions.
[
{
"name": "Idempotency-Key",
"in": "header",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Required for JSON mutations; use a unique value per action.",
"title": "Idempotency-Key"
},
"description": "Required for JSON mutations; use a unique value per action."
}
]{
"file (required)": {
"type": "string"
},
"dataset_name": [
{
"type": "string"
},
{
"type": "null"
}
],
"audience_type": {
"type": "string",
"default": "email"
}
}{
"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"
}
}
]
}
}
}
}/campaigns/datasets/import-phonescampaigns:writeRequired platform scope: `campaigns:write`. Uses the key's workspace and current owner permissions.
[
{
"name": "Idempotency-Key",
"in": "header",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Required for JSON mutations; use a unique value per action.",
"title": "Idempotency-Key"
},
"description": "Required for JSON mutations; use a unique value per action."
}
]{
"phone_numbers (required)": [
{
"type": "string"
}
],
"dataset_name": [
{
"type": "string"
},
{
"type": "null"
}
]
}{
"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"
}
}
]
}
}
}
}/campaigns/datasets/import-emailscampaigns:writeRequired platform scope: `campaigns:write`. Uses the key's workspace and current owner permissions.
[
{
"name": "Idempotency-Key",
"in": "header",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Required for JSON mutations; use a unique value per action.",
"title": "Idempotency-Key"
},
"description": "Required for JSON mutations; use a unique value per action."
}
]{
"emails (required)": [
{
"type": "string"
}
],
"dataset_name": [
{
"type": "string"
},
{
"type": "null"
}
]
}{
"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"
}
}
]
}
}
}
}/campaignscampaigns:writeRequired platform scope: `campaigns:write`. Uses the key's workspace and current owner permissions.
[
{
"name": "Idempotency-Key",
"in": "header",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Required for JSON mutations; use a unique value per action.",
"title": "Idempotency-Key"
},
"description": "Required for JSON mutations; use a unique value per action."
}
]{
"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"
]
}
}{
"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"
}
}
]
}
}
}
}/campaignscampaigns:readRequired platform scope: `campaigns:read`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/campaigns/{campaign_id}campaigns:readRequired platform scope: `campaigns:read`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/campaigns/{campaign_id}/schedulescampaigns:readRequired platform scope: `campaigns:read`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/campaigns/{campaign_id}campaigns:writeRequired platform scope: `campaigns:write`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
]
}{
"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"
}
}
]
}
}
}
}/campaigns/{campaign_id}campaigns:writeRequired platform scope: `campaigns:write`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/campaigns/{campaign_id}/check-completioncampaigns:writeManually trigger campaign completion check Required platform scope: `campaigns:write`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/campaigns/{campaign_id}/duplicatecampaigns:writeRequired platform scope: `campaigns:write`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/campaigns/{campaign_id}/emailscampaigns:readRequired platform scope: `campaigns:read`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/email/sendemail:sendRequired platform scope: `email:send`. Uses the key's workspace and current owner permissions.
[
{
"name": "Idempotency-Key",
"in": "header",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Required for JSON mutations; use a unique value per action.",
"title": "Idempotency-Key"
},
"description": "Required for JSON mutations; use a unique value per action."
}
]{
"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"
}
]
}{
"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"
}
}
]
}
}
}
}/email/sentemail:readRequired platform scope: `email:read`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/email/countsemail:readRequired platform scope: `email:read`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/email/sent/{email_id}/reademail:writeRequired platform scope: `email:write`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/email/sent/{email_id}/assignemail:writeRequired platform scope: `email:write`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"user_id (required)": {
"type": "integer"
}
}{
"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"
}
}
]
}
}
}
}/email/sent/{email_id}/dismiss-replyemail:writeRequired platform scope: `email:write`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/email/sent/{email_id}/archiveemail:writeRequired platform scope: `email:write`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/email/sent/{email_id}/deleteemail:writeRequired platform scope: `email:write`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/email/sent/{email_id}/settingsemail:writeRequired platform scope: `email:write`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"type": "object"
}{
"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"
}
}
]
}
}
}
}/email/sent/{email_id}email:readRequired platform scope: `email:read`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/email/thread/{email_id}email:readFetches 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.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/email/reply/{email_id}email:sendRequired platform scope: `email:send`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
]
}{
"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"
}
}
]
}
}
}
}/email/contact-historyemail:readFetches 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.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/email/accountsaccounts:readRequired platform scope: `accounts:read`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/email/accounts/{account_id}/statusaccounts:writeRequired platform scope: `accounts:write`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/email/accounts/{account_id}accounts:writeRequired platform scope: `accounts:write`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"type": "object"
}{
"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"
}
}
]
}
}
}
}/email/accounts/{account_id}/send-asaccounts:readRequired platform scope: `accounts:read`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/scheduled-emailsemail:readRequired platform scope: `email:read`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/scheduled-emails/{schedule_id}email:writeRequired platform scope: `email:write`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/scheduled-emails/{schedule_id}email:writeRequired platform scope: `email:write`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"subject": [
{
"type": "string"
},
{
"type": "null"
}
],
"body": [
{
"type": "string"
},
{
"type": "null"
}
],
"scheduled_at": [
{
"type": "string"
},
{
"type": "null"
}
]
}{
"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"
}
}
]
}
}
}
}/templatestemplates:writeRequired platform scope: `templates:write`. Uses the key's workspace and current owner permissions.
[
{
"name": "Idempotency-Key",
"in": "header",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Required for JSON mutations; use a unique value per action.",
"title": "Idempotency-Key"
},
"description": "Required for JSON mutations; use a unique value per action."
}
]{
"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"
}
]
}{
"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"
}
}
]
}
}
}
}/templatestemplates:readRequired platform scope: `templates:read`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/templates/{template_id}templates:readRequired platform scope: `templates:read`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/templates/{template_id}templates:writeRequired platform scope: `templates:write`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
]
}{
"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"
}
}
]
}
}
}
}/templates/{template_id}templates:writeRequired platform scope: `templates:write`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/attachments/uploadmedia:writeRequired platform scope: `media:write`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"file (required)": {
"type": "string"
}
}{
"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"
}
}
]
}
}
}
}/attachments/{attachment_id}media:readRequired platform scope: `media:read`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/attachments/{attachment_id}/downloadmedia:readRequired platform scope: `media:read`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/brandbrand:readRequired platform scope: `brand:read`. Uses the key's workspace and current owner permissions.
[
{
"name": "Idempotency-Key",
"in": "header",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Required for JSON mutations; use a unique value per action.",
"title": "Idempotency-Key"
},
"description": "Required for JSON mutations; use a unique value per action."
}
]{
"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"
}
}
]
}
}
}
}/brandbrand:writeRequired platform scope: `brand:write`. Uses the key's workspace and current owner permissions.
[
{
"name": "Idempotency-Key",
"in": "header",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Required for JSON mutations; use a unique value per action.",
"title": "Idempotency-Key"
},
"description": "Required for JSON mutations; use a unique value per action."
}
]{
"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"
}
]
}{
"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"
}
}
]
}
}
}
}/inbox-labelsinbox:readEvery label, with how many conversations carry it in each inbox. Required platform scope: `inbox:read`. Uses the key's workspace and current owner permissions.
[
{
"name": "Idempotency-Key",
"in": "header",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Required for JSON mutations; use a unique value per action.",
"title": "Idempotency-Key"
},
"description": "Required for JSON mutations; use a unique value per action."
}
]{
"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"
}
}
]
}
}
}
}/inbox-labelsinbox:writeCreates 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.
[
{
"name": "Idempotency-Key",
"in": "header",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Required for JSON mutations; use a unique value per action.",
"title": "Idempotency-Key"
},
"description": "Required for JSON mutations; use a unique value per action."
}
]{
"name (required)": {
"type": "string"
},
"color": {
"type": "string",
"default": "#6366f1"
}
}{
"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"
}
}
]
}
}
}
}/inbox-labels/{label_id}inbox:writeRequired platform scope: `inbox:write`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"name": [
{
"type": "string"
},
{
"type": "null"
}
],
"color": [
{
"type": "string"
},
{
"type": "null"
}
]
}{
"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"
}
}
]
}
}
}
}/inbox-labels/{label_id}inbox:writeRemoves a label from every inbox at once. Links cascade. Required platform scope: `inbox:write`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/inbox-labels/items/{item_type}/{item_id}inbox:readRequired platform scope: `inbox:read`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/inbox-labels/items/{item_type}/{item_id}inbox:writeReplaces an item's labels with exactly the ids given. Required platform scope: `inbox:write`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"label_ids": [
{
"type": "integer"
}
]
}{
"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"
}
}
]
}
}
}
}/inbox-labels/{label_id}/itemsinbox:readEverything 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.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/social/accountsaccounts:readEvery 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.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/social/accounts/{account_id}accounts:writeRequired platform scope: `accounts:write`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
]
}{
"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"
}
}
]
}
}
}
}/social/accounts/{account_id}/syncaccounts:readRequired platform scope: `accounts:read`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/social/accounts/{account_id}/syncaccounts:writeResume 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.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/social/postssocial:readLists 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.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/social/posts/countssocial:readHow many posts each tab of the list view holds. Required platform scope: `social:read`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/social/posts/distributionsocial:readReports 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.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/social/posts/platformsocial:readLists 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.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/social/posts/platform/{account_id}/{external_post_id}/mediasocial:readFresh 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.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/social/posts/platform/refreshsocial:writeAsks 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.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/social/posts/upload-videosocial:writeUploads 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.
[
{
"name": "Idempotency-Key",
"in": "header",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Required for JSON mutations; use a unique value per action.",
"title": "Idempotency-Key"
},
"description": "Required for JSON mutations; use a unique value per action."
}
]{
"file (required)": {
"type": "string"
}
}{
"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"
}
}
]
}
}
}
}/social/posts/upload-mediasocial:writeUploads 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.
[
{
"name": "Idempotency-Key",
"in": "header",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Required for JSON mutations; use a unique value per action.",
"title": "Idempotency-Key"
},
"description": "Required for JSON mutations; use a unique value per action."
}
]{
"file (required)": {
"type": "string"
}
}{
"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"
}
}
]
}
}
}
}/social/postssocial:writeRequired platform scope: `social:write`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
]
}{
"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"
}
}
]
}
}
}
}/social/posts/{post_id}social:readOne 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.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/social/posts/{post_id}social:writeApplies 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.
[
{
"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."
}
]{
"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"
}
]
}{
"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"
}
}
]
}
}
}
}/social/posts/{post_id}social:writeRemoves 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.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/social/posts/{post_id}/duplicatesocial:writeCopies 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.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/social/comments/feedinbox:readRequired platform scope: `inbox:read`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/social/comments/summaryinbox:readTotals 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.
[
{
"name": "Idempotency-Key",
"in": "header",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Required for JSON mutations; use a unique value per action.",
"title": "Idempotency-Key"
},
"description": "Required for JSON mutations; use a unique value per action."
}
]{
"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"
}
}
]
}
}
}
}/social/comments/account/{account_id}inbox:readRequired platform scope: `inbox:read`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/social/comments/{account_id}inbox:readRequired platform scope: `inbox:read`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/social/comments/replyinbox:writeSends 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.
[
{
"name": "Idempotency-Key",
"in": "header",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Required for JSON mutations; use a unique value per action.",
"title": "Idempotency-Key"
},
"description": "Required for JSON mutations; use a unique value per action."
}
]{
"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"
}
]
}{
"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"
}
}
]
}
}
}
}/social/comments/likeinbox:writeLikes or unlikes a platform comment on Instagram, Facebook, etc. Required platform scope: `inbox:write`. Uses the key's workspace and current owner permissions.
[
{
"name": "Idempotency-Key",
"in": "header",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Required for JSON mutations; use a unique value per action.",
"title": "Idempotency-Key"
},
"description": "Required for JSON mutations; use a unique value per action."
}
]{
"account_id (required)": {
"type": "integer"
},
"platform (required)": {
"type": "string"
},
"comment_id (required)": {
"type": "string"
},
"action": [
{
"type": "string"
},
{
"type": "null"
}
]
}{
"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"
}
}
]
}
}
}
}/social/inbox/syncinbox:writeTriggers 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.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/social/inbox/threadsinbox:readReturns 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.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/social/inbox/threads/{thread_id}/statusinbox:writeRequired platform scope: `inbox:write`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"status (required)": {
"type": "string"
},
"snoozed_until": [
{
"type": "string"
},
{
"type": "null"
}
]
}{
"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"
}
}
]
}
}
}
}/social/comments/draft-replyinbox:writeRequired platform scope: `inbox:write`. Uses the key's workspace and current owner permissions.
[
{
"name": "Idempotency-Key",
"in": "header",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Required for JSON mutations; use a unique value per action.",
"title": "Idempotency-Key"
},
"description": "Required for JSON mutations; use a unique value per action."
}
]{
"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": ""
}
}{
"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"
}
}
]
}
}
}
}/social/inbox/assigneesinbox:readMembers who can own a conversation, for the assignment picker. Required platform scope: `inbox:read`. Uses the key's workspace and current owner permissions.
[
{
"name": "Idempotency-Key",
"in": "header",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Required for JSON mutations; use a unique value per action.",
"title": "Idempotency-Key"
},
"description": "Required for JSON mutations; use a unique value per action."
}
]{
"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"
}
}
]
}
}
}
}/social/inbox/threads/{thread_id}/assigninbox:writeRequired platform scope: `inbox:write`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"user_id": [
{
"type": "integer"
},
{
"type": "null"
}
]
}{
"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"
}
}
]
}
}
}
}/social/inbox/threads/{thread_id}/notesinbox:writeAdds 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.
[
{
"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."
}
]{
"body (required)": {
"type": "string"
}
}{
"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"
}
}
]
}
}
}
}/social/inbox/threads/{thread_id}/readinbox:writeRequired platform scope: `inbox:write`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/social/inbox/messages/{message_id}/media/refreshinbox:writeCopies 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.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/social/inbox/labelsinbox:readRequired platform scope: `inbox:read`. Uses the key's workspace and current owner permissions.
[
{
"name": "Idempotency-Key",
"in": "header",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Required for JSON mutations; use a unique value per action.",
"title": "Idempotency-Key"
},
"description": "Required for JSON mutations; use a unique value per action."
}
]{
"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"
}
}
]
}
}
}
}/social/inbox/labelsinbox:writeRequired platform scope: `inbox:write`. Uses the key's workspace and current owner permissions.
[
{
"name": "Idempotency-Key",
"in": "header",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Required for JSON mutations; use a unique value per action.",
"title": "Idempotency-Key"
},
"description": "Required for JSON mutations; use a unique value per action."
}
]{
"name (required)": {
"type": "string"
},
"color": {
"type": "string",
"default": "#64748b"
}
}{
"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"
}
}
]
}
}
}
}/social/inbox/labels/{label_id}inbox:writeRequired platform scope: `inbox:write`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/social/inbox/threads/{thread_id}/labelsinbox:writeRequired platform scope: `inbox:write`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"label_ids": [
{
"type": "integer"
}
]
}{
"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"
}
}
]
}
}
}
}/social/inbox/saved-repliesinbox:readThe 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.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/social/inbox/saved-repliesinbox:writeRequired platform scope: `inbox:write`. Uses the key's workspace and current owner permissions.
[
{
"name": "Idempotency-Key",
"in": "header",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Required for JSON mutations; use a unique value per action.",
"title": "Idempotency-Key"
},
"description": "Required for JSON mutations; use a unique value per action."
}
]{
"title (required)": {
"type": "string"
},
"body (required)": {
"type": "string"
},
"shortcut": [
{
"type": "string"
},
{
"type": "null"
}
]
}{
"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"
}
}
]
}
}
}
}/social/inbox/saved-replies/{reply_id}inbox:writeRequired platform scope: `inbox:write`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"title (required)": {
"type": "string"
},
"body (required)": {
"type": "string"
},
"shortcut": [
{
"type": "string"
},
{
"type": "null"
}
]
}{
"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"
}
}
]
}
}
}
}/social/inbox/saved-replies/{reply_id}inbox:writeRequired platform scope: `inbox:write`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/social/inbox/metricsinbox:readFirst-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.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/social/inbox/threads/{thread_id}/policy-checkinbox:readLive 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.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/social/automations/capabilitiesautomations:readWhat 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.
[
{
"name": "Idempotency-Key",
"in": "header",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Required for JSON mutations; use a unique value per action.",
"title": "Idempotency-Key"
},
"description": "Required for JSON mutations; use a unique value per action."
}
]{
"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"
}
}
]
}
}
}
}/social/automationsautomations:readRequired platform scope: `automations:read`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/social/automationsautomations:writeRequired platform scope: `automations:write`. Uses the key's workspace and current owner permissions.
[
{
"name": "Idempotency-Key",
"in": "header",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Required for JSON mutations; use a unique value per action.",
"title": "Idempotency-Key"
},
"description": "Required for JSON mutations; use a unique value per action."
}
]{
"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"
}
}{
"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"
}
}
]
}
}
}
}/social/automations/{automation_id}automations:writeRequired platform scope: `automations:write`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
]
}{
"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"
}
}
]
}
}
}
}/social/automations/{automation_id}/toggleautomations:writeRequired platform scope: `automations:write`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/social/automations/{automation_id}automations:writeRequired platform scope: `automations:write`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/social/automations/testautomations:writeDry-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.
[
{
"name": "Idempotency-Key",
"in": "header",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Required for JSON mutations; use a unique value per action.",
"title": "Idempotency-Key"
},
"description": "Required for JSON mutations; use a unique value per action."
}
]{
"account_id (required)": {
"type": "integer"
},
"trigger": {
"type": "string",
"default": "comment_received"
},
"message_text": {
"type": "string",
"default": ""
},
"post_id": [
{
"type": "string"
},
{
"type": "null"
}
]
}{
"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"
}
}
]
}
}
}
}/social/automations/{automation_id}/executionsautomations:readRecent 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.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/social/automations/{automation_id}automations:readRequired platform scope: `automations:read`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/social/analytics/overviewanalytics:readCross-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.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/social/analytics/video/{account_id}/{video_id}analytics:readPer-video deep dive, including the real YouTube audience retention curve. Required platform scope: `analytics:read`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/social/ideas/generatesocial:writeRequired platform scope: `social:write`. Uses the key's workspace and current owner permissions.
[
{
"name": "Idempotency-Key",
"in": "header",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Required for JSON mutations; use a unique value per action.",
"title": "Idempotency-Key"
},
"description": "Required for JSON mutations; use a unique value per action."
}
]{
"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": ""
}
}{
"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"
}
}
]
}
}
}
}/social/youtube/insights/channel/{account_id}analytics:readRequired platform scope: `analytics:read`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/social/youtube/insights/videos/{account_id}analytics:readRequired platform scope: `analytics:read`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/social/instagram/insights/account/{account_id}analytics:readRequired platform scope: `analytics:read`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/social/instagram/insights/media/{account_id}analytics:readRequired platform scope: `analytics:read`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/social/instagram/insights/stories/{account_id}analytics:readRequired platform scope: `analytics:read`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/social/facebook/insights/page/{account_id}analytics:readRequired platform scope: `analytics:read`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/social/facebook/insights/account/{account_id}analytics:readRequired platform scope: `analytics:read`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/social/facebook/insights/posts/{account_id}analytics:readRequired platform scope: `analytics:read`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/social/tiktok/insights/account/{account_id}analytics:readRequired platform scope: `analytics:read`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/social/tiktok/insights/videos/{account_id}analytics:readRequired platform scope: `analytics:read`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/social/tiktok/creator-info/{account_id}analytics:readPosting 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.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/messages/threadsinbox:readRequired platform scope: `inbox:read`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/messages/social/{thread_id}/aiinbox:writeRequired platform scope: `inbox:write`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"enabled (required)": {
"type": "boolean"
}
}{
"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"
}
}
]
}
}
}
}/messages/social/{thread_id}/suggestionsinbox:writeRequired platform scope: `inbox:write`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/whatsapp/overviewinbox:readRequired platform scope: `inbox:read`. Uses the key's workspace and current owner permissions.
[
{
"name": "Idempotency-Key",
"in": "header",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Required for JSON mutations; use a unique value per action.",
"title": "Idempotency-Key"
},
"description": "Required for JSON mutations; use a unique value per action."
}
]{
"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"
}
}
]
}
}
}
}/whatsapp/conversationsinbox:readRequired platform scope: `inbox:read`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/whatsapp/conversations/{conversation_id}inbox:readRequired platform scope: `inbox:read`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/whatsapp/conversations/{conversation_id}/suggested-repliesinbox:writeRequired platform scope: `inbox:write`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/whatsapp/conversations/{conversation_id}/replyinbox:writeRequired platform scope: `inbox:write`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
]
}{
"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"
}
}
]
}
}
}
}/whatsapp/conversations/{conversation_id}/messages/{message_id}/reactioninbox:writeRequired platform scope: `inbox:write`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"emoji": {
"type": "string",
"default": ""
}
}{
"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"
}
}
]
}
}
}
}/whatsapp/conversations/{conversation_id}inbox:writeRequired platform scope: `inbox:write`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
]
}{
"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"
}
}
]
}
}
}
}/whatsapp/contactsinbox:readRequired platform scope: `inbox:read`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/whatsapp/contacts/{contact_id}inbox:readRequired platform scope: `inbox:read`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/whatsapp/contacts/{contact_id}inbox:writeRequired platform scope: `inbox:write`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
]
}{
"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"
}
}
]
}
}
}
}/whatsapp/contacts/{contact_id}/notesinbox:writeRequired platform scope: `inbox:write`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"note_body (required)": {
"type": "string"
}
}{
"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"
}
}
]
}
}
}
}/whatsapp/templatesinbox:readRequired platform scope: `inbox:read`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/whatsapp/messages/template-sendinbox:writeRequired platform scope: `inbox:write`. Uses the key's workspace and current owner permissions.
[
{
"name": "Idempotency-Key",
"in": "header",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Required for JSON mutations; use a unique value per action.",
"title": "Idempotency-Key"
},
"description": "Required for JSON mutations; use a unique value per action."
}
]{
"integration_id": [
{
"type": "integer"
},
{
"type": "null"
}
],
"phone_number (required)": {
"type": "string"
},
"template_id (required)": {
"type": "integer"
},
"variables": [
{
"type": "string"
}
]
}{
"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"
}
}
]
}
}
}
}/media/stock/searchmedia:readSearch 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.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/mediamedia:readList 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.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/builder/projectssites:readList website projects within an organization. Required platform scope: `sites:read`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/builder/projectssites:writeCreate a new website project with template scaffolds. Required platform scope: `sites:write`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
]
}{
"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"
}
}
]
}
}
}
}/builder/projects/{project_id}sites:readGet project details. Required platform scope: `sites:read`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/builder/projects/{project_id}/treesites:readGet complete hierarchical project tree (pages -> sections -> elements). Required platform scope: `sites:read`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/builder/projects/{project_id}sites:writeUpdate website project settings, name, slug, template, SEO or form backends. Required platform scope: `sites:write`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
]
}{
"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"
}
}
]
}
}
}
}/builder/projects/{project_id}/publishsites:publishPromote 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.
[
{
"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."
}
][
{
"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"
}
]{
"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"
}
}
]
}
}
}
}/builder/projects/{project_id}/revisionssites:readSaved versions of the site, newest first: checkpoints, autosaves, publishes. Required platform scope: `sites:read`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/builder/projects/{project_id}/revisions/{revision_id}/restoresites:writeMake 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.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/builder/projects/{project_id}/unpublishsites:publishTake a published website offline (status -> draft). Required platform scope: `sites:publish`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/builder/projects/{project_id}/domainsites:readGet the custom domain associated with the project. Required platform scope: `sites:read`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/builder/projects/{project_id}/pagessites:readList pages of a project. Required platform scope: `sites:read`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/builder/projects/{project_id}/forms/{kind}/submissionssites:readSubmissions this site has collected, newest first. Required platform scope: `sites:read`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/builder/projects/{project_id}/blogssites:readRequired platform scope: `sites:read`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/builder/projects/{project_id}/blogssites:writeRequired platform scope: `sites:write`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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
}
}{
"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"
}
}
]
}
}
}
}/builder/projects/{project_id}/blogs/taxonomysites:readRequired platform scope: `sites:read`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/builder/projects/{project_id}/blogs/categoriessites:readRequired platform scope: `sites:read`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/builder/projects/{project_id}/blogs/categoriessites:writeRequired platform scope: `sites:write`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"name (required)": {
"type": "string"
}
}{
"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"
}
}
]
}
}
}
}/builder/projects/{project_id}/blogs/check-slugsites:readRequired platform scope: `sites:read`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/builder/projects/{project_id}/blogs/{post_id}sites:readRequired platform scope: `sites:read`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/builder/projects/{project_id}/blogs/{post_id}sites:writeRequired platform scope: `sites:write`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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
}
}
}{
"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"
}
}
]
}
}
}
}/builder/projects/{project_id}/blogs/{post_id}/publishsites:publishRequired platform scope: `sites:publish`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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
}
}
}{
"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"
}
}
]
}
}
}
}/builder/projects/{project_id}/blogs/{post_id}/unpublishsites:publishRequired platform scope: `sites:publish`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"revision (required)": {
"type": "integer"
}
}{
"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"
}
}
]
}
}
}
}/builder/projects/{project_id}/blogs/{post_id}sites:writeRequired platform scope: `sites:write`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/commerce/projects/{project_id}/storesites:readRequired platform scope: `sites:read`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/commerce/projects/{project_id}/storesites:writeRequired platform scope: `sites:write`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
]
}{
"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"
}
}
]
}
}
}
}/commerce/projects/{project_id}/productssites:readRequired platform scope: `sites:read`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/commerce/projects/{project_id}/productssites:writeRequired platform scope: `sites:write`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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
}
}{
"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"
}
}
]
}
}
}
}/commerce/projects/{project_id}/products/{product_id}sites:readRequired platform scope: `sites:read`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/commerce/projects/{project_id}/products/{product_id}sites:writeRequired platform scope: `sites:write`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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
}
}{
"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"
}
}
]
}
}
}
}/commerce/projects/{project_id}/products/{product_id}sites:writeRequired platform scope: `sites:write`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/commerce/projects/{project_id}/orderssites:readRequired platform scope: `sites:read`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/commerce/projects/{project_id}/customerssites:readRequired platform scope: `sites:read`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/commerce/projects/{project_id}/summarysites:readRequired platform scope: `sites:read`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/videos/ai-edits/capabilitiesvideos:readRequired platform scope: `videos:read`. Uses the key's workspace and current owner permissions.
[
{
"name": "Idempotency-Key",
"in": "header",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Required for JSON mutations; use a unique value per action.",
"title": "Idempotency-Key"
},
"description": "Required for JSON mutations; use a unique value per action."
}
]{
"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"
}
}
]
}
}
}
}/videos/ai-edits/requests/{request_id}videos:readRequired platform scope: `videos:read`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/videos/ai-edits/requests/{request_id}videos:writeRequired platform scope: `videos:write`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/videos/ai-edits/generate/quotevideos:writeRequired platform scope: `videos:write`. Uses the key's workspace and current owner permissions.
[
{
"name": "Idempotency-Key",
"in": "header",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "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_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
}
}{
"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"
}
}
]
}
}
}
}/videos/ai-edits/generate/requests/{request_id}/draftvideos:writeSave 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.
[
{
"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."
}
]{
"revision (required)": {
"type": "string"
},
"draft (required)": {
"type": "object"
}
}{
"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"
}
}
]
}
}
}
}/videos/ai-edits/generate/requests/{request_id}/draft/revisevideos:writeAsk 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.
[
{
"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."
}
]{
"revision (required)": {
"type": "string"
},
"instruction (required)": {
"type": "string"
}
}{
"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"
}
}
]
}
}
}
}/videos/ai-edits/generate/requests/{request_id}/draft/approvevideos:writeMake 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.
[
{
"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."
}
]{
"revision (required)": {
"type": "string"
}
}{
"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"
}
}
]
}
}
}
}/videos/music-libraryvideos:readRequired platform scope: `videos:read`. Uses the key's workspace and current owner permissions.
[
{
"name": "Idempotency-Key",
"in": "header",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Required for JSON mutations; use a unique value per action.",
"title": "Idempotency-Key"
},
"description": "Required for JSON mutations; use a unique value per action."
}
]{
"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"
}
}
]
}
}
}
}/videos/music-library/{track_id}/assetvideos:writeRequired platform scope: `videos:write`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
][
{
"duration": [
{
"type": "number"
},
{
"type": "null"
}
]
},
{
"type": "null"
}
]{
"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"
}
}
]
}
}
}
}/videos/sound-effects-libraryvideos:readRequired platform scope: `videos:read`. Uses the key's workspace and current owner permissions.
[
{
"name": "Idempotency-Key",
"in": "header",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Required for JSON mutations; use a unique value per action.",
"title": "Idempotency-Key"
},
"description": "Required for JSON mutations; use a unique value per action."
}
]{
"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"
}
}
]
}
}
}
}/videos/sound-effects-library/{effect_id}/assetvideos:writeRequired platform scope: `videos:write`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
][
{
"duration": [
{
"type": "number"
},
{
"type": "null"
}
]
},
{
"type": "null"
}
]{
"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"
}
}
]
}
}
}
}/campaigns/previewcampaigns:writeRequired platform scope: `campaigns:write`. Uses the key's workspace and current owner permissions.
[
{
"name": "Idempotency-Key",
"in": "header",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Required for JSON mutations; use a unique value per action.",
"title": "Idempotency-Key"
},
"description": "Required for JSON mutations; use a unique value per action."
}
]{
"type": "object"
}{
"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"
}
}
]
}
}
}
}/campaigns/{campaign_id}/clickscampaigns:readRequired platform scope: `campaigns:read`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/whatsapp/templatestemplates:writeRequired platform scope: `templates:write`. Uses the key's workspace and current owner permissions.
[
{
"name": "Idempotency-Key",
"in": "header",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Required for JSON mutations; use a unique value per action.",
"title": "Idempotency-Key"
},
"description": "Required for JSON mutations; use a unique value per action."
}
]{
"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"
}
]
}{
"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"
}
}
]
}
}
}
}/whatsapp/templates/{template_id}templates:writeRequired platform scope: `templates:write`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
]
}{
"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"
}
}
]
}
}
}
}/whatsapp/templates/{template_id}templates:writeRequired platform scope: `templates:write`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/whatsapp/templates/{template_id}/submittemplates:writeRequired platform scope: `templates:write`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/whatsapp/templates/synctemplates:writeRequired platform scope: `templates:write`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/whatsapp/automationsautomations:readRequired platform scope: `automations:read`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/whatsapp/automationsautomations:writeRequired platform scope: `automations:write`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
]
}{
"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"
}
}
]
}
}
}
}/whatsapp/settingsautomations:readRequired platform scope: `automations:read`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/ai/reply-defaultsinbox:readStarting 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.
[
{
"name": "Idempotency-Key",
"in": "header",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Required for JSON mutations; use a unique value per action.",
"title": "Idempotency-Key"
},
"description": "Required for JSON mutations; use a unique value per action."
}
]{
"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"
}
}
]
}
}
}
}/telephony/numberscampaigns:readRequired platform scope: `campaigns:read`. Uses the key's workspace and current owner permissions.
[
{
"name": "Idempotency-Key",
"in": "header",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Required for JSON mutations; use a unique value per action.",
"title": "Idempotency-Key"
},
"description": "Required for JSON mutations; use a unique value per action."
}
]{
"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"
}
}
]
}
}
}
}/telephony/messages/ratescampaigns:readRequired platform scope: `campaigns:read`. Uses the key's workspace and current owner permissions.
[
{
"name": "Idempotency-Key",
"in": "header",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Required for JSON mutations; use a unique value per action.",
"title": "Idempotency-Key"
},
"description": "Required for JSON mutations; use a unique value per action."
}
]{
"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"
}
}
]
}
}
}
}/telephony/messages/quotecampaigns:readRequired platform scope: `campaigns:read`. Uses the key's workspace and current owner permissions.
[
{
"name": "Idempotency-Key",
"in": "header",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Required for JSON mutations; use a unique value per action.",
"title": "Idempotency-Key"
},
"description": "Required for JSON mutations; use a unique value per action."
}
]{
"phone_number_id (required)": {
"type": "string"
},
"to (required)": {
"type": "string"
},
"text (required)": {
"type": "string"
}
}{
"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"
}
}
]
}
}
}
}/telephony/messages/sendcampaigns:sendRequired platform scope: `campaigns:send`. Uses the key's workspace and current owner permissions.
[
{
"name": "Idempotency-Key",
"in": "header",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Required for JSON mutations; use a unique value per action.",
"title": "Idempotency-Key"
},
"description": "Required for JSON mutations; use a unique value per action."
}
]{
"phone_number_id (required)": {
"type": "string"
},
"to (required)": {
"type": "string"
},
"text (required)": {
"type": "string"
},
"request_id (required)": {
"type": "string"
},
"max_credits (required)": {
"type": "integer"
}
}{
"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"
}
}
]
}
}
}
}/telephony/accessops:readWhether 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.
[
{
"name": "Idempotency-Key",
"in": "header",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Required for JSON mutations; use a unique value per action.",
"title": "Idempotency-Key"
},
"description": "Required for JSON mutations; use a unique value per action."
}
]{
"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"
}
}
]
}
}
}
}/telephony/overviewops:readRequired platform scope: `ops:read`. Uses the key's workspace and current owner permissions.
[
{
"name": "Idempotency-Key",
"in": "header",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Required for JSON mutations; use a unique value per action.",
"title": "Idempotency-Key"
},
"description": "Required for JSON mutations; use a unique value per action."
}
]{
"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"
}
}
]
}
}
}
}/telephony/callsops:readRequired platform scope: `ops:read`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/telephony/calls/{call_id}ops:readRequired platform scope: `ops:read`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/telephony/calls/{call_id}/recording-urlops:readRequired platform scope: `ops:read`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/telephony/messages/threadsops:readRequired platform scope: `ops:read`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/telephony/messages/threadops:readRequired platform scope: `ops:read`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/crm/metacrm:readRequired platform scope: `crm:read`. Uses the key's workspace and current owner permissions.
[
{
"name": "Idempotency-Key",
"in": "header",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Required for JSON mutations; use a unique value per action.",
"title": "Idempotency-Key"
},
"description": "Required for JSON mutations; use a unique value per action."
}
]{
"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"
}
}
]
}
}
}
}/crm/leadscrm:readRequired platform scope: `crm:read`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/crm/leadscrm:writeRequired platform scope: `crm:write`. Uses the key's workspace and current owner permissions.
[
{
"name": "Idempotency-Key",
"in": "header",
"required": true,
"schema": {
"type": "string",
"title": "Idempotency-Key"
}
}
]{
"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": ""
}
}{
"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"
}
}
]
}
}
}
}/crm/leads/{lead_id}crm:readRequired platform scope: `crm:read`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/crm/leads/{lead_id}crm:writeRequired platform scope: `crm:write`. Uses the key's workspace and current owner permissions.
[
{
"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"
}
}
]{
"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"
}
]
}{
"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"
}
}
]
}
}
}
}/crm/leads/{lead_id}/transitioncrm:writeRequired platform scope: `crm:write`. Uses the key's workspace and current owner permissions.
[
{
"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"
}
}
]{
"expected_version (required)": {
"type": "integer"
},
"stage (required)": {
"type": "string"
},
"reason": {
"type": "string",
"default": ""
}
}{
"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"
}
}
]
}
}
}
}/crm/leads/{lead_id}/closecrm:writeRequired platform scope: `crm:write`. Uses the key's workspace and current owner permissions.
[
{
"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"
}
}
]{
"expected_version (required)": {
"type": "integer"
},
"outcome (required)": {
"type": "string",
"enum": [
"won",
"lost"
]
},
"reason (required)": {
"type": "string"
}
}{
"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"
}
}
]
}
}
}
}/crm/leads/{lead_id}/reopencrm:writeRequired platform scope: `crm:write`. Uses the key's workspace and current owner permissions.
[
{
"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"
}
}
]{
"expected_version (required)": {
"type": "integer"
},
"reason (required)": {
"type": "string"
}
}{
"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"
}
}
]
}
}
}
}/crm/leads/{lead_id}/assigncrm:writeRequired platform scope: `crm:write`. Uses the key's workspace and current owner permissions.
[
{
"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"
}
}
]{
"expected_version (required)": {
"type": "integer"
},
"owner_user_id (required)": [
{
"type": "integer"
},
{
"type": "null"
}
]
}{
"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"
}
}
]
}
}
}
}/crm/leads/{lead_id}/notescrm:writeRequired platform scope: `crm:write`. Uses the key's workspace and current owner permissions.
[
{
"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"
}
}
]{
"body (required)": {
"type": "string"
}
}{
"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"
}
}
]
}
}
}
}/crm/leads/{lead_id}/taskscrm:writeRequired platform scope: `crm:write`. Uses the key's workspace and current owner permissions.
[
{
"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"
}
}
]{
"title (required)": {
"type": "string"
},
"due_at (required)": {
"type": "string"
}
}{
"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"
}
}
]
}
}
}
}/crm/tasks/{task_id}/completecrm:writeRequired platform scope: `crm:write`. Uses the key's workspace and current owner permissions.
[
{
"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"
}
}
]{
"expected_version (required)": {
"type": "integer"
}
}{
"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"
}
}
]
}
}
}
}/crm/tasks/{task_id}crm:writeRequired platform scope: `crm:write`. Uses the key's workspace and current owner permissions.
[
{
"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"
}
}
]{
"expected_version (required)": {
"type": "integer"
},
"title (required)": {
"type": "string"
},
"due_at (required)": {
"type": "string"
}
}{
"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"
}
}
]
}
}
}
}/crm/tasks/{task_id}/cancelcrm:writeRequired platform scope: `crm:write`. Uses the key's workspace and current owner permissions.
[
{
"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"
}
}
]{
"expected_version (required)": {
"type": "integer"
}
}{
"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"
}
}
]
}
}
}
}/crm/leads/{lead_id}/archivecrm:writeRequired platform scope: `crm:write`. Uses the key's workspace and current owner permissions.
[
{
"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"
}
}
]{
"expected_version (required)": {
"type": "integer"
},
"reason (required)": {
"type": "string"
}
}{
"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"
}
}
]
}
}
}
}/tickets/metatickets:readRequired platform scope: `tickets:read`. Uses the key's workspace and current owner permissions.
[
{
"name": "Idempotency-Key",
"in": "header",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Required for JSON mutations; use a unique value per action.",
"title": "Idempotency-Key"
},
"description": "Required for JSON mutations; use a unique value per action."
}
]{
"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"
}
}
]
}
}
}
}/ticketstickets:readRequired platform scope: `tickets:read`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/ticketstickets:writeRequired platform scope: `tickets:write`. Uses the key's workspace and current owner permissions.
[
{
"name": "Idempotency-Key",
"in": "header",
"required": true,
"schema": {
"type": "string",
"title": "Idempotency-Key"
}
}
]{
"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"
}
]
}{
"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"
}
}
]
}
}
}
}/tickets/{id}tickets:readRequired platform scope: `tickets:read`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/tickets/{id}tickets:writeRequired platform scope: `tickets:write`. Uses the key's workspace and current owner permissions.
[
{
"name": "id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Id"
}
},
{
"name": "Idempotency-Key",
"in": "header",
"required": true,
"schema": {
"type": "string",
"title": "Idempotency-Key"
}
}
]{
"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"
}
]
}{
"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"
}
}
]
}
}
}
}/tickets/{id}/notestickets:writeRequired platform scope: `tickets:write`. Uses the key's workspace and current owner permissions.
[
{
"name": "id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Id"
}
},
{
"name": "Idempotency-Key",
"in": "header",
"required": true,
"schema": {
"type": "string",
"title": "Idempotency-Key"
}
}
]{
"text (required)": {
"type": "string"
}
}{
"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"
}
}
]
}
}
}
}/tickets/{id}/attachmentstickets:writeLink files uploaded through POST /attachments/upload to the ticket. Required platform scope: `tickets:write`. Uses the key's workspace and current owner permissions.
[
{
"name": "id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Id"
}
},
{
"name": "Idempotency-Key",
"in": "header",
"required": true,
"schema": {
"type": "string",
"title": "Idempotency-Key"
}
}
]{
"attachment_ids (required)": [
{
"type": "integer"
}
]
}{
"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"
}
}
]
}
}
}
}/tickets/{id}/email-draftstickets:readRequired platform scope: `tickets:read`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/tickets/{id}/email-draftstickets:writeRequired platform scope: `tickets:write`. Uses the key's workspace and current owner permissions.
[
{
"name": "id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Id"
}
},
{
"name": "Idempotency-Key",
"in": "header",
"required": true,
"schema": {
"type": "string",
"title": "Idempotency-Key"
}
}
]{
"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"
}
}{
"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"
}
}
]
}
}
}
}/tickets/{id}/email-drafts/{draft_id}/{action}email:sendRequired platform scope: `email:send`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"type": "object"
}{
"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"
}
}
]
}
}
}
}/tickets/{id}/email-drafts/{draft_id}tickets:writeRequired platform scope: `tickets:write`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"text (required)": {
"type": "string"
}
}{
"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"
}
}
]
}
}
}
}/meetings/statusops:readRequired platform scope: `ops:read`. Uses the key's workspace and current owner permissions.
[
{
"name": "Idempotency-Key",
"in": "header",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Required for JSON mutations; use a unique value per action.",
"title": "Idempotency-Key"
},
"description": "Required for JSON mutations; use a unique value per action."
}
]{
"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"
}
}
]
}
}
}
}/meetings/typesops:readRequired platform scope: `ops:read`. Uses the key's workspace and current owner permissions.
[
{
"name": "Idempotency-Key",
"in": "header",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Required for JSON mutations; use a unique value per action.",
"title": "Idempotency-Key"
},
"description": "Required for JSON mutations; use a unique value per action."
}
]{
"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"
}
}
]
}
}
}
}/meetings/types/{type_id}/invitationsops:writeRequired platform scope: `ops:write`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"email (required)": {
"type": "string"
},
"lead_id": [
{
"type": "string"
},
{
"type": "null"
}
],
"expires_in_days": {
"type": "integer",
"default": 7
}
}{
"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"
}
}
]
}
}
}
}/meetings/invitations/{invitation_id}/revokeops:writeRequired platform scope: `ops:write`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/meetings/invitationsops:readRequired platform scope: `ops:read`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/meetings/bookingsops:readRequired platform scope: `ops:read`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/meetings/bookings/{booking_id}/cancelops:writeRequired platform scope: `ops:write`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"version (required)": {
"type": "integer"
}
}{
"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"
}
}
]
}
}
}
}/meetings/bookings/{booking_id}/ai-notesops:readRequired platform scope: `ops:read`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/workflows/catalogops:readRequired platform scope: `ops:read`. Uses the key's workspace and current owner permissions.
[
{
"name": "Idempotency-Key",
"in": "header",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Required for JSON mutations; use a unique value per action.",
"title": "Idempotency-Key"
},
"description": "Required for JSON mutations; use a unique value per action."
}
]{
"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"
}
}
]
}
}
}
}/workflowsops:readRequired platform scope: `ops:read`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/workflowsops:writeRequired platform scope: `ops:write`. Uses the key's workspace and current owner permissions.
[
{
"name": "Idempotency-Key",
"in": "header",
"required": true,
"schema": {
"type": "string",
"title": "Idempotency-Key"
}
}
]{
"name": {
"type": "string",
"default": "Untitled workflow"
},
"template": [
{
"type": "string"
},
{
"type": "null"
}
],
"account_id": [
{
"type": "integer"
},
{
"type": "null"
}
]
}{
"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"
}
}
]
}
}
}
}/workflows/runsops:readRequired platform scope: `ops:read`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/workflows/runs/{run_id}ops:readRequired platform scope: `ops:read`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/workflows/{id}ops:readRequired platform scope: `ops:read`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/workflows/{id}/draftops:writeRequired platform scope: `ops:write`. Uses the key's workspace and current owner permissions.
[
{
"name": "id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Id"
}
},
{
"name": "Idempotency-Key",
"in": "header",
"required": true,
"schema": {
"type": "string",
"title": "Idempotency-Key"
}
}
]{
"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"
}
}
]
}
}{
"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"
}
}
]
}
}
}
}/workflows/{id}/previewops:writeRequired platform scope: `ops:write`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
]
}{
"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"
}
}
]
}
}
}
}/workflows/{id}/validateops:writeRequired platform scope: `ops:write`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
]
}{
"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"
}
}
]
}
}
}
}/workflows/{id}/publishops:writeRequired platform scope: `ops:write`. Uses the key's workspace and current owner permissions.
[
{
"name": "id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Id"
}
},
{
"name": "Idempotency-Key",
"in": "header",
"required": true,
"schema": {
"type": "string",
"title": "Idempotency-Key"
}
}
]{
"expected_revision (required)": {
"type": "integer"
},
"graph_hash (required)": {
"type": "string"
}
}{
"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"
}
}
]
}
}
}
}/workflows/{id}/pause-enrolmentops:writeRequired platform scope: `ops:write`. Uses the key's workspace and current owner permissions.
[
{
"name": "id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Id"
}
},
{
"name": "Idempotency-Key",
"in": "header",
"required": true,
"schema": {
"type": "string",
"title": "Idempotency-Key"
}
}
]{
"expected_revision (required)": {
"type": "integer"
}
}{
"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"
}
}
]
}
}
}
}/workflows/{id}/archiveops:writeRequired platform scope: `ops:write`. Uses the key's workspace and current owner permissions.
[
{
"name": "id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Id"
}
},
{
"name": "Idempotency-Key",
"in": "header",
"required": true,
"schema": {
"type": "string",
"title": "Idempotency-Key"
}
}
]{
"expected_revision (required)": {
"type": "integer"
}
}{
"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"
}
}
]
}
}
}
}/domains/configops:readRequired platform scope: `ops:read`. Uses the key's workspace and current owner permissions.
[
{
"name": "Idempotency-Key",
"in": "header",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Required for JSON mutations; use a unique value per action.",
"title": "Idempotency-Key"
},
"description": "Required for JSON mutations; use a unique value per action."
}
]{
"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"
}
}
]
}
}
}
}/domains/searchops:readRequired platform scope: `ops:read`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/domains/quoteops:readRequired platform scope: `ops:read`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/domainsops:readRequired platform scope: `ops:read`. Uses the key's workspace and current owner permissions.
[
{
"name": "Idempotency-Key",
"in": "header",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Required for JSON mutations; use a unique value per action.",
"title": "Idempotency-Key"
},
"description": "Required for JSON mutations; use a unique value per action."
}
]{
"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"
}
}
]
}
}
}
}/domains/{domain_id}ops:readRequired platform scope: `ops:read`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/domains/{domain_id}/dnsops:readRequired platform scope: `ops:read`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/domains/{domain_id}/dnsops:writeRequired platform scope: `ops:write`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
]
}{
"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"
}
}
]
}
}
}
}/domains/{domain_id}/dnsops:writeRequired platform scope: `ops:write`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
]
}
}{
"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"
}
}
]
}
}
}
}/domains/{domain_id}/dns/deleteops:writeRequired platform scope: `ops:write`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
]
}{
"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"
}
}
]
}
}
}
}/analytics/availabilityanalytics:readCurrent section availability, independent of the selected reporting period. Required platform scope: `analytics:read`. Uses the key's workspace and current owner permissions.
[
{
"name": "Idempotency-Key",
"in": "header",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Required for JSON mutations; use a unique value per action.",
"title": "Idempotency-Key"
},
"description": "Required for JSON mutations; use a unique value per action."
}
]{
"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"
}
}
]
}
}
}
}/analytics/overviewanalytics:readInclusive 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.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/analytics/statsanalytics:readRequired platform scope: `analytics:read`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/graphics/presetsgraphics:readReturn canvas dimension presets for social media, video thumbnails, and banners. Required platform scope: `graphics:read`. Uses the key's workspace and current owner permissions.
[
{
"name": "Idempotency-Key",
"in": "header",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Required for JSON mutations; use a unique value per action.",
"title": "Idempotency-Key"
},
"description": "Required for JSON mutations; use a unique value per action."
}
]{
"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"
}
}
]
}
}
}
}/graphics/projects/pagedgraphics:readPage 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.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/graphics/projectsgraphics:writeCreate 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.
[
{
"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."
}
]{
"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"
}
]
}{
"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"
}
}
]
}
}
}
}/graphics/projects/{project_id}/detailgraphics:readGet complete artboard project structure (pages -> groups -> elements). Required platform scope: `graphics:read`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/graphics/projects/{project_id}graphics:writeUpdate graphic project metadata or canvas bounds. Required platform scope: `graphics:write`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
]
}{
"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"
}
}
]
}
}
}
}/graphics/projects/{project_id}graphics:writeMove 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.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/graphics/projects/{project_id}/duplicategraphics:writeDuplicate an entire graphic design project. Required platform scope: `graphics:write`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/graphics/templatesgraphics:readList available Canva-style graphic design templates. Required platform scope: `graphics:read`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/graphics/templates/{template_id}/clonegraphics:writeClone a design template directly into a live editable graphic project. Required platform scope: `graphics:write`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"name": [
{
"type": "string"
},
{
"type": "null"
}
],
"organization_id": [
{
"type": "integer"
},
{
"type": "null"
}
]
}{
"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"
}
}
]
}
}
}
}/graphics/trashgraphics:readRequired platform scope: `graphics:read`. Uses the key's workspace and current owner permissions.
[
{
"name": "Idempotency-Key",
"in": "header",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Required for JSON mutations; use a unique value per action.",
"title": "Idempotency-Key"
},
"description": "Required for JSON mutations; use a unique value per action."
}
]{
"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"
}
}
]
}
}
}
}/graphics/trash/{project_id}/restoregraphics:writeRequired platform scope: `graphics:write`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/routines/templatesroutines:readRequired platform scope: `routines:read`. Uses the key's workspace and current owner permissions.
[
{
"name": "Idempotency-Key",
"in": "header",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Required for JSON mutations; use a unique value per action.",
"title": "Idempotency-Key"
},
"description": "Required for JSON mutations; use a unique value per action."
}
]{
"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"
}
}
]
}
}
}
}/routines/optionsroutines:readWhat 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.
[
{
"name": "Idempotency-Key",
"in": "header",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Required for JSON mutations; use a unique value per action.",
"title": "Idempotency-Key"
},
"description": "Required for JSON mutations; use a unique value per action."
}
]{
"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"
}
}
]
}
}
}
}/routines/samplesroutines:readRequired platform scope: `routines:read`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/routines/preview-scheduleroutines:writeThe 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.
[
{
"name": "Idempotency-Key",
"in": "header",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Required for JSON mutations; use a unique value per action.",
"title": "Idempotency-Key"
},
"description": "Required for JSON mutations; use a unique value per action."
}
]{
"kind (required)": {
"type": "string",
"enum": [
"social",
"blog",
"newsletter"
]
},
"schedule (required)": {
"type": "object"
}
}{
"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"
}
}
]
}
}
}
}/routinesroutines:readRequired platform scope: `routines:read`. Uses the key's workspace and current owner permissions.
[
{
"name": "Idempotency-Key",
"in": "header",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Required for JSON mutations; use a unique value per action.",
"title": "Idempotency-Key"
},
"description": "Required for JSON mutations; use a unique value per action."
}
]{
"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"
}
}
]
}
}
}
}/routinesroutines:writeRequired platform scope: `routines:write`. Uses the key's workspace and current owner permissions.
[
{
"name": "Idempotency-Key",
"in": "header",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Required for JSON mutations; use a unique value per action.",
"title": "Idempotency-Key"
},
"description": "Required for JSON mutations; use a unique value per action."
}
]{
"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
}
}{
"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"
}
}
]
}
}
}
}/routines/{routine_id}routines:readRequired platform scope: `routines:read`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/routines/{routine_id}routines:writeRequired platform scope: `routines:write`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
]
}{
"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"
}
}
]
}
}
}
}/routines/{routine_id}/pauseroutines:writeRequired platform scope: `routines:write`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/routines/{routine_id}/resumeroutines:writeRequired platform scope: `routines:write`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/routines/{routine_id}/runroutines:writeRequired platform scope: `routines:write`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/routines/runs/{run_id}routines:readRequired platform scope: `routines:read`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/routines/items/{item_id}/approveroutines:writeRequired platform scope: `routines:write`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
]
}{
"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"
}
}
]
}
}
}
}/routines/items/{item_id}routines:writeKeep an edit to the caption or time before approving. Required platform scope: `routines:write`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"caption": [
{
"type": "string"
},
{
"type": "null"
}
],
"suggested_at": [
{
"type": "string"
},
{
"type": "null"
}
]
}{
"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"
}
}
]
}
}
}
}/routines/items/{item_id}/rejectroutines:writeRequired platform scope: `routines:write`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"reason": [
{
"type": "string",
"enum": [
"off_brand",
"wrong_topic",
"too_salesy",
"bad_design",
"bad_caption",
"bad_writing",
"other"
]
},
{
"type": "null"
}
],
"note": [
{
"type": "string"
},
{
"type": "null"
}
]
}{
"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"
}
}
]
}
}
}
}/routines/items/{item_id}/regenerateroutines:writeRequired platform scope: `routines:write`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"part": {
"type": "string",
"enum": [
"design",
"caption",
"both",
"idea",
"video"
],
"default": "both"
},
"note": [
{
"type": "string"
},
{
"type": "null"
}
]
}{
"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"
}
}
]
}
}
}
}/routines/runs/{run_id}/approve-allroutines:writeApprove 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.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/tasks/counttasks:readRequired platform scope: `tasks:read`. Uses the key's workspace and current owner permissions.
[
{
"name": "Idempotency-Key",
"in": "header",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Required for JSON mutations; use a unique value per action.",
"title": "Idempotency-Key"
},
"description": "Required for JSON mutations; use a unique value per action."
}
]{
"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"
}
}
]
}
}
}
}/tasks/{key}/snoozetasks:writeRequired platform scope: `tasks:write`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"until": [
{
"type": "string"
},
{
"type": "null"
}
]
}{
"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"
}
}
]
}
}
}
}/tasks/{key}/dismisstasks:writeRequired platform scope: `tasks:write`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/tasks/{key}/restoretasks:writeUndo a dismissal. Required platform scope: `tasks:write`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/tasks/{key}/assigntasks:writeRequired platform scope: `tasks:write`. Uses the key's workspace and current owner permissions.
[
{
"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."
}
]{
"user_id": [
{
"type": "integer"
},
{
"type": "null"
}
]
}{
"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"
}
}
]
}
}
}
}/datasets/{dataset_id}/records/{record_id}datasets:read[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/tickets/customerstickets:readFind 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.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/taskstasks:readThe 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`.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/tickets/customers/{customer_id}/eraseprivacy:writeFor 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.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/campaigns/{campaign_id}/startcampaigns:writeStop cancels pending work and marks the campaign deleted. Pause preserves it for resume. Start launches a draft or resumes eligible campaigns.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/campaigns/{campaign_id}/pausecampaigns:writeStop cancels pending work and marks the campaign deleted. Pause preserves it for resume. Start launches a draft or resumes eligible campaigns.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/campaigns/{campaign_id}/resumecampaigns:writeStop cancels pending work and marks the campaign deleted. Pause preserves it for resume. Start launches a draft or resumes eligible campaigns.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/campaigns/{campaign_id}/stopcampaigns:writeStop cancels pending work and marks the campaign deleted. Pause preserves it for resume. Start launches a draft or resumes eligible campaigns.
[
{
"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."
}
]{
"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"
}
}
]
}
}
}
}/mcp/workspaceworkspace:read{
"200": {
"description": "Successful Response",
"content": {
"application/json": {}
}
}
}/mcp/creditsworkspace:read{
"200": {
"description": "Successful Response",
"content": {
"application/json": {}
}
}
}/mcp/daily-briefworkspace:read{
"200": {
"description": "Successful Response",
"content": {
"application/json": {}
}
}
}/media/uploadsmedia:write{
"files (required)": [
{
"name (required)": {
"type": "string"
},
"mime (required)": {
"type": "string"
},
"size (required)": {
"type": "integer"
}
}
]
}{
"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"
}
}
]
}
}
}
}/media/uploads/{upload_id}/completemedia:write[
{
"name": "upload_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Upload Id"
}
}
]{
"parts": [
[
{
"part_number (required)": {
"type": "integer"
},
"etag (required)": {
"type": "string"
}
}
],
{
"type": "null"
}
]
}{
"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"
}
}
]
}
}
}
}/media/import-urlmedia:write{
"url (required)": {
"type": "string"
},
"name": [
{
"type": "string"
},
{
"type": "null"
}
]
}{
"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"
}
}
]
}
}
}
}/social/media/resolvesocial:write{
"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"
}
}{
"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"
}
}
]
}
}
}
}/social/requirementssocial:read{
"200": {
"description": "Successful Response",
"content": {
"application/json": {}
}
}
}/inbox/draftsinbox:write{
"ref (required)": {
"type": "string"
},
"text (required)": {
"type": "string"
},
"note": [
{
"type": "string"
},
{
"type": "null"
}
]
}{
"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"
}
}
]
}
}
}
}/inbox/draftsinbox:read[
{
"name": "status",
"in": "query",
"required": false,
"schema": {
"enum": [
"pending",
"sent",
"discarded",
"failed",
"all"
],
"type": "string",
"default": "pending",
"title": "Status"
}
}
]{
"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"
}
}
]
}
}
}
}/webhook-endpointswebhooks:read{
"200": {
"description": "Successful Response",
"content": {
"application/json": {}
}
}
}/webhook-endpointswebhooks:writeReturns the signing secret once. Events: ticket.created, ticket.updated, ticket.note_added, ticket.attachments_added.
{
"url (required)": {
"type": "string"
},
"events (required)": [
{
"type": "string"
}
],
"description": [
{
"type": "string"
},
{
"type": "null"
}
]
}{
"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"
}
}
]
}
}
}
}/webhook-endpoints/{webhook_id}webhooks:writeSetting is_active true re-enables a webhook that was disabled after failures.
[
{
"name": "webhook_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Webhook Id"
}
}
]{
"url": [
{
"type": "string"
},
{
"type": "null"
}
],
"events": [
[
{
"type": "string"
}
],
{
"type": "null"
}
],
"description": [
{
"type": "string"
},
{
"type": "null"
}
],
"is_active": [
{
"type": "boolean"
},
{
"type": "null"
}
]
}{
"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"
}
}
]
}
}
}
}/webhook-endpoints/{webhook_id}webhooks:write[
{
"name": "webhook_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Webhook Id"
}
}
]{
"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"
}
}
]
}
}
}
}/webhook-endpoints/{webhook_id}/rotate-secretwebhooks:writeThe old secret stops verifying immediately; queued deliveries are signed with the new one.
[
{
"name": "webhook_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Webhook Id"
}
}
]{
"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"
}
}
]
}
}
}
}/webhook-endpoints/{webhook_id}/testwebhooks:write[
{
"name": "webhook_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Webhook Id"
}
}
]{
"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"
}
}
]
}
}
}
}/webhook-endpoints/{webhook_id}/deliverieswebhooks:read[
{
"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"
}
}
]{
"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"
}
}
]
}
}
}
}/webhook-endpoints/{webhook_id}/deliveries/{delivery_id}/retrywebhooks:write[
{
"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"
}
}
]{
"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"
}
}
]
}
}
}
}/graphics/compose-schemagraphics:readThe exact compose_design contract the editor engine lays out (layouts, themes, content fields).
{
"200": {
"description": "Successful Response",
"content": {
"application/json": {}
}
}
}/sites/compose-schemasites:readThe exact compose_website contract: theme, preset sections with their copy slots, pages and SEO.
{
"200": {
"description": "Successful Response",
"content": {
"application/json": {}
}
}
}/graphics/projects/{project_id}/composegraphics:write[
{
"name": "project_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Project Id"
}
}
]{
"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
}
}{
"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"
}
}
]
}
}
}
}/graphics/projects/{project_id}/rendergraphics:write[
{
"name": "project_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Project Id"
}
}
]{
"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"
}
]
}{
"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"
}
}
]
}
}
}
}/sites/projects/{project_id}/composesites:write[
{
"name": "project_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Project Id"
}
}
]{
"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
}
}{
"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"
}
}
]
}
}
}
}/sites/projects/{project_id}/rendersites:write[
{
"name": "project_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Project Id"
}
}
]{
"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"
}
]
}{
"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"
}
}
]
}
}
}
}/renders/{render_id}graphics:read[
{
"name": "render_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Render Id"
}
}
]{
"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"
}
}
]
}
}
}
}/graphics/projects/{project_id}/ai-designgraphics:writeRuns 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.
[
{
"name": "project_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Project Id"
}
}
]{
"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
}
}{
"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"
}
}
]
}
}
}
}/graphics/projects/{project_id}/ai-directionsgraphics:writeThree 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}.
[
{
"name": "project_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Project Id"
}
}
]{
"prompt (required)": {
"type": "string",
"description": "The brief to propose directions for."
},
"use_brand": {
"type": "boolean",
"default": true
}
}{
"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"
}
}
]
}
}
}
}/graphics/ai-runs/{run_id}graphics:read[
{
"name": "run_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Run Id"
}
}
]{
"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"
}
}
]
}
}
}
}/graphics/motion-schemagraphics:readset_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.
{
"200": {
"description": "Successful Response",
"content": {
"application/json": {}
}
}
}/media/stock-videosmedia:readPexels footage for b-roll. Import a pick with media/import-url; credit the creator as Pexels asks.
[
{
"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"
}
}
]{
"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"
}
}
]
}
}
}
}/videos/voiceovervideos:writeNarration audio with word timings. 1 credit per started 5 seconds of audio, reserved now and settled to the take.
{
"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"
}
}{
"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"
}
}
]
}
}
}
}/videos/transcribevideos:writeWord timings and sentences for the workspace's own audio or video (up to 10 minutes). 1 credit per started 5 seconds.
{
"asset_id (required)": {
"type": "string"
},
"language": {
"type": "string",
"default": "auto"
}
}{
"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"
}
}
]
}
}
}
}/videos/motion/rendervideos:writeOne server-rendered scene (the same templates as the AI video studio) with a preview frame. 5 credits, refunded if it fails.
{
"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."
}
}{
"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"
}
}
]
}
}
}
}/videos/tool-jobs/{job_id}videos:readStatus of any video step; finished files carry fresh links and previews.
[
{
"name": "job_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Job Id"
}
}
]{
"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"
}
}
]
}
}
}
}/videos/projects/importvideos:writeClips, overlays, caption cues with word timings and audio tracks become an editable project in Videos.
{
"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"
}
]
}{
"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"
}
}
]
}
}
}
}/videos/libraryvideos:read[
{
"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"
}
}
]{
"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"
}
}
]
}
}
}
}/videos/library/{project_id}videos:read[
{
"name": "project_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Project Id"
}
}
]{
"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"
}
}
]
}
}
}
}/videos/studiovideos:writeThe 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.
{
"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
}
}{
"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"
}
}
]
}
}
}
}/videos/story/rendervideos:writeA 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.
{
"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"
}
]
}{
"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"
}
}
]
}
}
}
}/videos/assemblevideos:writeThe 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.
{
"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."
}
}{
"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"
}
}
]
}
}
}
}/videos/inspectvideos:writeWhat a workspace file is (duration, size, streams, optional loudness) and frames to look at. Free, rate-limited.
{
"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."
}
}{
"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"
}
}
]
}
}
}
}/media/screenshotvideos:writeScreenshots of a public page at each width, saved as workspace images (for story screens and device scenes). Free, rate-limited.
{
"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."
}
}{
"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"
}
}
]
}
}
}
}/videos/code/rendervideos:writeA 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.
{
"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"
}
]
}{
"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"
}
}
]
}
}
}
}/videos/code/guidevideos:readThe project setup, the kit and the craft notes the Automyc Director works from, and Remotion's own reference pages by topic. Free.
[
{
"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"
}
}
]{
"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"
}
}
]
}
}
}
}/vibe/projectssites:read{
"200": {
"description": "Successful Response",
"content": {
"application/json": {}
}
}
}/vibe/projectssites:write{
"kind": {
"type": "string",
"enum": [
"web",
"mobile",
"full"
],
"default": "web"
},
"name": {
"type": "string",
"default": ""
}
}{
"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"
}
}
]
}
}
}
}/vibe/projects/{site_id}sites:read[
{
"name": "site_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Site Id"
}
}
]{
"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"
}
}
]
}
}
}
}/vibe/projects/{site_id}/guidesites:readThe 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.
[
{
"name": "site_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Site Id"
}
}
]{
"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"
}
}
]
}
}
}
}/vibe/projects/{site_id}/appsites:write[
{
"name": "site_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Site Id"
}
}
]{
"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"
}
}
]
}
}
}
}/vibe/projects/{site_id}/filessites:read[
{
"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"
}
}
]{
"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"
}
}
]
}
}
}
}/vibe/projects/{site_id}/filesites:readText 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.
[
{
"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"
}
}
]{
"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"
}
}
]
}
}
}
}/vibe/projects/{site_id}/filessites:writeAll 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`.
[
{
"name": "site_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Site Id"
}
}
]{
"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)"
}
}{
"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"
}
}
]
}
}
}
}/vibe/projects/{site_id}/files/deletesites:write[
{
"name": "site_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Site Id"
}
}
]{
"paths (required)": [
{
"type": "string"
}
]
}{
"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"
}
}
]
}
}
}
}/vibe/projects/{site_id}/files/renamesites:write[
{
"name": "site_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Site Id"
}
}
]{
"source (required)": {
"type": "string"
},
"target (required)": {
"type": "string"
}
}{
"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"
}
}
]
}
}
}
}/vibe/projects/{site_id}/searchsites:read[
{
"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"
}
}
]{
"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"
}
}
]
}
}
}
}/vibe/projects/{site_id}/commandssites:writeRuns 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.
[
{
"name": "site_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Site Id"
}
}
]{
"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)"
}
}{
"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"
}
}
]
}
}
}
}/vibe/projects/{site_id}/commands/{job_id}sites:read[
{
"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"
}
}
]{
"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"
}
}
]
}
}
}
}/vibe/projects/{site_id}/previewsites:writeKeeps 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.
[
{
"name": "site_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Site Id"
}
}
]{
"wait": {
"type": "integer",
"default": 30,
"description": "Seconds to wait for the preview to be running"
},
"restart": {
"type": "boolean",
"default": false
}
}{
"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"
}
}
]
}
}
}
}/vibe/projects/{site_id}/logssites:read[
{
"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"
}
}
]{
"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"
}
}
]
}
}
}
}/vibe/projects/{site_id}/inspectsites:writeOpens 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.
[
{
"name": "site_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Site Id"
}
}
]{
"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
}
}{
"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"
}
}
]
}
}
}
}/vibe/projects/{site_id}/versionssites:read[
{
"name": "site_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Site Id"
}
}
]{
"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"
}
}
]
}
}
}
}/vibe/projects/{site_id}/versionssites:write[
{
"name": "site_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Site Id"
}
}
]{
"message (required)": {
"type": "string"
}
}{
"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"
}
}
]
}
}
}
}/vibe/projects/{site_id}/versions/{version}/restoresites:write[
{
"name": "site_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Site Id"
}
},
{
"name": "version",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Version"
}
}
]{
"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"
}
}
]
}
}
}
}/vibe/projects/{site_id}/buildssites:read[
{
"name": "site_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Site Id"
}
}
]{
"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"
}
}
]
}
}
}
}/vibe/projects/{site_id}/publishsites:publish[
{
"name": "site_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Site Id"
}
}
]{
"rollback_to": [
{
"type": "string"
},
{
"type": "null"
}
],
"address": [
{
"type": "string"
},
{
"type": "null"
}
]
}{
"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"
}
}
]
}
}
}
}/vibe/projects/{site_id}/databasesites:readThe preview database only, with password hashes, tokens and keys masked. Live customer data stays in the dashboard.
[
{
"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"
}
}
]{
"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"
}
}
]
}
}
}
}/vibe/projects/{site_id}/runssites:writeQueue 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.
[
{
"name": "site_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Site Id"
}
}
]{
"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"
}
]
}{
"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"
}
}
]
}
}
}
}/vibe/projects/{site_id}/runssites:read[
{
"name": "site_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Site Id"
}
}
]{
"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"
}
}
]
}
}
}
}/vibe/projects/{site_id}/runs/{run_id}sites:read[
{
"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"
}
}
]{
"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"
}
}
]
}
}
}
}/vibe/projects/{site_id}/runs/{run_id}/stopsites:write[
{
"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"
}
}
]{
"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"
}
}
]
}
}
}
}/vibe/projects/{site_id}/securitysites:read[
{
"name": "site_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Site Id"
}
}
]{
"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"
}
}
]
}
}
}
}/vibe/projects/{site_id}/securitysites:writequick: free automatic checks. full: adds an AI review of the code, charged by what it used.
[
{
"name": "site_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Site Id"
}
}
]{
"kind": {
"type": "string",
"enum": [
"quick",
"full"
],
"default": "quick"
}
}{
"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"
}
}
]
}
}
}
}/vibe/projects/{site_id}/usagesites:read[
{
"name": "site_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Site Id"
}
}
]{
"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"
}
}
]
}
}
}
}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.
| Status | Meaning / action |
|---|---|
| 400 | Invalid action or missing Idempotency-Key. Correct the request. |
| 401 | Missing, invalid or revoked key; key owner no longer active. |
| 402 | Workspace subscription or credit requirement. |
| 403 | Missing API scope or current owner permission. |
| 404 | Resource unavailable in this workspace. |
| 409 | State conflict, reconnect requirement, or reused idempotency key. Inspect the resource. |
| 422 | Payload validation error; inspect detail for field locations. |
| 429 | 120 authenticated requests per minute per key. Wait for Retry-After. |
| 500 / 502 / 503 | Service 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.