apicheats.dev anthropic/llms.txt Raw .md
GET

GET /v1/agents?beta=true — Claude API

Beta

Anthropic API key (required); https://api.anthropic.com

Claude API

List Agents

Base URL
https://api.anthropic.com
Auth
x-api-key: <ANTHROPIC_API_KEY>
Last verified
2026-10-20 · upstream hash matched
Actions Try in browser→
Agents: curl -H "Accept: text/markdown" this URL
→ 262 tokens · Vary: Accept

Critical gotchas

Authentication uses the x-api-key header and requests also require an anthropic-version header.

The official OpenAPI URL is discovered from the SDK repository manifest and must remain under Anthropic's trusted Stainless storage prefix.

cURL

curl -X GET 'https://api.anthropic.com/v1/agents?beta=true&limit=10&page=example-page&created_at%5Bgte%5D=example-created-at%5Bgte%5D&created_at%5Blte%5D=example-created-at%5Blte%5D&include_archived=true' \  -H "x-api-key: $ANTHROPIC_API_KEY" \  -H 'anthropic-version: 2023-06-01'

Parameters

Name In Type Required Description
limit query integer No Maximum results per page. Default 20, maximum 100.
page query string No Opaque pagination cursor from a previous response.
created_at[gte] query string No Return agents created at or after this time (inclusive).
created_at[lte] query string No Return agents created at or before this time (inclusive).
include_archived query boolean No Include archived agents in results. Defaults to false.

Response 200 OK

{
  "data": [
    {
      "type": "agent",
      "id": "agent_011CZkYpogX7uDKUyvBTophP",
      "version": 1,
      "name": "My First Agent",
      "description": "A general-purpose starter agent.",
      "model": {
        "id": "claude-opus-5",
        "speed": "standard"
      },
      "system": "You are a general-purpose agent that can research, write code, run commands, and use connected tools to complete the user's task end to end.",
      "tools": [
        {
          "type": "agent_toolset_20260401",
          "default_config": {
            "enabled": true,
            "permission_policy": {
              "type": "always_ask"
            }
          },
          "configs": []
        }
      ],
      "mcp_servers": [
        {
          "type": "url",
          "name": "example-mcp",
          "url": "https://example-server.modelcontextprotocol.io/sse"
        }
      ],
      "skills": [
        {
          "type": "anthropic",
          "skill_id": "xlsx",
          "version": "1"
        },
        {
          "type": "custom",
          "skill_id": "skill_011CZkZFNu9hAbo3jZPRgTlx",
          "version": "2"
        }
      ],
      "multiagent": null,
      "metadata": {
        "foo": "bar"
      },
      "created_at": "2026-03-15T10:00:00Z",
      "updated_at": "2026-03-15T10:00:00Z",
      "archived_at": null
    }
  ],
  "next_page": "string"
}
Get a free Claude API key → sponsored

Affiliate link - we may earn a commission, at no extra cost to you.