Skip to main content
The API is GraphQL at one address:
Send an API key as a bearer token.

What a key can call

Seven queries, all reads. See operations. Every other operation answers API keys cannot do this. That includes every mutation.

Conventions

  • Dates are ISO 8601 strings in UTC. startDate and endDate are required where they appear. A range can be at most 731 days.
  • Pages start at 0. pageSize is at most 100, or 25 when messages are included.
  • IDs. Agent IDs are UUIDs. Conversation IDs are strings.
  • Roles in messages. USER is the visitor. ASSISTANT is the agent.
  • Visitor conversations only. A key reads the public chat. It never gets the internal staff chat, and the internalFilter argument has no effect for a key.
  • Introspection is off. This reference is the list of what a key can call.

Fields a key gets empty

ipAddress, userAgent, model, token counts and cost come back null. visitorId comes back as an empty string. The agent’s prompt, tools and keys come back null. See security and privacy.