Messages
Send a message
Answer a message by giving its id as replyTo, start a new one with a channel and recipients in to, or pass one on by giving its id as forward and recipients in to; a forward carries the message's files. Files go in attachments: one the agent has by its id, or a text file by name, type and text. To send files from disk, post multipart form data with the message as JSON in draft and one file per file part.
post/agents/{id}/messages
Request
- Base URLhttps://app.artil.ai/api
- URLhttps://app.artil.ai/api/agents/{id}/messages
- Auth
- HTTP bearer
- or OAuth 2Authorization code: https://mcp.artil.ai/oauth/authorizeToken URL: https://mcp.artil.ai/oauth/token scopes: agent
Path parameters
idstring uuid required
The agent's id
Headers
Idempotency-Keystring
A key of your choice, unique to this message. Sending again with the same key returns the message the first request sent instead of sending it twice, so a retry after a timeout is safe.
Request body
Response
The sent message
Changes
No recorded changes to this operation across all 1 revision of this API.