REST API reference
401 routes on https://api.spacesos.com/v1, with an API key as Authorization: Bearer spc_live_.... Built from the OpenAPI file, which code generators and AI agents can read directly.
- Writes take an
Idempotency-Keyheader, a unique key per action (8 to 128 characters). Sending the same key again never acts twice: you get the first answer back withreplay: true. The same key with a different body is409 IDEMPOTENCY_CONFLICT. - Lists take
limitandcursor. Pass thenext_cursorof one page ascursorfor the next; it is null on the last page. - Every error has the same shape: error codes. A 429 or 503 says when to try again in
Retry-After. - Events in real time: webhooks. The same tools over MCP: every tool.
accounts
PUT /v1/accounts/{account_id}/post-slots Set the weekly times an account posts at (set_post_slots). Replaces its slots; queued posts keep their time. Sends nothing.
| Body field | Type |
|---|---|
slots (required) | |
timezoneDefault: the workspace time zone. | string |
page_idFacebook: the Page. | string |
200 schedule {account_id, page_id, timezone, slots, next_slots, updated_at}400 401 403 404 409 429 500
Accounts
GET /v1/messaging/accounts Connected accounts
| Parameter | In | Type |
|---|---|---|
q | query | string |
external_id | query | string |
channel | query | string |
status | query | string |
sort | query | string |
limit | query | integer |
cursor | query | string |
200 accounts400 401 403 429 500
GET /v1/messaging/accounts/{accountId} Status of one connected account.
| Parameter | In | Type |
|---|---|---|
extra | query | object |
200 ok400 401 403 404 429 500 502
PATCH /v1/messaging/accounts/{accountId} setAccountExternalId
200 OK400 401 403 404 409 429 500 502
DELETE /v1/messaging/accounts/{accountId} Disconnect one connected account: no more reading or sending from it, and it stops being billed. Cannot be undone; connecting again needs a …
Disconnect one connected account: no more reading or sending from it, and it stops being billed. Cannot be undone; connecting again needs a new connect link. Confirm with the person first, then pass confirm: true. An Instagram account connected two ways can drop just one: route official or full_access; the account stays.
| Parameter | In | Type |
|---|---|---|
confirm (required) | query | |
route | query |
200 OK400 401 403 404 409 429 500 502
Accounts: attendees
GET /v1/messaging/accounts/{accountId}/attendees People the account can message.
| Parameter | In | Type |
|---|---|---|
extra | query | object |
200 ok400 401 403 404 429 500 502
GET /v1/messaging/accounts/{accountId}/attendees/{attendeeId} One attendee.
| Parameter | In | Type |
|---|---|---|
extra | query | object |
200 ok400 401 403 404 429 500 502
GET /v1/messaging/accounts/{accountId}/attendees/{attendeeId}/picture Profile picture for an attendee. Binary.
| Parameter | In | Type |
|---|---|---|
extra | query | object |
200 ok400 401 403 404 429 500 502
GET /v1/messaging/accounts/{accountId}/attendees/{attendeeId}/chats 1:1 chats with an attendee.
| Parameter | In | Type |
|---|---|---|
extra | query | object |
200 ok400 401 403 404 429 500 502
GET /v1/messaging/accounts/{accountId}/attendees/{attendeeId}/messages Messages with an attendee.
| Parameter | In | Type |
|---|---|---|
extra | query | object |
200 ok400 401 403 404 429 500 502
GET /v1/messaging/accounts/{accountId}/attendees/{attendeeId}/sync Sync chats for an attendee.
| Parameter | In | Type |
|---|---|---|
extra | query | object |
200 ok400 401 403 404 429 500 502
Accounts: calendars
GET /v1/messaging/accounts/{accountId}/calendars Calendars on this account.
200 ok401 403 404 429 500 502
GET /v1/messaging/accounts/{accountId}/calendars/{calendarId} One calendar.
200 ok401 403 404 429 500 502
GET /v1/messaging/accounts/{accountId}/calendars/{calendarId}/events Events on a calendar.
200 ok401 403 404 429 500 502
POST /v1/messaging/accounts/{accountId}/calendars/{calendarId}/events Create an event.
200 ok400 401 403 404 409 429 500 502
GET /v1/messaging/accounts/{accountId}/calendars/{calendarId}/events/{eventId} One event.
200 ok401 403 404 429 500 502
PATCH /v1/messaging/accounts/{accountId}/calendars/{calendarId}/events/{eventId} Edit an event.
200 ok400 401 403 404 409 429 500 502
DELETE /v1/messaging/accounts/{accountId}/calendars/{calendarId}/events/{eventId} Delete an event.
200 ok400 401 403 404 409 429 500 502
Accounts: chat requests
GET /v1/messaging/accounts/{accountId}/chat-requests List message requests
| Parameter | In | Type |
|---|---|---|
cursornext_cursor from the previous page. | query | string |
limitItems per page (1-100; Instagram follower pages hold at most 25). | query | integer |
200 done400 401 403 404 429 500 501 502
POST /v1/messaging/accounts/{accountId}/chat-requests/{chatId}/accept Accept a message request
| Parameter | In | Type |
|---|---|---|
Idempotency-Key (required)8-128 letters, digits or ._:-. A retry with the same key never acts twice. | header | string |
| Body field | Type |
|---|---|
inbox_idOptional: the requests inbox id from list_inboxes. | string |
201 done202 held for approval: { approval_id, status: pending }400 401 403 404 409 429 500 501 502
Accounts: chats
GET /v1/messaging/accounts/{accountId}/chats/{chatId}/attendees People in a chat
| Parameter | In | Type |
|---|---|---|
cursornext_cursor from the previous page. | query | string |
limitItems per page (1-100; Instagram follower pages hold at most 25). | query | integer |
200 done400 401 403 404 429 500 501 502
POST /v1/messaging/accounts/{accountId}/chats/{chatId}/attendees Add someone to a group
| Parameter | In | Type |
|---|---|---|
Idempotency-Key (required)8-128 letters, digits or ._:-. A retry with the same key never acts twice. | header | string |
| Body field | Type |
|---|---|
user_id (required)The person's user id. | string |
201 done202 held for approval: { approval_id, status: pending }400 401 403 404 409 429 500 501 502
PATCH /v1/messaging/accounts/{accountId}/chats/{chatId} Mark a chat read, mute it, or take another chat action.
| Parameter | In | Type |
|---|---|---|
Idempotency-Key (required)A unique key per action (8 to 128 characters). A retry with the same key never acts twice. | header | string |
| Body field | Type |
|---|---|
extra | object |
200 ok400 401 403 404 409 429 500 502
DELETE /v1/messaging/accounts/{accountId}/chats/{chatId} Delete a chat
| Parameter | In | Type |
|---|---|---|
Idempotency-Key (required)8-128 letters, digits or ._:-. A retry with the same key never acts twice. | header | string |
201 done202 held for approval: { approval_id, status: pending }400 401 403 404 409 429 500 501 502
GET /v1/messaging/accounts/{accountId}/chats/{chatId}/tags Tags and owner of a chat
200 tags401 403 404 429 500 502
PUT /v1/messaging/accounts/{accountId}/chats/{chatId}/tags Replace the tags on a chat (at most 20, each up to 40 characters). Sends nothing.
| Body field | Type |
|---|---|
tags (required) |
200 tags400 401 403 404 409 429 500 502
PUT /v1/messaging/accounts/{accountId}/chats/{chatId}/owner Give a chat an owner: a workspace user id, an email or me; null clears it. Sends nothing.
| Body field | Type |
|---|---|
owner (required) |
200 owner400 401 403 404 409 429 500 502
PUT /v1/messaging/accounts/{accountId}/chats/{chatId}/handover Hand a chat to a person: body {reason?, to?}, where to is a member email, a user id or me. While it is handed over, agent writes to the chat…
Hand a chat to a person: body {reason?, to?}, where to is a member email, a user id or me. While it is handed over, agent writes to the chat are refused with HANDED_OVER (409). Sends nothing.
| Body field | Type |
|---|---|
reason | string |
to | string |
200 handed_over, handed_to, handed_over_reason, handed_over_since400 401 403 404 409 429 500 502
DELETE /v1/messaging/accounts/{accountId}/chats/{chatId}/handover Hand the chat back to the agent. Sends nothing.
200 handed_over false, handed_back400 401 403 404 409 429 500 502
GET /v1/messaging/accounts/{accountId}/chats/{chatId}/sync Sync a chat from the start, or read the sync status.
| Parameter | In | Type |
|---|---|---|
extra | query | object |
200 ok400 401 403 404 429 500 502
POST /v1/messaging/accounts/{accountId}/chats/{chatId}/read Mark a chat as read
200 done400 401 403 404 409 429 500 501 502
POST /v1/messaging/accounts/{accountId}/chats/{chatId}/unread Mark a chat as unread
200 done400 401 403 404 409 429 500 501 502
PUT /v1/messaging/accounts/{accountId}/chats/{chatId}/star Star a chat
200 done400 401 403 404 409 429 500 501 502
DELETE /v1/messaging/accounts/{accountId}/chats/{chatId}/star Remove a star
200 done400 401 403 404 409 429 500 501 502
PUT /v1/messaging/accounts/{accountId}/chats/{chatId}/archive Archive a chat
200 done400 401 403 404 409 429 500 501 502
DELETE /v1/messaging/accounts/{accountId}/chats/{chatId}/archive Move a chat back to the inbox
200 done400 401 403 404 409 429 500 501 502
PUT /v1/messaging/accounts/{accountId}/chats/{chatId}/pin Pin a chat
200 done400 401 403 404 409 429 500 501 502
DELETE /v1/messaging/accounts/{accountId}/chats/{chatId}/pin Unpin a chat
200 done400 401 403 404 409 429 500 501 502
PUT /v1/messaging/accounts/{accountId}/chats/{chatId}/mute Mute a chat
200 done400 401 403 404 409 429 500 501 502
DELETE /v1/messaging/accounts/{accountId}/chats/{chatId}/mute Unmute a chat
200 done400 401 403 404 409 429 500 501 502
PATCH /v1/messaging/accounts/{accountId}/chats/{chatId}/name Rename a group chat
| Body field | Type |
|---|---|
name (required)The new name. | string |
200 done400 401 403 404 409 429 500 501 502
POST /v1/messaging/accounts/{accountId}/chats/{chatId}/typing Show typing
200 done400 401 403 404 409 429 500 501 502
DELETE /v1/messaging/accounts/{accountId}/chats/{chatId}/attendees/{userId} Remove someone from a group
| Parameter | In | Type |
|---|---|---|
Idempotency-Key (required)8-128 letters, digits or ._:-. A retry with the same key never acts twice. | header | string |
201 done202 held for approval: { approval_id, status: pending }400 401 403 404 409 429 500 501 502
GET /v1/messaging/accounts/{accountId}/chats/{chatId}/picture Download a chat picture
200 the file401 403 404 429 500 501 502
GET /v1/messaging/accounts/{accountId}/chats/{chatId}/notes Private notes on a chat
| Parameter | In | Type |
|---|---|---|
limit | query | integer |
200 ok400 401 403 404 429 500 502
POST /v1/messaging/accounts/{accountId}/chats/{chatId}/notes Add a private note. Never sent to the other person
| Body field | Type |
|---|---|
text (required) | string |
201 note400 401 403 404 409 429 500 502
POST /v1/messaging/accounts/{accountId}/chats/{chatId}/reminders Bring a chat back later as a chat.reminder_due event
| Body field | Type |
|---|---|
remind_at | string |
in_minutes | number |
in_days | number |
note | string |
201 reminder400 401 403 404 409 429 500 502
GET /v1/messaging/accounts/{accountId}/chats List the conversations of one account, newest first, with tags, owner, star and handover. Filters: unread, unanswered, starred, archived, re…
List the conversations of one account, newest first, with tags, owner, star and handover. Filters: unread, unanswered, starred, archived, requests, handed over, a tag or an owner.
| Parameter | In | Type |
|---|---|---|
limit | query | integer |
cursor | query | string |
unread | query | boolean |
unanswered | query | boolean |
tag | query | string |
owner | query | string |
handed_over | query | boolean |
starred | query | boolean |
archived | query | boolean |
requests | query | boolean |
view | query | |
fields | query | string |
200 OK400 401 403 404 429 500 502
POST /v1/messaging/accounts/{accountId}/chats Start a new conversation with someone who expects to hear from you. Runs at most once per Idempotency-Key. 201 sent, 202 held for approval, …
Start a new conversation with someone who expects to hear from you. Runs at most once per Idempotency-Key. 201 sent, 202 held for approval, 200 a replay.
| Parameter | In | Type |
|---|---|---|
Idempotency-Key (required)A unique key per action (8 to 128 characters). A retry with the same key never acts twice. | header | string |
| Body field | Type |
|---|---|
to (required) | object |
text | string |
attachments | |
inmail | boolean |
200 A replay: this key already sent it.201 OK202 Held for the owner's approval.400 401 403 404 409 429 500 502
GET /v1/messaging/accounts/{accountId}/chats/{chatId}/messages The messages in one conversation, newest first.
| Parameter | In | Type |
|---|---|---|
limit | query | integer |
cursor | query | string |
view | query | |
fields | query | string |
200 OK400 401 403 404 429 500 502
POST /v1/messaging/accounts/{accountId}/chats/{chatId}/messages Reply in a conversation, with text or attachments. Runs at most once per Idempotency-Key. 201 sent, 202 held for approval, 200 a replay of t…
Reply in a conversation, with text or attachments. Runs at most once per Idempotency-Key. 201 sent, 202 held for approval, 200 a replay of the same key.
| Parameter | In | Type |
|---|---|---|
Idempotency-Key (required)A unique key per action (8 to 128 characters). A retry with the same key never acts twice. | header | string |
| Body field | Type |
|---|---|
text | string |
attachments |
200 A replay: this key already sent it.201 OK202 Held for the owner's approval.400 401 403 404 409 429 500 502
GET /v1/messaging/accounts/{accountId}/chats/{chatId}/messages/{messageId}/attachments/{attachmentId} A photo, video, voice note or file from a message: the bytes, or with as=link a private link that works for ten minutes.
| Parameter | In | Type |
|---|---|---|
link | query | boolean |
200 OK400 401 403 404 429 500 502
Accounts: checkpoint
POST /v1/messaging/accounts/{accountId}/checkpoint Submit a 2FA or OTP code. The code is not stored.
| Parameter | In | Type |
|---|---|---|
Idempotency-Key (required)A unique key per action (8 to 128 characters). A retry with the same key never acts twice. | header | string |
| Body field | Type |
|---|---|
extra | object |
200 ok400 401 403 404 409 429 500 502
POST /v1/messaging/accounts/{accountId}/checkpoint/resend Resend a checkpoint code.
| Parameter | In | Type |
|---|---|---|
Idempotency-Key (required)A unique key per action (8 to 128 characters). A retry with the same key never acts twice. | header | string |
| Body field | Type |
|---|---|
extra | object |
200 ok400 401 403 404 409 429 500 502
Accounts: connect link
POST /v1/messaging/accounts/connect-link Link the person opens to connect an account
| Body field | Type |
|---|---|
channel (required) | |
account_id | string |
success_url | string |
failure_url | string |
connection |
201 url400 401 403 409 429 500 502
Accounts: email contacts
GET /v1/messaging/accounts/{accountId}/email-contacts Contacts from Gmail or Outlook.
200 ok401 403 404 429 500 502
Accounts: email drafts
POST /v1/messaging/accounts/{accountId}/email-drafts Save an email draft.
200 ok400 401 403 404 409 429 500 502
Accounts: email folders
GET /v1/messaging/accounts/{accountId}/email-folders Mail folders.
200 ok401 403 404 429 500 502
GET /v1/messaging/accounts/{accountId}/email-folders/{folderId} One mail folder.
200 ok401 403 404 429 500 502
Accounts: emails
GET /v1/messaging/accounts/{accountId}/emails Emails in this account.
200 ok401 403 404 429 500 502
POST /v1/messaging/accounts/{accountId}/emails Send one email. Not a bulk send.
200 ok400 401 403 404 409 429 500 502
GET /v1/messaging/accounts/{accountId}/emails/{emailId} One email.
200 ok401 403 404 429 500 502
PATCH /v1/messaging/accounts/{accountId}/emails/{emailId} Update flags on an email.
200 ok400 401 403 404 409 429 500 502
DELETE /v1/messaging/accounts/{accountId}/emails/{emailId} Move an email to trash.
200 ok400 401 403 404 409 429 500 502
GET /v1/messaging/accounts/{accountId}/emails/{emailId}/attachments/{attachmentId} Download an email attachment.
200 ok401 403 404 429 500 502
Accounts: follow requests
GET /v1/messaging/accounts/{accountId}/follow-requests List follow requests
| Parameter | In | Type |
|---|---|---|
cursornext_cursor from the previous page. | query | string |
limitItems per page (1-100; Instagram follower pages hold at most 25). | query | integer |
200 done400 401 403 404 429 500 501 502
POST /v1/messaging/accounts/{accountId}/follow-requests/{requestId}/accept Accept a follow request
| Parameter | In | Type |
|---|---|---|
Idempotency-Key (required)8-128 letters, digits or ._:-. A retry with the same key never acts twice. | header | string |
201 done202 held for approval: { approval_id, status: pending }400 401 403 404 409 429 500 501 502
POST /v1/messaging/accounts/{accountId}/follow-requests/{requestId}/decline Decline a follow request
| Parameter | In | Type |
|---|---|---|
Idempotency-Key (required)8-128 letters, digits or ._:-. A retry with the same key never acts twice. | header | string |
201 done202 held for approval: { approval_id, status: pending }400 401 403 404 409 429 500 501 502
Accounts: followers
GET /v1/messaging/accounts/{accountId}/followers List followers
| Parameter | In | Type |
|---|---|---|
user_idWhose followers. Omit for the account itself. | query | string |
cursornext_cursor from the previous page. | query | string |
limitItems per page (1-100; Instagram follower pages hold at most 25). | query | integer |
200 done400 401 403 404 429 500 501 502
Accounts: following
GET /v1/messaging/accounts/{accountId}/following List who an account follows
| Parameter | In | Type |
|---|---|---|
user_idWhose following list. Omit for the account itself. | query | string |
cursornext_cursor from the previous page. | query | string |
limitItems per page (1-100; Instagram follower pages hold at most 25). | query | integer |
200 done400 401 403 404 429 500 501 502
Accounts: health
GET /v1/messaging/accounts/{accountId}/health How one account is doing: status, limits left today, warm-up, resting and what to fix.
200 OK401 403 404 429 500 502
Accounts: inboxes
GET /v1/messaging/accounts/{accountId}/inboxes List inboxes
200 done401 403 404 429 500 501 502
Accounts: invitations
GET /v1/messaging/accounts/{accountId}/invitations/received List received invitations
| Parameter | In | Type |
|---|---|---|
cursor | query | string |
limit | query | integer |
200 ok400 401 403 404 429 500 501 502
POST /v1/messaging/accounts/{accountId}/invitations/received/{invitationId} Accept or decline an invitation
| Parameter | In | Type |
|---|---|---|
Idempotency-Key (required)8-128 letters, digits or ._:-. A retry with the same key never acts twice. | header | string |
| Body field | Type |
|---|---|
response (required) | accept | decline |
201 done400 401 403 404 409 423 429 500 501 502
GET /v1/messaging/accounts/{accountId}/invitations List sent invitations
| Parameter | In | Type |
|---|---|---|
cursor | query | string |
limit | query | integer |
200 ok400 401 403 404 429 500 501 502
POST /v1/messaging/accounts/{accountId}/invitations Send an invitation
| Parameter | In | Type |
|---|---|---|
Idempotency-Key (required)8-128 letters, digits or ._:-. A retry with the same key never acts twice. | header | string |
| Body field | Type |
|---|---|
to (required)Profile URL, public id or member id. | string |
message | string |
201 done400 401 403 404 409 423 429 500 501 502
DELETE /v1/messaging/accounts/{accountId}/invitations/{invitationId} Withdraw an invitation
201 done400 401 403 404 409 423 429 500 501 502
Accounts: limits
GET /v1/messaging/accounts/{accountId}/limits Limits used and left
200 ok401 403 404 429 500 502
Accounts: linkedin
GET /v1/messaging/accounts/{accountId}/linkedin/inmail-balance InMail credits
200 ok401 403 404 429 500 501 502
GET /v1/messaging/accounts/{accountId}/linkedin/companies/{companyId} Look up a company
200 ok401 403 404 429 500 501 502
GET /v1/messaging/accounts/{accountId}/linkedin/search/parameters Ids LinkedIn expects instead of raw search text.
| Parameter | In | Type |
|---|---|---|
extra | query | object |
200 ok400 401 403 404 429 500 502
GET /v1/messaging/accounts/{accountId}/linkedin/hiring-projects Recruiter hiring projects.
| Parameter | In | Type |
|---|---|---|
extra | query | object |
200 ok400 401 403 404 429 500 502
GET /v1/messaging/accounts/{accountId}/linkedin/hiring-projects/{projectId} One hiring project.
| Parameter | In | Type |
|---|---|---|
extra | query | object |
200 ok400 401 403 404 429 500 502
POST /v1/messaging/accounts/{accountId}/linkedin/users/{identifier}/action Recruiter or Sales Navigator action on a profile, such as saving a lead.
| Parameter | In | Type |
|---|---|---|
Idempotency-Key (required)A unique key per action (8 to 128 characters). A retry with the same key never acts twice. | header | string |
| Body field | Type |
|---|---|
extra | object |
200 ok400 401 403 404 409 429 500 502
GET /v1/messaging/accounts/{accountId}/linkedin/jobs Job posts on this LinkedIn account.
| Parameter | In | Type |
|---|---|---|
extra | query | object |
200 ok400 401 403 404 429 500 502
POST /v1/messaging/accounts/{accountId}/linkedin/jobs Create a job post draft.
| Parameter | In | Type |
|---|---|---|
Idempotency-Key (required)A unique key per action (8 to 128 characters). A retry with the same key never acts twice. | header | string |
| Body field | Type |
|---|---|
extra | object |
200 ok400 401 403 404 409 429 500 502
GET /v1/messaging/accounts/{accountId}/linkedin/jobs/{jobId} One job post.
| Parameter | In | Type |
|---|---|---|
extra | query | object |
200 ok400 401 403 404 429 500 502
PATCH /v1/messaging/accounts/{accountId}/linkedin/jobs/{jobId} Edit a job post.
| Parameter | In | Type |
|---|---|---|
Idempotency-Key (required)A unique key per action (8 to 128 characters). A retry with the same key never acts twice. | header | string |
| Body field | Type |
|---|---|
extra | object |
200 ok400 401 403 404 409 429 500 502
POST /v1/messaging/accounts/{accountId}/linkedin/jobs/{jobId}/publish Publish a job draft.
| Parameter | In | Type |
|---|---|---|
Idempotency-Key (required)A unique key per action (8 to 128 characters). A retry with the same key never acts twice. | header | string |
| Body field | Type |
|---|---|
extra | object |
200 ok400 401 403 404 409 429 500 502
POST /v1/messaging/accounts/{accountId}/linkedin/jobs/{jobId}/close Close a job post.
| Parameter | In | Type |
|---|---|---|
Idempotency-Key (required)A unique key per action (8 to 128 characters). A retry with the same key never acts twice. | header | string |
| Body field | Type |
|---|---|
extra | object |
200 ok400 401 403 404 409 429 500 502
GET /v1/messaging/accounts/{accountId}/linkedin/jobs/{jobId}/applicants People who applied.
| Parameter | In | Type |
|---|---|---|
extra | query | object |
200 ok400 401 403 404 429 500 502
GET /v1/messaging/accounts/{accountId}/linkedin/jobs/{jobId}/applicants/{applicantId} One applicant.
| Parameter | In | Type |
|---|---|---|
extra | query | object |
200 ok400 401 403 404 429 500 502
GET /v1/messaging/accounts/{accountId}/linkedin/jobs/{jobId}/applicants/{applicantId}/resume Download an applicant resume.
| Parameter | In | Type |
|---|---|---|
extra | query | object |
200 ok400 401 403 404 429 500 502
POST /v1/messaging/accounts/{accountId}/linkedin/users/{identifier}/endorse Endorse a skill
| Parameter | In | Type |
|---|---|---|
Idempotency-Key (required)8-128 letters, digits or ._:-. A retry with the same key never acts twice. | header | string |
| Body field | Type |
|---|---|
skill_id (required) | string |
201 done400 401 403 404 409 423 429 500 501 502
GET /v1/messaging/accounts/{accountId}/linkedin/contracts Recruiter or Sales Navigator contracts.
| Parameter | In | Type |
|---|---|---|
extra | query | object |
200 ok400 401 403 404 429 500 502
POST /v1/messaging/accounts/{accountId}/linkedin/contracts/{contractId}/select Select the contract used by this account.
| Parameter | In | Type |
|---|---|---|
Idempotency-Key (required)A unique key per action (8 to 128 characters). A retry with the same key never acts twice. | header | string |
| Body field | Type |
|---|---|
extra | object |
200 ok400 401 403 404 409 429 500 502
POST /v1/messaging/accounts/{accountId}/linkedin/jobs/{jobId}/checkpoint Solve a job publishing checkpoint.
| Parameter | In | Type |
|---|---|---|
Idempotency-Key (required)A unique key per action (8 to 128 characters). A retry with the same key never acts twice. | header | string |
| Body field | Type |
|---|---|
extra | object |
200 ok400 401 403 404 409 429 500 502
GET /v1/messaging/accounts/{accountId}/linkedin/posts/audience Estimated audience for an organization post.
| Parameter | In | Type |
|---|---|---|
extra | query | object |
200 ok400 401 403 404 429 500 502
POST /v1/messaging/accounts/{accountId}/linkedin/recruiter/sign-out Sign out the current Recruiter session.
| Parameter | In | Type |
|---|---|---|
Idempotency-Key (required)A unique key per action (8 to 128 characters). A retry with the same key never acts twice. | header | string |
| Body field | Type |
|---|---|
extra | object |
200 ok400 401 403 404 409 429 500 502
POST /v1/messaging/accounts/{accountId}/linkedin/recruiter/sign-out-others Sign out other Recruiter sessions for this seat.
| Parameter | In | Type |
|---|---|---|
Idempotency-Key (required)A unique key per action (8 to 128 characters). A retry with the same key never acts twice. | header | string |
| Body field | Type |
|---|---|
extra | object |
200 ok400 401 403 404 409 429 500 502
GET /v1/messaging/accounts/{accountId}/linkedin/profile-viewers Who viewed the profile
| Parameter | In | Type |
|---|---|---|
cursor | query | string |
limit | query | integer |
200 ok400 401 403 404 429 500 501 502
GET /v1/messaging/accounts/{accountId}/linkedin/company-pages Company pages you manage
200 ok401 403 404 429 500 501 502
PATCH /v1/messaging/accounts/{accountId}/linkedin/settings Withdraw old invitations automatically
| Body field | Type |
|---|---|
auto_withdraw_days (required) | integer |
200 ok400 401 403 404 409 429 500 502
Accounts: messages
POST /v1/messaging/accounts/{accountId}/messages/{messageId}/forward Forward a message. WhatsApp only.
| Parameter | In | Type |
|---|---|---|
Idempotency-Key (required)A unique key per action (8 to 128 characters). A retry with the same key never acts twice. | header | string |
| Body field | Type |
|---|---|
extra | object |
200 ok400 401 403 404 409 429 500 502
GET /v1/messaging/accounts/{accountId}/messages Messages across chats. Filter with the query string.
| Parameter | In | Type |
|---|---|---|
extra | query | object |
200 ok400 401 403 404 429 500 502
POST /v1/messaging/accounts/{accountId}/messages/{messageId}/reaction React to a message
| Parameter | In | Type |
|---|---|---|
Idempotency-Key (required)8-128 letters, digits or ._:-. A retry with the same key never acts twice. | header | string |
| Body field | Type |
|---|---|
chat_id (required)The chat the message is in. | string |
reaction (required)One emoji. | string |
201 done202 held for approval: { approval_id, status: pending }400 401 403 404 409 429 500 501 502
DELETE /v1/messaging/accounts/{accountId}/messages/{messageId}/reaction Remove your reaction
| Parameter | In | Type |
|---|---|---|
chat_id (required)The chat the message is in. | query | string |
reaction (required)The emoji to remove. | query | string |
Idempotency-Key (required)8-128 letters, digits or ._:-. A retry with the same key never acts twice. | header | string |
201 done400 401 403 404 409 429 500 501 502
PATCH /v1/messaging/accounts/{accountId}/messages/{messageId} Edit a sent message
| Parameter | In | Type |
|---|---|---|
Idempotency-Key (required)8-128 letters, digits or ._:-. A retry with the same key never acts twice. | header | string |
| Body field | Type |
|---|---|
chat_id (required)The chat the message is in. | string |
text (required)The new text. | string |
201 done202 held for approval: { approval_id, status: pending }400 401 403 404 409 429 500 501 502
DELETE /v1/messaging/accounts/{accountId}/messages/{messageId} Unsend a message
| Parameter | In | Type |
|---|---|---|
chat_id (required)The chat the message is in. | query | string |
Idempotency-Key (required)8-128 letters, digits or ._:-. A retry with the same key never acts twice. | header | string |
201 done202 held for approval: { approval_id, status: pending }400 401 403 404 409 429 500 501 502
GET /v1/messaging/accounts/{accountId}/messages/{messageId}/reactions Who reacted to a message
| Parameter | In | Type |
|---|---|---|
chat_id (required)The chat the message is in. | query | string |
cursornext_cursor from the previous page. | query | string |
limitItems per page (1-100; Instagram follower pages hold at most 25). | query | integer |
200 done400 401 403 404 429 500 501 502
POST /v1/messaging/accounts/{accountId}/messages/{messageId}/read Mark a message as read
| Body field | Type |
|---|---|
chat_id (required)The chat the message is in. | string |
200 done400 401 403 404 409 429 500 501 502
PUT /v1/messaging/accounts/{accountId}/messages/{messageId}/pin Pin a message
| Parameter | In | Type |
|---|---|---|
Idempotency-Key (required)8-128 letters, digits or ._:-. A retry with the same key never acts twice. | header | string |
| Body field | Type |
|---|---|
chat_id (required)The chat the message is in. | string |
201 done400 401 403 404 409 429 500 501 502
DELETE /v1/messaging/accounts/{accountId}/messages/{messageId}/pin Unpin a message
| Parameter | In | Type |
|---|---|---|
chat_id (required)The chat the message is in. | query | string |
Idempotency-Key (required)8-128 letters, digits or ._:-. A retry with the same key never acts twice. | header | string |
201 done400 401 403 404 409 429 500 501 502
Accounts: places
GET /v1/messaging/accounts/{accountId}/places Find a place to tag
| Parameter | In | Type |
|---|---|---|
query (required)A place name, such as "Blue Bottle Coffee". | query | string |
200 done400 401 403 404 429 500 501 502
Accounts: posts
GET /v1/messaging/accounts/{accountId}/posts/{postId}/reactions Who liked a post
| Parameter | In | Type |
|---|---|---|
cursornext_cursor from the previous page. | query | string |
limitItems per page (1-100; Instagram follower pages hold at most 25). | query | integer |
200 done400 401 403 404 429 500 501 502
POST /v1/messaging/accounts/{accountId}/posts/{postId}/reactions Like an Instagram post, or add a LinkedIn reaction (like, celebrate, support, love, insightful, funny), by its social_id. Instagram only has…
Like an Instagram post, or add a LinkedIn reaction (like, celebrate, support, love, insightful, funny), by its social_id. Instagram only has like. LinkedIn: 20 an hour and 100 a day. Instagram: 10 an hour and 100 a day, inside the shared Instagram budget. Sensitive write: it adds a public reaction to a post. Ask the person to approve every call, with the exact recipient and content.
| Parameter | In | Type |
|---|---|---|
Idempotency-Key (required)A unique key per action (8 to 128 characters). A retry with the same key never acts twice. | header | string |
| Body field | Type |
|---|---|
reaction |
200 OK400 401 403 404 409 429 500 502
DELETE /v1/messaging/accounts/{accountId}/posts/{postId}/reactions Unlike a post
| Parameter | In | Type |
|---|---|---|
Idempotency-Key (required)8-128 letters, digits or ._:-. A retry with the same key never acts twice. | header | string |
201 done202 held for approval: { approval_id, status: pending }400 401 403 404 409 429 500 501 502
GET /v1/messaging/accounts/{accountId}/posts/{postId}/comments/{commentId}/reactions Who liked a comment
| Parameter | In | Type |
|---|---|---|
cursornext_cursor from the previous page. | query | string |
limitItems per page (1-100; Instagram follower pages hold at most 25). | query | integer |
200 done400 401 403 404 429 500 501 502
POST /v1/messaging/accounts/{accountId}/posts/{postId}/comments/{commentId}/reactions React to a comment. LinkedIn accepts like, celebrate, support, love, insightful, funny. Instagram uses like. Sensitive write: it adds a publ…
React to a comment. LinkedIn accepts like, celebrate, support, love, insightful, funny. Instagram uses like. Sensitive write: it adds a public reaction to a comment. Ask the person to approve every call, with the exact recipient and content.
| Parameter | In | Type |
|---|---|---|
Idempotency-Key (required)A unique key per action (8 to 128 characters). A retry with the same key never acts twice. | header | string |
| Body field | Type |
|---|---|
reaction |
200 OK400 401 403 404 409 429 500 502
DELETE /v1/messaging/accounts/{accountId}/posts/{postId}/comments/{commentId}/reactions Unlike a comment
| Parameter | In | Type |
|---|---|---|
Idempotency-Key (required)8-128 letters, digits or ._:-. A retry with the same key never acts twice. | header | string |
201 done202 held for approval: { approval_id, status: pending }400 401 403 404 409 429 500 501 502
PATCH /v1/messaging/accounts/{accountId}/posts/{postId}/comments/{commentId} Edit your comment
| Parameter | In | Type |
|---|---|---|
Idempotency-Key (required)8-128 letters, digits or ._:-. A retry with the same key never acts twice. | header | string |
| Body field | Type |
|---|---|
text (required)The new text. | string |
201 done202 held for approval: { approval_id, status: pending }400 401 403 404 409 429 500 501 502
DELETE /v1/messaging/accounts/{accountId}/posts/{postId}/comments/{commentId} Delete a comment this account wrote on LinkedIn or Instagram. Counts toward the comment cap. Hiding someone else's comment is not available.
200 OK400 401 403 404 409 429 500 502
GET /v1/messaging/accounts/{accountId}/posts/{postId} One LinkedIn or Instagram post by id or social_id, with text, counts, whether the account liked it, and every photo and video (carousels inc…
One LinkedIn or Instagram post by id or social_id, with text, counts, whether the account liked it, and every photo and video (carousels included). Counts as browsing.
200 OK401 403 404 429 500 502
PATCH /v1/messaging/accounts/{accountId}/posts/{postId} Edit a caption
| Parameter | In | Type |
|---|---|---|
Idempotency-Key (required)8-128 letters, digits or ._:-. A retry with the same key never acts twice. | header | string |
| Body field | Type |
|---|---|
text (required)The new caption. | string |
201 done202 held for approval: { approval_id, status: pending }400 401 403 404 409 429 500 501 502
DELETE /v1/messaging/accounts/{accountId}/posts/{postId} Delete a post
201 done202 held for approval: { approval_id, status: pending }400 401 403 404 409 429 500 501 502
GET /v1/messaging/accounts/{accountId}/posts/{postId}/media Get a post's photos and videos
| Parameter | In | Type |
|---|---|---|
downloadOptional: the item to download (0-19). | query | integer |
200 done400 401 403 404 429 500 501 502
POST /v1/messaging/accounts/{accountId}/posts/{postId}/comments/{commentId}/hide Hide a comment
200 OK400 401 403 404 409 429 500 501 502
GET /v1/messaging/accounts/{accountId}/posts Posts on the connected LinkedIn or Instagram account. Use social_id for comments. Not available on Messenger, X, or WhatsApp. Pass view: 'su…
Posts on the connected LinkedIn or Instagram account. Use social_id for comments. Not available on Messenger, X, or WhatsApp. Pass view: 'summary' or fields for a shorter answer.
| Parameter | In | Type |
|---|---|---|
cursor | query | string |
limit | query | integer |
view | query | |
fields | query | string |
200 OK400 401 403 404 429 500 502
POST /v1/messaging/accounts/{accountId}/posts Publish a post as the account owner on LinkedIn or Instagram. LinkedIn: text up to 3,000 characters, optional images or videos and an extern…
Publish a post as the account owner on LinkedIn or Instagram. LinkedIn: text up to 3,000 characters, optional images or videos and an external_link preview; repost (a post id or social_id) reshares that post, with optional text and no media; as_organization (the numeric id of a company page the account administers) publishes as that page. Instagram: at least one image or video, a caption up to 2,200 characters, post_type feed or story, optional location. Polls are not available. Posts share the account action limits: on Instagram, 10 an hour and 100 a day with likes, comments, follows and new chats; on LinkedIn, about 100 a day with other actions. Images are fitted before publishing: on Instagram padded (never cropped) to between 4:5 and 1.91:1, at most 1440 px wide and 8 MB, stories to 9:16; on LinkedIn scaled down past 6012 px. The answer lists any change in media_adjustments. On LinkedIn, mention someone by writing @ and their profile link (@https://www.linkedin.com/in/jane-doe), or @[Name](link) to choose the name shown; a company page is @[Acme](https://www.linkedin.com/company/12345). Each person mentioned is one profile view, at most 10 per post. A text, comment or reaction counts as 1 action, a photo or file 2, a voice note 3, a video 5 (several attachments: the heaviest plus 1 per extra); the answer says actions_counted. Confirm the post with the person first. Sensitive write: it publishes a post. Ask the person to approve every call, with the exact recipient and content.
| Parameter | In | Type |
|---|---|---|
Idempotency-Key (required)A unique key per action (8 to 128 characters). A retry with the same key never acts twice. | header | string |
| Body field | Type |
|---|---|
text | string |
attachments | |
post_type | |
location | string |
external_link | string |
repost | string |
as_organization | string |
200 OK400 401 403 404 409 429 500 502
GET /v1/messaging/accounts/{accountId}/posts/{postId}/comments Comments on a LinkedIn or Instagram post (pass its social_id). Pass comment_id to list replies under that comment. Not available on Messenge…
Comments on a LinkedIn or Instagram post (pass its social_id). Pass comment_id to list replies under that comment. Not available on Messenger, X, or WhatsApp. Pass view: 'summary' or fields for a shorter answer.
| Parameter | In | Type |
|---|---|---|
comment_id | query | string |
cursor | query | string |
limit | query | integer |
view | query | |
fields | query | string |
200 OK400 401 403 404 429 500 502
POST /v1/messaging/accounts/{accountId}/posts/{postId}/comments Comment on a LinkedIn or Instagram post, or reply to a comment with comment_id. LinkedIn: 15 an hour and 100 a day. Instagram: 10 an hour an…
Comment on a LinkedIn or Instagram post, or reply to a comment with comment_id. LinkedIn: 15 an hour and 100 a day. Instagram: 10 an hour and 100 a day, inside the shared budget with likes, follows and new chats. These caps are separate from replies to people who wrote in. On LinkedIn, mention someone by writing @ and their profile link (@https://www.linkedin.com/in/jane-doe), or @[Name](link) to choose the name shown; a company page is @[Acme](https://www.linkedin.com/company/12345) with its numeric id. Each person mentioned is one profile view, at most 10 per comment. Confirm the text with the person first. Before you reply to a customer, read the business brief with get_business_brief and follow it: its facts, tone, never-promise rules and when to hand over to a person. Sensitive write: it publishes a comment or a reply to a comment. Ask the person to approve every call, with the exact recipient and content.
| Parameter | In | Type |
|---|---|---|
Idempotency-Key (required)A unique key per action (8 to 128 characters). A retry with the same key never acts twice. | header | string |
| Body field | Type |
|---|---|
text (required) | string |
comment_id | string |
200 OK400 401 403 404 409 429 500 502
POST /v1/messaging/accounts/{accountId}/posts/{postId}/comments/{commentId}/private-reply Instagram only. Sends a direct message to the comment author (author_id from the comment). Uses the message limits, not the comment cap. Lin…
Instagram only. Sends a direct message to the comment author (author_id from the comment). Uses the message limits, not the comment cap. LinkedIn, Messenger, X, and WhatsApp do not support this. Before you reply to a customer, read the business brief with get_business_brief and follow it: its facts, tone, never-promise rules and when to hand over to a person. Sensitive write: it sends a direct message to the person who commented. Ask the person to approve every call, with the exact recipient and content.
| Parameter | In | Type |
|---|---|---|
Idempotency-Key (required)A unique key per action (8 to 128 characters). A retry with the same key never acts twice. | header | string |
| Body field | Type |
|---|---|
author_id (required) | string |
text (required) | string |
200 OK400 401 403 404 409 429 500 502
Accounts: presence
PUT /v1/messaging/accounts/{accountId}/presence Set online status
| Body field | Type |
|---|---|
online (required)true for online, false for offline. | boolean |
200 done400 401 403 404 409 429 500 501 502
Accounts: profile
GET /v1/messaging/accounts/{accountId}/profile Your own profile
200 done401 403 404 429 500 501 502
PATCH /v1/messaging/accounts/{accountId}/profile Edit your profile
| Parameter | In | Type |
|---|---|---|
Idempotency-Key (required)8-128 letters, digits or ._:-. A retry with the same key never acts twice. | header | string |
| Body field | Type |
|---|---|
bioThe new bio (Instagram allows 150 characters). | string |
pictureA new profile picture: { file_name, mime_type, content_base64 }, a JPEG or PNG. | object |
201 done202 held for approval: { approval_id, status: pending }400 401 403 404 409 429 500 501 502
Accounts: proxy
PATCH /v1/messaging/accounts/{accountId}/proxy Update the proxy for this account.
| Parameter | In | Type |
|---|---|---|
Idempotency-Key (required)A unique key per action (8 to 128 characters). A retry with the same key never acts twice. | header | string |
| Body field | Type |
|---|---|
extra | object |
200 ok400 401 403 404 409 429 500 502
Accounts: reconnect
POST /v1/messaging/accounts/{accountId}/reconnect Start reconnecting an account that needs a sign-in.
| Parameter | In | Type |
|---|---|---|
Idempotency-Key (required)A unique key per action (8 to 128 characters). A retry with the same key never acts twice. | header | string |
| Body field | Type |
|---|---|
extra | object |
200 ok400 401 403 404 409 429 500 502
Accounts: reconnect link
POST /v1/messaging/accounts/{accountId}/reconnect-link postMessagingAccountsReconnectLink
200 OK400 401 403 404 409 429 500 502
Accounts: relations
GET /v1/messaging/accounts/{accountId}/relations List connections
| Parameter | In | Type |
|---|---|---|
cursor | query | string |
limit | query | integer |
200 ok400 401 403 404 429 500 501 502
DELETE /v1/messaging/accounts/{accountId}/relations/{identifier} Remove a connection
| Parameter | In | Type |
|---|---|---|
Idempotency-Key (required)8-128 letters, digits or ._:-. A retry with the same key never acts twice. | header | string |
201 done400 401 403 404 409 423 429 500 501 502
Accounts: restart
POST /v1/messaging/accounts/{accountId}/restart Restart a frozen account.
| Parameter | In | Type |
|---|---|---|
Idempotency-Key (required)A unique key per action (8 to 128 characters). A retry with the same key never acts twice. | header | string |
| Body field | Type |
|---|---|
extra | object |
200 ok400 401 403 404 409 429 500 502
Accounts: scheduled posts
GET /v1/messaging/accounts/{accountId}/scheduled-posts getMessagingAccountsScheduledPosts
200 OK401 403 404 429 500 502
POST /v1/messaging/accounts/{accountId}/scheduled-posts Publish a LinkedIn or Instagram post later: publish_at like 2026-11-03T09:00 in timezone. repeat weekly or monthly at the same local time, u…
Publish a LinkedIn or Instagram post later: publish_at like 2026-11-03T09:00 in timezone. repeat weekly or monthly at the same local time, until a date (2026-12-31) or time. first_comment is posted as a comment right after publishing. Same fields and rules as create_post. LinkedIn: text up to 3,000 characters, optional images or videos and an external_link preview; repost (a post id or social_id) reshares that post, with optional text and no media; as_organization (the numeric id of a company page the account administers) publishes as that page. Instagram: at least one image or video, a caption up to 2,200 characters, post_type feed or story, optional location. Polls are not available. Posts share the account action limits: on Instagram, 10 an hour and 100 a day with likes, comments, follows and new chats; on LinkedIn, about 100 a day with other actions. Images are fitted before publishing: on Instagram padded (never cropped) to between 4:5 and 1.91:1, at most 1440 px wide and 8 MB, stories to 9:16; on LinkedIn scaled down past 6012 px. The answer lists any change in media_adjustments. On LinkedIn, mention someone by writing @ and their profile link (@https://www.linkedin.com/in/jane-doe), or @[Name](link) to choose the name shown; a company page is @[Acme](https://www.linkedin.com/company/12345). Each person mentioned is one profile view, at most 10 per post. A text, comment or reaction counts as 1 action, a photo or file 2, a voice note 3, a video 5 (several attachments: the heaviest plus 1 per extra); the answer says actions_counted. Media goes in the request, at most 8 MB per scheduled post (over MCP keep it under about 1.5 MB; the REST route takes the full 8 MB). Each publish uses the same limits as create_post: a 429 delays it, a paused account stops it, and a retry never publishes twice. Confirm the post and time with the person first. Sensitive write: it schedules a post that is published at the chosen time. Ask the person to approve every call, with the exact recipient and content.
| Body field | Type |
|---|---|
text | string |
attachments | |
post_type | |
location | string |
external_link | string |
repost | string |
as_organization | string |
publish_at (required) | string |
timezone | string |
repeat | |
until | string |
first_comment | string |
200 OK400 401 403 404 409 429 500 502
Accounts: search
POST /v1/messaging/accounts/{accountId}/search Search LinkedIn
| Body field | Type |
|---|---|
keywords | string |
category | people | companies | posts | jobs |
api | classic | sales_navigator | recruiter |
filters | object |
urlA linkedin.com/search/results/..., /sales/search/... or /talent/search link. | string |
cursor | string |
limit | integer |
200 ok400 401 403 404 409 429 500 501 502
Accounts: sync
POST /v1/messaging/accounts/{accountId}/sync Resynchronize a LinkedIn account's messaging data.
| Parameter | In | Type |
|---|---|---|
Idempotency-Key (required)A unique key per action (8 to 128 characters). A retry with the same key never acts twice. | header | string |
| Body field | Type |
|---|---|
extra | object |
200 ok400 401 403 404 409 429 500 502
Accounts: users
GET /v1/messaging/accounts/{accountId}/users/{userId}/chat Find the chat with a person
200 done401 403 404 429 500 501 502
POST /v1/messaging/accounts/{accountId}/users/{userId}/follow Follow someone
| Parameter | In | Type |
|---|---|---|
Idempotency-Key (required)8-128 letters, digits or ._:-. A retry with the same key never acts twice. | header | string |
201 done202 held for approval: { approval_id, status: pending }400 401 403 404 409 429 500 501 502
DELETE /v1/messaging/accounts/{accountId}/users/{userId}/follow Unfollow someone
| Parameter | In | Type |
|---|---|---|
Idempotency-Key (required)8-128 letters, digits or ._:-. A retry with the same key never acts twice. | header | string |
201 done202 held for approval: { approval_id, status: pending }400 401 403 404 409 429 500 501 502
POST /v1/messaging/accounts/{accountId}/users/{userId}/block Block someone
201 done202 held for approval: { approval_id, status: pending }400 401 403 404 409 429 500 501 502
DELETE /v1/messaging/accounts/{accountId}/users/{userId}/block Unblock someone
201 done202 held for approval: { approval_id, status: pending }400 401 403 404 409 429 500 501 502
GET /v1/messaging/accounts/{accountId}/users/{userId}/presence Is someone online
200 done401 403 404 429 500 501 502
GET /v1/messaging/accounts/{accountId}/users/{userId}/comments Comments someone wrote
| Parameter | In | Type |
|---|---|---|
cursornext_cursor from the previous page. | query | string |
limitItems per page (1-100; Instagram follower pages hold at most 25). | query | integer |
200 done400 401 403 404 429 500 501 502
GET /v1/messaging/accounts/{accountId}/users/{userId}/reactions Likes someone gave
| Parameter | In | Type |
|---|---|---|
cursornext_cursor from the previous page. | query | string |
limitItems per page (1-100; Instagram follower pages hold at most 25). | query | integer |
200 done400 401 403 404 429 500 501 502
GET /v1/messaging/accounts/{accountId}/users/{identifier} Look up a profile
| Parameter | In | Type |
|---|---|---|
sectionsComma-separated: about, experience, education, skills, contact. | query | string |
api | query | classic | sales_navigator | recruiter |
200 ok400 401 403 404 429 500 501 502
GET /v1/messaging/accounts/{accountId}/users/{identifier}/posts Recent posts of a person or LinkedIn company, or an Instagram user by username (id, social_id, text, counts, media). Use social_id for comme…
Recent posts of a person or LinkedIn company, or an Instagram user by username (id, social_id, text, counts, media). Use social_id for comments, likes and get_post_media. Counts as browsing (LinkedIn 30 an hour and 100 a day, Instagram 10 an hour and 100 a day, shared with likes, comments, follows and new chats). Pass view: 'summary' or fields for a shorter answer.
| Parameter | In | Type |
|---|---|---|
cursor | query | string |
limit | query | integer |
view | query | |
fields | query | string |
200 OK400 401 403 404 429 500 502
ads
POST /v1/ads/accounts/{adAccountId}/rules Create an ad rule (create_ad_rule). A rule that can spend returns 202 confirmation_required and starts paused. Behind FEATURE_AD_RULES (ads …
Create an ad rule (create_ad_rule). A rule that can spend returns 202 confirmation_required and starts paused. Behind FEATURE_AD_RULES (ads early access): answers 404 NOT_ENABLED while it is off.
| Parameter | In | Type |
|---|---|---|
Idempotency-Key (required) | header | string |
| Body field | Type |
|---|---|
name (required) | string |
level (required) | campaign | ad_set | ad |
object_idsDefault: every object at this level that Spaces created. | string[] |
conditions (required) | object[] |
min_spend | number |
active_hoursIn the ad account's time zone. | object |
action (required) | object |
every_minutes | 30 | 60 |
201 rule202 rule, status confirmation_required, confirmation400 401 403 404 409 429 500
POST /v1/ads/accounts/{adAccountId}/rules/preview Which objects a rule would act on now, with their readings. Changes nothing (preview_ad_rule). Behind FEATURE_AD_RULES (ads early access): a…
Which objects a rule would act on now, with their readings. Changes nothing (preview_ad_rule). Behind FEATURE_AD_RULES (ads early access): answers 404 NOT_ENABLED while it is off.
| Body field | Type |
|---|---|
name | string |
level | campaign | ad_set | ad |
object_idsDefault: every object at this level that Spaces created. | string[] |
conditions | object[] |
min_spend | number |
active_hoursIn the ad account's time zone. | object |
action | object |
every_minutes | 30 | 60 |
rule_id | string |
200 summary, currency, in_active_hours, matched, results [{object_id, name, level, readings, matched, outcome, detail}]400 401 403 404 409 429 500
GET /v1/ads/rules Ad rules (list_ad_rules). Behind FEATURE_AD_RULES (ads early access): answers 404 NOT_ENABLED while it is off.
| Parameter | In | Type |
|---|---|---|
ad_account_id | query | string |
200 rules [{id, ad_account_id, name, level, object_ids, conditions, min_spend, active_hours, action, every_minutes, status, paused_reason, approved, summary, last_run_at, next_run_at}]400 401 403 429 500
PATCH /v1/ads/rules/{ruleId} Pause, turn on or change an ad rule (update_ad_rule). A change to a rule that can spend asks for approval again. Behind FEATURE_AD_RULES (ad…
Pause, turn on or change an ad rule (update_ad_rule). A change to a rule that can spend asks for approval again. Behind FEATURE_AD_RULES (ads early access): answers 404 NOT_ENABLED while it is off.
| Body field | Type |
|---|---|
name | string |
level | campaign | ad_set | ad |
object_idsDefault: every object at this level that Spaces created. | string[] |
conditions | object[] |
min_spend | number |
active_hoursIn the ad account's time zone. | object |
action | object |
every_minutes | 30 | 60 |
status | active | paused |
200 rule202 confirmation_required400 401 403 404 409 429 500
DELETE /v1/ads/rules/{ruleId} Delete an ad rule (delete_ad_rule). Behind FEATURE_AD_RULES (ads early access): answers 404 NOT_ENABLED while it is off.
200 id, deleted400 401 403 404 409 429 500
GET /v1/ads/rule-runs Runs of ad rules, newest first (list_ad_rule_runs). Behind FEATURE_AD_RULES (ads early access): answers 404 NOT_ENABLED while it is off.
| Parameter | In | Type |
|---|---|---|
rule_id | query | string |
limit | query | integer |
200 runs [{id, rule_id, started_at, finished_at, status, matched, acted, note, results}]400 401 403 429 500
GET /v1/ads/conversion-forwarding Whether outcomes go to a Meta pixel (get_ad_conversion_forwarding). Behind FEATURE_ADS_CONVERSIONS (ads early access): answers 404 NOT_ENABL…
Whether outcomes go to a Meta pixel (get_ad_conversion_forwarding). Behind FEATURE_ADS_CONVERSIONS (ads early access): answers 404 NOT_ENABLED while it is off.
200 enabled, ad_account_id, pixel_id, kinds, events, enabled_at, last_sent_at, last_error401 403 429 500
PATCH /v1/ads/conversion-forwarding Send orders and leads won to a Meta pixel as Purchase and Lead, with hashed email and phone (set_ad_conversion_forwarding). Turning it on ne…
Send orders and leads won to a Meta pixel as Purchase and Lead, with hashed email and phone (set_ad_conversion_forwarding). Turning it on needs confirm: true. Behind FEATURE_ADS_CONVERSIONS (ads early access): answers 404 NOT_ENABLED while it is off.
| Body field | Type |
|---|---|
ad_account_id | string |
pixel_id | string |
kinds | order | lead_won[] |
enabled (required) | boolean |
confirm | boolean |
200 the forwarding setting400 401 403 409 429 500
POST /v1/ads/accounts/{adAccountId}/click-to-chat A Meta ad whose button opens a WhatsApp, Messenger or Instagram Direct chat with one of your connected accounts (launch_click_to_chat_ad). C…
A Meta ad whose button opens a WhatsApp, Messenger or Instagram Direct chat with one of your connected accounts (launch_click_to_chat_ad). Checks the account can be the chat (CHAT_DESTINATION_INVALID otherwise), builds the campaign, ad set and ad paused, then answers 202 confirmation_required: nothing spends until confirm_ad_change, inside your caps. Behind FEATURE_CLICK_TO_CHAT_ADS (ads early access): answers 404 NOT_ENABLED while it is off.
| Parameter | In | Type |
|---|---|---|
Idempotency-Key (required) | header | string |
| Body field | Type |
|---|---|
destination (required) | whatsapp | messenger | instagram |
account_id (required)The connected account the chat opens with. | string |
page_id (required)A Page from list_ad_pages. | string |
name (required) | string |
objectiveDefault engagement. Instagram has no leads. | engagement | leads | sales | traffic |
daily_budget | number |
lifetime_budget | number |
start_time | string |
end_time | string |
targeting (required) | object |
image_hash (required) | string |
message (required) | string |
headline | string |
greeting | string |
ice_breakers | string[] |
prefill_textWhatsApp only: the message typed in for the person. | string |
special_ad_categories | string[] |
dsa_beneficiary | string |
dsa_payor | string |
202 {campaign_id, ad_set_id, ad_id, creative_id, destination, account_id, status: confirmation_required, confirmation, next}400 401 403 404 409 429 500
agents
GET /v1/agents Every AI agent with access to this workspace (each sign-in or API key): its name, status (active, paused or revoked), last use, permissions,…
Every AI agent with access to this workspace (each sign-in or API key): its name, status (active, paused or revoked), last use, permissions, the accounts it may use, its daily share and what it used today. Read-only.
200 OK401 403 429 500
PATCH /v1/agents/{keyId} Change another agent’s permissions (read is always on; reply, post, accounts, ads; post needs reply), the accounts it may use (account_ids, …
Change another agent’s permissions (read is always on; reply, post, accounts, ads; post needs reply), the accounts it may use (account_ids, or null for every account) and its daily share (daily_caps: messages and actions a day, null for no extra limit; the account caps always apply too). You can only give permissions you have yourself, never agents, and never change your own access. Confirm the change with the person first.
| Body field | Type |
|---|---|
permissions | object |
account_ids | |
daily_caps |
200 OK400 401 403 404 409 429 500
DELETE /v1/agents/{keyId} Remove another agent for good: its key stops working and its sign-in tokens are deleted, so it cannot refresh. It has to be connected again …
Remove another agent for good: its key stops working and its sign-in tokens are deleted, so it cannot refresh. It has to be connected again to come back. Confirm with the person first.
200 OK400 401 403 404 409 429 500
POST /v1/agents/{keyId}/pause Stop another agent right away: everything it asks for, reads included, is refused with AGENT_PAUSED until resume_agent. Its scheduled work w…
Stop another agent right away: everything it asks for, reads included, is refused with AGENT_PAUSED until resume_agent. Its scheduled work waits. Confirm with the person first.
200 OK400 401 403 404 409 429 500
POST /v1/agents/{keyId}/resume Undo pause_agent: the agent works again within its permissions and daily share. Confirm with the person first.
200 OK400 401 403 404 409 429 500
GET /v1/agents/{keyId}/activity The last 20 things one agent did: replies, new chats, posts, comments, likes, invitations, account links and settings, newest first. No mess…
The last 20 things one agent did: replies, new chats, posts, comments, likes, invitations, account links and settings, newest first. No message text. Read-only.
200 OK401 403 404 429 500
analytics
GET /v1/analytics/overview Replies, conversations, new contacts, posts, link clicks, actions used and outcomes by day or week, with totals and per-post timelines, from…
Replies, conversations, new contacts, posts, link clicks, actions used and outcomes by day or week, with totals and per-post timelines, from Spaces' own records (get_analytics_overview). Untracked metrics are null, never 0.
| Parameter | In | Type |
|---|---|---|
account_idsComma list of account ids. | query | string |
fromA date, inclusive. | query | string |
toA date, inclusive. | query | string |
group_by | query | day | week |
tagsComma list: chats and contacts with any of these tags. | query | string |
source | query | agent | automation |
timezoneDefault: the workspace time zone, then UTC. | query | string |
viewsummary: a compact item shape (ids, names, times, status, text cut to 160 characters) to save tokens. full (default): everything. | query | summary | full |
fieldsComma-separated item fields to keep, such as id,name,last_message (a.b reaches one level down). id is always kept. | query | string |
200 from, to, timezone, group_by, totals {replies, conversations, new_contacts, posts, link_clicks, actions_used, outcomes}, series [{start, ...metrics}], untracked {metric: reason}, posts [{post_id, account_id, channel, posted_at, timeline [{day, reactions, comments, reposts, impressions, clicks}]}], inbox {messages_received, median_first_response_seconds, ai_agent_median_first_response_seconds, person_median_first_response_seconds, ai_agent_share, waiting}400 401 403 429 500
GET /v1/analytics/changes Only the metric rows that changed since the cursor (get_analytics_changes).
| Parameter | In | Type |
|---|---|---|
since_cursornext_cursor of the last answer; leave out the first time. | query | string |
account_id | query | string |
limit | query | integer |
200 changes [{kind daily: account_id, day, metric, value} or {kind post: account_id, day, post_id, channel, stats}], next_cursor, has_more400 401 403 429 500
GET /v1/analytics/inbox Messages by day and hour, median first-response time for the AI agent, people and automations, the share the AI agent handled, and who is wa…
Messages by day and hour, median first-response time for the AI agent, people and automations, the share the AI agent handled, and who is waiting, from Spaces' own copy of the inbox (get_inbox_analytics). null when there is nothing to measure.
| Parameter | In | Type |
|---|---|---|
fromA date, inclusive. | query | string |
toA date, inclusive. | query | string |
account_id | query | string |
timezoneDefault: the workspace time zone, then UTC. | query | string |
viewsummary: a compact item shape (ids, names, times, status, text cut to 160 characters) to save tokens. full (default): everything. | query | summary | full |
fieldsComma-separated item fields to keep, such as id,name,last_message (a.b reaches one level down). id is always kept. | query | string |
200 from, to, timezone, volume {by_day [{day, messages, conversations}], by_hour [{hour, messages}], messages_received}, first_response {median_seconds, ai_agent {median_seconds, count}, person {...}, automation {...}}, handled {conversations_answered, ai_agent_share}, waiting {count, oldest [{account_id, chat_id, waiting_since, waiting_seconds}]}400 401 403 429 500
GET /v1/messaging/analytics/posts getPostAnalytics
200 OK401 403 429 500
approvals
GET /v1/messaging/approvals Writes waiting for approval
| Parameter | In | Type |
|---|---|---|
status | query | pending | approving | sent | rejected | failed |
limit | query | integer |
200 approvals400 401 403 429 500
POST /v1/messaging/approvals/{approval_id}/approve Send a pending approval through the normal path, optionally with edited text. Needs accounts:manage.
| Body field | Type |
|---|---|
text | string |
200 sent400 401 403 404 409 429 500
POST /v1/messaging/approvals/{approval_id}/reject Close a pending approval without sending it. Needs accounts:manage.
| Body field | Type |
|---|---|
reason | string |
200 rejected400 401 403 404 409 429 500
best posting times
GET /v1/best-posting-times The weekdays and hours that worked best for an account's own posts, in the owner's time zone, each with the posts behind it and a reason. Wi…
The weekdays and hours that worked best for an account's own posts, in the owner's time zone, each with the posts behind it and a reason. With too few posts it says so and names no times. Instagram, LinkedIn, a Facebook Page and TikTok. Read only.
| Parameter | In | Type |
|---|---|---|
account_id (required) | query | string |
days | query | integer |
timezone | query | string |
page_idFacebook: the Page, when the connection manages several. | query | string |
200 enough_data, best_days [{day, posts, relative_engagement, reason}], best_hours [{hour, window, posts, relative_engagement, reason}], summary, fallback400 401 403 429 500
billing
GET /v1/messaging/billing Plan status
200 billing401 403 429 500
POST /v1/messaging/billing/checkout Get a link to add a card (Pay as you go)
| Body field | Type |
|---|---|
success_url (required) | string |
cancel_url (required) | string |
plan | |
interval | |
spend_cap_usd |
201 url: a Stripe link where the person adds a card; adding it moves the workspace to Pay as you go ($19 a month per account, 6,000 actions a month per account (200 a day) included and pooled, then $0.005 per action). Body: plan payg, interval month or year, success_url, cancel_url, and optional spend_cap_usd (a monthly limit for usage, or null for no limit). An existing subscription changes plan instead: 200 with updated true and url null. Coming soon (503 NOT_CONFIGURED) until the price exists.400 401 403 409 429 500
PUT /v1/messaging/billing/spend-cap Set or remove the monthly limit for usage on Pay as you go, after the owner says yes
| Body field | Type |
|---|---|
spend_cap_usd (required) | |
owner_confirmed (required) |
200 The set_spend_cap tool. Body: spend_cap_usd, a dollar amount of at least 1, or null for no limit, and owner_confirmed true, sent only after the workspace owner said yes (otherwise 400 OWNER_CONFIRMATION_REQUIRED and nothing changes). The key must be made by someone who manages billing (otherwise 403 FORBIDDEN_ROLE). Answers spend_cap_usd. Account fees never count toward it; at the limit, billable actions answer 402 SPEND_CAP_REACHED until the month resets. get_messaging_billing shows the current limit as spend_cap.cap_usd.400 401 403 409 429 500
POST /v1/messaging/billing/promo-code postMessagingBillingPromoCode
200 OK400 401 403 409 429 500
POST /v1/messaging/billing/card postMessagingBillingCard
200 OK400 401 403 409 429 500
POST /v1/messaging/billing/card/confirm postMessagingBillingCardConfirm
200 OK400 401 403 409 429 500
POST /v1/messaging/billing/free/keep postMessagingBillingFreeKeep
200 OK400 401 403 409 429 500
POST /v1/billing/cancel/start Start the cancel flow. It has three steps: the reason (with the one offer that fits it, if any), decline (what happens), then confirm_cancel…
Start the cancel flow. It has three steps: the reason (with the one offer that fits it, if any), decline (what happens), then confirm_cancel. Returns the end date and the reasons. Ask the workspace owner and wait for their answer before every call. Pass owner_confirmed true only after they answer this step. There is no tool that cancels in one step. The next call is submit_cancel_step with action reason.
| Body field | Type |
|---|---|
owner_confirmed (required) |
200 OK400 401 403 409 429 500
GET /v1/billing/cancel/{flowId} The step this cancel flow is on (loss, reason or confirm), and the one offer to show. Read-only. Confirm is refused until the offer has been…
The step this cancel flow is on (loss, reason or confirm), and the one offer to show. Read-only. Confirm is refused until the offer has been declined.
200 OK401 403 404 429 500
POST /v1/billing/cancel/{flowId}/step Send the owner's answer for the current step only. action reason needs reason (details is an optional note) and returns the one offer that f…
Send the owner's answer for the current step only. action reason needs reason (details is an optional note) and returns the one offer that fits, if any; send it again to change the reason. action decline turns the offer down and moves to confirm. action accept_discount, pause (months), extend_trial, or downgrade (plan) takes that offer and ends the flow. action message sends a note to the team when the offer is help. action follow_up (text) is still accepted and stores a note. Ask the workspace owner and wait for their answer before every call. Pass owner_confirmed true only after they answer this step. There is no tool that cancels in one step.
| Body field | Type |
|---|---|
owner_confirmed (required) | |
action (required) | |
reason | |
details | string |
text | string |
months | |
plan |
200 OK400 401 403 404 409 429 500
POST /v1/billing/cancel/{flowId}/confirm Cancel only when get_cancel_flow says can_confirm. The plan keeps working until the period ends, accounts stay connected and nothing is dele…
Cancel only when get_cancel_flow says can_confirm. The plan keeps working until the period ends, accounts stay connected and nothing is deleted. They can undo until then. Ask the workspace owner and wait for their answer before every call. Pass owner_confirmed true only after they answer this step. There is no tool that cancels in one step.
| Body field | Type |
|---|---|
owner_confirmed (required) |
200 OK400 401 403 404 409 429 500
broadcasts
GET /v1/messaging/broadcasts Broadcasts
| Parameter | In | Type |
|---|---|---|
viewsummary: a compact item shape (ids, names, times, status, text cut to 160 characters) to save tokens. full (default): everything. | query | summary | full |
fieldsComma-separated item fields to keep, such as id,name,last_message (a.b reaches one level down). id is always kept. | query | string |
200 ok401 403 429 500
POST /v1/messaging/broadcasts Draft one message to a tag audience. Sends nothing; returns audience_count
| Body field | Type |
|---|---|
account_id (required) | string |
name (required) | string |
text (required) | string |
audience (required) | object |
send_at | string |
timezone | string |
201 broadcast400 401 403 409 429 500
GET /v1/messaging/broadcasts/{broadcastId} Broadcast with pending, sent, failed and skipped counts, problems by error category with what to do, and delivery (sent, delivered, read, re…
Broadcast with pending, sent, failed and skipped counts, problems by error category with what to do, and delivery (sent, delivered, read, replied, failed)
200 broadcast {..., recipients {pending, sent, failed, skipped}, delivery {sent, delivered, read, replied, failed, since}}, problems [{category, count, next}]401 403 404 429 500
POST /v1/messaging/broadcasts/{broadcastId}/send Send a draft, paced, through the normal limits. Needs confirm: true
| Body field | Type |
|---|---|
confirm (required) | boolean |
202 sending400 401 403 404 409 429 500
POST /v1/messaging/broadcasts/{broadcastId}/cancel Stop a broadcast; anyone still waiting is skipped
200 ok400 401 403 404 409 429 500
GET /v1/messaging/broadcasts/{broadcastId}/recipients Each person of a broadcast, failed and skipped first, with status, error_category, reason and what to do next (list_broadcast_recipients)
| Parameter | In | Type |
|---|---|---|
status | query | pending | sent | failed | skipped |
error_category | query | opted_out | outside_24h_window | not_opted_in | limit | account_unavailable | platform_refused | … |
limit | query | integer |
offset | query | integer |
viewsummary: a compact item shape (ids, names, times, status, text cut to 160 characters) to save tokens. full (default): everything. | query | summary | full |
fieldsComma-separated item fields to keep, such as id,name,last_message (a.b reaches one level down). id is always kept. | query | string |
200 broadcast_id, recipients [{contact_id, name, status, error_category, reason, next, updated_at}], next_offset400 401 403 404 429 500
chat links
GET /v1/chat-links Chat links, newest first, with clicks and chats started (list_chat_links).
| Parameter | In | Type |
|---|---|---|
account_id | query | string |
limit | query | integer |
200 chat_links [{id, account_id, channel, handle, source, prefill_text, url, short_url, qr_svg_url, qr_png_url, opens_chat, attribution (prefill_code, ref or clicks_only), note, clicks, chats_started, last_click_at, last_chat_at, created_at}]400 401 403 429 500
POST /v1/chat-links A link and QR code that open a chat with one of your accounts (create_chat_link). WhatsApp opens wa.me with prefill_text typed, Instagram ig…
A link and QR code that open a chat with one of your accounts (create_chat_link). WhatsApp opens wa.me with prefill_text typed, Instagram ig.me, Messenger m.me; LinkedIn opens the profile (opens_chat false). short_url counts clicks; with source, the first message that brings the code back credits the chat and tags the contact source:<source>. The same account, source and text give back the same link (200 instead of 201). Sends nothing.
| Body field | Type |
|---|---|
account_id (required) | string |
prefill_textWhatsApp only: the message already typed for the person. | string |
sourceWhere the link is placed, such as qr-shop-window. | string |
handleThe number, username, Page or LinkedIn profile URL, when Spaces does not know it (HANDLE_REQUIRED). | string |
200 The same link already existed: {id, account_id, channel, handle, source, prefill_text, url, short_url, qr_svg_url, qr_png_url, opens_chat, attribution (prefill_code, ref or clicks_only), note, clicks, chats_started, last_click_at, last_chat_at, created_at}201 {id, account_id, channel, handle, source, prefill_text, url, short_url, qr_svg_url, qr_png_url, opens_chat, attribution (prefill_code, ref or clicks_only), note, clicks, chats_started, last_click_at, last_chat_at, created_at}400 401 403 409 429 500
GET /v1/chat-links/{linkId}/stats Clicks and chats started from one chat link by UTC day (get_chat_link_stats).
| Parameter | In | Type |
|---|---|---|
days | query | integer |
200 {link, days, clicks, chats_started, chat_rate, by_day [{date, clicks, chats_started}]}400 401 403 404 429 500
clients
GET /v1/clients List an agency's clients
200 agency, clients401 403 404 429 500
POST /v1/clients Add a client
| Body field | Type |
|---|---|
name (required) | string |
external_id | string |
201 client400 401 403 409 429 500
GET /v1/clients/usage Usage per client
| Parameter | In | Type |
|---|---|---|
month | query | string |
200 month, clients (accounts, actions)400 401 403 429 500
PATCH /v1/clients/{client_id} Rename a client or change its external_id
| Body field | Type |
|---|---|
name | string |
external_id | string |
200 client400 401 403 404 409 429 500
POST /v1/clients/{client_id}/archive Archive a client
200 client {id, name, external_id, archived_at}, accounts, note400 401 403 404 409 429 500
POST /v1/clients/{client_id}/restore Restore an archived client
200 client {id, name, external_id, archived_at}, accounts, note400 401 403 404 409 429 500
POST /v1/clients/{client_id}/connect-link Link for a client to connect their own account
| Body field | Type |
|---|---|
channel | instagram | whatsapp | linkedin | messenger |
201 url, expires_at400 401 403 404 409 429 500
POST /v1/clients/{client_id}/approval-link Link for a client to approve or reject what is waiting
201 url, expires_at400 401 403 404 409 429 500
contacts
GET /v1/messaging/contacts Contacts, created automatically from DMs and comments or by hand. Filter by tag, search, opted_out or clicked_link
| Parameter | In | Type |
|---|---|---|
clicked_linkThe label or code of a tracked link: the people who opened it from a DM. | query | string |
viewsummary: a compact item shape (ids, names, times, status, text cut to 160 characters) to save tokens. full (default): everything. | query | summary | full |
fieldsComma-separated item fields to keep, such as id,name,last_message (a.b reaches one level down). id is always kept. | query | string |
200 ok400 401 403 429 500
POST /v1/messaging/contacts Add a contact with tags and custom fields
| Body field | Type |
|---|---|
account_id (required) | string |
name | string |
phone | string |
external_id | string |
username | string |
chat_id | string |
email | string |
tags | |
fields | object |
201 contact400 401 403 409 429 500
GET /v1/messaging/contacts/{contactId} One contact
200 ok401 403 404 429 500
PATCH /v1/messaging/contacts/{contactId} Change details, fields, tags (tags, add_tags, remove_tags) or opted_out
| Body field | Type |
|---|---|
name | |
phone | |
username | |
email | |
fields | object |
tags | |
add_tags | object |
remove_tags | object |
opted_out | boolean |
200 ok400 401 403 404 409 429 500
DELETE /v1/messaging/contacts/{contactId} Delete a contact and end their sequences
200 ok400 401 403 404 409 429 500
POST /v1/messaging/contacts/import Import up to 5,000 contacts of one account, from rows or CSV text. Upserts by external_id, then username, then phone. Returns totals and a r…
Import up to 5,000 contacts of one account, from rows or CSV text. Upserts by external_id, then username, then phone. Returns totals and a result per row (row number and reason for errors). dry_run saves nothing. Never messages anyone; opted-out contacts stay opted out.
| Body field | Type |
|---|---|
account_id (required) | string |
rows | object[] |
csvCSV text with a header line, instead of rows. tags are split on ; and any other column becomes a field. | string |
dry_runtrue checks and matches every row and saves nothing. | boolean |
200 the same, for a dry run201 dry_run, totals {rows, created, updated, errors, opted_out}, results [{row, status, contact_id, matched_by, opted_out, reason}]400 401 403 409 429 500
conversions
GET /v1/conversions/webhook Read the conversion webhook
200 url, stripe_connected, last_received_at (no secret)401 403 429 500
POST /v1/conversions/webhook Create or replace the conversion webhook
201 url and secret400 401 403 409 429 500
PUT /v1/conversions/webhook/stripe Save the Stripe signing secret
| Body field | Type |
|---|---|
signing_secret (required)The whsec_ value Stripe shows for the endpoint, or null. | string |
200 stripe_connected400 401 403 409 429 500
POST /v1/conversions/{token} Report a conversion from another tool
| Body field | Type |
|---|---|
kind | booked | order | lead_won | resolved | other |
amount | number |
currency | string |
email | string |
phone | string |
note | string |
id | string |
occurred_at | string |
200 received, recorded, duplicate, matched_contact400 401 403 404 409 429 500
events
GET /v1/events New messages and events, without polling the platform. Returns at once when there are events after the cursor, and otherwise waits up to wai…
New messages and events, without polling the platform. Returns at once when there are events after the cursor, and otherwise waits up to wait seconds (at most 50) for the first one. Never touches the platform. Needs read.
| Parameter | In | Type |
|---|---|---|
afternext_cursor from the last answer, or now to skip the backlog. Without it the stream continues from where this key got to (the first time, the last 24 hours). | query | string |
waitSeconds to wait for the first event. | query | number |
typesComma list of event types: message.received, message.read, message.reaction, message.edited, message.deleted, comment.received, invitation.received, invitation.accepted, follower.new, account.status, account.resting, post.published, post.failed, post.deleted. | query | string |
account_idOnly this account's events. | query | string |
limitEvents per page. | query | integer |
200 events400 401 403 429 500 503
GET /v1/events/webhooks The event webhooks of this key, without secrets.
200 webhooks401 403 429 500
POST /v1/events/webhooks Send each new event this key may read to your URL as a signed POST (Spacesos-Signature). The secret is shown once. Retried with backoff for …
Send each new event this key may read to your URL as a signed POST (Spacesos-Signature). The secret is shown once. Retried with backoff for about a day; turned off after 50 events fail in a row. At most 3 per key. Needs read.
| Body field | Type |
|---|---|
url (required)An https URL on a public host. | string |
events | message.received | message.read | message.reaction | message.edited | message.deleted | comment.received | …[] |
account_id | string |
201 webhook, with its secret400 401 403 409 429 500
DELETE /v1/events/webhooks/{webhookId} Remove one event webhook of this key.
200 deleted400 401 403 404 409 429 500
POST /v1/events/webhooks/{webhookId}/test Send one signed example event to one of this key's webhooks now, in the event-stream shape with test: true, and get the status your server a…
Send one signed example event to one of this key's webhooks now, in the event-stream shape with test: true, and get the status your server answered with. Needs read.
| Body field | Type |
|---|---|
typeAn event type this webhook can follow. Default message.received. | string |
200 OK400 401 403 404 409 429 500
GET /v1/events/webhooks/{webhookId}/deliveries The delivery log of one of this key's webhooks for the past week, newest first: event, status, your server's status code and attempts. Never…
The delivery log of one of this key's webhooks for the past week, newest first: event, status, your server's status code and attempts. Never a message body. Needs read.
| Parameter | In | Type |
|---|---|---|
limitHow many, 1 to 200. | query | integer |
cursorThe next_cursor of the last page. | query | string |
200 OK400 401 403 404 429 500
feedback
POST /v1/feedback Tell the Spaces team about a bug, a gap or an idea.
| Body field | Type |
|---|---|
message (required) | string |
kind | string |
request_id | string |
200 OK400 401 403 409 429 500
firewall
GET /v1/messaging/firewall Prompt-injection firewall: mode, last 7 days and whether this caller can change it (people only)
200 status401 403 429 500
GET /v1/messaging/firewall/events Messages and text the firewall blocked or flagged, with reasons and never the original text
| Parameter | In | Type |
|---|---|---|
status | query | |
verdict | query | |
limit | query | integer |
offset | query | integer |
200 events400 401 403 429 500
POST /v1/messaging/firewall/check Dry run: would this text be blocked? Returns a verdict and reasons, logs nothing
| Body field | Type |
|---|---|
text (required) | string |
200 verdict400 401 403 409 429 500
inbox
GET /v1/messaging/inbox Chats across all accounts in one list, from Spaces' own copy
| Parameter | In | Type |
|---|---|---|
viewsummary: a compact item shape (ids, names, times, status, text cut to 160 characters) to save tokens. full (default): everything. | query | summary | full |
fieldsComma-separated item fields to keep, such as id,name,last_message (a.b reaches one level down). id is always kept. | query | string |
200 ok401 403 429 500
integrations
GET /v1/integrations/{account_id}/tiktok/account Your TikTok account: its name, followers, total likes and videos. Give a date range to also see views, likes, comments and new followers ove…
Your TikTok account: its name, followers, total likes and videos. Give a date range to also see views, likes, comments and new followers over those days.
| Parameter | In | Type |
|---|---|---|
start_dateFirst day, like 2026-10-01. Optional, with end_date. | query | string |
end_dateLast day, like 2026-10-31. Optional, with start_date. | query | string |
200 account, and totals when a date range is given400 401 403 404 429 500
GET /v1/integrations/{account_id}/tiktok/videos Your TikTok videos, newest first, with the caption, link, views, likes and comments.
| Parameter | In | Type |
|---|---|---|
limit | query | integer |
cursor | query | string |
200 videos and next_cursor400 401 403 404 429 500
POST /v1/integrations/{account_id}/tiktok/videos Post a video to TikTok from a public link, with a caption. Checks the account's current settings (creator info) first and refuses a post tha…
Post a video to TikTok from a public link, with a caption. Checks the account's current settings (creator info) first and refuses a post that does not fit them. The owner chooses who can see it and approves the exact post first.
| Parameter | In | Type |
|---|---|---|
Idempotency-Key (required) | header | string |
| Body field | Type |
|---|---|
video_url (required)A public https:// link to the video file (MP4 or MOV). | string |
caption | string |
privacy_level (required)Who can see the post, chosen by the owner. Only options the account allows are accepted. | PUBLIC_TO_EVERYONE | MUTUAL_FOLLOW_FRIENDS | FOLLOWER_OF_CREATOR | SELF_ONLY |
promotes_own_business | boolean |
paid_partnership | boolean |
allow_comments | boolean |
ai_generated | boolean |
allow_duetOff unless the owner asks; refused when the account has Duet off. | boolean |
allow_stitchOff unless the owner asks; refused when the account has Stitch off. | boolean |
video_duration_secThe video length; a video longer than the account may post is refused. | integer |
cover_timestamp_msThe frame used as the cover, in milliseconds from the start. | integer |
owner_approved (required)Must be true after the owner has seen the exact post or reply. Nothing is sent otherwise. | boolean |
200 publish_id and status processing400 401 403 404 409 429 500
POST /v1/integrations/{account_id}/tiktok/photos Post up to 35 photos to TikTok as one swipeable post, with a title and caption. The owner chooses who can see it and approves the exact post…
Post up to 35 photos to TikTok as one swipeable post, with a title and caption. The owner chooses who can see it and approves the exact post first.
| Parameter | In | Type |
|---|---|---|
Idempotency-Key (required) | header | string |
| Body field | Type |
|---|---|
photo_urls (required) | string[] |
title | string |
caption | string |
privacy_level (required)Who can see the post, chosen by the owner. Only options the account allows are accepted. | PUBLIC_TO_EVERYONE | MUTUAL_FOLLOW_FRIENDS | FOLLOWER_OF_CREATOR | SELF_ONLY |
promotes_own_business | boolean |
paid_partnership | boolean |
allow_comments | boolean |
add_music | boolean |
owner_approved (required)Must be true after the owner has seen the exact post or reply. Nothing is sent otherwise. | boolean |
cover_indexWhich photo is the cover (0 is the first). | integer |
200 publish_id and status processing400 401 403 404 409 429 500
POST /v1/integrations/{account_id}/tiktok/scheduled-posts Post a TikTok video or photos later. Spaces keeps the post and publishes it at publish_at through the TikTok video or photo post, with the s…
Post a TikTok video or photos later. Spaces keeps the post and publishes it at publish_at through the TikTok video or photo post, with the same limits and action counting.
| Body field | Type |
|---|---|
video_url | string |
photo_urls | string[] |
caption | string |
title | string |
privacy_level (required) | PUBLIC_TO_EVERYONE | MUTUAL_FOLLOW_FRIENDS | FOLLOWER_OF_CREATOR | SELF_ONLY |
promotes_own_business | boolean |
paid_partnership | boolean |
allow_comments | boolean |
ai_generated | boolean |
add_music | boolean |
publish_at (required)Local time like 2026-11-20T09:00 in timezone. | string |
timezone | string |
owner_approved (required)Must be true after the owner has approved the exact post, its time and the privacy choice. Nothing is scheduled otherwise. | boolean |
201 scheduled_post400 401 403 404 409 429 500
GET /v1/integrations/{account_id}/tiktok/creator-info What this TikTok account may post right now: privacy options, whether comments, Duet and Stitch can be turned on, and the longest video. Eve…
What this TikTok account may post right now: privacy options, whether comments, Duet and Stitch can be turned on, and the longest video. Every post is checked against it.
200 creator, privacy_level_options, comments_allowed, duet_allowed, stitch_allowed, max_video_duration_sec401 403 404 429 500
POST /v1/integrations/{account_id}/facebook/pages/{page_id}/comments/{comment_id}/hide Hide a comment on a Page post (no approval needed; counts as an action).
| Parameter | In | Type |
|---|---|---|
Idempotency-Key (required) | header | string |
200 hidden true400 401 403 404 409 429 500
DELETE /v1/integrations/{account_id}/facebook/pages/{page_id}/comments/{comment_id}/hide Show a hidden comment again.
| Parameter | In | Type |
|---|---|---|
Idempotency-Key (required) | header | string |
200 hidden false400 401 403 404 409 429 500
DELETE /v1/integrations/{account_id}/facebook/pages/{page_id}/comments/{comment_id} Delete a comment on a Page post for good.
| Parameter | In | Type |
|---|---|---|
Idempotency-Key (required) | header | string |
200 deleted true400 401 403 404 409 429 500
POST /v1/integrations/{account_id}/facebook/pages/{page_id}/comments/{comment_id}/likes Like a comment as the Page.
| Parameter | In | Type |
|---|---|---|
Idempotency-Key (required) | header | string |
200 liked true400 401 403 404 409 429 500
POST /v1/integrations/{account_id}/facebook/pages/{page_id}/comments/{comment_id}/replies Reply to a comment as the Page with text, an image, or both. The Page owner approves the exact reply first.
| Parameter | In | Type |
|---|---|---|
Idempotency-Key (required) | header | string |
| Body field | Type |
|---|---|
text | string |
image_urlA public https address of an image. | string |
owner_approved (required)Must be true after the owner has seen the exact post or reply. Nothing is sent otherwise. | boolean |
200 id400 401 403 404 409 429 500
PATCH /v1/integrations/{account_id}/facebook/pages/{page_id}/posts/{post_id} Change the text of a Page post. The Page owner approves the exact new text first.
| Parameter | In | Type |
|---|---|---|
Idempotency-Key (required) | header | string |
| Body field | Type |
|---|---|
text (required) | string |
owner_approved (required)Must be true after the owner has seen the exact post or reply. Nothing is sent otherwise. | boolean |
200 edited true400 401 403 404 409 429 500
DELETE /v1/integrations/{account_id}/facebook/pages/{page_id}/posts/{post_id} Delete a Page post for good. Sends post.deleted.
| Parameter | In | Type |
|---|---|---|
Idempotency-Key (required) | header | string |
200 deleted true400 401 403 404 409 429 500
POST /v1/integrations/{account_id}/facebook/pages/{page_id}/posts/{post_id}/pin Pin a post to the top of the Page.
| Parameter | In | Type |
|---|---|---|
Idempotency-Key (required) | header | string |
200 pinned true400 401 403 404 409 429 500
DELETE /v1/integrations/{account_id}/facebook/pages/{page_id}/posts/{post_id}/pin Unpin a post.
| Parameter | In | Type |
|---|---|---|
Idempotency-Key (required) | header | string |
200 pinned false400 401 403 404 409 429 500
POST /v1/integrations/{account_id}/facebook/pages/{page_id}/posts Post to a Page now or at a set time: text with an optional link, photo, video or Reel, a video cover and a first comment. The Page owner app…
Post to a Page now or at a set time: text with an optional link, photo, video or Reel, a video cover and a first comment. The Page owner approves the exact post first. A video or Reel counts 5 actions and answers status processing with video_id; post.published (or post.failed) follows once Facebook has processed it
| Parameter | In | Type |
|---|---|---|
Idempotency-Key (required) | header | string |
| Body field | Type |
|---|---|
text (required)The post text, or the video or Reel description. | string |
linkA web page to share (https). | string |
photo_urlA public https address of a photo. One of link, photo_url or video_url. | string |
video_urlA public https address of an MP4 or MOV video. Facebook fetches it. | string |
formatWith video_url: feed_video (default, up to 20 minutes) or reel (9:16, 3 to 90 seconds). | feed_video | reel |
cover_urlWith video_url: a public https address of a JPEG or PNG cover. | string |
first_commentA comment the Page posts under the post as soon as it is live. | string |
publish_atA date and time with a time zone, 10 minutes to 30 days ahead. Leave out to publish now. | string |
owner_approved (required)Must be true after the owner has seen the exact post. Nothing is sent otherwise. | boolean |
201 id, status (published, scheduled or processing), video_id, format, job_id, first_comment_id, warnings, actions_counted400 401 403 404 409 429 500
POST /v1/integrations/{account_id}/facebook/pages/{page_id}/comments/{comment_id}/private-reply Answer a comment on a Page post with one private Messenger message to the person who wrote it. Facebook allows one private reply per comment…
Answer a comment on a Page post with one private Messenger message to the person who wrote it. Facebook allows one private reply per comment, within 7 days of the comment. Needs the pages_messaging permission (Pages connected before it was added reconnect once). Counts as an action
| Parameter | In | Type |
|---|---|---|
Idempotency-Key (required) | header | string |
| Body field | Type |
|---|---|
text (required)The message, sent privately in Messenger. | string |
201 message_id, recipient_id, actions_counted400 401 403 404 409 429 500
POST /v1/integrations/{account_id}/facebook/pages/{page_id}/comment-to-dm Facebook comment-to-DM: someone comments a keyword on a Page post (chosen posts or all_posts) and gets one private Messenger reply, once per…
Facebook comment-to-DM: someone comments a keyword on a Page post (chosen posts or all_posts) and gets one private Messenger reply, once per person. exclude_keywords never trigger. New comments are picked up within about two minutes. Creates a routine
| Body field | Type |
|---|---|
keywords (required) | string[] |
dm_text (required) | string |
post_ids | string[] |
all_postsThe Page's newest posts, now and later (the default). Not with post_ids. | boolean |
exclude_keywordsA comment with one of these never triggers. | string[] |
match | whole_word | contains |
replies | string[] |
name | string |
201 routine400 401 403 404 409 429 500
keys
GET /v1/keys getKeys
200 OK401 403 429 500
POST /v1/keys postKeys
200 OK400 401 403 409 429 500
DELETE /v1/keys/{keyId} deleteKeys
200 OK400 401 403 404 409 429 500
POST /v1/keys/{keyId}/pause postKeysPause
200 OK400 401 403 404 409 429 500
POST /v1/keys/{keyId}/resume postKeysResume
200 OK400 401 403 404 409 429 500
links
GET /v1/links The latest tracked links with how many people opened each one, newest first. Read-only.
| Parameter | In | Type |
|---|---|---|
limit | query | integer |
200 OK400 401 403 429 500
POST /v1/links Before you send a booking, payment, menu or product link to a customer, call this with the full url (and a short label such as Booking page)…
Before you send a booking, payment, menu or product link to a customer, call this with the full url (and a short label such as Booking page) and send the short_url it returns instead. Spaces counts the people who open it, so the owner sees what you achieved. Link previews are not counted. Only in replies to someone who wrote to you: never put links in a first message to a new contact (WhatsApp and iMessage hold those back). Sends nothing.
| Body field | Type |
|---|---|
url (required) | string |
label | string |
account_id | string |
chat_id | string |
200 OK400 401 403 409 429 500
logs
GET /v1/logs/requests This key's own API and MCP calls of the last 14 days (list_request_logs). No bodies, message text or tokens are kept.
| Parameter | In | Type |
|---|---|---|
errors_only | query | boolean |
tool | query | string |
limit | query | integer |
cursor | query | string |
200 requests [{at, via, method, route, tool, status, ok, error_code, error_category, duration_ms}], next_cursor400 401 403 429 500
GET /v1/logs/posts Every attempt to publish a post in the last 30 days, and how it ended (list_post_logs).
| Parameter | In | Type |
|---|---|---|
account_id | query | string |
outcome | query | published | held_for_approval | failed | unknown | skipped |
limit | query | integer |
cursor | query | string |
200 posts [{at, account_id, channel, source, outcome, post_id, error_code, error_category, error}], next_cursor400 401 403 429 500
GET /v1/logs/connections Connects, reconnects, status changes and owner disconnects of the accounts this key may see, with reasons (list_connection_logs). Spaces nev…
Connects, reconnects, status changes and owner disconnects of the accounts this key may see, with reasons (list_connection_logs). Spaces never disconnects an account on its own.
| Parameter | In | Type |
|---|---|---|
account_id | query | string |
limit | query | integer |
cursor | query | string |
200 connections [{at, account_id, channel, event, reason, from_status, to_status}], next_cursor400 401 403 429 500
me
GET /v1/me Who is calling (whoami): the workspace, this key with its scopes and permissions, who made it and the plan. Read only.
200 workspace {id, name}, key {id, name, prefix, scopes, permissions, account_ids, created_at, last_used_at}, created_by {user_id, email, name}, plan {id, status, paying}401 403 429 500
media
GET /v1/media/{token} Open a signed attachment link
200 the file401 403 404 429 500
POST /v1/media/check Check a public photo or video link against each platform's limits (format, size, dimensions, aspect ratio, video length). Per target: ok, wi…
Check a public photo or video link against each platform's limits (format, size, dimensions, aspect ratio, video length). Per target: ok, will_be_changed (photos Spaces sends itself are compressed, converted or padded) or refused with code media_too_large, bad_aspect_ratio, unsupported_format, video_too_long, video_too_short or image_too_small, the limit and the actual value. Posts nothing
| Body field | Type |
|---|---|
url (required)A public https link to a photo or video. | string |
targets (required) | instagram | instagram_story | linkedin | facebook | facebook_reel | tiktok | …[] |
200 media { kind, format, bytes, width, height, duration_seconds }, targets [{ target, status, changes, errors [{ code, message, limit, actual }], notes }]400 401 403 409 429 500
notes
DELETE /v1/messaging/notes/{noteId} Delete a private note
200 ok400 401 403 404 409 429 500
object types
GET /v1/messaging/object-types Custom object types the agent defined
200 ok401 403 429 500
POST /v1/messaging/object-types Define a record type with typed fields
| Body field | Type |
|---|---|
slug (required) | string |
name (required) | string |
fields |
201 object_type400 401 403 409 429 500
GET /v1/messaging/object-types/{typeId} One type, by id or slug
200 ok401 403 404 429 500
PATCH /v1/messaging/object-types/{typeId} Rename or replace fields (add fields; a type cannot change)
| Body field | Type |
|---|---|
name | string |
fields |
200 ok400 401 403 404 409 429 500
DELETE /v1/messaging/object-types/{typeId} Delete a type; confirm: true if it has records
| Parameter | In | Type |
|---|---|---|
confirm | query | boolean |
200 ok400 401 403 404 409 429 500
objects
GET /v1/messaging/objects Records, filter by type, contact_id or where
| Parameter | In | Type |
|---|---|---|
type | query | string |
contact_id | query | string |
account_id | query | string |
chat_id | query | string |
where | query | string |
limit | query | integer |
offset | query | integer |
200 ok400 401 403 429 500
POST /v1/messaging/objects Create a record, optionally linked to a contact
| Body field | Type |
|---|---|
type (required) | string |
data (required) | object |
contact_id | string |
chat | object |
201 object400 401 403 409 429 500
GET /v1/messaging/objects/{objectId} One record
200 ok401 403 404 429 500
PATCH /v1/messaging/objects/{objectId} Merge data into a record or relink it
| Body field | Type |
|---|---|
data | object |
contact_id | |
chat |
200 ok400 401 403 404 409 429 500
DELETE /v1/messaging/objects/{objectId} Delete a record
200 ok400 401 403 404 409 429 500
outcomes
GET /v1/outcomes List outcomes
| Parameter | In | Type |
|---|---|---|
since | query | string |
kind | query | booked | order | lead_won | resolved | other |
contact_id | query | string |
account_id | query | string |
chat_id | query | string |
limit | query | integer |
200 outcomes and totals (count, by kind, revenue by currency)400 401 403 429 500
POST /v1/outcomes Record an outcome
| Body field | Type |
|---|---|
kind (required) | booked | order | lead_won | resolved | other |
account_id | string |
chat_id | string |
contact_id | string |
amount | number |
currency | string |
note | string |
occurred_at | string |
external_id | string |
200 duplicate: the same external_id was recorded before201 outcome400 401 403 404 409 429 500
partner
GET /v1/partner Your partner account
200 OK401 403 429 500
GET /v1/partner/users List your users
| Parameter | In | Type |
|---|---|---|
limit | query | integer |
before | query | string |
external_user_id | query | string |
200 OK400 401 403 429 500
POST /v1/partner/users Create a user, or return the one with this external_user_id
| Body field | Type |
|---|---|
external_user_id (required)Your own id for this user. | string |
email | string |
name | string |
capsPer-user caps. Each can only be lower than Spaces' own limits. null removes one. | object |
201 Created (200 when the user already existed)400 401 403 409 429 500
GET /v1/partner/users/{id} One user
200 OK401 403 404 429 500
PATCH /v1/partner/users/{id} Change a user
| Body field | Type |
|---|---|
email | string |
name | string |
capsPer-user caps. Each can only be lower than Spaces' own limits. null removes one. | object |
paused | boolean |
paused_reason | string |
200 OK400 401 403 404 409 429 500
DELETE /v1/partner/users/{id} Delete a user
| Parameter | In | Type |
|---|---|---|
confirm (required) | query | boolean |
200 OK400 401 403 404 409 429 500
POST /v1/partner/users/{id}/pause Pause a user
| Body field | Type |
|---|---|
reason | string |
200 OK400 401 403 404 409 429 500
POST /v1/partner/users/{id}/resume Resume a user
200 OK400 401 403 404 409 429 500
GET /v1/partner/users/{id}/keys List a user's keys
200 OK401 403 404 429 500
POST /v1/partner/users/{id}/keys Create a key for one user
| Body field | Type |
|---|---|
name | string |
scopes | read | messages:send | messages:draft[] |
201 key400 401 403 404 409 429 500
DELETE /v1/partner/users/{id}/keys/{keyId} Revoke a user's key
200 OK400 401 403 404 409 429 500
DELETE /v1/partner/users/{id}/accounts/{accountId} Disconnect one account of a user
200 OK400 401 403 404 409 429 500
POST /v1/partner/users/{id}/connect-links A branded link where the user connects an account
| Body field | Type |
|---|---|
channel (required) | whatsapp | instagram | linkedin | messenger | x | email |
return_url (required) | string |
provider | gmail | outlook | imap |
account_id | string |
201 url400 401 403 404 409 429 500
GET /v1/partner/usage Usage per user for a month
| Parameter | In | Type |
|---|---|---|
monthYYYY-MM, UTC. Default: this month. | query | string |
200 OK400 401 403 429 500
GET /v1/partner/webhooks List your webhooks
200 OK401 403 429 500
POST /v1/partner/webhooks One webhook for all your users
| Body field | Type |
|---|---|
url (required) | string |
events | string[] |
201 Created400 401 403 409 429 500
DELETE /v1/partner/webhooks/{webhookId} Delete a webhook
200 OK400 401 403 404 409 429 500
GET /v1/partner/events One event stream for all your users
| Parameter | In | Type |
|---|---|---|
after | query | string |
wait | query | integer |
types | query | string |
limit | query | integer |
200 events and next_cursor400 401 403 429 500
GET /v1/partner/events/webhooks List your event-stream webhooks
200 OK401 403 429 500
POST /v1/partner/events/webhooks Push the partner event stream to a webhook
| Body field | Type |
|---|---|
url (required) | string |
events | string[] |
201 Created400 401 403 409 429 500
DELETE /v1/partner/events/webhooks/{webhookId} Delete an event-stream webhook
200 OK400 401 403 404 409 429 500
pause
POST /v1/messaging/pause Pause every outbound action in the workspace. Reads keep working. The reason is optional. Needs accounts:manage.
| Body field | Type |
|---|---|
reason | string |
200 pause400 401 403 404 409 429 500
post slots
GET /v1/post-slots Each account's posting slots and the next slot times (get_post_slots). suggest=true with account_id adds the best posting times.
| Parameter | In | Type |
|---|---|---|
account_id | query | string |
page_id | query | string |
suggest | query | boolean |
200 schedules [{account_id, page_id, timezone, slots, next_slots}], default_timezone, suggestion400 401 403 429 500
posts
POST /v1/posts/cross Publish one post on several accounts at once (Instagram, LinkedIn, Facebook Pages and TikTok), adapted to each platform, now or at send_at. …
Publish one post on several accounts at once (Instagram, LinkedIn, Facebook Pages and TikTok), adapted to each platform, now or at send_at. Each account goes through the same limits, approvals and action counting as a single post, and one failure does not stop the others.
| Parameter | In | Type |
|---|---|---|
Idempotency-Key (required) | header | string |
| Body field | Type |
|---|---|
targets (required)The accounts to post on. A Facebook Page target is the Facebook connection id plus page_id. | object[] |
textThe post text. Each platform gets it adapted to its limits. | string |
mediaPublic https links to photos, or to one video. Give type when a link has no file extension. | any[] |
linkA web page to share (https). | string |
overridesText for one platform instead of text. TikTok needs privacy, the owner's choice of who can see the post. | object |
send_atPost later instead of now: local time like 2026-11-20T09:00 in timezone, or next_slot to put each target in its account's next free posting slot. | string |
timezone | string |
owner_approvedtrue once the owner has approved this exact post. TikTok and Facebook Page targets need it. | boolean |
subtitles_urlA public https link to an .srt or .vtt subtitle file for the video. Facebook Page videos and Reels take it; Instagram, LinkedIn and TikTok do not, so there the video goes without and a warning says so. | string |
subtitles_localeThe subtitles' language, like en_US (default) or fr_FR. | string |
200 The same Idempotency-Key again: the first answer, with replay true. Nothing is posted again.201 One result per target: account_id, channel, status (published, scheduled, waiting_for_owner, skipped or failed), post_id or job_id, url, warnings, error and actions_counted.400 401 403 409 429 500
POST /v1/posts/cross/preview What POST /v1/posts/cross would do with the same body, without sending anything: the adapted text per account, the media, the actions it wou…
What POST /v1/posts/cross would do with the same body, without sending anything: the adapted text per account, the media, the actions it would count, warnings and skips.
| Body field | Type |
|---|---|
targets (required)The accounts to post on. A Facebook Page target is the Facebook connection id plus page_id. | object[] |
textThe post text. Each platform gets it adapted to its limits. | string |
mediaPublic https links to photos, or to one video. Give type when a link has no file extension. | any[] |
linkA web page to share (https). | string |
overridesText for one platform instead of text. TikTok needs privacy, the owner's choice of who can see the post. | object |
send_atPost later instead of now: local time like 2026-11-20T09:00 in timezone. | string |
timezone | string |
owner_approvedtrue once the owner has approved this exact post. TikTok and Facebook Page targets need it. | boolean |
200 targets: one entry per account with status would_publish, would_schedule, waiting_for_owner, skipped or failed, tool, text, media, warnings and reason. sent is false.400 401 403 409 429 500
queue
GET /v1/queue Posts in the queue, soonest first (list_queue).
| Parameter | In | Type |
|---|---|---|
account_id | query | string |
page_id | query | string |
status | query | queued | publishing | published | awaiting_approval | failed | skipped | … |
limit | query | integer |
viewsummary: a compact item shape (ids, names, times, status, text cut to 160 characters) to save tokens. full (default): everything. | query | summary | full |
fieldsComma-separated item fields to keep, such as id,name,last_message (a.b reaches one level down). id is always kept. | query | string |
200 items [{id, account_id, page_id, channel, slot_at, status, text, media, link, attempts, post_id, approval_id, url, warnings, last_error, created_at, published_at}]400 401 403 429 500
POST /v1/queue Put a post in the next free slot of one account (queue_post). Checked now like preview_cross_post; published at its slot through the same li…
Put a post in the next free slot of one account (queue_post). Checked now like preview_cross_post; published at its slot through the same limits, pause, approvals and action counting.
| Parameter | In | Type |
|---|---|---|
Idempotency-Key (required)A unique key per action (8 to 128 characters). A retry with the same key never acts twice. | header | string |
| Body field | Type |
|---|---|
account_id (required) | string |
page_id | string |
text | string |
mediaPublic https links to photos, or to one video. | any[] |
link | string |
overridesText for one platform, as in cross_post. | object |
owner_approvedTikTok and Facebook Pages need it. | boolean |
subtitles_urlA public https link to an SRT or VTT file, for a video post where the platform takes captions. | string |
idempotency_key | string |
subtitles_localeThe subtitles' language, like en_US (default). | string |
201 queued true with item {id, account_id, channel, slot_at, status, warnings}, or queued false with status waiting_for_owner and reason400 401 403 409 429 500
POST /v1/queue/reorder A new order for an account's queued posts (reorder_queue). The slot times stay; the posts swap times.
| Body field | Type |
|---|---|
account_id (required) | string |
page_id | string |
item_ids (required)Every queued post of the account, once, in the new order. | string[] |
200 items in their new order400 401 403 409 429 500
DELETE /v1/queue/{item_id} Take a post out of the queue before it goes out (remove_from_queue).
200 item with status removed400 401 403 404 409 429 500
referral link
GET /v1/referral-link The owner's personal link to give a friend a month of Spaces free (Give a month, get a month). When the friend pays their first invoice, the…
The owner's personal link to give a friend a month of Spaces free (Give a month, get a month). When the friend pays their first invoice, the owner gets a month free too, up to 12 a year. Give the link to the owner only: never message the owner's contacts or customers about referrals, and never post it anywhere yourself. Read-only.
200 OK401 403 429 500
referral status
GET /v1/referral-status How the owner's referrals are going: friends who joined, how many paid, months earned and months still pending (credited when the workspace …
How the owner's referrals are going: friends who joined, how many paid, months earned and months still pending (credited when the workspace starts Pay as you go). Read-only.
200 OK401 403 429 500
reminders
GET /v1/messaging/reminders Chat reminders
| Parameter | In | Type |
|---|---|---|
status | query | |
account_id | query | string |
chat_id | query | string |
limit | query | integer |
200 ok400 401 403 429 500
DELETE /v1/messaging/reminders/{reminderId} Cancel a waiting reminder
200 ok400 401 403 404 409 429 500
resume
POST /v1/messaging/resume Resume sending after a pause. Needs accounts:manage.
200 pause400 401 403 409 429 500
review reward
GET /v1/review-reward Spaces gives a month on us for an honest review on G2, good or bad. Call this when the owner seems happy with Spaces, or when they ask. It r…
Spaces gives a month on us for an honest review on G2, good or bad. Call this when the owner seems happy with Spaces, or when they ask. It returns what to ask them, the G2 link, the disclosure to say first ("Spaces gives a free month for any honest review, good or bad.") and the rules: ask for their honest opinion, never suggest a rating or praise, help them put their own answers in order only if they want, and the owner writes and submits the review on G2 themselves. Never submit or post a review for them. Read-only: it contacts nobody.
200 OK401 403 429 500
POST /v1/review-reward/claims After the owner has submitted their review on G2 themselves, send its link (review_url, on g2.com) for the month on us, and a screenshot of …
After the owner has submitted their review on G2 themselves, send its link (review_url, on g2.com) for the month on us, and a screenshot of it if they gave you one (screenshot_base64: PNG, JPG, WebP or GIF, under 1 MB); without one, ask them to add it in Settings, under Billing. Spaces checks it and emails the owner: on Pay as you go a credit of one month of account fees on the next invoice, on the Free plan 30 days at 200 actions a day. Once per workspace. Pass owner_confirmed true only after they agree. It posts nothing on G2 and contacts nobody.
| Body field | Type |
|---|---|
owner_confirmed (required) | |
review_url (required) | string |
screenshot_base64 | string |
200 OK400 401 403 409 429 500
reviews
GET /v1/reviews The review and optional case study this workspace has left with Spaces, or null. Read-only.
200 OK401 403 429 500
POST /v1/reviews Save a short review of Spaces, and optionally what they use it for and the result, after the owner agrees. feature true means Spaces may sho…
Save a short review of Spaces, and optionally what they use it for and the result, after the owner agrees. feature true means Spaces may show it as a case study. Ask first. Pass owner_confirmed true only after they agree to this exact text.
| Body field | Type |
|---|---|
owner_confirmed (required) | |
rating (required) | integer |
body (required) | string |
use_case | string |
results | string |
feature | boolean |
200 OK400 401 403 409 429 500
routines
GET /v1/messaging/routines Routines
| Parameter | In | Type |
|---|---|---|
viewsummary: a compact item shape (ids, names, times, status, text cut to 160 characters) to save tokens. full (default): everything. | query | summary | full |
fieldsComma-separated item fields to keep, such as id,name,last_message (a.b reaches one level down). id is always kept. | query | string |
200 routines401 403 429 500
POST /v1/messaging/routines Create a recurring or event routine. Sends use the same limits.
| Body field | Type |
|---|---|
account_id (required) | string |
name (required) | string |
timezone (required) | string |
trigger_type (required) | |
daily_time | string |
every_minutes | integer |
cron | string |
event | |
keywords | |
after_hours | integer |
action_type (required) | |
sequence_id | string |
text | string |
chat_id | string |
tag | string |
webhook_url | string |
email_to | string |
snippets | |
work_start_hour | integer |
work_end_hour | integer |
also_dm | boolean |
post_ids | |
match | |
replies | |
repeat_for_new_comments | boolean |
201 routine400 401 403 409 429 500
PATCH /v1/messaging/routines/{routineId} Pause, resume or edit a routine
| Body field | Type |
|---|---|
status | |
name | string |
200 routine400 401 403 404 409 429 500
DELETE /v1/messaging/routines/{routineId} Delete a routine
200 deleted400 401 403 404 409 429 500
GET /v1/messaging/routines/{routineId}/runs Run history and errors
| Parameter | In | Type |
|---|---|---|
viewsummary: a compact item shape (ids, names, times, status, text cut to 160 characters) to save tokens. full (default): everything. | query | summary | full |
fieldsComma-separated item fields to keep, such as id,name,last_message (a.b reaches one level down). id is always kept. | query | string |
200 runs401 403 404 429 500
saved replies
GET /v1/messaging/saved-replies Saved replies
200 ok401 403 429 500
POST /v1/messaging/saved-replies Save a reusable message
| Body field | Type |
|---|---|
name (required) | string |
text (required) | string |
201 saved_reply400 401 403 409 429 500
GET /v1/messaging/saved-replies/{replyId} One saved reply; contact_id fills in the text
| Parameter | In | Type |
|---|---|---|
contact_id | query | string |
200 ok400 401 403 404 429 500
PATCH /v1/messaging/saved-replies/{replyId} Rename or change a saved reply
| Body field | Type |
|---|---|
name | string |
text | string |
200 ok400 401 403 404 409 429 500
DELETE /v1/messaging/saved-replies/{replyId} Delete a saved reply
200 ok400 401 403 404 409 429 500
scheduled posts
GET /v1/messaging/scheduled-posts Scheduled posts in this workspace, including published, cancelled and failed ones, with the next publish time and the last error. Pass accou…
Scheduled posts in this workspace, including published, cancelled and failed ones, with the next publish time and the last error. Pass account_id for one account. Pass view: 'summary' or fields for a shorter answer.
| Parameter | In | Type |
|---|---|---|
account_id | query | string |
view | query | |
fields | query | string |
200 OK400 401 403 429 500
PATCH /v1/messaging/scheduled-posts/{scheduledPostId} Change the text, media, options, time, timezone, repeat, until or first comment of a scheduled post that is still waiting. Pass attachments …
Change the text, media, options, time, timezone, repeat, until or first comment of a scheduled post that is still waiting. Pass attachments to replace all media. Confirm the change with the person first. Sensitive write: it changes a post that will be published. Ask the person to approve every call, with the exact recipient and content.
| Body field | Type |
|---|---|
text | string |
attachments | |
post_type | |
location | string |
external_link | string |
repost | string |
as_organization | string |
publish_at | string |
timezone | string |
repeat | |
until | string |
first_comment | string |
200 OK400 401 403 404 409 429 500
DELETE /v1/messaging/scheduled-posts/{scheduledPostId} Cancel a scheduled post, or the rest of a repeating one. Posts already published stay up.
200 OK400 401 403 404 409 429 500
schedules
GET /v1/messaging/schedules Scheduled messages
200 schedules401 403 429 500
POST /v1/messaging/schedules Schedule a message for a local time. The send uses the same account limits.
| Body field | Type |
|---|---|
account_id (required) | string |
text (required) | string |
send_at (required) | string |
timezone | string |
chat_id | string |
to | object |
work_start_hour | integer |
work_end_hour | integer |
201 schedule400 401 403 409 429 500
PATCH /v1/messaging/schedules/{scheduleId} Edit a scheduled message
| Body field | Type |
|---|---|
text | string |
send_at | string |
timezone | string |
200 schedule400 401 403 404 409 429 500
DELETE /v1/messaging/schedules/{scheduleId} Cancel a scheduled message
200 schedule400 401 403 404 409 429 500
search
GET /v1/messaging/search Search message text across accounts, with snippets
| Parameter | In | Type |
|---|---|---|
viewsummary: a compact item shape (ids, names, times, status, text cut to 160 characters) to save tokens. full (default): everything. | query | summary | full |
fieldsComma-separated item fields to keep, such as id,name,last_message (a.b reaches one level down). id is always kept. | query | string |
200 ok401 403 429 500
segments
GET /v1/messaging/segments Saved audience filters
200 ok401 403 429 500
POST /v1/messaging/segments Save a filter on tags and contact fields; returns contact_count
| Body field | Type |
|---|---|
account_id (required) | string |
name (required) | string |
filter (required) | object |
201 segment400 401 403 409 429 500
GET /v1/messaging/segments/{segmentId} A segment with its live match count and a sample
200 ok401 403 404 429 500
PATCH /v1/messaging/segments/{segmentId} Rename or change the filter
| Body field | Type |
|---|---|
name | string |
filter | object |
200 ok400 401 403 404 409 429 500
DELETE /v1/messaging/segments/{segmentId} Delete a segment
200 ok400 401 403 404 409 429 500
sequences
GET /v1/messaging/sequences Drip sequences
| Parameter | In | Type |
|---|---|---|
viewsummary: a compact item shape (ids, names, times, status, text cut to 160 characters) to save tokens. full (default): everything. | query | summary | full |
fieldsComma-separated item fields to keep, such as id,name,last_message (a.b reaches one level down). id is always kept. | query | string |
200 ok401 403 429 500
POST /v1/messaging/sequences Create a drip of DMs: steps of delay_minutes and text. Sends nothing until contacts are enrolled
| Body field | Type |
|---|---|
account_id (required) | string |
name (required) | string |
steps (required) | |
exit_on_reply | boolean |
201 sequence400 401 403 409 429 500
GET /v1/messaging/sequences/{sequenceId} Sequence with enrollment counts
200 ok401 403 404 429 500
PATCH /v1/messaging/sequences/{sequenceId} Pause, resume or edit a sequence
| Body field | Type |
|---|---|
status | |
name | string |
steps | |
exit_on_reply | boolean |
200 ok400 401 403 404 409 429 500
DELETE /v1/messaging/sequences/{sequenceId} Delete a sequence and cancel waiting steps
200 ok400 401 403 404 409 429 500
POST /v1/messaging/sequences/{sequenceId}/enroll Enrol contact_ids or a tag. Ends for anyone who replies STOP or, by default, any reply
| Body field | Type |
|---|---|
contact_ids | |
tag | string |
segment_id | string |
202 enrolled400 401 403 404 409 429 500
GET /v1/messaging/sequences/{sequenceId}/enrollments Who is in a sequence and why anyone stopped
| Parameter | In | Type |
|---|---|---|
viewsummary: a compact item shape (ids, names, times, status, text cut to 160 characters) to save tokens. full (default): everything. | query | summary | full |
fieldsComma-separated item fields to keep, such as id,name,last_message (a.b reaches one level down). id is always kept. | query | string |
200 ok401 403 404 429 500
settings
GET /v1/messaging/settings Approvals setting and pause state
200 settings401 403 429 500
PATCH /v1/messaging/settings Set approvals to off, posts or all_writes. Needs accounts:manage.
| Body field | Type |
|---|---|
approvals (required) | off | posts | all_writes |
200 settings400 401 403 409 429 500
setup
GET /v1/setup/next Next setup step
200 next_step, todo, steps, accounts401 403 429 500
GET /v1/setup/test Check the setup test
200 status and next401 403 429 500
POST /v1/setup/test Start the setup test
| Body field | Type |
|---|---|
account_id (required) | string |
200 status waiting, ask_person400 401 403 404 409 429 500
signup
POST /v1/signup Email a 6-digit code
| Body field | Type |
|---|---|
email (required) | string |
account_typepersonal is "just me": creators, coaches, professionals, job seekers. | business | personal | agency |
goal | sales | time | both |
detailbusiness: an industry or a few words; personal: audience, network or dms; agency: 1-5, 6-20, 21-100 or 100+. | string |
heard_fromAsk the person "Where did you hear about Spaces?" and pass the answer. ai_assistant is an AI agent such as ChatGPT or Claude; other needs heard_from_detail. Without it the owner is asked when they first open the dashboard. | search | ai_assistant | linkedin | x | youtube | reddit | … |
heard_from_detailTheir own words, required when heard_from is other. | string |
201 signup_id and expires_at400 401 403 409 429 500
POST /v1/signup/verify Exchange the code for an API key
| Body field | Type |
|---|---|
signup_id (required) | string |
code (required) | string |
ref | string |
account_typepersonal is "just me": creators, coaches, professionals, job seekers. | business | personal | agency |
goal | sales | time | both |
detailbusiness: an industry or a few words; personal: audience, network or dms; agency: 1-5, 6-20, 21-100 or 100+. | string |
heard_fromAsk the person "Where did you hear about Spaces?" and pass the answer. ai_assistant is an AI agent such as ChatGPT or Claude; other needs heard_from_detail. Without it the owner is asked when they first open the dashboard. | search | ai_assistant | linkedin | x | youtube | reddit | … |
heard_from_detailTheir own words, required when heard_from is other. | string |
200 api_key shown once400 401 403 409 429 500
suggestions
GET /v1/suggestions Suggest what to do next
200 quiet, suggestions, how, and review_request when there is one401 403 429 500
survey
GET /v1/survey Read the product survey
200 survey (id, questions, requested_at) or null, and how to answer401 403 404 429 500
POST /v1/survey/answers Answer the product survey
| Body field | Type |
|---|---|
survey_id (required)The id from GET /survey. | string |
disappointment (required)How would you feel if you could no longer use Spaces? | very_disappointed | somewhat_disappointed | not_disappointed |
who_benefits (required)What type of people do you think would most benefit from Spaces? | string |
main_benefit (required)What is the main benefit you receive from Spaces? | string |
improve (required)How can we improve Spaces for you? | string |
answered_by (required)agent: your own view. agent_confirmed_by_owner: the owner read your answers and agreed. owner: the owner's own words. | agent | agent_confirmed_by_owner | owner |
201 survey (id, status answered, answered_by) and a thank-you message400 401 403 404 409 429 500
tiktok
GET /v1/tiktok/scheduled-posts Scheduled TikTok posts, with status, publish time, publish_id and the last error.
| Parameter | In | Type |
|---|---|---|
account_id | query | string |
200 scheduled_posts400 401 403 429 500
PATCH /v1/tiktok/scheduled-posts/{scheduled_post_id} Change a scheduled TikTok post that is still waiting. Any change needs owner_approved: true again.
| Body field | Type |
|---|---|
video_url | string |
photo_urls | string[] |
caption | string |
title | string |
privacy_level | PUBLIC_TO_EVERYONE | MUTUAL_FOLLOW_FRIENDS | FOLLOWER_OF_CREATOR | SELF_ONLY |
promotes_own_business | boolean |
paid_partnership | boolean |
allow_comments | boolean |
ai_generated | boolean |
add_music | boolean |
publish_atLocal time like 2026-11-20T09:00 in timezone. | string |
timezone | string |
owner_approved (required)Must be true after the owner has approved the exact post, its time and the privacy choice. Nothing is scheduled otherwise. | boolean |
200 scheduled_post400 401 403 404 409 429 500
DELETE /v1/tiktok/scheduled-posts/{scheduled_post_id} Cancel a scheduled TikTok post. Nothing is sent.
200 scheduled_post with status cancelled400 401 403 404 409 429 500
trigger types
GET /v1/messaging/trigger-types What can start an agent: slugs, filters and sample data
200 ok401 403 429 500
triggers
GET /v1/messaging/triggers Every trigger, made by a person or an agent
200 ok401 403 429 500
POST /v1/messaging/triggers Start an agent on an event: a signed POST to your URL. The secret is returned once
| Body field | Type |
|---|---|
slug (required) | string |
url (required) | string |
name | string |
account_id | string |
filters | object |
201 trigger400 401 403 409 429 500
GET /v1/messaging/triggers/{triggerId} One trigger with recent deliveries
200 ok401 403 404 429 500
PATCH /v1/messaging/triggers/{triggerId} Pause, resume or edit a trigger you may manage
| Body field | Type |
|---|---|
status | |
name | string |
url | string |
account_id | |
filters | object |
200 ok400 401 403 404 409 429 500
DELETE /v1/messaging/triggers/{triggerId} Delete a trigger you may manage
200 ok400 401 403 404 409 429 500
POST /v1/messaging/triggers/{triggerId}/test Send one signed sample event to the URL
200 ok400 401 403 404 409 429 500
GET /v1/messaging/triggers/{triggerId}/deliveries Recent deliveries and what the URL answered
| Parameter | In | Type |
|---|---|---|
limit | query | integer |
200 ok400 401 403 404 429 500
usage
GET /v1/messaging/usage Send limits for each account
200 usage401 403 429 500
GET /v1/messaging/usage/export Usage per account per day (CSV or JSON). No message text.
| Parameter | In | Type |
|---|---|---|
from | query | string |
to | query | string |
format | query | csv | json |
200 usage rows400 401 403 429 500
webhooks
GET /v1/messaging/webhooks The workspace's webhooks, without secrets, with the last delivery status.
200 OK401 403 429 500
POST /v1/messaging/webhooks Send events for the workspace to your URL as signed POSTs (Spacesos-Signature: t=<unix seconds>,v1=<HMAC-SHA256 of "<t>.<raw body>">). The a…
Send events for the workspace to your URL as signed POSTs (Spacesos-Signature: t=<unix seconds>,v1=<HMAC-SHA256 of "<t>.<raw body>">). The answer holds the signing secret once. Retried with backoff for about a day; turned off after 50 events fail in a row. Needs accounts:manage.
| Body field | Type |
|---|---|
url (required)An https URL on a public host. | string |
eventsDefault: message.received and account.status. | message.received | conversation.started | message.read | message.delivered | message.edited | message.deleted | …[] |
account_idOnly this account's events. | string |
201 OK400 401 403 409 429 500
DELETE /v1/messaging/webhooks/{webhookId} Delete a webhook. Nothing more is sent to it.
200 OK400 401 403 404 409 429 500
POST /v1/messaging/webhooks/{webhookId}/test Send one signed example event to this webhook now, and get the status your server answered with. The event has test: true.
| Body field | Type |
|---|---|
typeDefault message.received. | message.received | conversation.started | message.read | message.delivered | message.edited | message.deleted | … |
200 OK400 401 403 404 409 429 500
GET /v1/messaging/webhooks/{webhookId}/deliveries The delivery log of the past week, newest first: event, status, your server's status code and attempts. Never a message body.
| Parameter | In | Type |
|---|---|---|
limitHow many, 1 to 200. | query | integer |
beforeDeliveries created before this time: the next_before of the last page. | query | string |
cursorThe next_cursor of the last page (the same as before). | query | string |
200 OK400 401 403 404 429 500
POST /v1/messaging/webhooks/{webhookId}/deliveries/{deliveryId}/redeliver Send one delivery again now, with the same event id and the header Spacesos-Redelivery: 1. A message event comes without its text.
200 OK400 401 403 404 409 429 500
workflow runs
GET /v1/messaging/workflow-runs/{runId} One run with its step log. No message text.
200 ok401 403 404 429 500
POST /v1/messaging/workflow-runs/{runId}/resume Answer an ask_agent step (workflow.agent_requested) with an answer and/or a branch.
| Body field | Type |
|---|---|
answer | string |
branch | string |
200 run400 401 403 404 409 429 500
POST /v1/messaging/workflow-runs/{runId}/cancel Stop one run now.
200 ok400 401 403 404 409 429 500
workflows
GET /v1/messaging/workflows Workflows, with status, version, runs this week and the last run.
| Parameter | In | Type |
|---|---|---|
viewsummary: a compact item shape (ids, names, times, status, text cut to 160 characters) to save tokens. full (default): everything. | query | summary | full |
fieldsComma-separated item fields to keep, such as id,name,last_message (a.b reaches one level down). id is always kept. | query | string |
200 ok401 403 429 500
POST /v1/messaging/workflows Create a workflow on one account: a trigger and a graph of steps. A draft unless publish is true. 400 INVALID_WORKFLOW lists problems per no…
Create a workflow on one account: a trigger and a graph of steps. A draft unless publish is true. 400 INVALID_WORKFLOW lists problems per node.
| Body field | Type |
|---|---|
account_id (required) | string |
name (required) | string |
graph (required){nodes, edges}. One trigger node; see llms-full.txt#workflows for every step type and its branches. | object |
timezone | string |
publish | boolean |
201 workflow and its signing secret (shown once)400 401 403 409 429 500
POST /v1/messaging/workflows/test Dry run of a graph not saved yet. Sends nothing, counts nothing.
| Body field | Type |
|---|---|
message (required) | string |
graph{nodes, edges}. One trigger node; see llms-full.txt#workflows for every step type and its branches. | object |
replies | string[] |
agent | object[] |
contact | object |
vars | object |
webhook_responses | object |
ab | object |
at | string |
200 path400 401 403 409 429 500
GET /v1/messaging/workflows/{workflowId} One workflow with its graph.
200 ok401 403 404 429 500
PATCH /v1/messaging/workflows/{workflowId} Save a new version of the graph, or rename it.
| Body field | Type |
|---|---|
graph{nodes, edges}. One trigger node; see llms-full.txt#workflows for every step type and its branches. | object |
name | string |
timezone | string |
note | string |
200 workflow400 401 403 404 409 429 500
DELETE /v1/messaging/workflows/{workflowId} Delete a workflow and its runs.
200 ok400 401 403 404 409 429 500
POST /v1/messaging/workflows/{workflowId}/publish Turn a workflow on.
200 ok400 401 403 404 409 429 500
POST /v1/messaging/workflows/{workflowId}/pause Turn a workflow off. Runs already going wait.
200 ok400 401 403 404 409 429 500
POST /v1/messaging/workflows/{workflowId}/test Dry run against a sample message: the path taken and the text it would send. Sends nothing, counts nothing.
| Body field | Type |
|---|---|
message (required) | string |
graph{nodes, edges}. One trigger node; see llms-full.txt#workflows for every step type and its branches. | object |
replies | string[] |
agent | object[] |
contact | object |
vars | object |
webhook_responses | object |
ab | object |
at | string |
200 path400 401 403 404 409 429 500
GET /v1/messaging/workflows/{workflowId}/runs Recent runs with status, the path taken and why each stopped.
| Parameter | In | Type |
|---|---|---|
viewsummary: a compact item shape (ids, names, times, status, text cut to 160 characters) to save tokens. full (default): everything. | query | summary | full |
fieldsComma-separated item fields to keep, such as id,name,last_message (a.b reaches one level down). id is always kept. | query | string |
200 ok401 403 404 429 500
GET /v1/messaging/workflows/{workflowId}/versions Every saved version.
200 ok401 403 404 429 500
POST /v1/messaging/workflows/{workflowId}/versions/{version}/restore Copy an old version into a new current version.
200 ok400 401 403 404 409 429 500
workspace
GET /v1/workspace/brief Read the business brief
200 brief, updated_at, complete, missing401 403 429 500
PUT /v1/workspace/brief Replace the business brief
| Body field | Type |
|---|---|
business_name | string |
what_you_sell | string |
hours | string |
locations | string[] |
prices_and_links | string |
faqs | object[] |
tone | string |
languages | string[] |
never_promise | string[] |
hand_over_when | string[] |
urgent_contact | string |
200 the saved brief400 401 403 409 429 500
PATCH /v1/workspace/brief Change part of the business brief
| Body field | Type |
|---|---|
business_name | string |
what_you_sell | string |
hours | string |
locations | string[] |
prices_and_links | string |
faqs | object[] |
tone | string |
languages | string[] |
never_promise | string[] |
hand_over_when | string[] |
urgent_contact | string |
200 the saved brief400 401 403 409 429 500
GET /v1/workspace/setup What the whole team shares: accounts, saved replies, routines, sequences, triggers, budget and members
200 summary401 403 429 500
GET /v1/workspace/profile Read the account type and goal
200 account_type, goal, detail, use_cases, success, complete, missing401 403 429 500
PUT /v1/workspace/profile Save the account type and goal
| Body field | Type |
|---|---|
account_type (required)personal is "just me": creators, coaches, professionals, job seekers. | business | personal | agency |
goal | sales | time | both |
detailbusiness: an industry or a few words; personal: audience, network or dms; agency: 1-5, 6-20, 21-100 or 100+. | string |
use_casesWhat the owner wants their AI agent to help with most, any of these. Replaces the list, and sets the goal it points to unless goal is given. | answer_dms | book_appointments | qualify_leads | follow_up | take_orders | support_faqs | …[] |
success | string |
owner_confirmed (required)true only after the owner said yes. | true |
heard_fromThe owner's answer to "Where did you hear about Spaces?". ai_assistant is an AI agent such as ChatGPT or Claude; other needs heard_from_detail. Kept if the owner already answered. | search | ai_assistant | linkedin | x | youtube | reddit | … |
heard_from_detailTheir own words, required when heard_from is other. | string |
200 The saved profile400 401 403 409 429 500
GET /v1/workspace/goal Read the goal
200 goal, stated, success401 403 429 500
PUT /v1/workspace/goal Save the goal
| Body field | Type |
|---|---|
goal (required) | sales | time | both |
successWhat counts as a win, for example a booked call. | string |
owner_confirmed (required)true only after the owner said yes. | true |
200 The goal400 401 403 409 429 500
GET /v1/workspace/timezone The workspace's default time zone (get_workspace_timezone), used whenever a call passes none.
200 timezone (null when not set)401 403 429 500
PUT /v1/workspace/timezone Set the workspace's default time zone (set_workspace_timezone). Scope accounts:manage.
| Body field | Type |
|---|---|
timezone (required)An IANA name such as Europe/Paris, or null to clear it. | string |
200 timezone400 401 403 409 429 500
GET /v1/workspace/members Everyone in the workspace with their role (owner, admin, member, viewer), and open invitations when the key belongs to the owner. Read-only.
200 OK401 403 429 500
POST /v1/workspace/members Email an invitation to join this workspace as member (can use accounts, send and build automations) or viewer (read only). Admins are made b…
Email an invitation to join this workspace as member (can use accounts, send and build automations) or viewer (read only). Admins are made by the owner in the dashboard. They join by signing in with that email. confirm must be true, and only after a person has said who to invite and in which role. Only the workspace owner can do this (the key must be one the owner created), and a person should have asked for it. A teammate and their agents see the same accounts they are allowed to use, the same saved replies, routines, sequences and triggers, and the same budget. Sensitive write: it emails an invitation, and the person who joins can use the accounts and read the chats. Ask the person to approve every call, with the exact recipient and content.
| Body field | Type |
|---|---|
email (required) | string |
role | |
confirm (required) |
200 OK400 401 403 409 429 500
PATCH /v1/workspace/members/{id} Make a teammate a member or a viewer. member_id comes from list_team. confirm must be true. Only the workspace owner can do this (the key mu…
Make a teammate a member or a viewer. member_id comes from list_team. confirm must be true. Only the workspace owner can do this (the key must be one the owner created), and a person should have asked for it. A teammate and their agents see the same accounts they are allowed to use, the same saved replies, routines, sequences and triggers, and the same budget. Sensitive write: it changes what a teammate can do: a viewer who becomes a member can use the accounts and send. Ask the person to approve every call, with the exact recipient and content.
| Body field | Type |
|---|---|
role (required) | |
confirm (required) |
200 OK400 401 403 404 409 429 500
DELETE /v1/workspace/members/{id} Remove a teammate (every API key they created stops working) or cancel an open invitation. id is a member id or an invite id from list_team.…
Remove a teammate (every API key they created stops working) or cancel an open invitation. id is a member id or an invite id from list_team. confirm must be true, and only after a person has said so. Only the workspace owner can do this (the key must be one the owner created), and a person should have asked for it. A teammate and their agents see the same accounts they are allowed to use, the same saved replies, routines, sequences and triggers, and the same budget. Sensitive write: it removes a person and stops every API key they created. Ask the person to approve every call, with the exact recipient and content.
| Parameter | In | Type |
|---|---|---|
confirm (required) | query |
200 OK400 401 403 404 409 429 500
POST /v1/workspace/owner postWorkspaceOwner
200 OK400 401 403 409 429 500
comment triggers
POST /v1/messaging/comment-triggersInstagram comment-to-DM: someone comments a keyword (on chosen posts or all_posts), replies to your story with it, or DMs it (start_from), a…Instagram comment-to-DM: someone comments a keyword (on chosen posts or all_posts), replies to your story with it, or DMs it (start_from), and gets a DM once. exclude_keywords never trigger. follow_gate asks people who do not follow the account to follow first. Creates a routine
account_id(required)keywords(required)dm_text(required)post_idsall_postsEvery post, now and later. Not with post_ids.
exclude_keywordsA comment or message with one of these never triggers.
start_fromWhat starts it. Default comment.
matchrepliesrepeat_for_new_commentsnametimezonefollow_gateOnly followers get dm_text; anyone else first gets follow_gate_message, and gets dm_text after replying follow_gate_keyword once Spaces sees the follow. When the follow cannot be read, dm_text is sent.
follow_gate_messageDefault: follow us, then reply DONE.
follow_gate_keywordDefault DONE.
201routine400401403409429500