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.

Path Parameters

id
string<uuid>
required

The agent's id

Body

application/json
text
string
Maximum string length: 2000

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,
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)$
createdAt
string<date-time>
required
text
string | null

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

sender
object