CircleCI API V3 reference

Every V3 endpoint, its parameters and the statuses it can answer with. The machine-readable description of this API is /fullopenapi.yaml (JSON), catalogued at /.well-known/api-catalog.

This page is also served as markdown at /docs/api/v3/index.md, the conventions below at /docs/api/v3/conventions.md, and each entity as a file of its own - every one of them listed in /docs/api/v3/llms.txt.

CircleCI's V3 API. Every route is served under /api/v3 on https://circleci.com.

No standard is implemented. V3 takes the ideas that work from established API designs and combines them into one coherent whole, but it is not JSON:API, not problem+json, and not HAL. Familiar names like data, attributes, source.pointer and filter[...] carry no behaviour from those specs. Take everything from this document, and do not use a standard-conformant client library.

Conventions

Auth

Authorization: Bearer <token>. A token in a query parameter is rejected.

Ids

Ids are UUIDs, never slugs or names. Some collections resolve a slug via filter[slug].

One resource

{"data": {"id", "attributes", "references"}}. Each entry in references is an id, or an array of them, sometimes carrying a nested attributes object of denormalised fields from the referenced resource. Read the operation's schema for which fields those are, and fetch the resource itself for anything not listed - there is no way to request more inline.

A collection

{"data": [...], "page": {"next", "prev"}}. page.next and page.prev are opaque cursor values, not URLs - send one back as page[cursor], unmodified, and stop when page.next is null. page[limit] bounds are per-operation, and out of range is a 400, not a clamp.

Scoping

Scoping uses filter[...]. Most list operations require a scope filter such as filter[org_id] or filter[project_id] and return 400 without it, so read the operation's parameters.

Methods

GET reads, POST creates and performs named actions and partial updates, PUT replaces in full, DELETE removes. There is no PATCH.

Retrying

GET, PUT and DELETE are idempotent. V3 aims for idempotent POST wherever an operation allows it, but never assume a given POST is replayable: retrying one that timed out can create a second resource or fire an action twice. Retry a POST only if its own description says it is idempotent - otherwise re-read the collection to find out whether the first attempt landed.

Destructive operations

DELETE, and POST actions such as cancel, delete, revoke and purge, take effect immediately and normally cannot be undone. Treat them as irreversible: no operation here reverses another, and there is no dry-run mode. Where recovery is possible at all it is a support matter, not an API call.

Errors

Errors return a single error object, never an errors array: {"error": {"type", "id", "title", "detail", "source"}}. Branch on the status code; every member is optional. error.type, where present, separates causes within one status and is a bare token, not a URI. Never branch on title or detail. Quote error.id in support requests. Invalid input is always 400, never 422.

Rate limits

On 429, wait the Retry-After seconds, then back off exponentially. Responses carry RateLimit-Policy and RateLimit, the policy and the current state against it (IETF draft-ietf-httpapi-ratelimit-headers). Limits are per route and are not published: read the headers rather than assuming a figure.

Caching

Responses carry an ETag and a Cache-Control directive. Where a response has an ETag, send it back as If-None-Match to make the request conditional and get a 304 when nothing has changed.

Deprecation

A deprecated operation is marked deprecated: true and its responses carry Deprecation, whose value is true (RFC 9745), Sunset, the HTTP-date when the endpoint will be removed (RFC 8594), and Link with rel="deprecation", pointing at the migration documentation (RFC 8288). Migrate before the Sunset date. A removed route returns 410, permanently.

Additions

Response fields are added without a version change. Ignore members you do not recognise rather than failing to parse.

Expressions

Some filter and group_by inputs take an expression in the CircleCI expr language rather than a plain value. The identifiers an expression may reference vary by operation: read the operation's parameters for which inputs are expressions and which identifiers they accept.

Analysis

Credit spend aggregated by job, workflow or pipeline.

POST /api/v3/analysis/charges

Returns entities ranked by what they were charged.

EXPERIMENTAL — field names, request and response shapes, and pagination may change without notice; do not depend on this endpoint in production clients.

The required analysis field selects what charges are grouped by: charge.job, charge.workflow or charge.pipeline.

Each result is one entity name within one project, carrying the credits it was charged, the number of runs those credits are spread across, and the credits per run. A run is one instance of the entity: charge.job counts jobs, charge.workflow counts workflows, charge.pipeline counts pipelines.

Other dimensions of a charge are filters rather than groupings, so slice by them through filter: actor.id, actor.external_slug, resource.class and charge.type, alongside job, workflow and pipeline values.

The optional order_by field accepts [asc|desc]; the direction falls back to a per-field default.

Request body

{
  "analysis": "string",
  "scope": {
    "project_ids": "[uuid]",
    "from": "datetime",
    "to": "datetime"
  },
  "filter": "string",
  "order_by": "string",
  "page": {
    "limit": "int",
    "cursor": "string"
  }
}

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

POST /api/v3/analysis/test-jobs

Returns aggregated job results across runs, read from per-run test data.

EXPERIMENTAL — field names, request and response shapes, and pagination may change without notice; do not depend on this endpoint in production clients.

Request body

{
  "scope": {
    "project_ids": "[uuid]",
    "from": "datetime",
    "to": "datetime"
  },
  "filter": "string",
  "order_by": "string",
  "page": {
    "limit": "int",
    "cursor": "string"
  }
}

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

POST /api/v3/analysis/tests

Returns aggregated test results across runs.

EXPERIMENTAL — field names, request and response shapes, and pagination may change without notice; do not depend on this endpoint in production clients.

Each result is one test (project + workflow + job + classname + file + name) within the requested projects and time window.

The window is half-open, [from, to): an execution starting exactly on from is included, one starting exactly on to is not.

total_count is the number of non-skipped executions of the test in the window. flaky_count is the number of recorded flakes: executions that failed within a pipeline where the same test also passed. It reports the same figure the test_flake.pipeline metric reports for the same test and window. Repeated failures within one job attempt are recorded as a single flake. Skipped executions are excluded from every attribute, so a test that only ever skipped in the window is omitted.

Results come from pre-aggregated data: whole UTC days are read from a day-grain aggregate and the partial days at either end of the window from an hour-grain one. The lower bound widens to the start of the hour it falls in, and the aggregates trail real time by roughly an hour.

The optional order_by field accepts [asc|desc]; the direction falls back to a per-field default.

Request body

{
  "scope": {
    "project_ids": "[uuid]",
    "from": "datetime",
    "to": "datetime"
  },
  "filter": "string",
  "order_by": "string",
  "page": {
    "limit": "int",
    "cursor": "string"
  }
}

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

POST /api/v3/analysis/usage

Returns entities ranked by the resources they consumed.

EXPERIMENTAL — field names, request and response shapes, and pagination may change without notice; do not depend on this endpoint in production clients.

The time window selects the jobs that completed inside it. The required analysis field picks the granularity: usage.job, usage.workflow or usage.pipeline.

Each result is one entity name within one project. avg_cpu_used and avg_memory_bytes are means over that entity's samples, so they weight by run duration; peak_cpu_used and peak_memory_bytes are the largest single sample, not a concurrent total. cpu_utilization and ram_utilization are those means over what was allocated, where 1 is fully consumed and a low value means over-provisioned. network_bytes_received and network_bytes_transmitted are totals across runs. runs counts the entity's instances — jobs, workflows or pipelines per the granularity.

A pipeline is named only by its configuration, so usage.pipeline reports pipelines that carry no name together under an empty name.

Other dimensions are filters rather than groupings, so slice by them through filter: resource.class, resource.executor, resource.cpu (cores), resource.ram (mebibytes, unlike the *_memory_bytes attributes), execution, and job, workflow and pipeline values.

The optional order_by field accepts [asc|desc]; the direction falls back to a per-field default.

Request body

{
  "analysis": "string",
  "scope": {
    "project_ids": "[uuid]",
    "from": "datetime",
    "to": "datetime"
  },
  "filter": "string",
  "order_by": "string",
  "page": {
    "limit": "int",
    "cursor": "string"
  }
}

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

Approvals

Approvals gate a workflow on a person. An approval's id is the id of its approval job.

POST /api/v3/approvals/:id/approve

Approves a pending approval job.

Parameters

  • id uuid, required - The id.

Responses

  • 204 No Content
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested approvals does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

POST /api/v3/approvals/:id/reject

Rejects a pending approval by cancelling its approval job.

Cancelling the approval job ends the workflow's wait on it.

Parameters

  • id uuid, required - The id.

Responses

  • 204 No Content
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested approvals does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

Audit Access

Whether an organization is entitled to audit-log delivery. Derived from the plan tier and feature flags, not from any stored destination.

GET /api/v3/audit/access

Reports whether the org is entitled to audit-log delivery.

filter[org_id] is required, and the caller must be able to manage the org. Entitlement comes from the plan tier and feature flags, not from a stored destination, so the data entity does not include an id.

Parameters

  • filter[org_id] uuid, required

Responses

  • 200 OK
  • 400 Invalid storage configuration: check config.arn and config.bucket_name.
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 Not Found
  • 409 A destination already exists for this organization and target type.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

Audit Configs

Audit-log delivery destinations for an organization — the S3 or S3-compatible bucket audit logs are streamed to.

GET /api/v3/audit/configs

Serves the V3 audit-log destination collection for one org.

filter[org_id] is required; destinations are never listed across orgs.

The collection is paginated with page[limit] and page[cursor]; clients must follow page.next until it is absent. meta.total_count reports the unpaged total.

Parameters

  • filter[org_id] uuid, required
  • page[cursor] string
  • page[limit] int

Responses

  • 200 OK
  • 400 Invalid storage configuration: check config.arn and config.bucket_name.
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 Not Found
  • 409 A destination already exists for this organization and target type.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

POST /api/v3/audit/configs

Creates an audit-log destination for the referenced org.

Returns 201 with the created entity; the V3 renderer derives the Location header from its id. The body carries the server-derived fields the client cannot compute — id, connection_status, created_at — and the normalised bucket name and prefix.

Idempotency exception: a destination is unique per (org, target_type), so repeating a create for a target type that already exists returns 409 rather than succeeding again. The uniqueness is enforced by the store shared with the V2 surface, so it cannot be relaxed here.

Request body

{
  "data": {
    "attributes": {
      "target_type": "string",
      "is_disabled": "bool?",
      "config": {
        "arn": "string",
        "region": "string?",
        "bucket_name": "string",
        "bucket_prefix": "string?",
        "endpoint": "string?"
      }
    },
    "references": {
      "org?": {
        "id": "uuid"
      }
    }
  }
}

Responses

  • 201 Created
  • 400 Invalid storage configuration: check config.arn and config.bucket_name.
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 Not Found
  • 409 A destination already exists for this organization and target type.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

GET /api/v3/audit/configs/:id

Returns a single audit-log destination addressed by its id.

Parameters

  • id uuid, required - The id.

Responses

  • 200 OK
  • 400 Invalid storage configuration: check config.arn and config.bucket_name.
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested configs does not exist.
  • 409 A destination already exists for this organization and target type.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

DELETE /api/v3/audit/configs/:id

Deletes the audit-log destination addressed by id.

Parameters

  • id uuid, required - The id.

Responses

  • 204 No Content
  • 400 Invalid storage configuration: check config.arn and config.bucket_name.
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested configs does not exist.
  • 409 A destination already exists for this organization and target type.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

POST /api/v3/audit/configs/check-connection

Verifies a storage configuration without persisting it.

Nothing is stored, so the data entity does not include an id.

Request body

{
  "data": {
    "attributes": {
      "target_type": "string",
      "config": {
        "arn": "string",
        "region": "string?",
        "bucket_name": "string",
        "bucket_prefix": "string?",
        "endpoint": "string?"
      }
    },
    "references": {
      "org?": {
        "id": "uuid"
      }
    }
  }
}

Responses

  • 200 OK
  • 400 Connection timeout
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 Not Found
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

POST /api/v3/audit/configs/:id/update

Applies a partial update to the audit-log destination.

The existing config is read first so omitted fields keep their stored value; the service re-checks permissions on the write. The same fields wrapped in data.attributes are still accepted; that form is deprecated.

Parameters

  • id uuid, required - The id.

Request body

{
  "target_type": "string?",
  "is_disabled": "bool?",
  "config?": {
    "arn": "string",
    "region": "string?",
    "bucket_name": "string",
    "bucket_prefix": "string?",
    "endpoint": "string?"
  },
  "data?": {
    "attributes": {
      "target_type": "string?",
      "is_disabled": "bool?",
      "config?": {
        "arn": "string",
        "region": "string?",
        "bucket_name": "string",
        "bucket_prefix": "string?",
        "endpoint": "string?"
      }
    }
  }
}

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested configs does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

Catalog

Resource classes and images available to each executor.

GET /api/v3/catalog/offerings

Lists the images each resource class accepts, grouped by executor.

Deprecated images are left out of the per-class lists and reported under deprecated, keyed by executor. Docker executor classes accept any image, so their lists are empty.

Responses

  • 200 OK
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

GET /api/v3/catalog/resource-classes

Lists the resource classes for each executor, with their size and images.

There is one entry per executor, holding its classes keyed by the name used in config. Each class has its display name, CPU, RAM in MB, and the current and deprecated images it accepts. Remote docker classes list setup_remote_docker versions as their images. Docker executor classes accept any image, so their lists are empty.

Responses

  • 200 OK
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

Configs

Configuration compilation and validation.

POST /api/v3/configs/compile

Compiles the supplied pipeline config, expanding orbs and resolving parameters.

A config that fails to compile is reported as outcome "failed" with the reasons in meta.messages - still HTTP 200, since the request itself succeeded. The error envelope is reserved for request-level failures (malformed body, bad org, unauthorized).

Request body

{
  "data": {
    "attributes": {
      "config": "string",
      "should_preview_next": "bool?",
      "pipeline_parameters": "map[string]any?",
      "pipeline_values": "map[string]any?"
    },
    "references": {
      "org?": {
        "id": "uuid"
      }
    }
  }
}

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

Context Restrictions

Restrictions that limit which projects, groups, or expressions may use a context.

GET /api/v3/context-restrictions

Lists every restriction applied to a context.

The context_id filter is required. A context that does not exist, or that the caller is not entitled to see, returns 404.

All three restriction types are listed together: project, expression and group. A project restriction carries a project reference and a group restriction carries a group reference, each with the subject's name where it can be resolved. An expression restriction has no subject reference — its match_pattern is the expression itself.

created_at is absent on restrictions for which no creation timestamp is recorded.

Parameters

  • filter[context_id] uuid, required

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

POST /api/v3/context-restrictions

Creates a restriction for the context referenced in the request body.

restriction_type is "project", "expression" or "group". match_pattern is the project id, the expression, or the id of the group permitted to use the context respectively. To permit every member of the owning org, use a group restriction whose match_pattern is the org id.

