Skip to main content
POST
/
v1
/
replica
/
{id}
/
messages
Send Message
curl --request POST \
  --url https://api.replicas.dev/v1/replica/{id}/messages \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "message": "<string>",
  "coding_agent": "claude",
  "chat_id": "<string>",
  "model": "<string>",
  "images": [
    {
      "type": "<string>",
      "source": {
        "type": "<string>",
        "media_type": "image/png",
        "data": "<string>"
      }
    }
  ],
  "plan_mode": true
}
'
{
  "status": "sent",
  "message_id": "<string>",
  "position": 123,
  "chat_id": "<string>"
}

Authorizations

Authorization
string
header
required

API key authentication. Obtain your API key from the Replicas dashboard under Settings > API Keys.

Path Parameters

id
string<uuid>
required

The unique identifier of the replica

Body

application/json

Request body for sending a message to a replica

message
string
required

Message to send to the coding agent

coding_agent
enum<string>

Coding agent to use

Available options:
claude,
codex
chat_id
string

Target a specific chat session

model
string

Model to use for this message

images
object[]

Images to attach to the message

plan_mode
boolean

Whether to run in plan mode (agent plans but does not execute)

Response

Message accepted

Response after sending a message to a replica

status
enum<string>
required

Status of the message delivery

Available options:
sent,
queued,
waking
message_id
string | null
required

Unique identifier for the sent message

position
integer | null
required

Queue position if status is 'queued'

chat_id
string | null
required

ID of the chat the message was sent to