API
Agents API

On this page
These routes use the JSON envelope. Scalar lists them under Agents at /docs/api in a local environment. The OpenAPI document is /docs/api.json.
GET /api/agents/users
- Auth:
Authorization: BearerwithAGENTS_API_TOKEN. A dashboard session is not accepted. When the token is unset, every call is rejected. - Name:
api.agents.users.index - Request: optional
page(integer, minimum 1, default 1) andper_page(integer, 1 to 100, default 50). - Response:
200USERS_LISTED. Message: “The users were listed.”data.usersis newest first. Each user hasid,first_name,last_name,email,role,discovery_source, andlifecycle_stage.roleis the job they gave at registration.discovery_sourceis where they heard about Notifiable, or null.lifecycle_stageisSignup,Activated User,Engaged User,Customer,Power User,Churned, orClosed. It follows workspaces that person owns.workspaceslists each membership, oldest first. Each workspace hasid,name,slug,role(owner,admin,developer, orviewer),apps_count, andsubscription.apps_countis the number of apps in that workspace. A deleted app is not counted.subscriptionis null when the workspace has none. Otherwise it hasplan,status, andbilling_interval.data.page,data.per_page, anddata.totaldescribe the page. - Errors:
401INVALID_AGENT_TOKEN, typeauthentication_error, when the bearer token is missing, wrong, or the token is not configured.422VALIDATION_FAILED, typevalidation_error, whenpageorper_pageis invalid.429RATE_LIMIT_EXCEEDED, typerate_limit_exceeded, when the caller exceeds 60 requests per minute from one IP.500SERVER_ERROR, typeserver_error, when the request fails unexpectedly. The body does not include the exception text.
