Chatspark
K

API Reference

v1
K

List Agents

List all agents for the authenticated user. Uses cursor-based pagination.

GET

/api/v1/agents

Pro+

Query Parameters

NameTypeRequiredDescription
limitinteger

Max items per page (1-100). Default: 20

cursorstring

Cursor from previous response for next page

Response Schema

NameTypeRequiredDescription
agentsarrayRequired

List of agent objects

nextCursorstring | nullRequired

Cursor for next page, or null if no more

Each agent includes: id, name, botName, botAvatar, websiteUrl, status, chatbotType, gpt4, createdAt, updatedAt.

json

{
  "agents": [
    {
      "id": 123,
      "name": "Support Bot",
      "botName": "Support Bot",
      "botAvatar": "https://...",
      "websiteUrl": "https://example.com",
      "status": "listed",
      "chatbotType": "chatbot",
      "gpt4": false,
      "createdAt": "2025-01-15T10:00:00.000Z",
      "updatedAt": "2025-02-20T14:30:00.000Z"
    }
  ],
  "nextCursor": "124"
}

Code Examples

curl -X GET "https://chatspark.io/api/v1/agents?limit=20" \
  -H "Authorization: Bearer cs_live_..."

Previous

Send Message

Next

Get Agent