REST endpoints
List agents
The agents of your workspace, with their IDs, public keys, models and number of sources.
GET
/api/v1/agentsSend your API key in the Authorization: Bearer af_live_… header. See Authentication.
Shell
curl https://anytimereply.com/api/v1/agents -H "Authorization: Bearer af_live_YOUR_KEY"Response
200 OK
{
"data": [
{
"id": "3f2c9a8e-5d1b-4c7a-9e2f-0b6d4a1c8e77",
"name": "Support",
"public_key": "k8Jd2…",
"model": "gpt-4o-mini",
"created_at": "2026-05-02T08:14:22.000Z",
"last_trained_at": "2026-10-18T23:05:10.000Z",
"sources": 6
}
]
}Fields
idstringUse it as
{id} / agent_id in other endpoints.namestringThe agent's name.
public_keystringUsed by the chat bubble (
data-agent), the hosted page and the help center.modelstringThe AI model the agent answers with.
created_atstringWhen the agent was created.
last_trained_atstring | nullWhen its knowledge last finished training.
sourcesnumberHow many data sources it has.
Agents are ordered by creation date, oldest first.
Was this page helpful?
Still stuck? Contact us