The created item carries the same subject reference the restriction list returns, with the subject id only; the list endpoint resolves subject names.

Request body

{
  "data": {
    "attributes": {
      "restriction_type": "string",
      "match_pattern": "string"
    },
    "references": {
      "context": {
        "id": "uuid",
        "rel": "string?",
        "attributes": "string?"
      }
    }
  }
}

Responses

  • 201 Created
  • 400 Invalid restriction type.
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

DELETE /api/v3/context-restrictions/:id

Deletes a context restriction by id.

The context_id filter is required: restriction ids are only unique within a context, so the context must be named to identify the restriction and to authorise the delete.

Accepts the id of any restriction the list endpoint returns, of any type. For a group restriction that id is the group's id.

Parameters

  • id uuid, required - The id.
  • filter[context_id] uuid, required

Responses

  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested context-restrictions does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

Contexts

Secret contexts that provide environment variables to jobs at runtime.

GET /api/v3/contexts

Lists the contexts owned by an organization.

The org_id filter is required. The optional name filter matches case-insensitively on any part of the context name and is applied upstream, so it also narrows what pagination walks.

include=restrictions embeds each context's group restrictions, with the group names, under the references key "context-restrictions" — the same shape the single-context read documents. That is what a caller rendering a list of contexts and who may use them needs, in one request.

Project and expression restrictions are not embedded here. They are addressable only one context at a time, so including them across a page would cost a lookup per context. Read those from the context-restrictions endpoint, or from the single-context read, which embeds every type.

Parameters

  • filter[name] string
  • filter[org_id] uuid, required
  • include string
  • page[cursor] string
  • page[limit] int

Responses

  • 200 OK
  • 400 Include accepts "restrictions" only.
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

POST /api/v3/contexts

Creates a context owned by an organization.

Request body

{
  "data": {
    "attributes": {
      "name": "string"
    },
    "references": {
      "org": {
        "id": "uuid",
        "rel": "string?",
        "attributes": "string?"
      }
    }
  }
}

Responses

  • 201 Created
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

GET /api/v3/contexts/:id

Returns a single context by id.

The response carries the context itself. What restricts it is reported by the context-restrictions endpoint, and is embedded here under the references key "context-restrictions" only when the caller passes include=restrictions — every restriction type, each with the name of the project or group it points at.

Parameters

  • id uuid, required - The id.
  • include string

Responses

  • 200 OK
  • 400 Include accepts "restrictions" only.
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested contexts does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

DELETE /api/v3/contexts/:id

Deletes a context by id.

Parameters

  • id uuid, required - The id.

Responses

  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested contexts does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

GET /api/v3/contexts/:id/env-vars

Lists the environment variables of a context.

Values are never returned; each item carries truncated_value, the last four characters of the secret, so a caller can tell which value is in a slot. Items have no id — environment variables are addressed by name.

Parameters

  • id uuid, required - The id.
  • page[cursor] string
  • page[limit] int

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested contexts does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

DELETE /api/v3/contexts/:id/env-vars

Deletes an environment variable from a context by name.

Parameters

  • id uuid, required - The id.
  • filter[name] string, required

Responses

  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested contexts does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

POST /api/v3/contexts/:id/env-vars/set

Creates or updates an environment variable in a context.

Always responds 200 with the stored variable, whether or not it already existed. The returned item carries no id — environment variables are addressed by name — and no truncated_value.

Parameters

  • id uuid, required - The id.

Request body

{
  "name": "string",
  "value": "string"
}

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested contexts does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

Deploy Components

Release tracker components representing deployable units.

GET /api/v3/deploy/components

Returns an organization's deploy components, ordered by name.

filter[org_id] is required — there is no unscoped listing of components across organizations. filter[project_id] optionally narrows the result to the components owned by one CircleCI project. Results are paginated with page[limit] and page[cursor].

EXPERIMENTAL — this endpoint is experimental and may change without notice. Field names and response shapes are not yet stable, and the deploy API as a whole is still under review. Do not depend on it in production clients.

Parameters

  • filter[org_id] uuid, required
  • filter[project_id] uuid
  • page[cursor] string
  • page[limit] int

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 Not Found
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.
  • 503 Service unavailable.

GET /api/v3/deploy/components/:id

Returns a single deploy component by id.

A component the caller may not view is reported as not found, so the response does not reveal whether the id exists.

EXPERIMENTAL — this endpoint is experimental and may change without notice. Field names and response shapes are not yet stable, and the deploy API as a whole is still under review. Do not depend on it in production clients.

Parameters

  • id uuid, required - The id.

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested components does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.
  • 503 Service unavailable.

GET /api/v3/deploy/components/:id/versions

Returns a component's versions, most recently deployed first.

Versions stay a sub-collection of their component because they have no identity of their own: a version is keyed by its name and the component instance it was deployed to, so collection items carry no id. filter[environment_id] narrows the result to one deploy environment. Results are paginated with page[limit] and page[cursor].

EXPERIMENTAL — this endpoint is experimental and may change without notice. Field names and response shapes are not yet stable, and the deploy API as a whole is still under review. Do not depend on it in production clients.

Parameters

  • id uuid, required - The id.
  • filter[environment_id] uuid
  • page[cursor] string
  • page[limit] int

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested components does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.
  • 503 Service unavailable.

Deploy Config Suggestions

Async requests to validate a CircleCI config and generate a suggested deploy config.

POST /api/v3/deploy/config-suggestions

Validates a CircleCI config and asynchronously

generates a suggested config of the requested kind (deploy markers, deploy pipeline, or rollback pipeline). It stores the request and returns a 202 with a request ID; the client polls GET .../:id until phase=ended.

Request body

{
  "kind": "string",
  "config": "string",
  "org_id": "string",
  "project_id": "string",
  "is_validation_enabled": "bool?",
  "is_auto_rollback_on_failure": "bool?"
}

Responses

  • 202 Accepted
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

GET /api/v3/deploy/config-suggestions/:id

Returns the status of an async config suggestion request.

Parameters

  • id uuid, required - The id.

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested config-suggestions does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

Deploy Deployments

A deployment is one attempt to move a deploy component to a target version in an environment. Read in the scope of an organization via filter[org_id].

GET /api/v3/deploy/deployments

Returns an organization's deployments, most recently created first.

filter[org_id] is required — there is no unscoped listing of deployments across organizations, and the caller's permission to read that organization's deployments is what authorizes the request. The remaining filters narrow the result within the organization: by project, component, environment, the job that ran the deployment, a label, and a created-at window via filter[from] and filter[to].

Results are paginated with page[limit] and page[cursor]; the cursor carries its own direction, so page.prev walks back towards newer deployments.

EXPERIMENTAL — this endpoint is experimental and may change without notice. Field names and response shapes are not yet stable, and the deploy API as a whole is still under review. Do not depend on it in production clients.

Parameters

  • filter[label] string
  • filter[org_id] uuid, required
  • page[cursor] string
  • page[limit] int

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 Not Found
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.
  • 503 Service unavailable.

Deploy Diff Summaries

Async requests to generate a human-readable summary of a code diff.

POST /api/v3/deploy/diff-summaries

Generates a summary of a diff asynchronously.

Request body

{
  "diff": {
    "commit_messages": "[string]",
    "files": [{
      "filename": "string",
      "status": "string",
      "additions": "int",
      "deletions": "int",
      "patch": "string?"
    }]
  },
  "org_id": "string",
  "project_id": "string"
}

Responses

  • 202 Accepted
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 413 Request Entity Too Large
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

GET /api/v3/deploy/diff-summaries/:id

Gets the status of an async diff summary request.

Parameters

  • id uuid, required - The id.

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested diff-summaries does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

Deploy Environments

Release tracker environments for deployment management.

GET /api/v3/deploy/environments

Returns an organization's deploy environments, ordered by name.

filter[org_id] is required — there is no unscoped listing of environments across organizations. Results are paginated with page[limit] and page[cursor].

EXPERIMENTAL — this endpoint is experimental and may change without notice. Field names and response shapes are not yet stable, and the deploy API as a whole is still under review. Do not depend on it in production clients.

Parameters

  • filter[org_id] uuid, required
  • page[cursor] string
  • page[limit] int

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 Not Found
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.
  • 503 Service unavailable.

GET /api/v3/deploy/environments/:id

Returns a single deploy environment by id.

An environment the caller may not view is reported as not found, so the response does not reveal whether the id exists.

EXPERIMENTAL — this endpoint is experimental and may change without notice. Field names and response shapes are not yet stable, and the deploy API as a whole is still under review. Do not depend on it in production clients.

Parameters

  • id uuid, required - The id.

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested environments does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.
  • 503 Service unavailable.

Deploy Hooks

Ingest hooks that receive deploy validation payloads from an external monitoring provider and match them against the organization's active validation plans.

POST /api/v3/deploy/hooks/:id/validate

Receives validation webhook payloads from external monitoring providers.

Authenticate with an Authorization: Bearer header carrying an org-scoped deploy validation service token (CCIVWH_…), not a user API token. Upstream auth is optional on this route, so a request with no valid token is forwarded with no org context and rejected here with a 401 rather than being turned away at the gateway. A valid token resolves to the organization it was issued for. Auth that resolves to anything narrower than the org itself, a user token or a short lived PAT for instance, is rejected the same way.

The hook id in the path is an opaque identifier for the ingest hook — today the organization's own UUID — and must match the authenticated organization.

The body is the monitoring provider's own payload (Datadog, for example). Its schema is provider-specific and is not validated: a payload that matches no active validation plan, or that cannot be parsed at all, is still accepted. A 204 therefore means the webhook was received, not that a validation matched or that any plan changed state.

EXPERIMENTAL — this endpoint is experimental and may change without notice. Field names, request shapes and authentication semantics are not yet stable, and the deploy API as a whole is still under review. Do not depend on it in production clients.

Parameters

  • id uuid, required - The id.

Responses

  • 204 No Content
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested hooks does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

Deploy Settings

Per-project deploy configuration — the pipeline definitions run to deploy and to roll back. A singleton per project rather than an independently addressable resource.

GET /api/v3/deploy/settings

Returns a project's deploy settings.

Deploy settings are a singleton per project rather than an independently addressable resource, so they are selected with a required filter[project_id] instead of a path id, and the returned data.id is the project's own UUID.

A project that has never had deploy settings saved reports empty settings rather than a 404, matching the V2 behaviour: not having configured a deploy pipeline is a normal state, not a missing resource. A project the caller may not view is reported as not found.

EXPERIMENTAL — this endpoint is experimental and may change without notice. Field names and response shapes are not yet stable, and the deploy API as a whole is still under review. Do not depend on it in production clients.

Parameters

  • filter[project_id] uuid, required

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 Not Found
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.
  • 503 Service unavailable.

Factory Comments

Comments on factory plans, each quoting the plan text it is on.

GET /api/v3/factory/comments

Lists a plan's comments, oldest first, a page at a time.

filter[factory_plan_id] is required; filter[resolved] keeps open or resolved comments only. A plan that does not exist is not found.

Parameters

  • filter[factory_plan_id] uuid, required
  • filter[resolved] bool
  • page[cursor] string
  • page[limit] int

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 Plan not found
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

POST /api/v3/factory/comments

Appends a comment, created by the caller, to a plan.

quoted_text may be empty. A plan that does not exist is not found.

Request body

{
  "data": {
    "attributes": {
      "quoted_text": "string",
      "body": "string"
    },
    "references": {
      "factory_plan?": {
        "id": "uuid",
        "rel": "string?",
        "attributes": "any?"
      }
    }
  }
}

Responses

  • 201 Created
  • 400 A comment needs a factory_plan reference
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 Plan not found
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

GET /api/v3/factory/comments/:id

Returns a comment from the plan that holds it.

Parameters

  • id uuid, required - The id.

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested comments does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

DELETE /api/v3/factory/comments/:id

Deletes a comment.

A resolved comment can be deleted too.

Parameters

  • id uuid, required - The id.

Responses

  • 204 No Content
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested comments does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

GET /api/v3/factory/comments/:id/body

Returns a comment's body.

Parameters

  • id uuid, required - The id.

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested comments does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

PUT /api/v3/factory/comments/:id/body

Replaces a comment's body and returns it.

Parameters

  • id uuid, required - The id.

Request body

{
  "body": "string"
}

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested comments does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

POST /api/v3/factory/comments/:id/resolve

Resolves a comment.

A resolved comment keeps its first resolved_at.

Parameters

  • id uuid, required - The id.

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested comments does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

Factory Events

Events a human sends a plan's flow, each applied at the plan's next poll.

POST /api/v3/factory/events

Stores an event for a flow.

The plan's next poll applies every accepted event, oldest first; a prioritize, or an approval, on a flow with no outstanding task applies at once. Not idempotent: each create stores an event. An event is accepted until a poll applies or ignores it, then ended, with ended_at and an outcome, applied or ignored; a prioritize or approval that applies at once is returned ended. event is one of prioritize, address-comments, answer-open-questions, approve-for-units, approve-for-building, abandon-integrate, request-revision, end and repair. request-revision takes a why, repair may take one, and no other event does. Both apply in every state but an ended one. The plan's session gets request-revision's why at its next address-comments task, and a repair task for a repair once no integrate or review-plan runs for the plan. approve-for-units and approve-for-building are accepted before build while the flow does not have them, recorded for good, and act once the plan is in refine-proposal or refine-units, its review passed, and 5. Units has a body where the approval needs one. A plan in refine-units has its units approval, and so does a plan with approve-for-building. address-comments and answer-open-questions are accepted in every state until the flow ends, with a task outstanding or not; the plan's open questions, read when the event is sent, decide which: answer-open-questions while it has questions, address-comments while it has none. Either hands the flow back to the agent without moving it, and a request-revision there records its why and gives the agent an address-comments task, even while the PR is mergeable. An end needs a reason, completed, canceled, wont-do or duplicate, and no other event takes one. An end ends the plan: once its cleanup ran, the plan moves to ended, with outcome completed, canceled, rejected or duplicated for its reason. A completed plan releases the plans it blocks, as a merged one does. An event the flow does not accept now, with its pending events applied, is refused with 409 and not stored; one the flow has moved past by its next poll is ignored. A flow's next lists the human events that apply, except while plans blocking it are not merged: then it lists none, though end still applies. pr-state is a PR as it was read, with the head's checks, in pr_state; one that changes nothing is stored and ignored at the next poll, or, for a plan using the engine, when it is created. A plan using the engine applies every event at once: one that changes its flow is returned ended, applied, and clears an outstanding task it moves past, whose later submit is not found. address-comments and answer-open-questions take comments, each a quoted_text and a body (the answers, on answer-open-questions), and no other event does: 400. The request writes them to the plan, created by the caller, in order, then stores the event, which names them by comment ID, and which the flow records when it applies. A comment with no body is 400 and writes nothing. A refused event (409, 404) writes no comment; one the flow ignores later leaves its comments written. If storing the event fails, the comments are deleted and the request fails. A flow that is not the caller's, or that does not exist, is not found.

