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

Trunk Merge Queue API

Control the Trunk Merge Queue.

Trunk Merge Queue API is one of 5 APIs that Trunk publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Merge Queue. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, and an API reference.

This API exposes 11 operations across 11 paths, and defines 5 schemas. It is described by OpenAPI 3.2.0, at version 1.0.

Requests are made against a single base URL, https://api.trunk.io/v1.

11 operations 11 paths 5 schemas 1 GET10 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.2.0
API Version
1.0
Base URL
https://api.trunk.io/v1
Authentication
API Key
Terms of Service
Resource Areas
1

Authentication & Security 1

Trunk Merge Queue API declares 1 security scheme for authenticating requests. An API key is passed in the header as x-api-token (ApiKeyAuth). By default, every request must be authenticated.

  • ApiKeyAuth — Organization API token from Settings Organization General API.

Paths & Operations 11

Across 11 paths, the API surfaces 11 operations — 1 GET, 10 POST. Each is listed below with its method, path, parameters, and response codes.

Merge Queue 11

Control the Trunk Merge Queue.

POST
/submitPullRequest
Submit a pull request to the merge queue
submitPullRequest body → 200400401500
POST
/cancelPullRequest
Cancel a pull request in the merge queue
cancelPullRequest body → 200400401500
POST
/getSubmittedPullRequest
Get the state of a submitted pull request
getSubmittedPullRequest body → 200401404500
POST
/restartTestsOnPullRequest
Restart tests on a pull request
restartTestsOnPullRequest body → 200400401500
POST
/setImpactedTargets
Set the impacted targets for a pull request
setImpactedTargets body → 200400401500
POST
/getMergeQueueTestingDetails
Get in-progress merge queue testing details
getMergeQueueTestingDetails body → 200401500
POST
/createQueue
Create a merge queue
createQueue body → 200400401500
POST
/getQueue
Get a merge queue
getQueue body → 200401404500
POST
/updateQueue
Update a merge queue configuration
updateQueue body → 200400401500
POST
/deleteQueue
Delete a merge queue
deleteQueue body → 200401404500
GET
/getMergeQueueMetrics
Get merge queue metrics (Prometheus text exposition format)
getMergeQueueMetrics 2 params → 200401500

Schemas 5

The contract defines 5 schemas that model the data the API accepts and returns. The most detailed are Repo (3 properties), PullRequestRef (3 properties), QueueRef (2 properties), Error (1 property). Each schema is shown below with its type and property counts.

PullRequestState
object
1 property
PullRequestRef
object
3 properties 3 required
QueueRef
object
2 properties 2 required
Error
object
1 property
Repo
object
3 properties 3 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

trunk-merge-queue-api-openapi.yml Raw ↑

Other APIs Trunk publishes across the network.

Trunk Test Uploads (Analytics CLI)
Trunk Webhooks
Trunk Code Quality CLI
Trunk Flaky Tests API
Where this information came from

This is an independent, third-party profile of Trunk Merge Queue 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.