Skip to content
CircleCI logo

Connectors / Developer tools · HTTP Connector

CircleCI integration and API

Approve a pending job and create a context in CircleCI, and start a workflow when CircleCI sends “Workflow completed”.

What can you do with CircleCI on Tray.ai?

CircleCI is a continuous integration and delivery service that builds, tests and deploys code through pipelines, workflows and jobs defined in a project's config file. Tray.ai connects to CircleCI through the HTTP Connector, so your workflows can call the CircleCI API alongside the rest of your stack.

  • When CircleCI sends “Workflow completed”, post the result and branch name to your engineering team chat.
  • Trigger a pipeline in CircleCI when a release ticket moves to ready in your issue tracker.
  • Approve a pending job once the change request is signed off in your IT service desk.
  • When CircleCI sends “Job completed” with a failure, open a ticket for the on-call engineer.
Connects through
HTTP Connector
Authentication
An API key in a request header or basic authentication
Base URL
https://circleci.com/api/v2

Set it up

Connect CircleCI to Tray.ai

Each step uses CircleCI's own API details, from its documentation.

Step 1

Save CircleCI's API key

Save the key as a Tray.ai authentication. The HTTP Client puts it in the request header, read from $.auth. The key stays out of the workflow and out of the logs.

Step 2

Point the HTTP Client at the API

Add an HTTP Client step and use https://circleci.com/api/v2 as the base URL. Or paste a cURL example from CircleCI's API docs, and Tray.ai fills in the method, URL, and headers.

Step 3

Start with “List pipelines”

It's one of 23 documented actions, under Pipelines. The response comes back as data the next step can map into your other apps.

Step 4

Start workflows from CircleCI events

Give CircleCI the URL of a Tray.ai webhook trigger. “Workflow completed” can then start a workflow, and so can 1 other event.

Workflows to build with CircleCI

Connect CircleCI with Jira and Slack

Each one uses actions and events from CircleCI's own API documentation.

Post CircleCI workflow results to Slack

When

Workflow completed

Then

  1. Get a workflow
  2. Post the status and branch to the team channel in Slack

With Slack

Open Jira issues for flaky CircleCI tests

When

On a schedule

Then

  1. Get flaky tests
  2. Create an issue in Jira for each new flaky test

With Jira

Approve CircleCI deploys when a Jira change is approved

When

A change request is approved in Jira

Then

  1. List workflow jobs to find the pending approval
  2. Approve a pending job

With Jira

Apps you can build on CircleCI data

Internal tools your team can build with an AI assistant, each one using CircleCI calls from its API documentation.

Pending approval queue

Lists workflows with jobs waiting for approval so a release manager can approve a pending job.

Flaky test report

Shows workflow metrics and flaky tests by project so engineering leads can pick what to fix first.

Failed build board

Lists completed workflows that failed with job details and lets an engineer rerun a workflow.

Give your AI agents CircleCI tools

Build an MCP server on CircleCI in Agent Gateway and choose which actions your agents can call. Every call runs with access control and an audit trail. How Agent Gateway works

  • List pipelines
  • Get a workflow
  • Get job details
  • List contexts
  • Get workflow metrics
  • List webhooks
  • Get a pipeline
  • Trigger a pipeline

What the CircleCI API covers

6 resources and 23 documented actions, each one a call the HTTP Connector can make from a Tray.ai workflow. Connecting it takes a few clicks: here's how.

Pipelines

  • List pipelines
  • Get a pipeline
  • Trigger a pipeline
  • List a pipeline's workflows

Workflows

  • Get a workflow
  • List workflow jobs
  • Rerun a workflow
  • Cancel a workflow
  • Approve a pending job

Jobs

  • Get job details
  • Cancel a job

Contexts

  • List contexts
  • Create a context
  • Delete a context
  • Set an environment variable
  • Remove an environment variable

Insights

  • Get workflow metrics
  • Get flaky tests
  • Get an org summary

Webhooks

  • List webhooks
  • Create a webhook
  • Update a webhook
  • Delete a webhook

Events CircleCI can send to a Tray.ai webhook trigger

  • Workflow completed
  • Job completed

Checked against CircleCI's own documentation on 2026-10-22

circleci.com/docs/api/v2/index.html

Frequently asked questions

What can a Tray.ai workflow do in CircleCI?

+

The CircleCI API documents 23 actions across 6 resources (Pipelines, Workflows, Jobs, Contexts, Insights, Webhooks). For example: List pipelines; Get a workflow; Get job details. A workflow can make any documented call through the HTTP Connector.

How does Tray.ai authenticate with CircleCI?

+

The CircleCI API uses an API key in a request header and basic authentication. You save it once as a Tray.ai authentication, and the HTTP Connector adds it to every request.

Which CircleCI events can start a Tray.ai workflow?

+

CircleCI sends 2 events to a webhook URL, for example: Workflow completed; Job completed. A Tray.ai webhook trigger receives them and starts a workflow.

See CircleCI working against your stack.

We'll walk through a tailored demo with your systems plugged in.

Great — a couple more details

This helps us connect you with the right person. Optional, and you can skip it.