Request body

{
  "data": {
    "attributes": {
      "event": "string",
      "reason": "string?",
      "why": "string?",
      "pr_state?": {
        "pr": "string",
        "head": "string",
        "base": "string?",
        "is_conflicting": "bool?",
        "is_merged": "bool?",
        "threads": [{
          "id": "string",
          "path": "string",
          "line": "int",
          "url": "string",
          "version": "string?",
          "comments": [{
            "author": "string",
            "body": "string"
          }]
        }],
        "checks?": {
          "ci": {
            "verdict": "Verdict",
            "summary": "string?",
            "detail": "string?",
            "reviewed_at": "datetime?"
          },
          "review": {
            "verdict": "Verdict",
            "summary": "string?",
            "detail": "string?",
            "reviewed_at": "datetime?"
          }
        },
        "read_at": "datetime"
      },
      "comments?": [{
        "quoted_text": "string",
        "body": "string"
      }]
    },
    "references": {
      "factory_flow?": {
        "id": "uuid",
        "rel": "string?",
        "attributes": "any?"
      }
    }
  }
}

Responses

  • 201 Created
  • 400 An event needs a factory_flow reference
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 Flow not found
  • 409 The flow does not accept the event now
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

GET /api/v3/factory/events/:id

Returns an event.

It is accepted until a poll applies or ignores it, then ended, with ended_at and an outcome, applied or ignored. An event that is not the caller's, or that does not exist, is not found.

Parameters

  • id uuid, required - The id.

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested events does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

Factory Flows

Each plan's progress through a code factory: its state and outstanding task.

GET /api/v3/factory/flows

Lists a user's flows, sorted by plan.

An ended plan's flow is listed, in its end state. A flow whose plan is deleted while it is listed is left out. filter[user_id] is a user's UUID, or me for the caller; without it, the caller's. filter[session_id] is a session ID, and keeps the flows that session claims. A flow a worker claims references it as its factory_worker, with its hostname, version, phase and health; a worker that is gone or not stored is left out. A flow whose plan has a parent references it in factory_plans, with rel parent, as a plan does; an ended flow too. title, priority, is_using_engine, updated_at, phase, outcome, active_blocker_count, active_blocking_count, next and progress are as a flow serves them; see getting a flow.

Parameters

  • filter[session_id] uuid
  • filter[user_id] string

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

GET /api/v3/factory/flows/:id

Returns a flow.

factory_worker references the worker that claims it, as listing flows does. factory_plans references its plan's parent, as listing flows does. id is the plan ID of the flow, whoever holds it. A plan with no flow, an id that is no plan, or a plan deleted while its flow is read, is not found. title is the flow's plan's title, priority its plan's priority, is_using_engine whether the engine runs it, always present, and updated_at when the flow last changed, RFC 3339 in UTC: when it was created, or a task, state or event last changed it. next is every transition available once the flow's pending events have applied, in order, and who takes it: actor is human, session, daemon, blockers or sub-plans; at most one of event, task_category and action (what the human does outside factory, merge-pr) is set, none for blockers and sub-plans; is_dispatched is true when that task is the flow's outstanding one; is_required is true for the entries one of which must happen for the flow to move on; due_at is when the daemon's next check of the base is due; reason says what the entry does and why it is listed. It is empty once the flow ended. waiting_on is who the flow waits on: the actor of its task entry, else blockers or sub-plans, else human for a required human entry, else daemon for a required timed read; waiting_on_why joins the reasons of the entries it came from. Both are absent once the flow ended. progress is how far the flow is along, computed as next is, once its pending events have applied: summary is one line of the work under way right now, absent when none is; the counts behind it are each absent where they do not apply. It is absent once the flow ended. phase is received until the plan is prioritized, started while its flow runs, ended once it ends; outcome, once ended, is merged, completed, canceled, rejected or duplicated. active_blocker_count is how many of its blockers have not reached their until; listing its blockers lists them, with is_active. active_blocking_count is how many plans it blocks whose flow has not ended and whose block it has not released: it has not reached that block's until.

Parameters

  • id uuid, required - The id.

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested flows does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

GET /api/v3/factory/flows/:id/blockers

Lists the plans blocking a flow's plan, oldest first.

Each has its own flow's flow state, whoever holds that flow. id is the plan ID of the flow, whoever holds it. A plan with no flow, or an id that is no plan, is not found. A blocker with no flow has no state. is_active is true until its flow reaches until; a blocker with no flow, or no state, is active. phase, outcome and is_using_engine are as a flow serves them; see getting a flow.

Parameters

  • id uuid, required - The id.

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested flows does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

POST /api/v3/factory/flows/:id/claim

Claims a flow for a worker alone, with no session.

id is the plan ID of the flow and worker_id the worker ID. It answers 200 with the flow, as getting a flow serves it, after the claim. A flow the worker already claims alone changes nothing and answers 204. A flow that is not the caller's or that conductor does not have is not found, of type flow_not_found, checked first; a worker that is not the caller's, that is not stored, or that is gone is not found, of type worker_not_found. A flow that has ended is a conflict, of type flow_ended; a flow another worker or any session claims, of type flow_claimed; a flow that changed while claiming, of type claim_changed, which a client may retry. A worker that has ended or is unresponsive may claim.

Parameters

  • id uuid, required - The id.

Request body

{
  "worker_id": "uuid"
}

Responses

  • 200 OK
  • 204 No Content
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested flows does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

GET /api/v3/factory/flows/:id/diff

Returns the unified diff of a flow's PR, as GitHub serves it.

id is the plan ID of the flow, whoever holds it. A plan with no flow, an id that is no plan, or a flow with no PR yet, is not found. GitHub failing to serve the diff, for any reason, is a bad gateway.

Parameters

  • id uuid, required - The id.

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested flows does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.
  • 502 Bad Gateway

POST /api/v3/factory/flows/:id/drop-pending

Drops a flow's failed pending input.

Its engine then takes the next. id is the plan ID of the flow, which is returned once the engine dropped the input, or found it had already applied; the body is empty. A flow that is not the caller's or that conductor does not have is not found, of type flow_not_found. A plan not using the engine is a conflict, of type flow_not_using_engine; an engine with no failed pending input, of type nothing_to_drop. title, priority, is_using_engine, updated_at, active_blocker_count, active_blocking_count, next and factory_plans are as a flow serves them; see getting a flow.

Parameters

  • id uuid, required - The id.

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested flows does not exist.
  • 409 Conflict
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

POST /api/v3/factory/flows/:id/release

Frees the claim of a flow, whichever worker or session holds it.

id is the plan ID of the flow. The body is empty. When the flow is claimed, it frees the claim as a session's release does, and answers 200 with the flow, as getting a flow serves it, after the release. A flow that is not claimed changes nothing and answers 204. A flow that is not the caller's or that conductor does not have is not found, of type flow_not_found. A claim that changed first is a conflict.

Parameters

  • id uuid, required - The id.

Responses

  • 200 OK
  • 204 No Content
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested flows does not exist.
  • 409 Conflict
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

POST /api/v3/factory/flows/:id/repair

Saves a repair task as the flow's outstanding task.

id is the plan ID of the flow, which is returned. why may be empty, and so may the whole body. A flow that is not claimed, or whose integrate or review-plan still runs, is a conflict; the type of the second is repair_running. A flow using the engine is sent a repair event instead, which its engine applies at once; one that does not accept it now is a conflict, and one that is not claimed is not refused. title, priority, is_using_engine, updated_at, active_blocker_count, active_blocking_count, next and factory_plans are as a flow serves them; see getting a flow.

Parameters

  • id uuid, required - The id.

Request body

{
  "why": "string"
}

Responses

  • 200 OK
  • 400 Request body unreadable
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested flows does not exist.
  • 409 Conflict
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

Factory Plans

Plans a code factory builds, each run as a Temporal workflow.

GET /api/v3/factory/plans

Lists the open plans a user created, oldest first, a page at a time.

filter[user_id] is a user's UUID, or me for the caller. A plan is open until it ends. Each plan has is_using_engine, always present.

Parameters

  • filter[user_id] string, required
  • page[cursor] string
  • page[limit] int

Responses

  • 200 OK
  • 400 Filter[user_id] is not a uuid or me
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

POST /api/v3/factory/plans

Creates a plan, optionally under a parent plan.

The plan starts in init, with its flow, on a branch named for its title, and is created by the caller. Its text is text, or, when text is empty or only whitespace, the plan skeleton headed by its title. A parent that is not a plan is not found. Its target is vcs, the GitHub repositories it is built in, each among its parent's, and base, the branch its work starts from and its PR merges into; both are optional, and an empty base is the repository's default branch. A bad vcs entry, or a repo its parent lacks, is a bad request. is_using_engine, a boolean, marks a plan whose flow is the engine's to run, and never changes; absent, a sub-plan takes its parent's and a top-level plan is true. A sub-plan naming a different one from its parent's, or a non-boolean, is a bad request. The plan served has is_using_engine, always present.

Request body

{
  "data": {
    "attributes": {
      "title": "string",
      "text": "string",
      "vcs?": [{
        "provider": "string",
        "repo_full_name": "string"
      }],
      "base": "string?",
      "is_using_engine": "bool?"
    },
    "references": {
      "factory_plans": [{
        "id": "uuid",
        "rel": "string?",
        "attributes": "any?"
      }]
    }
  }
}

Responses

  • 201 Created
  • 400 A plan has at most one factory_plans reference, with rel "parent"
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 Parent plan not found
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

GET /api/v3/factory/plans/:id

Returns a plan, with is_using_engine, always present.

Parameters

  • id uuid, required - The id.

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested plans does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

DELETE /api/v3/factory/plans/:id

Deletes a plan, its comments and its links to other plans.

Its workflow goes too, ended or not, and so does its flow. A plan with sub-plans, or one a session claims, is a conflict.

Parameters

  • id uuid, required - The id.

Responses

  • 204 No Content
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested plans does not exist.
  • 409 Conflict
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

POST /api/v3/factory/plans/:id/add-vcs

Adds the GitHub repositories in vcs to a plan.

It answers 200 with the plan, as getting a plan does. One the plan already records is skipped. A bad entry, or a repository the plan's parent lacks, is a bad request, and adds none.

Parameters

  • id uuid, required - The id.

Request body

{
  "vcs": [{
    "provider": "string",
    "repo_full_name": "string"
  }]
}

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested plans does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

POST /api/v3/factory/plans/:id/block

Blocks a plan by each plan named, at and until a flow state.

An absent at or until is its default, build and ended. at is build or integrate, also named Building - Agent and Integrating - Agent; until is one of those or ended, also named Done. Any other is a bad request. A block is served in the first names. Its other blockers are kept, and it returns them all as the plan's blockers resource does. It changes nothing unless every one is a plan and none would close a cycle. A blocker whose is_using_engine differs from the plan's is a conflict, and changes nothing either.

Parameters

  • id uuid, required - The id.

Request body

{
  "factory_plan_ids": "[uuid]",
  "at": "string",
  "until": "string"
}

Responses

  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested plans does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

GET /api/v3/factory/plans/:id/blockers

Lists the plans blocking a plan, whatever their flow state, oldest first.

Each has is_using_engine, always present.

Parameters

  • id uuid, required - The id.

Responses

  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested plans does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

POST /api/v3/factory/plans/:id/remove-vcs

Removes the GitHub repositories in vcs from a plan.

It answers 200 with the plan, as getting a plan does. One the plan does not record is skipped. A bad entry, or a repository one of the plan's sub-plans records, is a bad request, and removes none.

Parameters

  • id uuid, required - The id.

Request body

{
  "vcs": [{
    "provider": "string",
    "repo_full_name": "string"
  }]
}

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested plans does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

POST /api/v3/factory/plans/:id/set-priority

Sets a plan's priority: highest, high, medium, low or lowest.

It answers 200 with the plan, as getting a plan does. A plan's priority is medium until one is set; setting the one it has changes nothing. It changes nothing in the plan's flow. Another priority, or none, is a bad request.

Parameters

  • id uuid, required - The id.

Request body

{
  "priority": "string"
}

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested plans does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

GET /api/v3/factory/plans/:id/structured-content

Returns a plan's sections, the units of 5. Units and the questions of 3. Open Questions.

Parameters

  • id uuid, required - The id.

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested plans does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

GET /api/v3/factory/plans/:id/text

Returns a plan's text.

Parameters

  • id uuid, required - The id.

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested plans does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

PUT /api/v3/factory/plans/:id/text

Replaces a plan's text and returns it.

Parameters

  • id uuid, required - The id.

Request body

{
  "text": "string"
}

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested plans does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

POST /api/v3/factory/plans/:id/unblock

Removes each plan named from a plan's blockers.

It returns the rest as the plan's blockers resource does, and changes nothing unless every one blocks the plan.

Parameters

  • id uuid, required - The id.

Request body

{
  "factory_plan_ids": "[uuid]"
}

Responses

  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested plans does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

Factory Tasks

A flow's outstanding task, handed to the session that claims its plan.

POST /api/v3/factory/tasks/:id/heartbeat

Shows a task still running.

id is the task ID. A task no claimed flow has outstanding is no content, too.

Parameters

  • id uuid, required - The id.

Responses

  • 204 No Content
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested tasks does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

POST /api/v3/factory/tasks/:id/submit

Submits a task's result.

id is the task ID. A task that is not outstanding is not found; a session's result for a daemon task, or the daemon's for a session's, is forbidden; a result the task's flow refuses is a conflict.

Parameters

  • id uuid, required - The id.

Request body

{
  "result": {
    "outcome": "string",
    "payload": "map[string]any"
  }
}

Responses

  • 204 No Content
  • 400 Result is required
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested tasks does not exist.
  • 409 Conflict
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

Factory Workers

Daemon workers that claim factory flows and run their tasks.

GET /api/v3/factory/workers

Lists the caller's workers, sorted by ID.

A worker that is gone is left out. It answers a page at a time: page[limit], from 1 to 250, default 20, and page[cursor], the page.next of the page before; page.next is set while more remain. A malformed page[cursor] or a page[limit] out of range is a bad request. With filter[flow_id] the page parameters are checked but change nothing, and no page.next is set. With the filter[flow_id] query parameter, it lists the worker that claims that flow instead: at most one, in the same envelope. It answers 200 with that worker, or with an empty data when nothing claims the flow, when its worker is gone or not stored, or when the flow is not the caller's or conductor does not have it. A malformed filter[flow_id] is a bad request, and an empty one lists every worker.

