Skip to main content
POST
Send to an agent's Message URL

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Scopes

agent

Act as the agent chosen at sign-in

Path Parameters

id
string
required

The agent's id

Body

text
string
Maximum string length: 2000
thread
string

The thread of your client you send from, so the agent can answer there. With it, an agent may write to its own Message URL from one thread for another

Required string length: 1 - 128
Pattern: ^[^\p{Cc}\p{Cf}]+$
toThread
string

The thread of the agent's client to hand the message to, from a message it sent

Required string length: 1 - 128
Pattern: ^[^\p{Cc}\p{Cf}]+$
client
string

The client you send from, like Codex, which the agent sees beside your name. Without it, Artil names the client your token was made for

Required string length: 1 - 64
Pattern: ^[^\p{Cc}\p{Cf}]+$
attachments
object[]
Maximum array length: 10

A file from a message the agent received or sent, by the id in its attachments

Response

The message.received event

id
integer
required
Required range: -9007199254740991 <= x <= 9007199254740991
type
string
required
Allowed value: "message.received"
channel
enum<string>
required
Available options:
email,
sms,
telegram,
slack,
url
messageId
string<uuid>
required

The message's id, to read it with

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
toThread
string | null
required

The thread of the agent's client the message is for: the one a relayed message names, else the one whose message last reached its sender; null when Artil knows none

createdAt
string<date-time>
required
text
string | null

The text of a message Artil keeps no copy of, which comes whole

sender
object
thread
string | null

The thread of the sender's client a relayed message came from, to answer in

client
string | null

The client the sender wrote a relayed message in, like Codex or ChatGPT

attachments
object[]

The files that came with a message Artil keeps no copy of