Skip to main content
POST
/
api
/
v1
/
puppet
/
{namespace}
/
{sessionId}
/
{agentName}
/
thread
/
message
Send message
curl --request POST \
  --url https://api.coralcloud.ai/api/v1/puppet/{namespace}/{sessionId}/{agentName}/thread/message \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "threadId": "<string>",
  "content": "<string>",
  "mentions": [
    "<string>"
  ]
}
'
{
  "status": "<string>",
  "message": {
    "id": "<string>",
    "threadId": "<string>",
    "text": "<string>",
    "senderName": "<string>",
    "mentionNames": [
      "<string>"
    ],
    "timestamp": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

namespace
string
required

The session's namespace

sessionId
string
required

The session's ID

agentName
string
required

The agent's name

Body

application/json

Message input

threadId
string
required

The unique identifier for the thread to send a message in

content
string
required

The content of the message to send

mentions
string[]
required

Response

Success

status
string
required
message
SessionThreadMessage · object
required