Parameters

  • filter[flow_id] uuid
  • page[cursor] string
  • page[limit] int - Maximum items in one page. Out-of-range values are rejected with 400 rather than clamped. The maximum is 250.

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

GET /api/v3/factory/workers/:id

Returns a worker.

id is the worker ID. A worker that is not the caller's, that is not stored, or that is gone is not found, of type worker_not_found. phase is started, or ended after the worker's daemon stopped cleanly; current_ended_at is when, and is absent while it is started. health is ok while the worker's daemon heartbeats, and unresponsive once it has not been seen for the lease; it is absent when the worker is ended. A worker not seen for the gone age is gone, and an ended one is gone that long after its stop. A put makes a gone worker started again. last_seen_at is when the worker was last put or recorded a heartbeat. headless is the last headless report of each flow the worker claims and its daemon runs headless, sorted by flow: its state, health, health_reason and reported_at, when conductor received it, with the flow as factory_flow; [] when none. flow_errors: the daemon's flow errors, sorted by flow, with the flow as factory_flow; [] when none.

Parameters

  • id uuid, required - The id.

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested workers does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

PUT /api/v3/factory/workers/:id

Stores a worker, started.

id is the worker ID. The body takes hostname and version, both required; one missing is a bad request, and stores nothing. It answers 200 with the worker, as getting a worker serves it. Putting a worker again replaces its hostname and version, and starts it: an ended or gone worker is started again. Its sessions stay as stored. A worker of another caller with the same id is a separate worker.

Parameters

  • id uuid, required - The id.

Request body

{
  "data": {
    "attributes": {
      "hostname": "string",
      "version": "string",
      "phase": "any?",
      "health": "any?",
      "last_seen_at": "any?",
      "current_ended_at": "any?"
    }
  }
}

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested workers does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

POST /api/v3/factory/workers/:id/poll

Hands a worker the next task of a flow it claims alone.

id is the worker ID and flow_id the plan ID of the flow. The flow is decided and the first task the decision gives is handed out, daemon tasks and session tasks alike, a task already handed again; the task is as a session's poll serves it. No task is no content. A worker that is not the caller's, that is not stored, or that is gone is not found, of type worker_not_found, checked first; a flow that is not the caller's or that conductor does not have is not found, of type flow_not_found. A flow the worker does not claim alone, released or claimed by another worker or a session, is a conflict, of type flow_not_claimed; a refused decision, of type task_refused.

Parameters

  • id uuid, required - The id.

Request body

{
  "flow_id": "uuid"
}

Responses

  • 200 OK
  • 204 No Content
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested workers does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

POST /api/v3/factory/workers/:id/record-heartbeat

Records a worker's heartbeat.

id is the worker ID. The body is empty, or holds headless and flow_errors: headless is one report for each flow the worker's daemon runs headless, or one per role (qa or builder) of a flow whose task runs as roles, each its flow_id, its role when it has one, and the session heartbeat's state (waiting, running or attached), health (ok, unresponsive or unavailable) and health_reason, absent when health is ok. It marks the worker seen now. A headless list replaces the worker's stored reports, each stamped reported_at with when it arrived, less those of flows the worker does not claim; [] clears them, and no headless, or null, keeps them. flow_errors is the daemon's flow errors, each a flow it cannot move on until the user acts, with its problem and fix; absent or null keeps the stored ones, [] clears them; a flow the worker does not claim is dropped. A flow listed twice in either list (headless: unless every item of the flow has a role and no two share one), an item missing a field, a field out of range, or an unknown member is a bad request, and changes nothing. It answers 200 with the worker, as getting a worker serves it. An ended worker that is not gone is started again. Its sessions stay as stored. A worker that is not the caller's, that is not stored, or that is gone is not found, of type worker_not_found.

Parameters

  • id uuid, required - The id.

Request body

{
  "headless?": [{
    "flow_id": "uuid",
    "role": "string",
    "state": "string",
    "health": "string",
    "health_reason": "string"
  }],
  "flow_errors?": [{
    "flow_id": "uuid",
    "problem": "string",
    "fix": "string"
  }]
}

Responses

  • 200 OK
  • 400 Request body unreadable
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested workers does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

POST /api/v3/factory/workers/:id/record-stop

Records that a worker's daemon stopped cleanly.

id is the worker ID. The body is empty. It ends the worker and answers 200 with the worker, as getting a worker serves it. Its sessions stay as stored. A worker that is already ended changes nothing and answers 204. A worker that is not the caller's, that is not stored, or that is gone is not found, of type worker_not_found.

Parameters

  • id uuid, required - The id.

Request body

{

}

Responses

  • 200 OK
  • 204 No Content
  • 400 Request body unreadable
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested workers does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

GET /api/v3/factory/workers/:id/sessions

Returns a worker's sessions.

id is the worker ID. It answers 200 with the sessions the last put stored, sorted by id, less any flow released since: a flow dropped from its session's factory_flows. A worker with none serves an empty list. A worker that is not the caller's, that is not stored, or that is gone is not found, of type worker_not_found.

Parameters

  • id uuid, required - The id.

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested workers does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

PUT /api/v3/factory/workers/:id/sessions

Replaces a worker's sessions.

id is the worker ID. The body is plain JSON, not a data envelope: the sessions, each with an id, attributes (a dir, a kind of interactive or headless, and settings) and references (factory_flows, the flows it works, each an id), all but settings required; settings defaults to is_headless_allowed false. An empty sessions list clears them; a body with no sessions is a bad request. A session ID twice, a flow in two sessions or twice in one, an item with an unknown member such as location or machine, an id or flow id that is no UUID, a flow reference with no id, a rel or attributes, and an item missing a required member or with a null factory_flows are bad requests, and store nothing. It answers 200 with the sessions as stored, sorted by id, as getting them serves them; putting the same sessions again answers the same 200. Sessions stay as stored over a put, a heartbeat and a stop of the worker. Releasing a flow drops it from the factory_flows of the session that lists it. A worker that is not the caller's, that is not stored, or that is gone is not found, of type worker_not_found. A factory_flows entry the worker does not claim is a conflict, of type flow_not_claimed, naming the flow. A session ID that another of the caller's workers lists is a conflict, of type session_listed, naming that worker; a gone worker's listing does not count. A conflict stores nothing.

Parameters

  • id uuid, required - The id.

Request body

{
  "sessions?": [{
    "id": "uuid",
    "attributes": {
      "dir": "string",
      "kind": "string",
      "settings": {
        "is_headless_allowed": "bool"
      }
    },
    "references?": {
      "factory_flows?": [{
        "id": "uuid",
        "rel": "string?",
        "attributes": "any?"
      }]
    }
  }]
}

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested workers does not exist.
  • 409 Conflict
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

Groups

RBAC groups within an organization. Used to scope access to resources such as the contexts a group may execute.

GET /api/v3/groups

Lists the groups owned by an organization.

An optional filter[project_id] narrows results to groups that have a role grant on the given project and includes the role in the response attributes. This filter is only supported for standalone (circleci) orgs; legacy orgs are rejected by the backend.

Parameters

  • filter[project_id] uuid

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

POST /api/v3/groups

Creates a group owned by an organization.

Request body

{
  "data": {
    "attributes": {
      "name": "string",
      "description": "string"
    },
    "references": {
      "org": {
        "id": "uuid",
        "rel": "string?",
        "attributes": "string?"
      }
    }
  }
}

Responses

  • 201 Created
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

GET /api/v3/groups/:id

Returns a single group by id.

Parameters

  • id uuid, required - The id.

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested groups does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

DELETE /api/v3/groups/:id

Deletes a group by id.

Parameters

  • id uuid, required - The id.

Responses

  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested groups does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

PUT /api/v3/groups/:id

Replaces a group's editable fields and returns the updated group.

Parameters

  • id uuid, required - The id.

Request body

{
  "data": {
    "attributes": {
      "name": "string",
      "description": "string"
    }
  }
}

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested groups does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

POST /api/v3/groups/:id/add-members

Adds one or more users to a group.

Parameters

  • id uuid, required - The id.

Request body

{
  "users": [{
    "id": "uuid",
    "rel": "string?",
    "attributes": "string?"
  }]
}

Responses

  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested groups does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

POST /api/v3/groups/:id/add-projects

Grants a role to a group on one or more projects.

Returns 204; grants are not individually addressable so there is no resulting state.

Parameters

  • id uuid, required - The id.

Request body

{
  "role": "string",
  "projects": [{
    "id": "uuid",
    "rel": "string?",
    "attributes": "string?"
  }]
}

Responses

  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested groups does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

GET /api/v3/groups/:id/members

Lists the members of a group.

Parameters

  • id uuid, required - The id.

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested groups does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

POST /api/v3/groups/:id/remove-members

Removes one or more users from a group.

Parameters

  • id uuid, required - The id.

Request body

{
  "users": [{
    "id": "uuid",
    "rel": "string?",
    "attributes": "string?"
  }]
}

Responses

  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested groups does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

POST /api/v3/groups/:id/remove-projects

Revokes a group's role grant on one or more projects.

Parameters

  • id uuid, required - The id.

Request body

{
  "role": "string",
  "projects": [{
    "id": "uuid",
    "rel": "string?",
    "attributes": "string?"
  }]
}

Responses

  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested groups does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

Jobs

Individual units of work within a workflow. Each job runs in its own execution environment and produces artifacts, test results, and logs.

GET /api/v3/jobs

Lists the jobs in a workflow.

Parameters

  • filter[workflow_id] uuid, required

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 Workflow not found.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

GET /api/v3/jobs/:id

Fetches a single job, including its steps and parallel executions.

Parameters

  • id uuid, required - The id.

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested jobs does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

GET /api/v3/jobs/:id/artifacts

Lists the artifacts produced by a job's parallel executions.

Parameters

  • id uuid, required - The id.

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested jobs does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

GET /api/v3/jobs/:id/resource-usage

Returns a job's recorded resource usage per parallel execution.

Each execution reports ordered CPU, memory and network samples taken interval_ms apart, alongside the resource class the job was dispatched to. Samples carry no timestamps: the first sample is the first collection tick after the execution started.

Only Docker executions record samples, so machine and runner jobs return an empty parallel_executions list. Recordings expire after 90 days, and an execution that recorded nothing is absent from the list rather than empty, so a missing execution is not an execution that did not run.

Parameters

  • id uuid, required - The id.

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested jobs does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

GET /api/v3/jobs/:id/stderr

Returns the stderr of a job step for a given parallel execution.

Parallel executions are numbered from 0. filter[execution] is optional and defaults to 0, which is the only execution a job with the default parallelism of 1 has.

Parameters

  • id uuid, required - The id.
  • filter[execution] int
  • filter[step_num] int, required

Responses

  • 204 No Content
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested jobs does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

GET /api/v3/jobs/:id/stdout

Returns the stdout of a job step for a given parallel execution.

Parallel executions are numbered from 0. filter[execution] is optional and defaults to 0, which is the only execution a job with the default parallelism of 1 has.

Parameters

  • id uuid, required - The id.
  • filter[execution] int
  • filter[step_num] int, required

Responses

  • 204 No Content
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested jobs does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

GET /api/v3/jobs/:id/test-atoms

Returns a job's test atoms as JSON Lines.

EXPERIMENTAL — This endpoint is experimental and may change without notice. Field names and response shapes are not yet stable. Do not depend on this endpoint in production clients.

Parameters

  • id uuid, required - The id.

Responses

  • 204 No Content
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested jobs does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

GET /api/v3/jobs/:id/tests

Returns a job's structured test results as JSON Lines.

Parameters

  • id uuid, required - The id.

Responses

  • 204 No Content
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested jobs does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

GET /api/v3/jobs/:id/testsuite-metadata

Returns a job's testsuite metadata as JSON Lines.

EXPERIMENTAL — This endpoint is experimental and may change without notice. Field names and response shapes are not yet stable. Do not depend on this endpoint in production clients.

Parameters

  • id uuid, required - The id.

Responses

  • 204 No Content
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested jobs does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

GET /api/v3/jobs/:id/stdout/condensed

Returns a step's stdout condensed to its most error-relevant lines, suitable for AI-agent consumption.

Parameters

  • id uuid, required - The id.
  • filter[execution] int, required
  • filter[step_num] int, required

Responses

  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested jobs does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

Metric

Time-bucketed counts and distributions over a time window, such as test flake counts and test duration percentiles.

POST /api/v3/metric/counts

Returns time-bucketed counts for a named metric.

EXPERIMENTAL — This endpoint is experimental and may change without notice. Field names, request and response shapes, and supported metrics are not yet stable. Do not depend on this endpoint in production clients.

Returns counts over a time window, split into fixed-width buckets. Each bucket contains one or more groups when group_by dimensions are supplied. Each group's key is a positional array whose entries align 1:1 with the request's group_by expressions (so key[i] is the value for group_by[i]), and is null when no group_by is supplied.

Buckets with no matching rows are omitted by default rather than zero-filled — including the single bucket of an interval=none request over an empty window, which returns an empty buckets array. Clients should treat an absent bucket as zero. Set include_empty_buckets to true to receive one bucket per range in the window tiling, with groups: [] for ranges that matched no rows. The time axis is filled; groups and metrics are not invented.

Request body

{
  "metric": "string",
  "scope": {
    "project_ids": "[uuid]",
    "from": "datetime",
    "to": "datetime"
  },
  "filter": "string",
  "group_by": "[string]",
  "interval": "string",
  "include_empty_buckets": "bool"
}

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

POST /api/v3/metric/distributions

Returns time-bucketed distribution metrics for a named metric.

EXPERIMENTAL — This endpoint is experimental and may change without notice. Field names, request and response shapes, and supported metrics are not yet stable. Do not depend on this endpoint in production clients.

Returns distribution metrics over a time window, split into fixed-width buckets. Each bucket contains one or more groups when group_by dimensions are supplied. Each group's key is a positional array whose entries align 1:1 with the request's group_by expressions (so key[i] is the value for group_by[i]), and is null when no group_by is supplied.

Buckets with no matching rows are omitted by default rather than zero-filled — including the single bucket of an interval=none request over an empty window, which returns an empty buckets array. An absent bucket means no observations in that slice; do not invent zero averages or percentiles. Set include_empty_buckets to true to receive one bucket per range in the window tiling, with groups: [] for ranges that matched no rows. The time axis is filled; groups and metrics are not invented, so empty slices never report a zero percentile.

Request body

{
  "metric": "string",
  "scope": {
    "project_ids": "[uuid]",
    "from": "datetime",
    "to": "datetime"
  },
  "filter": "string",
  "group_by": "[string]",
  "interval": "string",
  "include_empty_buckets": "bool"
}

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

