Skip to content
For LLMsView as Markdown·

CircleCI

Manage pipelines, workflows, and jobs with the CircleCI API.

DetailValue
CategoryCI/CD
Base URLhttps://circleci.com/api/v2
AuthenticationAPI Key
Endpoints8
Connector keycircleci

Using CircleCI in a workflow

  1. Go to Connections and click New Connection.
  2. Pick CircleCI from the marketplace.
  3. Enter your credentials (see Authentication above for what's expected).
  4. In a workflow, drop an API Call node and select this connection.
  5. Pick the operation you need from the Operation dropdown — the full list is below.

Available endpoints

EndpointSummary
GET /meGet current user
GET /project/{project-slug}/pipelineList pipelines
POST /project/{project-slug}/pipelineTrigger a pipeline
GET /pipeline/{pipeline-id}Get pipeline details
GET /pipeline/{pipeline-id}/workflowList workflows
GET /workflow/{id}Get workflow details
POST /workflow/{id}/cancelCancel a workflow
GET /workflow/{id}/jobList workflow jobs

Each endpoint is documented in full below. Use the outline on the right to jump to one.

GET /me

Get current user

DetailValue
Operation IDcicd.getCurrentUser
MethodGET
Path/me

Parameters

No parameters.

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your CircleCI connection from the Connection dropdown.
  3. In the Operation dropdown, select cicd.getCurrentUser.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream CircleCI API reference.

GET /project/{project-slug}/pipeline

List pipelines

DetailValue
Operation IDcicd.listProjectPipelines
MethodGET
Path/project/{project-slug}/pipeline

Parameters

No parameters.

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your CircleCI connection from the Connection dropdown.
  3. In the Operation dropdown, select cicd.listProjectPipelines.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream CircleCI API reference.

POST /project/{project-slug}/pipeline

Trigger a pipeline

DetailValue
Operation IDcicd.triggerPipeline
MethodPOST
Path/project/{project-slug}/pipeline

Parameters

No parameters.

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your CircleCI connection from the Connection dropdown.
  3. In the Operation dropdown, select cicd.triggerPipeline.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream CircleCI API reference.

GET /pipeline/{pipeline-id}

Get pipeline details

DetailValue
Operation IDcicd.getPipeline
MethodGET
Path/pipeline/{pipeline-id}

Parameters

No parameters.

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your CircleCI connection from the Connection dropdown.
  3. In the Operation dropdown, select cicd.getPipeline.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream CircleCI API reference.

GET /pipeline/{pipeline-id}/workflow

List workflows

DetailValue
Operation IDcicd.listPipelineWorkflows
MethodGET
Path/pipeline/{pipeline-id}/workflow

Parameters

No parameters.

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your CircleCI connection from the Connection dropdown.
  3. In the Operation dropdown, select cicd.listPipelineWorkflows.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream CircleCI API reference.

GET /workflow/{id}

Get workflow details

DetailValue
Operation IDcicd.getWorkflow
MethodGET
Path/workflow/{id}

Parameters

No parameters.

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your CircleCI connection from the Connection dropdown.
  3. In the Operation dropdown, select cicd.getWorkflow.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream CircleCI API reference.

POST /workflow/{id}/cancel

Cancel a workflow

DetailValue
Operation IDcicd.cancelWorkflow
MethodPOST
Path/workflow/{id}/cancel

Parameters

No parameters.

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your CircleCI connection from the Connection dropdown.
  3. In the Operation dropdown, select cicd.cancelWorkflow.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream CircleCI API reference.

GET /workflow/{id}/job

List workflow jobs

DetailValue
Operation IDcicd.listWorkflowJobs
MethodGET
Path/workflow/{id}/job

Parameters

No parameters.

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your CircleCI connection from the Connection dropdown.
  3. In the Operation dropdown, select cicd.listWorkflowJobs.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream CircleCI API reference.