Skip to main content
These routes use resource: "genies" and require no API key. They are intended for consumer-facing surfaces — embedded widgets, public genie pages, QR code landing pages, and marketplace listings. Only Genies with is_public: true (or is_marketplace_genie: true) are returned. Private Genies can be accessed via the url action by passing a valid X-Agent-Access-Token header.

Actions

get

Returns a single public Genie by UUID, including its page and QR code data. Parameters Response
Returns AGENT_NOT_FOUND if the Genie does not exist or is not public.

all

Paginated list of public Genies with full data (including page and QR codes). Supports search and filtering. Parameters Response

list

Paginated list of public Genies with a lightweight field set — suitable for dropdowns and catalogue views. Parameters Response

url

Loads a Genie by its URL slug (url_name). Used by the embedded widget and genie page to bootstrap a conversation. Validates access for private Genies via an access token. Parameters Headers Response
Private Genie error (when is_public: false and no valid token):
Access tokens are validated against agent_access_grants — expired or exhausted grants are rejected. Each valid use increments the grant’s use_count.

request-access

Submits an access request for a private Genie identified by URL slug. Notifies the Genie owner by email. If the requester does not have an account, one is created automatically and a welcome email with a set-password link is sent. Parameters Response
Only valid for private Genies (is_public: false). Returns VALIDATION_ERROR if the Genie is already public.

accept-invite

Accepts an invitation to access a Genie. Grants the user direct access via agent_users and links the Genie to their consumer profile. If the user does not have an account, one is created and a welcome email is sent. Parameters Response

log-qr-scanned

Logs a QR code scan event to the activity feed. Optionally associates the scan with a known consumer. Parameters Response

Error codes