Namespaces

Scoping containers that group orbs under an organization. An orb's full name is namespace/orb-name.

GET /api/v3/namespaces

List namespaces.

Parameters

  • filter[name] string, required

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 Not Found
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

POST /api/v3/namespaces

Create a new namespace.

Request body

{
  "name": "string",
  "org_id": "uuid"
}

Responses

  • 201 Created
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

GET /api/v3/namespaces/:id

Retrieve a single namespace by its ID.

Parameters

  • id uuid, required - The id.

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested namespaces does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

DELETE /api/v3/namespaces/:id

Delete a namespace.

Parameters

  • id uuid, required - The id.

Responses

  • 204 No Content
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested namespaces does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

POST /api/v3/namespaces/import

Import a namespace.

Request body

{
  "name": "string",
  "org_id": "uuid"
}

Responses

  • 201 Created
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

POST /api/v3/namespaces/:id/rename

Rename a namespace.

Parameters

  • id uuid, required - The id.

Request body

{
  "name": "string"
}

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested namespaces does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

Notification Channel Configs

Per-user and per-project notification channel configuration — the email address or Slack channel a notification is delivered to.

GET /api/v3/notification/channel-configs

Lists channel configs for the caller or for projects.

Paginated with page[limit] and page[cursor]; follow page.next until it is absent.

filter[scope] is required:

Attributes:

References: org, plus user or project.

Example (scope=project):

Parameters

  • filter[org_id] uuid
  • filter[project_id] uuid
  • filter[scope] string, required
  • page[cursor] string
  • page[limit] int

Responses

  • 200 OK
  • 400 Filter[scope] must be "user" or "project"
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 Not Found
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

POST /api/v3/notification/channel-configs

Creates (or replaces) a channel config.

Returns 201 on create, 200 on replace. One config per owner, org and channel_type.

Request attributes:

Target rules:

References: org (required); project (project scope).

Slack DM setup:

Example request:

Response attributes:

References: org, plus user or project.

Example response:

Request body

{
  "data": {
    "attributes": {
      "scope": "string",
      "channel_type": "string",
      "target": "string?",
      "is_enabled": "bool?"
    },
    "references": {
      "project?": {
        "id": "uuid"
      },
      "org?": {
        "id": "uuid"
      }
    }
  }
}

Responses

  • 200 OK
  • 201 Created
  • 400 Invalid channel_type
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 Not Found
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

GET /api/v3/notification/channel-configs/:id

Returns a single channel config addressed by its id.

Another user's config, or a project the caller cannot view, is a 404.

Attributes:

References: org, plus user or project.

Example response (user Slack):

Parameters

  • id uuid, required - The id.

Responses

  • 200 OK
  • 400 Bad request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested channel-configs does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

DELETE /api/v3/notification/channel-configs/:id

Deletes the channel config addressed by id.

A deleted project config stops delivery on that channel.

Parameters

  • id uuid, required - The id.

Responses

  • 204 No Content
  • 400 Bad request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested channel-configs does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

POST /api/v3/notification/channel-configs/:id/update

Applies a partial update to the channel config.

Only target and/or is_enabled may change; the config is addressed by id. The same fields wrapped in data.attributes are still accepted; that form is deprecated.

Omitted fields are unchanged; a blank target keeps the stored target.

Target rules:

Example request: {"is_enabled": false}

Response attributes:

References: org, plus user or project.

Example response:

Parameters

  • id uuid, required - The id.

Request body

{
  "target": "string?",
  "is_enabled": "bool?",
  "data?": {
    "attributes": {
      "target": "string?",
      "is_enabled": "bool?"
    }
  }
}

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested channel-configs does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

Notification Integrations

Currently Slack workspace integrations for an organization. Manage the connection used to deliver CircleCI notifications.

GET /api/v3/notification/integrations

Lists the notification integrations the caller can see.

filter[org_id] limits the list to one org; without it, the caller's integrations across all orgs are returned. filter[type] accepts "slack", the only integration type today; any other value matches nothing. The collection is paginated with page[limit] and page[cursor]; clients must follow page.next until it is absent.

Parameters

  • filter[org_id] uuid
  • filter[type] string
  • page[cursor] string
  • page[limit] int

Responses

  • 200 OK
  • 400 Bad request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 Not Found
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

GET /api/v3/notification/integrations/:id

Returns a notification integration by id.

Parameters

  • id uuid, required - The id.

Responses

  • 200 OK
  • 400 Bad request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested integrations does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

DELETE /api/v3/notification/integrations/:id

Revokes an integration and its Slack token.

Parameters

  • id uuid, required - The id.

Responses

  • 204 No Content
  • 400 Bad request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested integrations does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

POST /api/v3/notification/integrations/:id/set-status

Enables or disables delivery through an integration.

status must be "active" or "disabled"; revoking an integration is a delete. It returns the updated integration. The same field wrapped in data.attributes is still accepted; that form is deprecated.

Parameters

  • id uuid, required - The id.

Request body

{
  "status": "string",
  "data?": {
    "attributes": {
      "status": "string"
    }
  }
}

Responses

  • 200 OK
  • 400 Status must be "active" or "disabled"
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested integrations does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

Notification Preferences

Per-user and per-project notification preference matrix. Read the matrix or bulk-toggle entries; scoped via filter[scope]=user|project.

GET /api/v3/notification/preferences

Serves the V3 preference matrix.

filter[scope] selects user or project scope; project scope also requires filter[project_id]. The collection is paginated with page[limit] and page[cursor]; clients must follow page.next until it is absent.

One row per notification and channel; the row id is the preference_id. A project the caller cannot view returns an empty collection.

Attributes:

References: user, or project and org.

Example (scope=user, abridged):

Parameters

  • filter[project_id] uuid, required
  • filter[scope] string, required
  • page[cursor] string
  • page[limit] int

Responses

  • 200 OK
  • 400 Filter[scope] must be "user" or "project"
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 Not Found
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

POST /api/v3/notification/preferences

Bulk-updates the changed subset of the matrix.

It returns the refreshed matrix. Partial and non-idempotent, hence POST. Scope comes from data.attributes.scope; project scope also requires a project reference.

Each update sets one preference_id (a preference row id) to is_enabled; others are unchanged. Unknown ids return 400. To turn on a Slack DM, use scope=user and a preference whose channel is "slack".

Example request:

Response attributes, one row per notification and channel:

References: user, or project and org.

Example response (abridged):

Request body

{
  "data": {
    "attributes": {
      "scope": "string",
      "updates": [{
        "preference_id": "uuid",
        "is_enabled": "bool"
      }]
    },
    "references": {
      "project?": {
        "id": "uuid"
      },
      "org?": {
        "id": "uuid"
      }
    }
  }
}

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 Not Found
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

Orb Categories

Taxonomy labels for organizing and discovering orbs in the registry.

GET /api/v3/orb/categories

Returns all orb categories with pagination.

Parameters

  • page[cursor] string
  • page[limit] int - Maximum items in one page. Out-of-range values are rejected with 400 rather than clamped. The maximum is 500.

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

Orb Packages

Reusable configuration packages published to the orb registry. Each orb belongs to a namespace and has one or more versioned releases.

GET /api/v3/orb/packages

Returns a list of packages limited by the given filter.

Parameters

  • filter[certified] bool
  • filter[name] string
  • filter[namespace_id] uuid
  • filter[visibility] string
  • page[cursor] string
  • page[limit] int - Maximum items in one page. Out-of-range values are rejected with 400 rather than clamped. The maximum is 1000.

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

POST /api/v3/orb/packages

Creates a new orb package in the given namespace.

Request body

{
  "data": {
    "attributes": {
      "name": "string",
      "is_private": "bool?"
    },
    "references": {
      "namespace": {
        "id": "uuid"
      }
    }
  }
}

Responses

  • 201 Created
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

GET /api/v3/orb/packages/:id

Retrieves a single package by its ID.

Parameters

  • id uuid, required - The id.

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested packages does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

POST /api/v3/orb/packages/import

Creates a new orb package via admin import.

Request body

{
  "name": "string",
  "namespace_id": "uuid",
  "is_private": "bool?"
}

Responses

  • 201 Created
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

POST /api/v3/orb/packages/validate

Checks whether the given orb YAML is valid.

The data entity does not include an id because validate is not scoped to an existing entity.

Request body

{
  "yaml": "string",
  "org_id": "uuid?"
}

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

POST /api/v3/orb/packages/:id/add-category

Adds a category to the package.

Parameters

  • id uuid, required - The id.

Request body

{
  "category_id": "uuid"
}

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested packages does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

POST /api/v3/orb/packages/:id/remove-category

Removes a category from a package.

Parameters

  • id uuid, required - The id.

Request body

{
  "category_id": "uuid"
}

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested packages does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

POST /api/v3/orb/packages/:id/set-listed

Marks a package as listed or unlisted.

Parameters

  • id uuid, required - The id.

Request body

{
  "is_listed": "bool?"
}

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested packages does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

Orb Versions

Individual published releases of an orb, identified by semantic version. Each version contains the orb's source configuration.

GET /api/v3/orb/versions

Returns orb versions matching the given filters.

Parameters

  • filter[channel] string
  • filter[orb_id] uuid, required
  • filter[ref] string
  • page[cursor] string
  • page[limit] int - Maximum items in one page. Out-of-range values are rejected with 400 rather than clamped. The maximum is 1000.

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

POST /api/v3/orb/versions

Creates a new orb version with the given YAML source.

Request body

{
  "data": {
    "attributes": {
      "orb_id": "uuid",
      "version": "string",
      "yaml": "string"
    }
  }
}

Responses

  • 201 Created
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

GET /api/v3/orb/versions/:id

Retrieves a single orb version by its ID.

Parameters

  • id uuid, required - The id.
  • include string, required

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested versions does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

POST /api/v3/orb/versions/import

Creates a new orb version via admin import.

Request body

{
  "orb_id": "uuid",
  "version": "string",
  "orb_yaml": "string"
}

Responses

  • 201 Created
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

POST /api/v3/orb/versions/:id/promote

Promote a orb version.

Parameters

  • id uuid, required - The id.

Request body

{
  "segment": "string?",
  "semantic_version": "string?"
}

Responses

  • 201 Created
  • 400 Either 'segment' or 'semantic_version' must be provided.
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested versions does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

GET /api/v3/orb/versions/:id/source

Returns the raw YAML source of an orb version as text/plain.

Parameters

  • id uuid, required - The id.

Responses

  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested versions does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

Orgs

Organizations are the top-level account entity. All projects, pipelines, and billing belong to an org.

GET /api/v3/orgs

Resolves orgs matching the given filters.

filter[slug] is optional. With it, a single org is resolved by its slug; a slug matching no org is an empty collection rather than a 404. Without it, the orgs the calling user belongs to are listed.

filter[can_manage] is optional. Given a true value, it narrows the list to the orgs the caller can manage. Filtering for orgs the caller cannot manage is not supported, so a false or non-boolean value is a 400, as is combining it with filter[slug]. An empty value is treated as absent.

Parameters

  • filter[can_manage] bool
  • filter[slug] string
  • page[cursor] string
  • page[limit] int - Maximum items in one page. Out-of-range values are rejected with 400 rather than clamped. The maximum is 50.

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

GET /api/v3/orgs/:id

Fetches an org by its UUID.

Parameters

  • id uuid, required - The id.

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested orgs does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

GET /api/v3/orgs/:id/settings

Returns settings for an org.

Settings are a singleton sub-resource of the org, so the data entity does not include an id - the org's id is in the path.

Parameters

  • id uuid, required - The id.

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested orgs does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

GET /api/v3/orgs/:id/sso-group-mappings

Returns an organization's SSO group mappings.

filter[via] selects the connection to read, matching the one a PUT with the same filter writes.

Parameters

  • id uuid, required - The id.
  • filter[via] string

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested orgs does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

PUT /api/v3/orgs/:id/sso-group-mappings

Replaces an organization's SSO group mappings, returning the new state.

filter[via] selects the connection to write, and the one a GET with the same filter reads.

Parameters

  • id uuid, required - The id.
  • filter[via] string

Request body

{
  "data": {
    "attributes": {
      "mappings": [{
        "attributes": {
          "idp_group_name": "string"
        },
        "references": {
          "group": {
            "id": "uuid",
            "rel": "string?",
            "attributes": "string?"
          }
        }
      }]
    }
  }
}

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested orgs does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

POST /api/v3/orgs/:id/update-settings

Modifies settings for an org.

Settings are a singleton sub-resource of the org, so the data entity does not include an id - the org's id is in the path.

Parameters

  • id uuid, required - The id.

Request body

{
  "is_runner_terms_of_service_accepted": "bool?",
  "enable_ai_error_summarization": "bool?",
  "enable_ai_agents": "bool?",
  "enable_unversioned_config": "bool?",
  "enable_certified_public_orbs": "bool?",
  "enable_chunk_ip_ranges": "bool?",
  "enable_marketing_tracking": "bool?",
  "enable_minor_ai_features": "bool?",
  "enable_preferences_tracking": "bool?",
  "enable_private_orbs": "bool?",
  "enable_statistics_tracking": "bool?",
  "enable_uncertified_public_orbs": "bool?",
  "is_user_checkout_keys_disabled": "bool?",
  "is_running_disabled": "bool?",
  "is_privacy_optout_enforced": "bool?",
  "enable_image_brownouts": "bool?",
  "is_context_group_restriction_required": "bool?",
  "enable_resource_class_brownouts": "bool?",
  "is_code_signing_restricted_to_admins": "bool?"
}

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested orgs does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

Pipelines

Pipeline definitions describe how to build, test, and deploy a project.

GET /api/v3/pipelines

Lists a project's pipelines, including its synthetic OAuth pipeline.

filter[project_id] is required — there is no unscoped/global listing. A pipeline that can be fetched via Get must also appear in this listing.

Parameters

  • filter[project_id] uuid, required

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

POST /api/v3/pipelines

Creates a pipeline (config source) under the project named by project_id.

Returns the full created entity (shape-identical to Get).

Request body

{
  "data": {
    "attributes": {
      "name": "string",
      "description": "string?",
      "config": {
        "type": "string",
        "file_path": "string",
        "file_type": "string?",
        "vcs?": {
          "provider": "string",
          "repo_id": "string",
          "repo_full_name": "string"
        },
        "hosted?": {
          "provider": "string"
        }
      },
      "checkout": {
        "vcs": {
          "provider": "string",
          "repo_id": "string",
          "repo_full_name": "string"
        }
      }
    },
    "references": {
      "project": {
        "id": "uuid"
      }
    }
  }
}

Responses

  • 201 Created
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

