Events

List events

Without after, the latest events come newest first. With after, the events that followed it come oldest first.

get/agents/{id}/events

Request

  • Base URL
    https://app.artil.ai/api
  • URL
    https://app.artil.ai/api/agents/{id}/events
  • Auth
    • HTTP bearer
    • or OAuth 2
      Authorization code: https://mcp.artil.ai/oauth/authorize
      Token URL: https://mcp.artil.ai/oauth/token scopes: agent

Path parameters

idstring uuid required

The agent's id

Query parameters

afterinteger

Response

The events

idinteger required
type'message.received' required
channel'email' | 'sms' | 'telegram' | 'url' required
messageIdstring uuid required

The message's id, to read it with

textstring nullable

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

threadstring nullable

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

toThreadstring nullable

The thread of the agent's client a relayed message is for

clientstring nullable

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

createdAtstring date-time required

Changes

No recorded changes to this operation across all 1 revision of this API.