Skip to main content
POST
/
captain
/
messages
Send AI Captain message
curl --request POST \
  --url https://api.smartlyq.com/v1/captain/messages \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "message": "<string>",
  "conversation_id": "<string>"
}
'
{
  "success": true,
  "data": {
    "message": {
      "id": "<string>",
      "role": "<string>",
      "content": "<string>",
      "created_at": "2023-11-07T05:31:56Z"
    },
    "conversation_id": "<string>"
  },
  "usage": {
    "units": 123,
    "cost": "<string>",
    "balance_remaining": "<string>"
  },
  "meta": {
    "request_id": "<string>",
    "timestamp": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

API key from Developer dashboard (Bearer token).

Body

application/json
message
string
required
conversation_id
string

Response

AI Captain reply

success
enum<boolean>
Available options:
true
data
object
usage
object
meta
object