GET /api/v3/pipelines/:id

Gets a pipeline by ID.

The optional filter[project_id] query parameter scopes the lookup; it is required to resolve synthetic OAuth pipelines, which have no stored row and are derived from the project.

Parameters

  • id uuid, required - The id.

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested pipelines does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

DELETE /api/v3/pipelines/:id

Deletes a pipeline by ID.

The optional filter[project_id] query parameter scopes the lookup; it is required to identify synthetic OAuth pipelines, which have no stored row and are derived from the project.

Parameters

  • id uuid, required - The id.

Responses

  • 204 No Content
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested pipelines does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

POST /api/v3/pipelines/:id/update

Partially updates a pipeline by ID.

Only the fields present in the request body (name, description, config.file_path) are changed. The optional filter[project_id] query parameter scopes the lookup; synthetic OAuth pipelines have no stored row and cannot be updated.

Parameters

  • id uuid, required - The id.

Request body

{
  "name": "string?",
  "description": "string?",
  "config?": {
    "file_path": "string?",
    "file_type": "string?"
  }
}

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested pipelines does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

Projects

Projects represent a source code repository connected to CircleCI. A project typically contains pipelines, environment variables, and settings.

GET /api/v3/projects

Resolves projects matching the given filters.

At least one of filter[slug] (resolving a single project), filter[org_id] (listing an org's projects), or filter[following] (listing projects followed by the authenticated user) must be provided. If filter[slug] is provided then it must be the only filter. Both filter[org_id] and filter[following] can be used by themselves or together.

filter[name] is optional and narrows the org's projects by a case-insensitive name search. It can be used with both filter[org_id] and filter[following] but combining it with filter[slug] is a 400.

If filter[following] is provided, it may only be given the value "true". Anything else will result in a 400. Filtering for projects which are not followed is not supported.

order_by chooses the order the projects come back in. It may be given "name", which orders them alphabetically, or "last_active_at", which orders them by how recently they last built. Any other value is a 400. An omitted order_by is "name". A single project resolved by filter[slug] has no order to it, so order_by is accepted and ignored there.

An org that does not exist, or that the caller cannot see, is a 404. A slug that matches no project is an empty collection.

The is_followed attribute reports whether the authenticated caller follows the project. It is returned however the projects were selected, so a listing that did not filter on filter[following] carries a mix of true and false.

Notes on pagination:

Parameters

  • filter[following] string
  • filter[name] string
  • filter[org_id] uuid
  • filter[slug] string
  • order_by string
  • page[cursor] string
  • page[limit] int - Maximum items in one page. Out-of-range values are rejected with 400 rather than clamped. The maximum is 50.

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

GET /api/v3/projects/:id

Fetches a project by its UUID.

The is_followed attribute reports whether the authenticated caller follows the project.

Parameters

  • id uuid, required - The id.

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested projects does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

GET /api/v3/projects/:id/environment-variables

Returns environment variables for a project.

Parameters

  • id uuid, required - The id.

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested projects does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

POST /api/v3/projects/:id/environment-variables

Sets a project environment variable.

An environment variable is keyed by name within its project, so the data entity does not include an id.

Parameters

  • id uuid, required - The id.

Request body

{
  "name": "string",
  "value": "string"
}

Responses

  • 201 Created
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested projects does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

POST /api/v3/projects/:id/rollback

Rolls a deployed component back to an earlier version.

The component and the environment identify what is running the version being rolled back; current_version must match the version deployed there, so a caller working from stale state cannot roll back a version that has since been superseded.

How the rollback runs depends on the project's deploy settings: a project with a rollback pipeline configured gets a pipeline run, and one without gets a restore-version command sent to the release agent deployed in that environment. data.id is that run or that command and rollback_type says which, since the two are polled in different places.

The response is 200 rather than 202 because data.id is a handle to work in progress, not a resource newly created at a V3 address there would be a Location to point at.

A component or environment the caller may not deploy to is reported as not found, as is a component and environment that do not describe one deployed thing in this project, so the response does not reveal whether the ids exist.

EXPERIMENTAL — this endpoint is experimental and may change without notice. Field names and response shapes are not yet stable, and the deploy API as a whole is still under review. Do not depend on it in production clients.

Parameters

  • id uuid, required - The id.

Request body

{
  "component_id": "uuid",
  "environment_id": "uuid",
  "namespace": "string",
  "current_version": "string",
  "target_version": "string",
  "reason": "string",
  "parameters": "map[string]any?",
  "checkout_ref": "string",
  "config_ref": "string"
}

Responses

  • 200 OK
  • 400 The current version is not the version deployed there.
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested projects does not exist.
  • 409 A command for that component instance is already being handled.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

GET /api/v3/projects/:id/settings

Returns settings for a project.

Settings are a singleton sub-resource of the project, so the data entity does not include an id - the project's id is in the path.

Parameters

  • id uuid, required - The id.

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested projects does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

POST /api/v3/projects/:id/update-settings

Modifies settings for a project.

Settings are a singleton sub-resource of the project, so the data entity does not include an id - the project's id is in the path.

Parameters

  • id uuid, required - The id.

Request body

{
  "enable_ai_error_summarization": "bool?",
  "enable_unversioned_config": "bool?",
  "enable_auto_cancel_redundant_workflows": "bool?",
  "enable_building_fork_prs": "bool?",
  "is_build_prs_only": "bool?",
  "is_ssh_disabled": "bool?",
  "is_running_disabled": "bool?",
  "can_pass_secrets_to_fork_pr_jobs": "bool?",
  "is_oss": "bool?",
  "pr_only_branch_overrides": "[string]?",
  "can_set_github_status": "bool?",
  "enable_dynamic_config": "bool?",
  "is_admin_required_for_writing_settings": "bool?"
}

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested projects does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

DELETE /api/v3/projects/:id/environment-variables/:name

Removes a project environment variable.

Parameters

  • id uuid, required - The id.
  • name string, required - The name.

Responses

  • 204 No Content
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested projects does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

Provider Branches

VCS provider branches available to a project.

GET /api/v3/provider/branches

Lists branches for a repository.

Requires filter[org_id] (the organization), filter[provider] (the integration provider), and filter[repo_id] (the external repository id). Supports cursor pagination via page[limit] and page[cursor]. The cursor encodes the limit from the originating request; sending page[limit] alongside page[cursor] is rejected with 400.

Parameters

  • filter[org_id] uuid, required
  • filter[provider] string, required
  • filter[repo_id] string, required
  • page[cursor] string
  • page[limit] int - Maximum items in one page. Out-of-range values are rejected with 400 rather than clamped. The maximum is 100.

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

Provider Connections

Connections between an organization and a VCS provider. Setup returns where to send the user; nothing is connected until they finish at the provider.

GET /api/v3/provider/connections

Lists an organization's provider connections.

Returns every connection that authorizes CircleCI to act for the organization — a GitHub App installation, a GitHub Server installation, an Origin installation — with the provider's live view of each. Custom webhook connections are not included. Requires filter[org_id] and view-org on that organization.

Each item always carries its stored fields. The provider is also asked for the installation as it currently stands and for the calling user's identity there; either failing degrades that item rather than the response, populating connection_error or authorization_error and omitting the fields it could not fill. An organization with no connections is an empty list, not a 404.

A connection appears only once the customer has finished authorizing it at the provider. A setup that has been started and not completed is not listed, and is indistinguishable here from one that was never started.

Parameters

  • filter[org_id] uuid, required

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

GET /api/v3/provider/connections/:id

Gets a provider connection by ID.

Returns the connection as the list endpoint does, with the provider's live view of it and the calling user's identity there. A connection whose credentials CircleCI holds, such as a Forgejo connection, also carries a credentials object: how CircleCI authenticates for each purpose, when the current webhook secret was added and whether a new one is pending, and the names of the request headers sent to the provider. No secret value is ever returned. Requires view-org on the organization that owns the connection.

Parameters

  • id uuid, required - The id.

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested connections does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

DELETE /api/v3/provider/connections/:id

Deletes a provider connection by ID.

Removes the connection together with everything CircleCI holds beneath it — its repositories, and the pipelines and triggers built on them, and any credentials stored for it — and, where CircleCI installed an app at the provider, asks the provider to uninstall it. The uninstall is best-effort: the connection is deleted even if the provider cannot be reached. CircleCI changes nothing on a Forgejo instance, so after deleting a Forgejo connection, delete its webhook and its two Authorized Integrations in Forgejo. Requires manage-org on the organization that owns the connection. Returns 204 with no body.

Parameters

  • id uuid, required - The id.

Responses

  • 204 No Content
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested connections does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

POST /api/v3/provider/connections/setup

Starts connecting a provider to an organization.

Returns what the user must do next to finish the connection. next_step "redirect" carries the url that connects an app CircleCI has already registered with the provider; "register" carries a manifest and state_token for the user to register one first. Neither connects anything yet. "configure" means the connection is stored: it answers 201 with the connection's id, and carries the webhook the user creates at the provider, whose secret is shown only here. Requires filter[org_id] and manage-org on that organization. Not idempotent: a redirect or register mints and stores a fresh state token, valid for one hour, and a repeated configure is a 409.

Parameters

  • filter[org_id] uuid, required

Request body

{
  "type": "string",
  "vcs?": {
    "provider": "string",
    "url": "string?",
    "owner": "string?",
    "connection_audience": "string?",
    "checkout_audience": "string?",
    "request_headers": "map[string]string?"
  },
  "return_url": "string?"
}

Responses

  • 200 OK
  • 201 Created
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

POST /api/v3/provider/connections/:id/rotate-webhook-secret

Issues a new webhook secret for a connection.

The secret is returned once and cannot be retrieved again. The current secret keeps verifying deliveries until a delivery signed with the new one arrives. Not idempotent: calling again before a delivery signed with the new secret arrives replaces it, so only the latest returned secret is valid. Supported only for forgejo connections. Requires manage-org on the organization that owns the connection.

Parameters

  • id uuid, required - The id.

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested connections does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

POST /api/v3/provider/connections/:id/set-oidc-audience

Replaces the OIDC audience the connection uses for one purpose.

The provider is called with a token minted for the new audience before it is saved, and a refusal is a 400 that leaves the stored audience unchanged. The subject is unchanged. Supported only for providers whose connections carry OIDC audiences. Requires manage-org on the organization that owns the connection.

Parameters

  • id uuid, required - The id.

Request body

{
  "purpose": "string",
  "audience": "string"
}

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested connections does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

POST /api/v3/provider/connections/:id/set-request-headers

Replaces the request headers sent to a connection's provider.

The given set replaces the stored one whole; an empty request_headers clears it. Names are canonicalised. The provider is called with the new set before it is saved, and a refusal is a 400 that leaves the stored set unchanged. Only the names are returned, never a value. Supported only for providers whose connections carry request headers (forgejo). Requires manage-org on the organization that owns the connection.

Parameters

  • id uuid, required - The id.

Request body

{
  "request_headers": "map[string]string"
}

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested connections does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

Provider Repositories

Repositories an organization's provider installation can reach, as the calling user sees them. Scoped via filter[org_id] and filter[provider]; cursor-paged.

GET /api/v3/provider/repositories

Lists repositories for an installation.

Returns the repositories accessible for the specified organization's installation. Requires filter[org_id] and filter[provider], which must be one of github_app, github_server, origin or forgejo. Supports cursor pagination via page[limit] and page[cursor]. The cursor encodes the limit from the originating request; sending page[limit] alongside page[cursor] with a different value is rejected with 400.

What "accessible" means depends on the provider. For github_app and github_server the results are what the calling user's own credential can see, so two members of one organization may get different lists. Origin and Forgejo authorize by the organization's connection rather than by user, so every member with view-org gets the same list. For origin that is the whole installation. For forgejo it is the repositories the connected user or organization owns that the connection's integration can see, archived ones included; if Forgejo rejects that integration's token, the request fails with 400.

Origin reports neither repository visibility nor a web URL, so origin items omit html_url and report is_private as true — a conservative default rather than a value read from the provider.

Parameters

  • filter[org_id] uuid, required
  • filter[provider] string, required
  • page[cursor] string
  • page[limit] int - Maximum items in one page. Out-of-range values are rejected with 400 rather than clamped. The maximum is 100.

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

Runner Agents

Self-hosted runner agents connected to a resource class. Read-only, scoped via filter[resource_class].

GET /api/v3/runner/agents

Lists the runner agents matching the request's single filter parameter.

Exactly one of filter[org_id], filter[namespace], filter[resource_class], or filter[resource_class_id] is required; they cannot be combined.

Parameters

  • filter[namespace] string
  • filter[org_id] uuid
  • filter[resource_class] string
  • filter[resource_class_id] uuid
  • page[cursor] string
  • page[limit] int - Maximum items in one page. Out-of-range values are rejected with 400 rather than clamped. The maximum is 250.

Responses

  • 200 OK
  • 400 A filter parameter is required.
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.
  • 503 Unable to determine agent status.

Runner Fleets

Self-hosted runner fleets — active/idle/disconnected agent counts and embedded agent summary for a resource class.

GET /api/v3/runner/fleets

Lists the fleets matching the request's single filter parameter.

EXPERIMENTAL — This endpoint is experimental and may change without notice. Field names, request and response shapes, and pagination semantics are not yet stable. Do not depend on this endpoint in production clients.

Results are cursor-paginated, ordered by resource_class_id ascending (see fleetsCursor). Exactly one of filter[org_id], filter[namespace], filter[resource_class], or filter[resource_class_id] is required; they cannot be combined.

Parameters

  • filter[namespace] string
  • filter[org_id] uuid
  • filter[resource_class] string
  • filter[resource_class_id] uuid
  • page[cursor] string
  • page[limit] int - Maximum items in one page. Out-of-range values are rejected with 400 rather than clamped. The maximum is 250.

Responses

  • 200 OK
  • 400 Page cursor is not valid.
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.
  • 503 Permission check unavailable.

GET /api/v3/runner/fleets/:id

Returns a single fleet by its ID.

EXPERIMENTAL — This endpoint is experimental and may change without notice. Field names, request and response shapes, and pagination semantics are not yet stable. Do not depend on this endpoint in production clients.

A fleet shares its UUID with the underlying resource class. Providing filter parameters alongside a direct ID is invalid per the V3 design rules.

Parameters

  • id uuid, required - The id.

Responses

  • 200 OK
  • 400 Filter parameters cannot be combined with a direct fleet ID.
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested fleets does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.
  • 503 Unable to determine agent status.

Runner Resource Classes

Self-hosted runner resource classes — the pool identifier agents register against and jobs request work from.

GET /api/v3/runner/resource-classes

Lists runner resource classes filtered by org, namespace, or class.

Exactly one of filter[org_id] (all classes in an org), filter[namespace] (all classes in a namespace), filter[resource_class] (a single class by namespace/name; filter[slug] is accepted as an alias), or filter[resource_class_id] (a single class by id) is required; they cannot be combined.

Parameters

  • filter[namespace] string
  • filter[org_id] uuid
  • filter[resource_class] string
  • filter[resource_class_id] uuid

Responses

  • 200 OK
  • 400 A filter parameter is required.
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.
  • 503 Permission check unavailable.

POST /api/v3/runner/resource-classes

Creates a runner resource class in the organization.

Request body

{
  "data": {
    "attributes": {
      "resource_class": "string",
      "description": "string"
    },
    "references": {
      "org": {
        "id": "uuid"
      }
    }
  }
}

Responses

  • 201 Created
  • 400 References.org.id is required.
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 409 Resource class already exists.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.
  • 503 Permission check unavailable.

GET /api/v3/runner/resource-classes/:id

Returns a single runner resource class by id.

Parameters

  • id uuid, required - The id.

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested resource-classes does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.
  • 503 Permission check unavailable.

DELETE /api/v3/runner/resource-classes/:id

Deletes a runner resource class.

With ?force=true it first removes any tokens; without it, a resource class that still has tokens is rejected.

Parameters

  • id uuid, required - The id.
  • force string, required

Responses

  • 204 No Content
  • 400 Force must be a boolean.
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested resource-classes does not exist.
  • 409 Conflict
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.
  • 503 Permission check unavailable.

POST /api/v3/runner/resource-classes/:id/update

Performs a partial update of the mutable fields.

Parameters

  • id uuid, required - The id.

Request body

{
  "description": "string"
}

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested resource-classes does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

Runner Tokens

Authentication tokens for self-hosted runners.

GET /api/v3/runner/tokens

Lists the tokens for a runner resource class.

The resource class is named either by its slug (filter[resource_class]) or its id (filter[resource_class_id]). Exactly one of the two is required; they cannot be combined.

Requires view-runners on the owning org. Token values are never returned here. Callers without it get a 404, so they cannot probe which resource classes exist.

Parameters

  • filter[resource_class] string
  • filter[resource_class_id] uuid

Responses

  • 200 OK
  • 400 A filter parameter is required.
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

POST /api/v3/runner/tokens

Creates a runner resource-class token.

The raw token value is returned once in this response and never again.

Request body

{
  "data": {
    "attributes": {
      "nickname": "string"
    },
    "references": {
      "resource_class": {
        "id": "uuid"
      }
    }
  }
}

Responses

  • 201 Created
  • 400 References.resource_class.id is required.
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 Resource class not found.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.
  • 503 Permission check unavailable.

GET /api/v3/runner/tokens/:id

Returns a single runner resource-class token by id.

Requires view-runners on the owning org. Callers without it get a 404, so they cannot probe which tokens exist.

Parameters

  • id uuid, required - The id.

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested tokens does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.
  • 503 Permission check unavailable.

DELETE /api/v3/runner/tokens/:id

Deletes a runner resource-class token by id.

Parameters

  • id uuid, required - The id.

Responses

  • 204 No Content
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested tokens does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.
  • 503 Permission check unavailable.

Runs

Runs record each trigger firing and group the workflows they produce. A run carries VCS context, parameter overrides, and pre-workflow errors.

GET /api/v3/runs

Returns a paginated list of runs.

Either filter[project_id] or filter[user_id]=me is required. filter[project_id] returns the runs for a single project; filter[user_id]=me returns the caller's own recent runs across projects.

Parameters

  • filter[project_id] uuid
  • filter[user_id] string
  • page[cursor] string
  • page[limit] int - Maximum items in one page. Out-of-range values are rejected with 400 rather than clamped. The maximum is 20.

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 Project not found or permission denied.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

POST /api/v3/runs

Fires a run for the pipeline named by pipeline_id, returning the created

run. The optional filter[project_id] scopes the pipeline to a project directly (mirroring Get/Delete); DB-backed pipelines omit it and derive the project from pipeline_id.

Request body

{
  "data": {
    "attributes": {
      "checkout?": {
        "branch": "string?",
        "tag": "string?"
      },
      "config?": {
        "branch": "string?",
        "tag": "string?"
      },
      "parameters": "map[string]any?"
    },
    "references": {
      "pipeline": {
        "id": "uuid"
      }
    }
  }
}

Responses

  • 201 Created
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

GET /api/v3/runs/:id

Retrieve a single run by its ID.

A run uses current_outcome (not outcome) because reruns can change the outcome at any time, it is never truly final.

phase: "queued", "started", "ended" current_outcome: "succeeded", "failed", "canceled", "errored", "not_run", "unauthorized"

Parameters

  • id uuid, required - The id.

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested runs does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

GET /api/v3/runs/facet-values

Returns a paginated list of distinct values for a single run facet within one project.

EXPERIMENTAL — This endpoint is experimental and may change without notice. Field names, request and response shapes, and pagination semantics are not yet stable. Do not depend on this endpoint in production clients.

Values are ordered by most-recently-seen (the most recent pipeline that carried the value). Supported facet keys are actor.id, pipeline.status, pipeline.phase, pipeline.current_outcome, and indexed pipeline values (for example pipeline.git.branch).

Parameters

  • filter[facet] string, required
  • filter[project_id] uuid, required
  • page[cursor] string
  • page[limit] int - Maximum items in one page. Out-of-range values are rejected with 400 rather than clamped. The maximum is 200.

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 Project not found or permission denied.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

POST /api/v3/runs/search

Search a run.

The optional include field requests nested entities on each run. Allowed values are workflows (truncated nested workflows), workflows.jobs (workflows plus a truncated nested jobs list per workflow), and workflows.pending_approvals (workflows plus a pending_approvals list per workflow of approvals currently waiting for a human, each with an id and name). Values can be combined. Unknown values are rejected with 400. When include is omitted or empty, attributes.workflows is omitted from each item. Nested workflow lists are capped at 5 items, nested job lists at 20, and nested pending approval lists at 10; is_truncated is true when more exist, and total_count / count_by_phase / count_by_outcome cover the full uncapped set.

The optional order_by_workflows field sorts nested workflows when include requests them. It accepts "created asc" or "created desc" (default created desc / newest first). With the truncation cap, "created asc" returns the oldest workflows. Invalid values return 400 even when include is omitted.

Request body

{
  "scope": {
    "project_ids": "[uuid]",
    "from": "datetime",
    "to": "datetime"
  },
  "filter": "string",
  "order_by": "string",
  "order_by_workflows": "string?",
  "page": {
    "limit": "int",
    "cursor": "string"
  },
  "include": "[string]?"
}

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

POST /api/v3/runs/facet-values/search

Returns a paginated list of distinct values for a single run facet across one or more projects.

EXPERIMENTAL — This endpoint is experimental and may change without notice. Field names, request and response shapes, and pagination semantics are not yet stable. Do not depend on this endpoint in production clients.

Values are ordered by most-recently-seen (the most recent pipeline that carried the value). Supported facet keys are actor.id, pipeline.status, pipeline.phase, pipeline.current_outcome, and indexed pipeline values (for example pipeline.git.branch).

The optional filter expression pre-filters which pipelines contribute values (same expression grammar as api/v3/runs/search). The optional matches string is a case-insensitive substring match against the facet values themselves. When scope.from or scope.to are omitted, the same default two-week window used by other v3 search endpoints is applied.

Request body

{
  "scope": {
    "project_ids": "[uuid]",
    "from": "datetime",
    "to": "datetime"
  },
  "filter": "string?",
  "facet": "string",
  "matches": "string?",
  "page": {
    "limit": "int",
    "cursor": "string"
  }
}

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

Sidecar Commands

Commands sent to a sidecar instance for execution.

GET /api/v3/sidecar/commands/:id

Retrieve a single sidecar command by its ID.

Parameters

  • id uuid, required - The id.

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested commands does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.
  • 504 Sidecar did not respond in time

GET /api/v3/sidecar/commands/:id/output

Streams a command's output as Server-Sent Events.

Output arrives as stdout and stderr events whose data is the base64 of the raw bytes, so carriage returns, ANSI escapes and invalid UTF-8 reach the client exactly as the command wrote them. A start event opens the stream and : comments keep it warm while a command is silent.

Every event carries an opaque id. Send the last one back in the Last-Event-ID header to resume precisely where a dropped connection stopped; the stdout_offset and stderr_offset query parameters do the same for callers that cannot set headers. Last-Event-ID wins if both are supplied.

The stream ends with exactly one exit or error event, or with nothing at all. Nothing at all means the connection was interrupted and the client should resume — it is the only way to distinguish a finished command from a truncated stream.

Parameters

  • id uuid, required - The id.
  • stderr_offset string
  • stdout_offset string

Responses

  • 200 OK
  • 400 Invalid stdout_offset
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested commands does not exist.
  • 410 Sidecar is out of date; delete and recreate with: chunk sidecar create
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.
  • 502 Could not reach the sidecar
  • 504 The sidecar stopped responding

Sidecar Instances

Lightweight microVM environments that mirror a project's stack for inner-loop validation.

GET /api/v3/sidecar/instances

List sidecar instances.

Parameters

  • all string, required

Responses

  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

POST /api/v3/sidecar/instances

Create a new sidecar instance.

image is a system template such as cimg-go:1.27, or the name or ID of a snapshot. Without it, the instance is created from cimg-base.

size is one of small (1 vCPU, 2GB), medium (2 vCPU, 4GB), large (4 vCPU, 8GB), xlarge (8 vCPU, 16GB) or 2xlarge (16 vCPU, 32GB). Without it, a system template is created at large. Only some images have been built at sizes other than large; a size an image has not been built at is a 400. A snapshot keeps the size of the sandbox it was taken from, so giving it any size is a 400.

Request body

{
  "data": {
    "attributes": {
      "name": "string",
      "image": "string?",
      "size": "string?"
    }
  }
}

Responses

  • 201 Created
  • 400 Name is reserved
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 Snapshot not found
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

GET /api/v3/sidecar/instances/:id

Retrieve a single sidecar instance by its ID.

Parameters

  • id uuid, required - The id.

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested instances does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

DELETE /api/v3/sidecar/instances/:id

Delete a sidecar instance.

Parameters

  • id uuid, required - The id.

Responses

  • 204 No Content
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested instances does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

POST /api/v3/sidecar/instances/prune

Deletes caller-owned sidecar instances in orgID.

Every caller-owned instance is deleted unless scope.to is set, in which case only instances created before it are.

Request body

{
  "org_id": "uuid",
  "scope?": {
    "to": "datetime?"
  }
}

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

POST /api/v3/sidecar/instances/:id/exec

Starts a command asynchronously and returns 202.

Clients poll the command for its outcome and stream its output separately.

Parameters

  • id uuid, required - The id.

Request body

{
  "command": "string",
  "args": "[string]",
  "env": "Map",
  "working_dir": "string",
  "contexts": "[string]"
}

Responses

  • 202 Accepted
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested instances does not exist.
  • 409 Sidecar is changing state; try again
  • 410 Sidecar has reached its maximum lifetime; create a new one with: chunk sidecar create
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.
  • 504 Sidecar did not respond in time

POST /api/v3/sidecar/instances/:id/ssh/add-key

Adds an ssh key to the instance.

Parameters

  • id uuid, required - The id.

Request body

{
  "public_key": "string"
}

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested instances does not exist.
  • 409 Sidecar is changing state; try again
  • 410 Sidecar has reached its maximum lifetime; create a new one with: chunk sidecar create
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.
  • 504 Sidecar did not respond in time

Sidecar Snapshots

Point-in-time snapshots of a sidecar instance's filesystem and state.

GET /api/v3/sidecar/snapshots

List sidecar snapshots.

Responses

  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

POST /api/v3/sidecar/snapshots

Create a new sidecar snapshot.

Request body

{
  "data": {
    "attributes": {
      "name": "string",
      "tag": "string?"
    },
    "references": {
      "sidecar_instance": {
        "id": "uuid",
        "rel": "string?",
        "attributes": "any?"
      }
    }
  }
}

Responses

  • 201 Created
  • 400 Name must not exceed 255 characters
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 Sidecar not found
  • 409 A snapshot with that name already exists
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

GET /api/v3/sidecar/snapshots/:id

Retrieve a single sidecar snapshot by its ID.

Parameters

  • id uuid, required - The id.

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested snapshots does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

Signing Certificates

Apple code-signing certificates used to sign iOS builds.

GET /api/v3/signing/certificates

Lists the iOS signing certificates for an organization.

Parameters

  • filter[org_id] uuid, required

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

POST /api/v3/signing/certificates

Uploads an iOS signing certificate to an organization.

Request body

{
  "data": {
    "attributes": {
      "file_name": "string",
      "cert_blob": "string",
      "cert_password": "string"
    },
    "references": {
      "org": {
        "id": "uuid",
        "rel": "string?",
        "attributes": "string?"
      }
    }
  }
}

Responses

  • 201 Created
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

GET /api/v3/signing/certificates/:id

Returns a single iOS signing certificate by ID.

Parameters

  • id uuid, required - The id.

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested certificates does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

DELETE /api/v3/signing/certificates/:id

Deletes an iOS signing certificate.

Parameters

  • id uuid, required - The id.

Responses

  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested certificates does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

Signing Configs

iOS signing configurations pairing a certificate with provisioning profiles.

GET /api/v3/signing/configs

Lists the iOS signing configurations for an organization.

Parameters

  • filter[org_id] uuid, required

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

POST /api/v3/signing/configs

Creates an iOS signing configuration for an organization.

Request body

{
  "data": {
    "attributes": {
      "name": "string",
      "provisioning_profiles": [{
        "blob": "string",
        "file_name": "string"
      }]
    },
    "references": {
      "org": {
        "id": "uuid",
        "rel": "string?",
        "attributes": "string?"
      },
      "signing_certificate": {
        "id": "uuid",
        "rel": "string?",
        "attributes": "string?"
      }
    }
  }
}

Responses

  • 201 Created
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

DELETE /api/v3/signing/configs/:id

Deletes an iOS signing configuration.

Parameters

  • id uuid, required - The id.

Responses

  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested configs does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

POST /api/v3/signing/configs/:id/remove-profile

Removes a provisioning profile from an iOS signing configuration.

Parameters

  • id uuid, required - The id.

Request body

{
  "profile_id": "uuid"
}

Responses

  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested configs does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

POST /api/v3/signing/configs/:id/update-profile

Updates a provisioning profile in an iOS signing configuration.

Parameters

  • id uuid, required - The id.

Request body

{
  "blob": "string",
  "file_name": "string"
}

Responses

  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested configs does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

Test Flakes

Occurrences of a test that failed and then later passed within the same pipeline. Read-only, scoped to a project.

GET /api/v3/test-flakes

Returns individual test-flake occurrences for a single project.

EXPERIMENTAL — This endpoint is experimental and may change without notice. Field names, request and response shapes, and pagination semantics are not yet stable. Do not depend on this endpoint in production clients.

Each item is a single failed execution of a test that later passed within the same pipeline, carrying the failing job's context and the failure message. Only the pipeline-granular occurrence for each failure is returned.

Results are ordered by (file, classname, name, job_id, execution, rerun_attempt) for stable pagination.

Parameters

  • filter[project_id] uuid, required
  • page[cursor] string
  • page[limit] int - Maximum items in one page. Out-of-range values are rejected with 400 rather than clamped. The maximum is 20.

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 Project not found.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

POST /api/v3/test-flakes/search

Returns test-flake occurrences for the project in scope.project_id, with an optional filter.

EXPERIMENTAL — This endpoint is experimental and may change without notice. Field names, request and response shapes, and pagination semantics are not yet stable. Do not depend on this endpoint in production clients.

Each item is a single failed execution of a test that later passed within the same pipeline, carrying the failing job's context and the failure message. Only the pipeline-granular occurrence for each failure is returned.

Results are ordered by (file, classname, name, job_id, execution, rerun_attempt) for stable pagination.

Request body

{
  "scope": {
    "project_id": "uuid"
  },
  "filter": "string?",
  "page": {
    "limit": "int",
    "cursor": "string"
  }
}

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 Project not found.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

Test Results

Test results collected from a job. Read-only, scoped to a job.

GET /api/v3/test-results

Returns per-execution test results for a single job.

filter[job_id] is required.

EXPERIMENTAL — This endpoint is experimental and may change without notice. Field names, request and response shapes, and pagination semantics are not yet stable. Do not depend on this endpoint in production clients.

Parameters

  • filter[job_id] uuid, required
  • page[cursor] string
  • page[limit] int - Maximum items in one page. Out-of-range values are rejected with 400 rather than clamped. The maximum is 20.

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 Job not found.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

POST /api/v3/test-results/search

Returns per-execution test results for the job in scope.job_id, with an optional filter.

EXPERIMENTAL — This endpoint is experimental and may change without notice. Field names, request and response shapes, and pagination semantics are not yet stable. Do not depend on this endpoint in production clients.

Request body

{
  "scope": {
    "job_id": "uuid"
  },
  "filter": "string?",
  "page": {
    "limit": "int",
    "cursor": "string"
  }
}

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 Job not found.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

Tool Feedback

Feedback AI agents send about CircleCI tools and CLI commands: what they were trying to do and what failed or was missing.

POST /api/v3/tool/send-feedback

Records a report from an AI agent about a CircleCI tool or CLI command.

EXPERIMENTAL — Field names and request and response shapes may change without notice.

Agents use it to say what they were trying to do and what failed or was missing. Only message is required. The response carries the report id for later cross-referencing.

Request body

{
  "message": "string",
  "tool_name": "string",
  "source": "string",
  "agent_type": "string",
  "type": "string",
  "function_name": "string"
}

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

Tool Releases

Released versions of the tools CircleCI distributes, such as circleci-cli, chunk-cli and circleci-yaml-language-server. Requires filter[tool], whose values are the tools' GitHub repository names, and returns that tool's latest release.

GET /api/v3/tool/releases

List tool releases.

Responses

  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

Triggers

A trigger defines what causes a pipeline to run: a VCS event, a custom webhook, or a cron schedule.

GET /api/v3/triggers

Lists a project's triggers.

At least one of filter[project_id] or filter[pipeline_id] is required; both may be given to require triggers to match both. The result includes the project's synthetic OAuth trigger whenever it satisfies the supplied filters (a list not scoped by pipeline, or a filter[pipeline_id] pointing at the synthetic pipeline). A synthetic pipeline id cannot be resolved from the id alone, so a pipeline-only request for it returns 404; supply project_id to surface the synthetic trigger.

Parameters

  • filter[pipeline_id] uuid
  • filter[project_id] uuid

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

POST /api/v3/triggers

Creates a trigger under the pipeline named by pipeline_id.

Returns the full created entity (shape-identical to Get, plus the one-time webhook secret). Only scheduled triggers may carry parameters; supplying them for any other event type is a 400.

Request body

{
  "data": {
    "attributes": {
      "is_disabled": "bool?",
      "config?": {
        "ref": "string?"
      },
      "checkout?": {
        "ref": "string?"
      },
      "event": {
        "type": "string",
        "vcs?": {
          "provider": "string",
          "repo_id": "string",
          "repo_full_name": "string"
        },
        "webhook?": {
          "name": "string?",
          "source": "string?",
          "secret": "string?"
        },
        "schedule?": {
          "name": "string?",
          "cron_expression": "string?",
          "attribution_actor": "string?"
        },
        "filter?": {
          "preset": "string?",
          "rules?": [{
            "event_type": "string?",
            "rule": "string",
            "event_ref": "string?"
          }]
        }
      },
      "parameters": "map[string]any?"
    },
    "references": {
      "pipeline": {
        "id": "uuid"
      }
    }
  }
}

Responses

  • 201 Created
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

GET /api/v3/triggers/:id

Gets a trigger by ID.

The optional filter[project_id] query parameter scopes the lookup; it is required to resolve synthetic OAuth triggers, which have no stored row and are derived from the project.

Parameters

  • id uuid, required - The id.

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested triggers does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

DELETE /api/v3/triggers/:id

Deletes a trigger by ID.

The optional filter[project_id] query parameter scopes the lookup; it is required to resolve synthetic OAuth triggers, which have no stored row and are derived from the project.

Parameters

  • id uuid, required - The id.

Responses

  • 204 No Content
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested triggers does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

POST /api/v3/triggers/:id/update

Partially updates a trigger by ID.

The optional filter[project_id] query parameter scopes the lookup; it is required to resolve synthetic OAuth triggers. parameters replaces a scheduled trigger's pipeline parameters wholesale — omitted leaves them unchanged, an empty object clears them — and is a 400 for any other provider.

Parameters

  • id uuid, required - The id.

Request body

{
  "is_disabled": "bool?",
  "config?": {
    "ref": "string?"
  },
  "checkout?": {
    "ref": "string?"
  },
  "event?": {
    "webhook?": {
      "name": "string?",
      "source": "string?",
      "secret": "string?"
    },
    "schedule?": {
      "name": "string?",
      "cron_expression": "string?",
      "attribution_actor": "string?"
    },
    "filter?": {
      "preset": "string?",
      "rules?": [{
        "event_type": "string?",
        "rule": "string",
        "event_ref": "string?"
      }]
    }
  },
  "parameters": "map[string]any?"
}

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested triggers does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

Usage

Usage and billing data exports.

POST /api/v3/usage/exports

Request body

{
  "data": {
    "attributes": {
      "from": "datetime",
      "to": "datetime"
    },
    "references": {
      "parent_org": {
        "id": "uuid"
      },
      "child_orgs": [{
        "id": "uuid"
      }]
    }
  }
}

Responses

  • 202 Accepted
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 Not Found
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

GET /api/v3/usage/exports/:id

Parameters

  • id uuid, required - The id.

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested usage does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

Users

Authenticated identities (human or machine). Use ?filter[user_id]=me to resolve the authenticated identity.

GET /api/v3/users

Returns a list of users limited by filter query parameters.

Only filter[user_id]=me is supported currently - returning a single-element collection for the authenticated identity.

Parameters

  • filter[user_id] string, required

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

GET /api/v3/users/:id

Returns a user's profile and preferences.

Only the authenticated user's own id is visible; any other id is not found.

Parameters

  • id uuid, required - The id.

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested users does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

POST /api/v3/users/:id/update-preferences

Updates a user's preferences and returns the full updated set.

Only keys present in the body change; keys inside pipeline_search are merged individually. Only the authenticated user's own id is visible; any other id is not found.

Parameters

  • id uuid, required - The id.

Request body

{
  "theme": "string?",
  "timestamp_display": "string?",
  "pipeline_search?": {
    "primary_title": "string?",
    "should_show_commit_message": "bool?",
    "time_format": "string?",
    "default_expand": "string?"
  }
}

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested users does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

Webhook Deliveries

The latest send of one event to a webhook endpoint, with its attempt count and outcome.

GET /api/v3/webhook/deliveries

Lists the deliveries of one webhook, newest first.

EXPERIMENTAL — This endpoint is experimental and may change without notice. Field names, request and response shapes, and pagination semantics are not yet stable. Do not depend on this endpoint in production clients.

A delivery is the latest send of one event to the webhook. Its id is the event id, so a resend updates the delivery instead of adding one. The collection is paginated with page[limit] and page[cursor]; send the same filters with every page.

filter[webhook_endpoint_id] is required and is the id of a webhook endpoint.

Optional filters:

attempt_count includes retries. http_status and duration_ms describe the last attempt.

Parameters

  • filter[current_outcome] string
  • filter[event_type] string
  • filter[from] datetime
  • filter[to] datetime
  • filter[webhook_endpoint_id] uuid, required
  • page[cursor] string
  • page[limit] int

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 Not Found
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

GET /api/v3/webhook/deliveries/:id

Returns the delivery addressed by id.

EXPERIMENTAL — This endpoint is experimental and may change without notice. Field names, request and response shapes, and pagination semantics are not yet stable. Do not depend on this endpoint in production clients.

id is the id of a delivery from the list, and filter[webhook_endpoint_id] is required and is the id of the webhook endpoint it was sent to. The delivery has the list attributes plus failure_reason, error_type, request_body (the JSON body that was sent) and updated_at, and references the job or workflow the event is about.

failure_reason is set when current_outcome is failed:

Parameters

  • id uuid, required - The id.
  • filter[webhook_endpoint_id] uuid, required

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested deliveries does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

Webhook Endpoints

Project webhook endpoints that CircleCI sends workflow and job events to.

GET /api/v3/webhook/endpoints

Lists the webhooks of one project.

The collection is paginated with page[limit] and page[cursor]; clients must follow page.next until it is absent. The url is always returned as REDACTED; get a webhook by id to read its url.

Parameters

  • filter[is_enabled] bool
  • filter[project_id] uuid, required
  • page[cursor] string
  • page[limit] int

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 Not Found
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

POST /api/v3/webhook/endpoints

Creates a webhook for the referenced project.

events is one or more of workflow-completed and job-completed. should_verify_tls and is_enabled default to true. A project holds at most 25 webhooks.

The url must use HTTPS and answer a ping with a 2xx status within 10 seconds, even when is_enabled is false; otherwise nothing is created and the request returns 400.

Request body

{
  "data": {
    "attributes": {
      "name": "string",
      "scope": "string",
      "url": "string",
      "events": "[string]",
      "should_verify_tls": "bool?",
      "signing_secret": "string?",
      "is_enabled": "bool?"
    },
    "references": {
      "project?": {
        "id": "uuid"
      }
    }
  }
}

Responses

  • 201 Created
  • 400 The project already has the maximum number of webhooks.
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 Not Found
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

GET /api/v3/webhook/endpoints/:id

Returns the webhook addressed by id.

The signing secret is never returned; has_signing_secret reports whether one is set. The url is returned only to callers who can manage the project's webhooks; others receive REDACTED.

Parameters

  • id uuid, required - The id.

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested endpoints does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

DELETE /api/v3/webhook/endpoints/:id

Deletes the webhook addressed by id.

Parameters

  • id uuid, required - The id.

Responses

  • 204 No Content
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested endpoints does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

POST /api/v3/webhook/endpoints/:id/ping

Sends a ping event to the webhook addressed by id.

It takes no request body and returns 204 once the ping has been sent.

Parameters

  • id uuid, required - The id.

Responses

  • 204 No Content
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested endpoints does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

POST /api/v3/webhook/endpoints/:id/set-enabled

Pauses or resumes delivery to the webhook addressed by id.

The request body is a plain object, and is_enabled is required. The webhook keeps its id and signing secret, and its URL is not contacted. Setting the value the webhook already has changes nothing. It returns the webhook.

Parameters

  • id uuid, required - The id.

Request body

{
  "is_enabled": "bool?"
}

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested endpoints does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

POST /api/v3/webhook/endpoints/:id/update

Applies a partial update to the webhook addressed by id.

Omitted fields keep their stored value. events, when sent, replaces the subscribed events and takes the same values as on create. A non-empty signing_secret replaces the stored one; a stored secret cannot be removed. Sending back the stored url, or REDACTED, leaves the url unchanged.

Modifying the url or should_verify_tls parameters will automatically trigger a connectivity test. Sending the stored value, or changing only name, events or signing_secret, does not, so a webhook whose receiver is down can still be edited.

Idempotent apart from the connectivity test, which only the first call that changes url or should_verify_tls sends.

Parameters

  • id uuid, required - The id.

Request body

{
  "name": "string?",
  "url": "string?",
  "events": "[string]?",
  "should_verify_tls": "bool?",
  "signing_secret": "string?"
}

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested endpoints does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

Workflows

Workflows organise jobs into a dependency graph. A run may produce multiple workflows that execute in parallel or sequence.

GET /api/v3/workflows

Lists the workflows in a run.

List the workflows in a run. Filter by the required filter[run_id]. The optional order_by query parameter accepts "created asc" or "created desc" (default created desc / newest first).

Parameters

  • filter[run_id] uuid, required
  • order_by string
  • page[cursor] string
  • page[limit] int - Maximum items in one page. Out-of-range values are rejected with 400 rather than clamped. The maximum is 20.

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 Not Found
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

GET /api/v3/workflows/:id

Retrieve a single workflow by its ID.

Parameters

  • id uuid, required - The id.

Responses

  • 200 OK
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested workflows does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

POST /api/v3/workflows/:id/cancel

Requests cancellation of a workflow.

Cancellation is processed asynchronously, so the endpoint returns 202 Accepted with the workflow's id rather than a representation of its final state.

Parameters

  • id uuid, required - The id.

Responses

  • 202 Accepted
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested workflows does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.

POST /api/v3/workflows/:id/rerun

Reruns an existing workflow, creating and returning a new workflow.

By default every job is rerun; set is_from_failed to rerun only the failed jobs and their dependents. The source workflow is not modified.

Parameters

  • id uuid, required - The id.

Request body

{
  "is_from_failed": "bool?",
  "is_ssh_enabled": "bool?",
  "jobs": "[uuid]?"
}

Responses

  • 201 Created
  • 400 Bad Request
  • 401 Provide a valid Authorization header.
  • 403 You do not have access to this resource.
  • 404 The requested workflows does not exist.
  • 429 Too many requests. See Retry-After header.
  • 500 An unexpected error occurred.