AI
Staff-only endpoints for translating messages, paraphrasing thread titles, fixing grammar, and summarizing threads.
Endpoints
Translate Message
POST/ai/translateTranslates a message.
JSON Params
| Field | Type | Description |
|---|---|---|
| content | string | The content of the message to be translated (1-2000 characters) |
| locale | string | The locale to translate the message into (1-10 characters) |
Response Body
| Field | Type | Description |
|---|---|---|
| content 1 | string | The translated content of the message |
1 If the AI cannot translate the message, the original content will be returned.
Paraphrase Thread Title
POST/ai/titleParaphrases the title of a thread.
JSON Params
| Field | Type | Description |
|---|---|---|
| content | string | The content of the message to be paraphrased (1-2000 characters) |
Response Body
| Field | Type | Description |
|---|---|---|
| title | string | The paraphrased title of the thread |
Fix Grammar
POST/ai/fix-grammarFixes the grammar of a message.
JSON Params
| Field | Type | Description |
|---|---|---|
| content | string | The content of the message to be corrected (1-2000 characters) |
Response Body
| Field | Type | Description |
|---|---|---|
| content | string | The message with corrected grammar |
Summarize Thread
POST/ai/summarize-thread/{channel.id}Summarizes the content of a thread. Returns a 204 empty response on success. The summary will be sent as a system message in the thread. Requires the READ_MESSAGE_HISTORY permission.
JSON Params
| Field | Type | Description |
|---|---|---|
| ephemeral? | boolean | Whether the summary message should be ephemeral (default false) |