Skip to main content
GET /v1/agents Lists Agents under the current account. Archived Agents are excluded unless include_archived=true is provided.

Headers

HeaderRequiredDescription
AuthorizationYesBearer <PAT>

Query parameters

ParameterTypeRequiredDefaultDescription
limitintegerNo20Items per page. Must be positive; values above 100 are capped at 100
after_idstringNo-Cursor; returns records after this ID in the current descending ID order. Do not combine with before_id
before_idstringNo-Cursor; returns records before this ID in the current descending ID order. Do not combine with after_id
include_archivedbooleanNofalseSet to true to include archived Agents
created_at[gte]stringNo-Include Agents created at or after this RFC 3339 timestamp
created_at[lte]stringNo-Include Agents created at or before this RFC 3339 timestamp
See Pagination for cursor semantics.

Example request

curl -X GET "https://api.qoder.com/api/v1/cloud/agents?limit=2" \
  -H "Authorization: Bearer $QODER_PAT"

Example response

HTTP 200 OK
{
  "data": [
    {
      "type": "agent",
      "id": "agent_019eXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
      "name": "doc-test-agent",
      "description": "",
      "model": "ultimate",
      "system": "You are a documentation testing assistant.",
      "tools": [],
      "mcp_servers": [],
      "skills": [],
      "metadata": {},
      "version": 1,
      "archived": false,
      "archived_at": null,
      "created_at": "2026-05-18T15:26:39.61669Z",
      "updated_at": "2026-05-18T15:26:39.61669Z"
    },
    {
      "type": "agent",
      "id": "agent_019eYYYYYYYYYYYYYYYYYYYYYYYYYYYY",
      "name": "test-agent-e2e",
      "description": "Agent used for end-to-end testing",
      "model": "ultimate",
      "system": "You are a testing assistant.",
      "tools": [],
      "mcp_servers": [],
      "skills": [],
      "metadata": {},
      "version": 2,
      "archived": false,
      "archived_at": null,
      "created_at": "2026-05-18T03:04:33.952256Z",
      "updated_at": "2026-05-18T03:05:28.023697Z"
    }
  ],
  "first_id": "agent_019eXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
  "last_id": "agent_019eYYYYYYYYYYYYYYYYYYYYYYYYYYYY",
  "has_more": true
}

Response fields

FieldTypeDescription
dataarray of Agent objectAgents on the current page
first_idstringID of the first record on this page
last_idstringID of the last record on this page
has_morebooleanWhether more records remain

Pagination

Page forward (next page):
curl "https://api.qoder.com/api/v1/cloud/agents?limit=20&after_id=agent_019eYYYY..."
Page backward (previous page):
curl "https://api.qoder.com/api/v1/cloud/agents?limit=20&before_id=agent_019eXXXX..."

Errors

HTTPTypeTrigger
400invalid_request_errorlimit is not a positive integer
400invalid_request_errorBoth before_id and after_id were provided
400invalid_request_errorcreated_at[gte] or created_at[lte] is not RFC 3339
401authentication_errorPAT invalid or expired
403permission_errorNot authorized for this operation
See Errors for the full error envelope.

Notes

  • Records are returned in descending ID order by default.
  • Archived Agents do not appear in the default listing. Pass include_archived=true to include them.
  • Pagination is cursor-based; offset-based pagination is not supported.

Agent setup

Create a reusable, versioned agent configuration.