Skip to main content
POST
/
v1
/
replica
/
{id}
/
chats
Create Chat
curl --request POST \
  --url https://api.replicas.dev/v1/replica/{id}/chats \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "provider": "claude",
  "title": "<string>"
}
'
{
  "id": "<string>",
  "provider": "claude",
  "title": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "processing": true
}

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 creating a new chat

provider
enum<string>
required

Coding agent provider for this chat

Available options:
claude,
codex
title
string

Title for the chat

Response

Chat created successfully

A chat session within a replica

id
string
required

Unique identifier for the chat

provider
enum<string>
required

Coding agent provider for this chat

Available options:
claude,
codex
title
string
required

Chat title

created_at
string<date-time>
required

When the chat was created

updated_at
string<date-time>
required

When the chat was last updated

processing
boolean
required

Whether the chat is currently processing a message