Skip to content
AnytimeReply

REST endpoints

List agents

The agents of your workspace, with their IDs, public keys, models and number of sources.

GET/api/v1/agents

Send 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

idstring
Use it as {id} / agent_id in other endpoints.
namestring
The agent's name.
public_keystring
Used by the chat bubble (data-agent), the hosted page and the help center.
modelstring
The AI model the agent answers with.
created_atstring
When the agent was created.
last_trained_atstring | null
When its knowledge last finished training.
sourcesnumber
How many data sources it has.

Agents are ordered by creation date, oldest first.

Was this page helpful?
Still stuck? Contact us