Skip to main content
GET
List events

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

Query Parameters

after
integer
Required range: 0 <= x <= 9007199254740991

Response

The events

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