No custom OAuth app setup required. Sign in or provide your credentials to connect.
Authentication: Personal API token. See Magic Link for the runtime auth flow.
Sample use cases
- Rerun the failed workflow on
mainfor the api project and report which jobs failed. - List the flaky tests on the web-app project and how often each one failed.
- Add an environment variable to the web-app project and trigger a new pipeline.
Available Tools
Approve an on-hold approval job so the workflow continues.
Cancel a running job by UUID. Use list_workflow_jobs to find the job id; rerun with rerun_workflow.
Cancel a running workflow and its jobs. Rerun it with rerun_workflow. Use list_pipeline_workflows to find IDs.
Continue a dynamic-config pipeline from its setup workflow with generated config.
Create an SSH checkout key for a project (a deploy key, or a user key on GitHub OAuth orgs).
Create a context in an organization. Returns its id; add variables with set_context_env_var.
Restrict a context to a project (get_project for its UUID), a group (list_groups) or an expression.
Create a group in an organization. Use list_collaborations for org_id.
Create a CircleCI organization. vcs_type ‘circleci’ makes a standalone org; ‘github’ or ‘bitbucket’ connects an existing VCS org you can access.
Create a pipeline definition on a GitHub App or standalone project: where config is read from and which repo is checked out.
Create a project in a GitHub App or standalone (circleci) organization.
Create a project environment variable, or overwrite one with the same name.
Create a scheduled pipeline that runs on a UTC timetable.
Add a trigger to a pipeline definition: GitHub events, a custom webhook, or a cron schedule.
Add a URL prefix to an organization’s URL orb allow-list so config can import orbs from it.
Start an export of an organization’s credit and compute usage for up to 31 days.
Create an outbound webhook that posts workflow-completed and/or job-completed events for a project to a URL.
Delete a project’s checkout key; builds that clone with it will fail. Use list_checkout_keys to find fingerprints.
Delete a context and all its variables. Jobs that use it will fail. Use list_contexts to find IDs.
Remove a variable from a context. Use list_context_env_vars to find names.
Remove a restriction from a context. Use list_context_restrictions to find restriction IDs.
Delete a group from an organization. Use list_groups to find group IDs.
Reset an organization’s custom OIDC claims (audience, ttl) to CircleCI’s defaults.
Permanently delete a CircleCI organization and all of its projects, contexts and settings.
Delete a pipeline definition and its triggers. Use list_pipeline_definitions to find it.
Permanently delete a project with its settings, env vars and history.
Delete a project environment variable. Jobs that read it will no longer see it. Use list_project_env_vars to find names.
Remove a project’s custom OIDC claims so the org-level values apply again.
Delete a scheduled pipeline; it stops firing. Use list_schedules to find schedule IDs.
Delete a trigger from a pipeline definition. Use list_triggers to find trigger IDs.
Remove an entry from an organization’s URL orb allow-list. Use list_url_orb_allow_list to find entry IDs.
Delete an outbound webhook; CircleCI stops posting to its URL. Use list_webhooks to find IDs.
Get one checkout key by fingerprint. Use list_checkout_keys to find fingerprints.
Get a deploy component by UUID. Use list_components to find component IDs.
Get a context by UUID. Use list_contexts to find context IDs.
Get the CircleCI user the API token belongs to: id, login and name.
Get a deploy environment by UUID. Use list_environments to find environment IDs.
Get a group in an organization by UUID. Use list_groups to find group IDs.
Get a job by UUID: status, number and its project, pipeline and workflow IDs.
Get a job’s details by project slug and job number: status, duration, executor, parallel runs, messages and web URL.
Get per-job run and duration metrics for a workflow bucketed hourly or daily over a date range.
Get an organization’s Insights summary across projects: runs, success rate, duration and credits, with trends.
Get an organization’s custom OIDC token claims (audience, ttl). Use list_collaborations for org_id.
Get a CircleCI organization by slug (‘gh/acme’) or UUID. Use list_collaborations to find orgs.
Get a pipeline by UUID: state, trigger, branch and commit. Use list_project_pipelines to find IDs.
Get a pipeline by its project-scoped number, the one shown in the CircleCI UI (e.g. 8200).
Get a pipeline’s config: the source config.yml and the compiled config.
Get a pipeline definition by UUID. Use list_pipeline_definitions to find it.
Get the pipeline.* values CircleCI resolved for a pipeline (git branch, revision, trigger source).
Get a project by slug (‘gh/acme/api’): its UUID, org and repository. The UUID is the project_id other tools take.
Get one project environment variable by name, value masked. Use list_project_env_vars to find names.
Get a project’s Insights summary: runs, success rate, duration and credits per workflow and branch, with trends, for a time window.
Get a project’s custom OIDC claims, which override the org’s.
Get a project’s advanced settings (auto-cancel, fork PR builds, PR-only builds, OSS, SSH reruns). Needs project admin.
Get a scheduled pipeline by UUID. Use list_schedules to find schedule IDs.
Get a trigger by UUID. Use list_triggers to find trigger IDs.
Get a usage export’s state and, once ‘completed’, its CSV download URLs. Start one with create_usage_export.
Get a CircleCI user by UUID, e.g. the started_by of a workflow. Use get_current_user for yourself.
Get an outbound webhook by UUID. Use list_webhooks to find webhook IDs.
Get a workflow by UUID: name, status, pipeline and timing. Use list_pipeline_workflows to find IDs.
Get one workflow’s metrics and trends (runs, success rate, mttr, p95 duration, credits) for a branch or all branches.
Get test metrics for a workflow: most-failed and slowest tests and per-run test counts.
List the SSH checkout keys CircleCI uses to clone a project’s repository, with fingerprints.
List the organizations the token’s user belongs to, with each org’s id and slug.
List a component’s deployed versions with which one is live per environment.
List an organization’s deploy components (deployable services), optionally for one project.
List the variable names in a context. Values are never returned. Use list_contexts to find IDs.
List the restrictions that limit which projects, groups or pipelines may use a context.
List an organization’s contexts (shared env var sets). Give owner_slug or owner_id from list_collaborations.
List an organization’s deploy environments (e.g. staging, production). Use list_collaborations for org_id.
List a project’s flaky tests (tests that both passed and failed on the same commit), with how often they flaked.
List the groups in an organization (used for context restrictions and approvals). Use list_collaborations for org_id.
List the branches that have Insights data for a project, optionally for one workflow.
List the artifacts a job stored (path and download URL). Use list_workflow_jobs to find job_number.
List a job’s test results (name, class, result, failure message, run time) from store_test_results.
List the pipelines you triggered in one project, newest first. For everyone’s use list_project_pipelines.
List a project’s pipeline definitions (config and checkout source).
List a pipeline’s workflows with their status (success, failed, running, on_hold).
List recent pipelines in an organization, newest first, across the most recently built projects you follow (CircleCI caps it at 250).
List a project’s environment variables. Values come back masked (last 4 characters only).
List a project’s pipelines, newest first, optionally for one branch.
List a project’s scheduled pipelines with their timetables. GitHub App projects use list_triggers instead.
List the triggers on a pipeline definition (repo events, webhooks, cron schedules). Use list_pipeline_definitions first.
List an organization’s URL orb allow-list: the URL prefixes config may import orbs from.
List a project’s outbound webhooks, optionally only enabled or disabled ones. Use get_project for project_id.
List summary metrics per job in one workflow (runs, success rate, durations, credits), optionally for one job.
List a workflow’s jobs with status, job_number and id.
List summary metrics per workflow in a project (runs, success rate, mttr, durations, credits) for a branch or all branches over a time window.
List recent runs of one workflow with status, duration and credits, filtered by branch and date range.
Rerun a workflow from the start, from its failed jobs (from_failed=true), or for chosen job IDs.
Roll a component in an environment back to an earlier version.
Trigger a new pipeline on a project, for a branch or tag, with optional parameters.
Add a variable to a context, or overwrite one with the same name. Use list_contexts to find context IDs.
Set an organization’s custom OIDC audience and/or token ttl.
Change a pipeline definition’s name, description, config file path or checkout source.
Set a project’s custom OIDC audience and/or ttl, overriding the org’s.
Change a project’s advanced settings. Only the fields you set are sent; the rest keep their value.
Change a scheduled pipeline’s name, description, timetable, actor or parameters.
Change a trigger’s event filter, refs, cron schedule, parameters, or enable/disable it.
Change a webhook’s name, URL, events, secret, TLS check, or enable/disable it.