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

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

Beta

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

Claude API

List Deployment Runs

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
→ 359 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/deployment_runs?beta=true&limit=10&page=example-page&deployment_id=deployment-id&trigger_type=schedule&has_error=true&created_at%5Bgte%5D=example-created-at%5Bgte%5D&created_at%5Blte%5D=example-created-at%5Blte%5D&created_at%5Bgt%5D=example-created-at%5Bgt%5D&created_at%5Blt%5D=example-created-at%5Blt%5D' \  -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 1000.
page query string No Opaque pagination cursor. Pass `next_page` from the previous response. Invalid or expired cursors return 400.
deployment_id query string No Filter to a specific deployment. Omit to list across all deployments in the workspace. Filtering by a non-existent `deployment_id` returns 200 with empty data.
trigger_type query string No Filter runs by what triggered them. Omit to return all runs.
has_error query boolean No Filter: true for runs with non-null `error`, false for runs with non-null `session_id`. Omit for all.
created_at[gte] query string No Return runs created at or after this time (inclusive).
created_at[lte] query string No Return runs created at or before this time (inclusive).
created_at[gt] query string No Return runs created strictly after this time (exclusive).
created_at[lt] query string No Return runs created strictly before this time (exclusive).

Response 200 OK

{
  "data": [
    {
      "type": "deployment_run",
      "id": "string",
      "deployment_id": "string",
      "trigger_context": {
        "type": "schedule",
        "scheduled_at": "2026-09-03T00:00:00Z"
      },
      "session_id": "string",
      "error": {
        "type": "environment_archived_error",
        "message": "string"
      },
      "agent": {
        "type": "agent",
        "id": "agent_011CZkYqphY8vELVzwCUpqiQ",
        "version": 1
      },
      "created_at": "2026-09-03T00:00:00Z"
    }
  ],
  "next_page": "string"
}
Get a free Claude API key → sponsored

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