API reference · Playground
Append a message
POST/api/conversations/{id}Signed in sessionNo key
Parameters
| Field | Type | What it is |
|---|---|---|
| id (path)required | integer | The conversation id. |
Request body
application/json, required
| Field | Type | What it is |
|---|---|---|
| rolerequired | string | One of "user", "assistant". |
| contentrequired | string | |
| model | string |
Example
{
"role": "user",
"content": "Say hello in five words.",
"model": "antimatter/auto"
}Answer 201
Appended.
| Field | Type | What it is |
|---|---|---|
| message | ChatMessageRow | |
| message. | integer | |
| message. | integer | |
| message. | string | One of "user", "assistant". |
| message. | string | |
| message. | string or null | |
| message. | integer |
Errors
- 400OpenAI shaped error.
- 404OpenAI shaped error.
Every error answers in one shape, with its type, code and the field it names. The whole list is in the docs' Errors section.