Agents
List agents
Returns the agents your API key can access. A key scoped to All agents returns every agent in your company; a key scoped to Specific agents returns only the agents linked to that key.
Authentication
AuthorizationBearerAuthenticate server-side requests with a Fonema API key. Create one in the API keys section of the Dashboard and send it in the Authorization header as Bearer <token>. Keep keys out of client-side code and public repositories.
Query parameters
pageintegerOptionalDefaults to 1Page number to retrieve (1-based). Values below 1 fall back to 1.
limitintegerOptionalDefaults to 20Number of agents per page. Maximum 100.
Response
totalintegerTotal number of agents accessible by this key.
limitintegerPage size used for this response.
offsetintegerNumber of agents skipped before this page.
currentPageintegerThe page returned.
totalPagesintegerTotal number of pages available.
agentsarrayList of agents. Each item contains the agent
name and its slug.tip
Use the slug returned here as the identifier for Get agent and Edit agent requests.