Skip to main content
POST
/
inbox
/
conversations
/
{id}
/
messages
Send a message in a conversation
curl --request POST \
  --url https://api.social-api.ai/v1/inbox/conversations/{id}/messages \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "account_id": "acc_abc123",
  "text": "Thanks for your message!",
  "attachment_url": "https://cdn.example.com/photo.jpg"
}
'
{}

Authorizations

Authorization
string
header
required

Prefix your API key with "Bearer ". Example: Authorization: Bearer sapi_key_...

Path Parameters

id
string
required

Conversation ID

Body

application/json

Message payload

account_id
string
required
Example:

"acc_abc123"

text
string
required
Example:

"Thanks for your message!"

attachment_url
string
Example:

"https://cdn.example.com/photo.jpg"

Response

Message sent

The response is of type object.