circleci.api.* operation is listed below with parameter shapes and return types from the plugin Zod schemas.
Contexts
create
contexts.create
Create a context (REST)
Risk: write
createRestriction
contexts.createRestriction
Add a restriction to a context
Risk: write
deleteRestriction
contexts.deleteRestriction
Remove a restriction from a context
Risk: destructive
object
Output full type
Output full type
get
contexts.get
Retrieve a context by id
Risk: read
listEnvVars
contexts.listEnvVars
List a context’s environment variables
Risk: read
items full type
items full type
upsertEnvVar
contexts.upsertEnvVar
Add or update a context environment variable (REST)
Risk: write
Contexts Graph QL
create
contextsGraphQL.create
Create a context (GraphQL)
Risk: write
delete
contextsGraphQL.delete
Permanently delete a context and its environment variables (GraphQL)
Risk: destructive
object
Output full type
Output full type
query
contextsGraphQL.query
Retrieve a context by id (GraphQL)
Risk: read
removeEnvVar
contextsGraphQL.removeEnvVar
Remove a context environment variable (GraphQL)
Risk: destructive
object
Output full type
Output full type
storeEnvVar
contextsGraphQL.storeEnvVar
Add or update a context environment variable (GraphQL)
Risk: write
object
Output full type
Output full type
Groups
create
groups.create
Create an organization group
Risk: write
delete
groups.delete
Permanently delete an organization group
Risk: destructive
object
Output full type
Output full type
get
groups.get
Retrieve an organization group
Risk: read
list
groups.list
List an organization’s groups
Risk: read
items full type
items full type
Insights
branches
insights.branches
List branches with workflow runs
Risk: read
object
Output full type
Output full type
flakyTests
insights.flakyTests
Get flaky tests for a project
Risk: read
object
Output full type
Output full type
orgSummary
insights.orgSummary
Get org-wide summary metrics with trends
Risk: read
object
Output full type
Output full type
pagesSummary
insights.pagesSummary
Get summary metrics and trends for a project
Risk: read
object
Output full type
Output full type
planMetrics
insights.planMetrics
Get plan/credit-usage metrics by project and org for a date range (same route as insights.orgSummary)
Risk: read
object
Output full type
Output full type
projectWorkflows
insights.projectWorkflows
Get summary metrics for all of a project’s workflows
Risk: read
object
Output full type
Output full type
Jobs
getArtifacts
jobs.getArtifacts
List a job’s stored artifacts by number
Risk: read
object[]
Output full type
Output full type
getDetails
jobs.getDetails
Fetch a job’s status, timing and executor by number
Risk: read
workflows full type
workflows full type
getTestMetadata
jobs.getTestMetadata
Fetch a job’s stored test results by number
Risk: read
object[]
Output full type
Output full type
Namespace
delete
namespace.delete
Permanently delete a namespace and all its orbs
Risk: destructive
object
Output full type
Output full type
deleteAlias
namespace.deleteAlias
Remove a namespace alias (GraphQL)
Risk: destructive
object
Output full type
Output full type
queryExists
namespace.queryExists
Check whether a namespace name exists
Risk: read
rename
namespace.rename
Rename a namespace
Risk: write
Orb Allowlist
create
orbAllowlist.create
Add a URL orb allow-list entry
Risk: write
delete
orbAllowlist.delete
Remove a URL orb allow-list entry
Risk: destructive
object
Output full type
Output full type
Orbs
getDetails
orbs.getDetails
Fetch an orb’s metadata and versions
Risk: read
versions full type
versions full type
getVersion
orbs.getVersion
Fetch one orb version
Risk: read
listCategories
orbs.listCategories
List orb categories
Risk: read
items full type
items full type
pageInfo full type
pageInfo full type
listNamespaceOrbs
orbs.listNamespaceOrbs
List orbs in a namespace
Risk: read
items full type
items full type
page full type
page full type
listOrbs
orbs.listOrbs
List orbs across the registry
Risk: read
items full type
items full type
pageInfo full type
pageInfo full type
queryCategoryId
orbs.queryCategoryId
Fetch a category’s id by name
Risk: read
queryExists
orbs.queryExists
Check whether an orb exists
Risk: read
queryId
orbs.queryId
Fetch an orb’s id by name
Risk: read
versions full type
versions full type
queryLatestVersion
orbs.queryLatestVersion
Fetch an orb’s latest published version
Risk: read
querySource
orbs.querySource
Fetch an orb version’s source YAML
Risk: read
validateConfig
orbs.validateConfig
Validate orb YAML
Risk: read
errors full type
errors full type
Organization
get
organization.get
Retrieve an organization by id (GraphQL)
Risk: read
Pipeline Definitions
get
pipelineDefinitions.get
Retrieve a pipeline definition
Risk: read
config_source full type
config_source full type
checkout_source full type
checkout_source full type
list
pipelineDefinitions.list
List a project’s pipeline definitions
Risk: read
object[]
Output full type
Output full type
Pipelines
getConfig
pipelines.getConfig
Fetch a pipeline’s config
Risk: read
object
Output full type
Output full type
list
pipelines.list
List pipelines for an organization
Risk: read
items full type
items full type
listForProject
pipelines.listForProject
List a project’s pipelines
Risk: read
items full type
items full type
trigger
pipelines.trigger
Start a new pipeline run on a branch or tag
Risk: write
parameters full type
parameters full type
trigger full type
trigger full type
vcs full type
vcs full type
errors full type
errors full type
Project Env Vars
create
projectEnvVars.create
Create a project environment variable
Risk: write
delete
projectEnvVars.delete
Delete a project environment variable
Risk: destructive
object
Output full type
Output full type
list
projectEnvVars.list
List a project’s environment variables
Risk: read
items full type
items full type
Projects
create
projects.create
Follow a repository as a new project
Risk: write
vcs_info full type
vcs_info full type
delete
projects.delete
Permanently remove a project and its settings
Risk: destructive
object
Output full type
Output full type
get
projects.get
Retrieve a project by slug
Risk: read
vcs_info full type
vcs_info full type
Runners
list
runners.list
List self-hosted runners
Risk: read
items full type
items full type
Schedules
list
schedules.list
List a project’s scheduled pipeline triggers
Risk: read
items full type
items full type
Usage Export
create
usageExport.create
Create a usage export job
Risk: write
object
Output full type
Output full type
get
usageExport.get
Retrieve a usage export job
Risk: read
object
Output full type
Output full type
User
getCurrent
user.getCurrent
Read the authenticated user’s own profile
Risk: read
getInfo
user.getInfo
Read another user’s profile by id
Risk: read
listCollaborations
user.listCollaborations
List organizations the caller can collaborate on
Risk: read
object[]
Output full type
Output full type
Workflows
getSummary
workflows.getSummary
Get metrics and trends for a workflow
Risk: read
object
Output full type
Output full type
listByPipelineId
workflows.listByPipelineId
List a pipeline’s workflows
Risk: read
items full type
items full type
listJobs
workflows.listJobs
Get summary metrics for a workflow’s jobs
Risk: read
object
Output full type
Output full type
listTestMetrics
workflows.listTestMetrics
Get test metrics for a workflow
Risk: read
object
Output full type
Output full type