Create Conversation Turn
post
/v1/conversationsSend one turn of a conversation. Returns Archie's reply.
Request bodyapplication/json
| Field | Type | Description |
|---|---|---|
messages | ChatMessage[] | βitem shape |
message | string | Shorthand for `messages: [{role: 'user', content: ...}]`. |
conversation_id | string | Echo back the id from a prior reply to thread turns. |
client_id | string | Optional client/workspace identifier for scoped answers. |
locale | string | β |
jurisdiction | string | β |
Responses
200Assistant reply
| Field | Type | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
objectrequired | string | β | ||||||||||||
conversation_idrequired | string | β | ||||||||||||
skillrequired | string | β | ||||||||||||
correlation_id | string | β | ||||||||||||
messagerequired | object | βshow nested
|
400Invalid request body
| Field | Type | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
errorrequired | object | βshow nested
|
401Authentication required
| Field | Type | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
errorrequired | object | βshow nested
|
429Rate limit exceeded
| Field | Type | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
errorrequired | object | βshow nested
|
5XXInternal server error
| Field | Type | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
errorrequired | object | βshow nested
|
curl https://api.dev.arch.ie/v1/conversations \
-X POST \
-H "Authorization: Bearer sk_..." \
-H "Content-Type: application/json" \
-d '{
"messages": [
{
"role": "user",
"content": "string"
}
],
"message": "string",
"conversation_id": "string",
"client_id": "string",
"locale": "string",
"jurisdiction": "string"
}'