New to Corsair? See API access, authentication, and error handling.
Contexts
create
contexts.create
Create a context (REST)
Risk: write
Output
createRestriction
contexts.createRestriction
Add a restriction to a context
Risk: write
Output
deleteRestriction
contexts.deleteRestriction
Remove a restriction from a context
Risk: destructive
Output:
Record<string, any>
get
contexts.get
Retrieve a context by id
Risk: read
Output
listEnvVars
contexts.listEnvVars
List a context’s environment variables
Risk: read
Output
items full type
items full type
upsertEnvVar
contexts.upsertEnvVar
Add or update a context environment variable (REST)
Risk: write
Output
Contexts Graph QL
create
contextsGraphQL.create
Create a context (GraphQL)
Risk: write
Output
delete
contextsGraphQL.delete
Permanently delete a context and its environment variables (GraphQL)
Risk: destructive
Output:
Record<string, any>
query
contextsGraphQL.query
Retrieve a context by id (GraphQL)
Risk: read
Output
removeEnvVar
contextsGraphQL.removeEnvVar
Remove a context environment variable (GraphQL)
Risk: destructive
Output:
Record<string, any>
storeEnvVar
contextsGraphQL.storeEnvVar
Add or update a context environment variable (GraphQL)
Risk: write
Output:
Record<string, any>
Groups
create
groups.create
Create an organization group
Risk: write
Output
delete
groups.delete
Permanently delete an organization group
Risk: destructive
Output:
Record<string, any>
get
groups.get
Retrieve an organization group
Risk: read
Output
list
groups.list
List an organization’s groups
Risk: read
Output
items full type
items full type
Insights
branches
insights.branches
List branches with workflow runs
Risk: read
Output:
Record<string, any>
flakyTests
insights.flakyTests
Get flaky tests for a project
Risk: read
Output:
Record<string, any>
orgSummary
insights.orgSummary
Get org-wide summary metrics with trends
Risk: read
Output:
Record<string, any>
pagesSummary
insights.pagesSummary
Get summary metrics and trends for a project
Risk: read
Output:
Record<string, any>
planMetrics
insights.planMetrics
Get plan/credit-usage metrics by project and org for a date range (same route as insights.orgSummary)
Risk: read
Output:
Record<string, any>
projectWorkflows
insights.projectWorkflows
Get summary metrics for all of a project’s workflows
Risk: read
Output:
Record<string, any>
Jobs
getArtifacts
jobs.getArtifacts
List a job’s stored artifacts by number
Risk: read
Output:
object[]
Output full type
Output full type
getDetails
jobs.getDetails
Fetch a job’s status, timing and executor by number
Risk: read
Output
getTestMetadata
jobs.getTestMetadata
Fetch a job’s stored test results by number
Risk: read
Output:
object[]
Output full type
Output full type
Namespace
delete
namespace.delete
Permanently delete a namespace and all its orbs
Risk: destructive
Output:
Record<string, any>
deleteAlias
namespace.deleteAlias
Remove a namespace alias (GraphQL)
Risk: destructive
Output:
Record<string, any>
queryExists
namespace.queryExists
Check whether a namespace name exists
Risk: read
Output
rename
namespace.rename
Rename a namespace
Risk: write
Output
Orb Allowlist
create
orbAllowlist.create
Add a URL orb allow-list entry
Risk: write
Output
delete
orbAllowlist.delete
Remove a URL orb allow-list entry
Risk: destructive
Output:
Record<string, any>
Orbs
getDetails
orbs.getDetails
Fetch an orb’s metadata and versions
Risk: read
Output
versions full type
versions full type
getVersion
orbs.getVersion
Fetch one orb version
Risk: read
Output
listCategories
orbs.listCategories
List orb categories
Risk: read
Output
items full type
items full type
pageInfo full type
pageInfo full type
listNamespaceOrbs
orbs.listNamespaceOrbs
List orbs in a namespace
Risk: read
Output
items full type
items full type
page full type
page full type
listOrbs
orbs.listOrbs
List orbs across the registry
Risk: read
Output
items full type
items full type
pageInfo full type
pageInfo full type
queryCategoryId
orbs.queryCategoryId
Fetch a category’s id by name
Risk: read
Output
queryExists
orbs.queryExists
Check whether an orb exists
Risk: read
Output
queryId
orbs.queryId
Fetch an orb’s id by name
Risk: read
Output
versions full type
versions full type
queryLatestVersion
orbs.queryLatestVersion
Fetch an orb’s latest published version
Risk: read
Output
querySource
orbs.querySource
Fetch an orb version’s source YAML
Risk: read
Output
validateConfig
orbs.validateConfig
Validate orb YAML
Risk: read
Output
errors full type
errors full type
Organization
get
organization.get
Retrieve an organization by id (GraphQL)
Risk: read
Output
Pipeline Definitions
get
pipelineDefinitions.get
Retrieve a pipeline definition
Risk: read
Output
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
Output:
object[]
Output full type
Output full type
Pipelines
getConfig
pipelines.getConfig
Fetch a pipeline’s config
Risk: read
Output:
Record<string, any>
list
pipelines.list
List pipelines for an organization
Risk: read
Output
items full type
items full type
listForProject
pipelines.listForProject
List a project’s pipelines
Risk: read
Output
items full type
items full type
trigger
pipelines.trigger
Start a new pipeline run on a branch or tag
Risk: write
Output
Project Env Vars
create
projectEnvVars.create
Create a project environment variable
Risk: write
Output
delete
projectEnvVars.delete
Delete a project environment variable
Risk: destructive
Output:
Record<string, any>
list
projectEnvVars.list
List a project’s environment variables
Risk: read
Output
items full type
items full type
Projects
create
projects.create
Follow a repository as a new project
Risk: write
Output
vcs_info full type
vcs_info full type
delete
projects.delete
Permanently remove a project and its settings
Risk: destructive
Output:
Record<string, any>
get
projects.get
Retrieve a project by slug
Risk: read
Output
vcs_info full type
vcs_info full type
Runners
list
runners.list
List self-hosted runners
Risk: read
Output
items full type
items full type
Schedules
list
schedules.list
List a project’s scheduled pipeline triggers
Risk: read
Output
items full type
items full type
Usage Export
create
usageExport.create
Create a usage export job
Risk: write
Output:
Record<string, any>
get
usageExport.get
Retrieve a usage export job
Risk: read
Output:
Record<string, any>
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
Output
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
Output:
Record<string, any>
listByPipelineId
workflows.listByPipelineId
List a pipeline’s workflows
Risk: read
Output
items full type
items full type
listJobs
workflows.listJobs
Get summary metrics for a workflow’s jobs
Risk: read
Output:
Record<string, any>
listTestMetrics
workflows.listTestMetrics
Get test metrics for a workflow
Risk: read
Output:
Record<string, any>