Skip to main content
Every circleci.api.* operation is listed below with parameter shapes and return types from the plugin Zod schemas.
New to Corsair? See API access, authentication, and error handling.

Contexts

create

contexts.create Create a context (REST) Risk: write
Input Output

createRestriction

contexts.createRestriction Add a restriction to a context Risk: write
Input Output

deleteRestriction

contexts.deleteRestriction Remove a restriction from a context Risk: destructive
Input Output: object

get

contexts.get Retrieve a context by id Risk: read
Input Output

listEnvVars

contexts.listEnvVars List a context’s environment variables Risk: read
Input Output

upsertEnvVar

contexts.upsertEnvVar Add or update a context environment variable (REST) Risk: write
Input Output

Contexts Graph QL

create

contextsGraphQL.create Create a context (GraphQL) Risk: write
Input Output

delete

contextsGraphQL.delete Permanently delete a context and its environment variables (GraphQL) Risk: destructive
Input Output: object

query

contextsGraphQL.query Retrieve a context by id (GraphQL) Risk: read
Input Output

removeEnvVar

contextsGraphQL.removeEnvVar Remove a context environment variable (GraphQL) Risk: destructive
Input Output: object

storeEnvVar

contextsGraphQL.storeEnvVar Add or update a context environment variable (GraphQL) Risk: write
Input Output: object

Groups

create

groups.create Create an organization group Risk: write
Input Output

delete

groups.delete Permanently delete an organization group Risk: destructive
Input Output: object

get

groups.get Retrieve an organization group Risk: read
Input Output

list

groups.list List an organization’s groups Risk: read
Input Output

Insights

branches

insights.branches List branches with workflow runs Risk: read
Input Output: object

flakyTests

insights.flakyTests Get flaky tests for a project Risk: read
Input Output: object

orgSummary

insights.orgSummary Get org-wide summary metrics with trends Risk: read
Input Output: object

pagesSummary

insights.pagesSummary Get summary metrics and trends for a project Risk: read
Input Output: object

planMetrics

insights.planMetrics Get plan/credit-usage metrics by project and org for a date range (same route as insights.orgSummary) Risk: read
Input Output: object

projectWorkflows

insights.projectWorkflows Get summary metrics for all of a project’s workflows Risk: read
Input Output: object

Jobs

getArtifacts

jobs.getArtifacts List a job’s stored artifacts by number Risk: read
Input Output: object[]

getDetails

jobs.getDetails Fetch a job’s status, timing and executor by number Risk: read
Input Output

getTestMetadata

jobs.getTestMetadata Fetch a job’s stored test results by number Risk: read
Input Output: object[]

Namespace

delete

namespace.delete Permanently delete a namespace and all its orbs Risk: destructive
Input Output: object

deleteAlias

namespace.deleteAlias Remove a namespace alias (GraphQL) Risk: destructive
Input Output: object

queryExists

namespace.queryExists Check whether a namespace name exists Risk: read
Input Output

rename

namespace.rename Rename a namespace Risk: write
Input Output

Orb Allowlist

create

orbAllowlist.create Add a URL orb allow-list entry Risk: write
Input Output

delete

orbAllowlist.delete Remove a URL orb allow-list entry Risk: destructive
Input Output: object

Orbs

getDetails

orbs.getDetails Fetch an orb’s metadata and versions Risk: read
Input Output

getVersion

orbs.getVersion Fetch one orb version Risk: read
Input Output

listCategories

orbs.listCategories List orb categories Risk: read
Input Output

listNamespaceOrbs

orbs.listNamespaceOrbs List orbs in a namespace Risk: read
Input Output

listOrbs

orbs.listOrbs List orbs across the registry Risk: read
Input Output

queryCategoryId

orbs.queryCategoryId Fetch a category’s id by name Risk: read
Input Output

queryExists

orbs.queryExists Check whether an orb exists Risk: read
Input Output

queryId

orbs.queryId Fetch an orb’s id by name Risk: read
Input Output

queryLatestVersion

orbs.queryLatestVersion Fetch an orb’s latest published version Risk: read
Input Output

querySource

orbs.querySource Fetch an orb version’s source YAML Risk: read
Input Output

validateConfig

orbs.validateConfig Validate orb YAML Risk: read
Input Output

Organization

get

organization.get Retrieve an organization by id (GraphQL) Risk: read
Input Output

Pipeline Definitions

get

pipelineDefinitions.get Retrieve a pipeline definition Risk: read
Input Output

list

pipelineDefinitions.list List a project’s pipeline definitions Risk: read
Input Output: object[]

Pipelines

getConfig

pipelines.getConfig Fetch a pipeline’s config Risk: read
Input Output: object

list

pipelines.list List pipelines for an organization Risk: read
Input Output

listForProject

pipelines.listForProject List a project’s pipelines Risk: read
Input Output

trigger

pipelines.trigger Start a new pipeline run on a branch or tag Risk: write
Input
Output

Project Env Vars

create

projectEnvVars.create Create a project environment variable Risk: write
Input Output

delete

projectEnvVars.delete Delete a project environment variable Risk: destructive
Input Output: object

list

projectEnvVars.list List a project’s environment variables Risk: read
Input Output

Projects

create

projects.create Follow a repository as a new project Risk: write
Input Output

delete

projects.delete Permanently remove a project and its settings Risk: destructive
Input Output: object

get

projects.get Retrieve a project by slug Risk: read
Input Output

Runners

list

runners.list List self-hosted runners Risk: read
Input Output

Schedules

list

schedules.list List a project’s scheduled pipeline triggers Risk: read
Input Output

Usage Export

create

usageExport.create Create a usage export job Risk: write
Input Output: object

get

usageExport.get Retrieve a usage export job Risk: read
Input Output: object

User

getCurrent

user.getCurrent Read the authenticated user’s own profile Risk: read
Input: empty object Output

getInfo

user.getInfo Read another user’s profile by id Risk: read
Input Output

listCollaborations

user.listCollaborations List organizations the caller can collaborate on Risk: read
Input: empty object Output: object[]

Workflows

getSummary

workflows.getSummary Get metrics and trends for a workflow Risk: read
Input Output: object

listByPipelineId

workflows.listByPipelineId List a pipeline’s workflows Risk: read
Input Output

listJobs

workflows.listJobs Get summary metrics for a workflow’s jobs Risk: read
Input Output: object

listTestMetrics

workflows.listTestMetrics Get test metrics for a workflow Risk: read
Input Output: object