Agent-readable docs index: /llms.txt. Full docs in one file: /llms-full.txt. Download /docs.zip to grep all markdown files locally.
/api/v2/messagesPOST
Sends a direct message from a connected Instagram or X account. Instagram only allows replies within 24 hours of the recipient's last message; on X the recipient must accept messages from you.
Counts as one post toward the monthly limit, and on X also as one post toward the X cap. Requires an active subscription.
Authorization
apiKey *Bearer <token>
Akarso API key from the dashboard. Token in: header
Request Bodyapplication/jsonrequired
platform *"instagram" | "twitter"
accountId?string
Connected account ID. Omit to use the workspace account of this platform.
recipientId *string
Platform user ID of the recipient
Min length: 1
text *string
Message text
Min length: 1
Response
200
success *boolean
messageId *string
400 · Invalid request body, path, or query parameters
message *string
Human-readable error message
code?string
Machine-readable error code
401 · Missing or invalid API key
message *string
Human-readable error message
code?string
Machine-readable error code
402
message *string
Human-readable error message
code?string
Machine-readable error code
subscribeUrl?string
URL to start a subscription
403
message *string
Human-readable error message
code?string
Machine-readable error code
limit?number
The plan limit that was hit
used?number
Current usage in this billing period
connected?number
Currently connected accounts
404 · Resource not found
message *string
Human-readable error message
code?string
Machine-readable error code
429 · Upstream rate limit reached
message *string
Human-readable error message
code?string
Machine-readable error code
502 · Upstream platform request failed
message *string
Human-readable error message
code?string
Machine-readable error code
503 · Upstream service temporarily unavailable or submission outcome unknown
message *string
Human-readable error message
code?string
Machine-readable error code
Request example
curl -X POST "https://akarso.co/api/v2/messages" \ -H "Authorization: Bearer <token>" \ -H "Content-Type: application/json" \ -d '{ "platform": "instagram", "accountId": "string", "recipientId": "string", "text": "string" }'