How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

CircleCI Context API

Endpoints for managing contexts, which are used to secure and share environment variables across projects.

CircleCI Context API is one of 18 APIs that CircleCI publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Context. The published artifact set on APIs.io includes an OpenAPI specification and API documentation.

This API exposes 7 operations across 4 paths, and defines 7 schemas. It is described by OpenAPI 3.2.0, at version 1.1.

Requests are made against a single base URL, https://circleci.com/api/v1.1.

7 operations 4 paths 7 schemas 2 DELETE3 GET1 POST1 PUT

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.2.0
API Version
1.1
Base URL
https://circleci.com/api/v2
Authentication
API Key
Terms of Service
Resource Areas
1

Authentication & Security 1

CircleCI Context API declares 1 security scheme for authenticating requests. An API key is passed in the header as Circle-Token (apiToken). By default, every request must be authenticated.

  • apiToken — Personal API token for authenticating with the CircleCI API. Can also be passed as a query parameter.

Paths & Operations 7

Across 4 paths, the API surfaces 7 operations — 2 DELETE, 3 GET, 1 POST, 1 PUT. Each is listed below with its method, path, parameters, and response codes.

Context 7

Endpoints for managing contexts, which are used to secure and share environment variables across projects.

GET
/context
List contexts
listContexts 4 params → 200401
POST
/context
Create a context
createContext body → 200400401
GET
/context/{context-id}
Get a context
getContext 1 param → 200401404
DELETE
/context/{context-id}
Delete a context
deleteContext 1 param → 200401404
GET
/context/{context-id}/environment-variable
List environment variables in a context
listContextEnvironmentVariables 2 params → 200401
PUT
/context/{context-id}/environment-variable/{env-var-name}
Add or update an environment variable
addOrUpdateContextEnvironmentVariable 2 params body → 200401
DELETE
/context/{context-id}/environment-variable/{env-var-name}
Remove an environment variable
deleteContextEnvironmentVariable 2 params → 200401

Schemas 7

The contract defines 7 schemas that model the data the API accepts and returns. The most detailed are EnvironmentVariable (4 properties), Context (3 properties), CreateContextRequest (2 properties), EnvironmentVariableList (2 properties). Each schema is shown below with its type and property counts.

Context
object
3 properties
ContextList
object
2 properties
EnvironmentVariableList
object
2 properties
EnvironmentVariable
object
4 properties
MessageResponse
object
1 property
ErrorResponse
object
1 property
CreateContextRequest
object
2 properties 2 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

circleci-context-api-openapi.yml Raw ↑

Other APIs CircleCI publishes across the network.

CircleCI Self-Hosted Runner API
CircleCI Webhooks
CircleCI Orbs Registry
CircleCI Artifact API
CircleCI Build API
CircleCI Insights API
CircleCI Job API
CircleCI Pipeline API
CircleCI Project API
CircleCI Resource Class API
CircleCI Runner Task API
CircleCI Schedule API
Where this information came from

This is an independent, third-party profile of CircleCI Context API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.