API Reference
Complete reference for the Mergify REST API
https://api.mergify.com/v1 Endpoints take a Mergify credential as a Bearer token:
- Application Key: created on your Mergify dashboard, CI keys included
- User Token: issued by
mergify auth login - OIDC CI Token: what a GitHub Actions job gets by exchanging its ID token. For one hour, it calls the endpoints of that job's repository that its trust policies grant, CI Reporting by default
The exchange, POST /ci/oidc/exchange, takes no Bearer
token: the job sends the ID token GitHub signed for it in the request
body. See Application Keys to create a
key, API Usage to get a
user token, and
OIDC Authentication for GitHub Actions to let a job
exchange its ID token.
Applications
1 endpointManage your Mergify application details.
User
1 endpointLook up the GitHub account a user token belongs to.
OIDC Authentication
9 endpointsExchange the ID token of a GitHub Actions job for a Mergify OIDC CI token, write the trust policies that allow it, and read the exchanges.
Queues
7 endpointsConfigure and inspect merge queues for your repositories.
Merge Queue
23 endpointsControl merge queue state — pause, unpause, and inspect status.
Scopes
2 endpointsSee which scopes cover the files of a directory, and simulate a change to them.
Pull Requests
3 endpointsPush scopes and other per-pull-request data to Mergify.
Statistics
21 endpointsAccess merge queue and CI performance statistics.
Simulator
3 endpointsSimulate Mergify behavior on pull requests and configurations.
Activity Log
3 endpointsRetrieve and aggregate the timeline of Mergify events for a repository.
Scheduled Freeze
5 endpointsSchedule merge queue freezes for maintenance or release windows.
CI Insights
3 endpointsAccess data from CI Insights.
Test Engine
22 endpointsAccess data from Test Engine.
Products
3 endpointsChoose the Mergify products enabled on a repository, and the defaults for new repositories.
Roles
4 endpointsGrant, list and revoke the Mergify roles of your organization members.
Integrations
6 endpointsList and disconnect the Slack channels of your organization, and manage their notifications.
API Version Preview
4 endpointsAPI Version endpoints for the Mergify API.
Was this page helpful?
Thanks for your feedback!