Replica

Send message

Sends a message to a chat. Sleeping replicas wake and archived replicas restore first. Messages sent while the agent is working are queued.

post/v1/replica/{id}/messages

Request

  • Base URL
    https://api.replicas.dev
  • URL
    https://api.replicas.dev/v1/replica/{id}/messages
  • Auth
    HTTP bearer

Path parameters

idstring uuid required

The unique identifier of the replica

Headers

X-Replicas-Api-Version'2026-10-07'

API version. 2026-10-07 returns snake_case responses. See versioning.

Request body

messagestring required

Message to send to the coding agent

coding_agent'claude' | 'codex' | 'cursor' | 'muse' | 'opencode' | 'pi'

Coding agent to use. With chat_id, naming another agent than the chat's continues that chat on it, with the conversation handed over.

chat_idstring

Target a specific chat session

modelstring

Model ID. Defaults to the organization default for the coding agent.

plan_modeboolean

Whether to run in plan mode. Leading /plan in the message is also detected and stripped.

goal_modeboolean

Whether to set the message as the active goal (Claude Code and Codex). Leading /goal in the message is also detected and stripped.

fast_modeboolean

Whether to run in fast mode. Leading /fast in the message is also detected and stripped.

thinking_level'low' | 'medium' | 'high' | 'xhigh' | 'max' | 'ultra' | 'ultracode'

Reasoning effort. ultra is for Codex and Muse Code; ultracode is for Claude Code. Defaults to the agent's default.

sender_emailstring

Email of the user sending this message. When the request is authenticated via dashboard auth, the server overrides this with the authenticated user's email.

Response

Message accepted

status'sent' | 'queued' | 'waking' required

Status of the message delivery

message_idstring nullable required

Unique identifier for the sent message

positioninteger nullable required

Queue position if status is 'queued'

chat_idstring nullable required

ID of the chat the message was sent to

Changes

No recorded changes to this operation across all 1 revision of this API.