
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
- Get a workflow
- 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
- Get flaky tests
- 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
- List workflow jobs to find the pending approval
- 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
How Tray.ai makes this work
CircleCI plugs into the whole Tray.ai platform
Intelligent Integration
Integrate and automate across 12,000+ apps, databases, APIs, and services with visual workflows, error handling, and observability.
Learn more →Agent Builder
Build AI agents that read, write, and take action in CircleCI — with guardrails, audit, and human-in-the-loop.
Learn more →Agent Gateway for MCP
Expose CircleCI actions as governed MCP tools — observable, rate-limited, authenticated.
Learn more →Tray Helix
Build apps on CircleCI data with your AI assistant, then deploy, run, and govern them on Tray.ai.
Learn more →More developer tools apps on Tray.ai
Dedicated connectors and other apps Tray.ai reaches in the same category. See every developer tools connector →
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.
Thanks — someone from our team will be in touch soon.