How to send the key
RecommendedThe API Key belongs to one workspace. You cannot access another workspace with the same key.
Common combinations
Send only
rcs:sendSend and query
rcs:send, rcs:readWith scheduling
rcs:send, rcs:cancelFull message flow
rcs:send, rcs:read, rcs:cancelManage agents
rcs:instances:list, rcs:instances:create, rcs:instances:deleteFull integration
All RCS scopes above
Available scopes
rcs:send
rcs:send
Send immediate or scheduled RCS to 1–500 numbers per request. Types: BASIC, CARD, CAROUSEL, FILE, template. Use
from for the branded agent (id or name).Endpoint: POST /v1/rcs/messagesrcs:read
rcs:read
List and query RCS sends, and list/detail inbound messages.Endpoints:
GET /v1/rcs/messages, GET /v1/rcs/messages/:id, GET /v1/rcs/inbound, GET /v1/rcs/inbound/:idrcs:cancel
rcs:cancel
Cancel queued or scheduled message. Only with status
QUEUED or SCHEDULED. Credits refunded when applicable.Endpoint: POST /v1/rcs/messages/:id/cancelrcs:instances:list
rcs:instances:list
List workspace RCS instances and query agent detail.Endpoints:
GET /v1/rcs/instances, GET /v1/rcs/instances/:instanceIdrcs:instances:create
rcs:instances:create
Create instance, update agent profile, and submit for provisioning.Endpoints:
POST /v1/rcs/instances, PATCH /v1/rcs/instances/:instanceId, POST /v1/rcs/instances/:instanceId/submitrcs:instances:delete
rcs:instances:delete
Remove RCS instance from workspace.Endpoint:
DELETE /v1/rcs/instances/:instanceIdInstance restriction
If the API Key hasinstanceIds set, it only accesses and sends through listed instances. Empty list = access to all.
Common errors
401: missing, invalid, or revoked key
401: missing, invalid, or revoked key
Check
Authorization: Bearer sk_... and that the key was not deleted in the dashboard.402: credits or plan blocked
402: credits or plan blocked
Insufficient credits (
INSUFFICIENT_CREDITS) or expired plan (WORKSPACE_BLOCKED).403: scope or scheduling
403: scope or scheduling
Check operation scope. Scheduling depends on plan (
PLAN_LIMIT_SCHEDULING). Instance not allowed by key returns FORBIDDEN.403: PLAN_LIMIT_INSTANCES
403: PLAN_LIMIT_INSTANCES
Instance limit for your plan reached when creating agent.
400: invalid cancellation
400: invalid cancellation
Cancel only with status
QUEUED or SCHEDULED. After sent, no cancellation.503: RCS_INSTANCE_NOT_ACTIVE
503: RCS_INSTANCE_NOT_ACTIVE
Send attempt with
instanceId of agent not yet approved.
