OIDC Authentication
Exchange 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.
List the organization's trust policies #
/ci/{owner}/oidc/trust-policies Every trust policy of the organization. A CI job gets a Mergify OIDC CI token from its ID token when one of them matches it.
Application key permission: oidc_trust_policies: read.
owner string required The owner of the repository
min length: 1 · max length: 40 · pattern: ^[a-zA-Z0-9\-]+$
200 Successful Response
Example Response
{
"trust_policies": [
{
"name": "string",
"provider": "github_actions",
"repositories": {},
"conditions": {},
"permissions": {},
"id": "string",
"created_by": {},
"created_at": "2024-01-15T09:00:00Z",
"updated_by": {},
"updated_at": "2024-01-15T09:00:00Z",
"last_used_at": "2024-01-15T09:00:00Z"
}
]
}
API_VERSION_UNKNOWN: The Mergify-Version header names an API version this server does not serve. served_versions lists the versions it serves, each at the newest point this server serves (YYYY-MM-DD.N).
Body: APIVersionUnknownBody
CI_ADMIN_ROLE_REQUIRED: Only organization admins and users with the CI Admin role can access this. APPLICATION_KEY_REFUSED: The application key lacks the permission the request needs, or the request names an account or repository of another organization. CI_TOKEN_REFUSED: The Mergify OIDC CI token has expired, lacks the permission the request needs, or the request does not name the repository it was issued for.
Body: CredentialRefusedBody
Example Request
curl -X GET "https://api.mergify.com/v1/ci/:owner/oidc/trust-policies" \
-H "Authorization: Bearer <token>" Create a trust policy #
/ci/{owner}/oidc/trust-policies Add a trust policy to the organization.
Application key permission: oidc_trust_policies: write.
owner string required The owner of the repository
min length: 1 · max length: 40 · pattern: ^[a-zA-Z0-9\-]+$
provider — 1 types201 Successful Response
provider — 1 typesExample Response
{
"name": "string",
"provider": "github_actions",
"repositories": {
"mode": "all"
},
"conditions": {
"events": "any",
"workflows": "any",
"environments": "any"
},
"permissions": {},
"id": "string",
"created_by": {
"type": "application",
"id": 0,
"name": "string"
},
"created_at": "2024-01-15T09:00:00Z",
"updated_by": {
"type": "application",
"id": 0,
"name": "string"
},
"updated_at": "2024-01-15T09:00:00Z",
"last_used_at": "2024-01-15T09:00:00Z"
}
API_VERSION_UNKNOWN: The Mergify-Version header names an API version this server does not serve. served_versions lists the versions it serves, each at the newest point this server serves (YYYY-MM-DD.N).
Body: APIVersionUnknownBody
CI_TRUST_POLICY_GRANT_REFUSED: Only an organization admin, signed in as themselves, writes a trust policy that grants more than CI Reporting. A CI Admin or an application key writes the ones granting CI Reporting alone. CI_ADMIN_ROLE_REQUIRED: Only organization admins and users with the CI Admin role can access this. APPLICATION_KEY_REFUSED: The application key lacks the permission the request needs, or the request names an account or repository of another organization. CI_TOKEN_REFUSED: The Mergify OIDC CI token has expired, lacks the permission the request needs, or the request does not name the repository it was issued for.
Body: CredentialRefusedBody
CI_TRUST_POLICY_NAME_TAKEN: Another trust policy of the organization has this name.
Body: APIErrorBody
CI_TRUST_POLICY_LIMIT_REACHED: The organization has as many trust policies as an organization can have. Widen an existing policy, or delete one, instead. CI_TRUST_POLICY_REPOSITORY_UNKNOWN : The policy names a repository Mergify's GitHub App cannot access in the organization. Name repositories the app is installed on, by their GitHub id.
Body: APIErrorBody
Example Request
curl -X POST "https://api.mergify.com/v1/ci/:owner/oidc/trust-policies" \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{
"name": "string",
"provider": "github_actions",
"repositories": {
"mode": "all"
},
"conditions": {
"events": "any",
"workflows": "any",
"environments": "any"
},
"permissions": {}
}' Get a trust policy #
/ci/{owner}/oidc/trust-policies/{trust_policy_id} One trust policy of the organization.
Application key permission: oidc_trust_policies: read.
trust_policy_id string <uuid> required owner string required The owner of the repository
min length: 1 · max length: 40 · pattern: ^[a-zA-Z0-9\-]+$
200 Successful Response
provider — 1 typesExample Response
{
"name": "string",
"provider": "github_actions",
"repositories": {
"mode": "all"
},
"conditions": {
"events": "any",
"workflows": "any",
"environments": "any"
},
"permissions": {},
"id": "string",
"created_by": {
"type": "application",
"id": 0,
"name": "string"
},
"created_at": "2024-01-15T09:00:00Z",
"updated_by": {
"type": "application",
"id": 0,
"name": "string"
},
"updated_at": "2024-01-15T09:00:00Z",
"last_used_at": "2024-01-15T09:00:00Z"
}
API_VERSION_UNKNOWN: The Mergify-Version header names an API version this server does not serve. served_versions lists the versions it serves, each at the newest point this server serves (YYYY-MM-DD.N).
Body: APIVersionUnknownBody
CI_ADMIN_ROLE_REQUIRED: Only organization admins and users with the CI Admin role can access this. APPLICATION_KEY_REFUSED: The application key lacks the permission the request needs, or the request names an account or repository of another organization. CI_TOKEN_REFUSED: The Mergify OIDC CI token has expired, lacks the permission the request needs, or the request does not name the repository it was issued for.
Body: CredentialRefusedBody
CI_TRUST_POLICY_NOT_FOUND: The organization has no trust policy with this id.
Body: APIErrorBody
Example Request
curl -X GET "https://api.mergify.com/v1/ci/:owner/oidc/trust-policies/:trust_policy_id" \
-H "Authorization: Bearer <token>" Update a trust policy #
/ci/{owner}/oidc/trust-policies/{trust_policy_id} Change what a trust policy matches or grants. A field left out keeps its value, and so does a line of conditions left out, save on a change of provider, which needs conditions. The tokens already issued keep what the policy granted until they expire, within the hour.
Application key permission: oidc_trust_policies: write.
trust_policy_id string <uuid> required owner string required The owner of the repository
min length: 1 · max length: 40 · pattern: ^[a-zA-Z0-9\-]+$
github_actionsWhat the token of a job it matches may do on the job's own repository, resource by resource, as an application key's permissions: read, or write, which includes read. * gives its level on every resource but ci_reporting. A job several policies match gets what each of them grants. Only an organization admin, signed in as themselves, writes a policy granting more than ci_reporting. null: ci_reporting alone.
200 Successful Response
provider — 1 typesExample Response
{
"name": "string",
"provider": "github_actions",
"repositories": {
"mode": "all"
},
"conditions": {
"events": "any",
"workflows": "any",
"environments": "any"
},
"permissions": {},
"id": "string",
"created_by": {
"type": "application",
"id": 0,
"name": "string"
},
"created_at": "2024-01-15T09:00:00Z",
"updated_by": {
"type": "application",
"id": 0,
"name": "string"
},
"updated_at": "2024-01-15T09:00:00Z",
"last_used_at": "2024-01-15T09:00:00Z"
}
API_VERSION_UNKNOWN: The Mergify-Version header names an API version this server does not serve. served_versions lists the versions it serves, each at the newest point this server serves (YYYY-MM-DD.N).
Body: APIVersionUnknownBody
CI_TRUST_POLICY_GRANT_REFUSED: Only an organization admin, signed in as themselves, writes a trust policy that grants more than CI Reporting. A CI Admin or an application key writes the ones granting CI Reporting alone. CI_ADMIN_ROLE_REQUIRED: Only organization admins and users with the CI Admin role can access this. APPLICATION_KEY_REFUSED: The application key lacks the permission the request needs, or the request names an account or repository of another organization. CI_TOKEN_REFUSED: The Mergify OIDC CI token has expired, lacks the permission the request needs, or the request does not name the repository it was issued for.
Body: CredentialRefusedBody
CI_TRUST_POLICY_NOT_FOUND: The organization has no trust policy with this id.
Body: APIErrorBody
CI_TRUST_POLICY_NAME_TAKEN: Another trust policy of the organization has this name.
Body: APIErrorBody
CI_TRUST_POLICY_REPOSITORY_UNKNOWN : The policy names a repository Mergify's GitHub App cannot access in the organization. Name repositories the app is installed on, by their GitHub id.
Body: APIErrorBody
Example Request
curl -X PATCH "https://api.mergify.com/v1/ci/:owner/oidc/trust-policies/:trust_policy_id" \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{
"name": "string",
"provider": "github_actions",
"repositories": {
"mode": "all"
},
"conditions": {
"events": "any",
"workflows": "any",
"environments": "any"
},
"permissions": {}
}' Delete a trust policy #
/ci/{owner}/oidc/trust-policies/{trust_policy_id} Delete a trust policy. The jobs only it allowed get no token from then on, and the tokens already issued expire within the hour.
Application key permission: oidc_trust_policies: write.
trust_policy_id string <uuid> required owner string required The owner of the repository
min length: 1 · max length: 40 · pattern: ^[a-zA-Z0-9\-]+$
API_VERSION_UNKNOWN: The Mergify-Version header names an API version this server does not serve. served_versions lists the versions it serves, each at the newest point this server serves (YYYY-MM-DD.N).
Body: APIVersionUnknownBody
CI_TRUST_POLICY_GRANT_REFUSED: Only an organization admin, signed in as themselves, writes a trust policy that grants more than CI Reporting. A CI Admin or an application key writes the ones granting CI Reporting alone. CI_ADMIN_ROLE_REQUIRED: Only organization admins and users with the CI Admin role can access this. APPLICATION_KEY_REFUSED: The application key lacks the permission the request needs, or the request names an account or repository of another organization. CI_TOKEN_REFUSED: The Mergify OIDC CI token has expired, lacks the permission the request needs, or the request does not name the repository it was issued for.
Body: CredentialRefusedBody
CI_TRUST_POLICY_NOT_FOUND: The organization has no trust policy with this id.
Body: APIErrorBody
Example Request
curl -X DELETE "https://api.mergify.com/v1/ci/:owner/oidc/trust-policies/:trust_policy_id" \
-H "Authorization: Bearer <token>" List the exchanges of the organization's CI jobs #
/ci/{owner}/oidc/exchanges Each time a CI job of the organization traded its ID token for a Mergify OIDC CI token, or tried to, latest first: the policies that allowed it, or the reason it was refused. A token whose signature does not verify, or that expired, is not listed: nothing in it can be trusted to name the organization.
Application key permission: oidc_trust_policies: read.
owner string required The owner of the repository
min length: 1 · max length: 40 · pattern: ^[a-zA-Z0-9\-]+$
cursor string The opaque cursor of the current page. Must be extracted from RFC 5988 pagination links to get the previous/next pages
per_page integer The number of items per page
min: 1 · max: 100
outcome "allowed" | "refused" Only the allowed, or the refused, exchanges.
repository_id integer Only the exchanges of this repository.
min: -9223372036854776000 · max: 9223372036854776000
allowed_by_policy_id string <uuid> Only the exchanges this policy allowed.
start string <date-time> Start of the time range: an ISO 8601 datetime with a UTC offset (e.g. 2024-01-01T00:00:00Z); a Unix timestamp or a datetime without an offset is refused. Defaults to end - 1 day when omitted; a paginated response carries the resolved value in its Link header.
end string <date-time> End of the time range: an ISO 8601 datetime with a UTC offset (e.g. 2024-01-01T00:00:00Z); a Unix timestamp or a datetime without an offset is refused. Defaults to start + 1 day when only start is provided, or now otherwise; a paginated response carries the resolved value in its Link header.
200 Successful Response
The number of items in this page
The number of items per page
Example Response
{
"size": 0,
"per_page": 0,
"exchanges": [
{
"id": "string",
"first_exchanged_at": "2024-01-15T09:00:00Z",
"last_exchanged_at": "2024-01-15T09:00:00Z",
"count": 0,
"outcome": "allowed",
"repository": {},
"provider": "github_actions",
"job": {},
"allowed_by_policies": null,
"permissions": {},
"refusal": {}
}
]
}
API_VERSION_UNKNOWN: The Mergify-Version header names an API version this server does not serve. served_versions lists the versions it serves, each at the newest point this server serves (YYYY-MM-DD.N).
Body: APIVersionUnknownBody
CI_ADMIN_ROLE_REQUIRED: Only organization admins and users with the CI Admin role can access this. APPLICATION_KEY_REFUSED: The application key lacks the permission the request needs, or the request names an account or repository of another organization. CI_TOKEN_REFUSED: The Mergify OIDC CI token has expired, lacks the permission the request needs, or the request does not name the repository it was issued for.
Body: CredentialRefusedBody
INVALID_CURSOR: The cursor cannot be used for this request. Request the first page again without cursor, then follow the links of the response.
Body: InvalidCursorBody
Example Request
curl -X GET "https://api.mergify.com/v1/ci/:owner/oidc/exchanges" \
-H "Authorization: Bearer <token>" Count the exchanges of the organization's CI jobs #
/ci/{owner}/oidc/exchanges/summary How many exchanges the report lists for the same query were allowed and refused, from how many workflows the refused ones came, and how many each policy allowed. Each counts the jobs' exchanges, not the report's rows.
Application key permission: oidc_trust_policies: read.
owner string required The owner of the repository
min length: 1 · max length: 40 · pattern: ^[a-zA-Z0-9\-]+$
outcome "allowed" | "refused" Only the allowed, or the refused, exchanges.
repository_id integer Only the exchanges of this repository.
min: -9223372036854776000 · max: 9223372036854776000
allowed_by_policy_id string <uuid> Only the exchanges this policy allowed.
start string <date-time> Start of the time range: an ISO 8601 datetime with a UTC offset (e.g. 2024-01-01T00:00:00Z); a Unix timestamp or a datetime without an offset is refused. Defaults to end - 1 day when omitted; a paginated response carries the resolved value in its Link header.
end string <date-time> End of the time range: an ISO 8601 datetime with a UTC offset (e.g. 2024-01-01T00:00:00Z); a Unix timestamp or a datetime without an offset is refused. Defaults to start + 1 day when only start is provided, or now otherwise; a paginated response carries the resolved value in its Link header.
200 Successful Response
The exchanges allowed.
The exchanges refused.
The workflows the refused exchanges came from: the workflow file each job's run ran, whatever its branch, a reusable workflow counting as the workflow that called it.
Example Response
{
"allowed": 0,
"refused": 0,
"refused_workflows": 0,
"policies": [
{
"id": "string",
"name": "string",
"allowed": 0
}
]
}
API_VERSION_UNKNOWN: The Mergify-Version header names an API version this server does not serve. served_versions lists the versions it serves, each at the newest point this server serves (YYYY-MM-DD.N).
Body: APIVersionUnknownBody
CI_ADMIN_ROLE_REQUIRED: Only organization admins and users with the CI Admin role can access this. APPLICATION_KEY_REFUSED: The application key lacks the permission the request needs, or the request names an account or repository of another organization. CI_TOKEN_REFUSED: The Mergify OIDC CI token has expired, lacks the permission the request needs, or the request does not name the repository it was issued for.
Body: CredentialRefusedBody
Example Request
curl -X GET "https://api.mergify.com/v1/ci/:owner/oidc/exchanges/summary" \
-H "Authorization: Bearer <token>" Get one exchange of the organization's CI jobs #
/ci/{owner}/oidc/exchanges/{exchange_id} One exchange of the report, by the id a refused job's log names.
Application key permission: oidc_trust_policies: read.
exchange_id string <uuid> required owner string required The owner of the repository
min length: 1 · max length: 40 · pattern: ^[a-zA-Z0-9\-]+$
200 Successful Response
provider — 1 typesExample Response
{
"id": "string",
"first_exchanged_at": "2024-01-15T09:00:00Z",
"last_exchanged_at": "2024-01-15T09:00:00Z",
"count": 0,
"outcome": "allowed",
"repository": {
"id": 0,
"full_name": "string"
},
"provider": "github_actions",
"job": {
"event": "string",
"ref": "string",
"workflow_ref": "string",
"job_workflow_ref": "string",
"environment": "string",
"run_id": 0,
"run_attempt": 0
},
"allowed_by_policies": [
{
"id": "string",
"name": "string"
}
],
"permissions": {},
"refusal": {
"reason": "no_policy",
"policies": [
{}
]
}
}
API_VERSION_UNKNOWN: The Mergify-Version header names an API version this server does not serve. served_versions lists the versions it serves, each at the newest point this server serves (YYYY-MM-DD.N).
Body: APIVersionUnknownBody
CI_ADMIN_ROLE_REQUIRED: Only organization admins and users with the CI Admin role can access this. APPLICATION_KEY_REFUSED: The application key lacks the permission the request needs, or the request names an account or repository of another organization. CI_TOKEN_REFUSED: The Mergify OIDC CI token has expired, lacks the permission the request needs, or the request does not name the repository it was issued for.
Body: CredentialRefusedBody
CI_ID_TOKEN_EXCHANGE_NOT_FOUND: The report holds no such exchange for the caller: an id of no exchange of the organization, one past its retention, or one of a repository the caller cannot see.
Body: APIErrorBody
Example Request
curl -X GET "https://api.mergify.com/v1/ci/:owner/oidc/exchanges/:exchange_id" \
-H "Authorization: Bearer <token>" Exchange a CI job's ID token for a Mergify OIDC CI token #
/ci/oidc/exchange Verify the ID token a CI job got from its CI and answer a Mergify OIDC CI token valid for an hour, on the job's repository only, with the permissions of the trust policies that match the job.
The ID token the job's CI gave it.
200 Successful Response
Example Response
{
"token": "string",
"expires_in": 0
}
API_VERSION_UNKNOWN: The Mergify-Version header names an API version this server does not serve. served_versions lists the versions it serves, each at the newest point this server serves (YYYY-MM-DD.N).
Body: APIVersionUnknownBody
CI_ID_TOKEN_INVALID: The ID token is malformed or its signature does not verify. CI_ID_TOKEN_ISSUER_REFUSED: The ID token comes from an issuer this Mergify does not trust. CI_ID_TOKEN_AUDIENCE_REFUSED: The ID token was issued for another audience than this Mergify API. CI_ID_TOKEN_EXPIRED: The ID token has expired. CI_ID_TOKEN_REPOSITORY_NOT_INSTALLED : Mergify's installation on the organization does not cover the ID token's repository. CI_ID_TOKEN_NO_TRUST_POLICY: The organization has no trust policy for the CI of the job, so it trusts none of its jobs. An organization admin can add one, or the job can use an application key instead. CI_ID_TOKEN_NO_MATCHING_TRUST_POLICY : No trust policy of the organization matches the CI job.
Body: APIErrorBody
CI_ID_TOKEN_ISSUER_UNAVAILABLE: The ID token issuer's keys cannot be fetched; retrying later succeeds.
Body: APIErrorBody
Example Request
curl -X POST "https://api.mergify.com/v1/ci/oidc/exchange" \
-H "Content-Type: application/json" \
-d '{
"id_token": "string"
}' Error response bodies #
An endpoint lists each error status it returns and links to the body that comes with it.
APIVersionUnknownBody
ACTIVITY_LOG_METADATA_FILTER_NOT_INDEXED API_VERSION_NOT_NEWER API_VERSION_ROLLBACK_UNAVAILABLE API_VERSION_UNKNOWN APPLICATION_KEY_EXPIRED APPLICATION_KEY_REFUSED AUTO_QUARANTINE_CONFIG_NOT_FOUND CI_ADMIN_ROLE_REQUIRED CI_ID_TOKEN_AUDIENCE_REFUSED CI_ID_TOKEN_EXCHANGE_NOT_FOUND CI_ID_TOKEN_EXPIRED CI_ID_TOKEN_INVALID CI_ID_TOKEN_ISSUER_REFUSED CI_ID_TOKEN_ISSUER_UNAVAILABLE CI_ID_TOKEN_NO_MATCHING_TRUST_POLICY CI_ID_TOKEN_NO_TRUST_POLICY CI_ID_TOKEN_REPOSITORY_NOT_INSTALLED CI_TOKEN_REFUSED CI_TOKEN_SCOPES_TARGET_REFUSED CI_TRACES_UPLOAD_UNUSABLE CI_TRUST_POLICY_GRANT_REFUSED CI_TRUST_POLICY_LIMIT_REACHED CI_TRUST_POLICY_NAME_TAKEN CI_TRUST_POLICY_NOT_FOUND CI_TRUST_POLICY_REPOSITORY_UNKNOWN COMMAND_RESTRICTED CONFIGURATION_BRANCH_REFUSED CONFIGURATION_GITHUB_APP_ACCESS_REQUIRED CONFIGURATION_INVALID CONFIGURATION_REFUSED_BY_REPOSITORY_RULES CONFIGURATION_SIGNED_COMMITS_REQUIRED DEFAULT_BRANCH_NOT_FOUND FLAKY_DETECTION_NOT_CONFIGURED GITHUB_ACCOUNT_SUSPENDED GITHUB_APP_ACCESS_LOST GITHUB_RATE_LIMITED GITHUB_TOKEN_NOT_ACCEPTED GITHUB_TWO_FACTOR_AUTHENTICATION_NONCOMPLIANT GITHUB_UPSTREAM_REQUEST_FORBIDDEN GITHUB_UPSTREAM_REQUEST_REJECTED GITHUB_UPSTREAM_UNAVAILABLE INTEGRATION_NOT_CONFIGURED INVALID_CURSOR IP_ALLOW_LIST_NOT_CONFIGURED KNOWN_TESTS_BEING_COMPUTED KNOWN_TESTS_NOT_SERVED MERGE_QUEUE_DISABLED MERGE_QUEUE_POLICY_INVALID_PATTERN MERGE_QUEUE_POLICY_LIMIT_REACHED MERGE_QUEUE_POLICY_NAME_TAKEN MERGE_QUEUE_POLICY_NOT_FOUND MERGE_QUEUE_SETTING_INVALID_BRANCH_PATTERN MERGE_QUEUE_SETTING_NOT_AVAILABLE MERGE_QUEUE_SETTING_TOO_MANY_BRANCH_PATTERNS NOT_GENERALLY_AVAILABLE NO_LOGIN_IN_PROGRESS ORGANIZATION_MEMBERS_ONLY PULL_REQUEST_ALREADY_QUEUED PULL_REQUEST_LEAVING_QUEUE PULL_REQUEST_NOT_FOUND PULL_REQUEST_NOT_QUEUEABLE PULL_REQUEST_NOT_QUEUED PULL_REQUEST_QUEUE_REQUESTED PULL_REQUEST_UNREADABLE REPOSITORY_ADMIN_ROLE_REQUIRED REPOSITORY_READ_ROLE_REQUIRED REPOSITORY_WRITE_ROLE_REQUIRED RETRY_RULE_NOT_FOUND ROLE_ALREADY_GRANTED ROLE_CHANGE_REFUSED ROLE_GRANTEE_REFUSED ROLE_GRANT_NOT_FOUND SAML_ENFORCEMENT_NOT_AUTHORIZED SCHEDULED_FREEZE_NOT_FOUND SCOPES_COVERAGE_GLOB_TOO_COSTLY SCOPES_COVERAGE_MANUAL_SOURCE SCOPES_COVERAGE_PATH_NOT_FOUND SCOPES_COVERAGE_UNAVAILABLE SETTING_MANAGED_BY_ENV SETUP_ALREADY_DONE SETUP_TOKEN_MISMATCH STAFF_SESSION_REFUSED STATISTICS_SCOPE_PERIOD_TOO_LARGE SUBSCRIPTION_API_UNAVAILABLE SUBSCRIPTION_FEATURE_REQUIRED SUBSCRIPTION_INACTIVE SUBSCRIPTION_TOKEN_INVALID TEST_ALREADY_QUARANTINED TEST_BRANCH_NOT_TRACKED TEST_FAILURE_NOT_FOUND TEST_NOT_FOUND TEST_RESULTS_INGESTION_NOT_ENABLED TEST_RETRY_NOT_CONFIGURED TEST_STATE_NOT_FOUND TEST_STATE_OVERLAPExample Response
{
"detail": "string",
"error_code": "API_VERSION_UNKNOWN",
"documentation_url": "string",
"served_versions": [
"string"
]
}
CredentialRefusedBody
ACTIVITY_LOG_METADATA_FILTER_NOT_INDEXED API_VERSION_NOT_NEWER API_VERSION_ROLLBACK_UNAVAILABLE API_VERSION_UNKNOWN APPLICATION_KEY_EXPIRED APPLICATION_KEY_REFUSED AUTO_QUARANTINE_CONFIG_NOT_FOUND CI_ADMIN_ROLE_REQUIRED CI_ID_TOKEN_AUDIENCE_REFUSED CI_ID_TOKEN_EXCHANGE_NOT_FOUND CI_ID_TOKEN_EXPIRED CI_ID_TOKEN_INVALID CI_ID_TOKEN_ISSUER_REFUSED CI_ID_TOKEN_ISSUER_UNAVAILABLE CI_ID_TOKEN_NO_MATCHING_TRUST_POLICY CI_ID_TOKEN_NO_TRUST_POLICY CI_ID_TOKEN_REPOSITORY_NOT_INSTALLED CI_TOKEN_REFUSED CI_TOKEN_SCOPES_TARGET_REFUSED CI_TRACES_UPLOAD_UNUSABLE CI_TRUST_POLICY_GRANT_REFUSED CI_TRUST_POLICY_LIMIT_REACHED CI_TRUST_POLICY_NAME_TAKEN CI_TRUST_POLICY_NOT_FOUND CI_TRUST_POLICY_REPOSITORY_UNKNOWN COMMAND_RESTRICTED CONFIGURATION_BRANCH_REFUSED CONFIGURATION_GITHUB_APP_ACCESS_REQUIRED CONFIGURATION_INVALID CONFIGURATION_REFUSED_BY_REPOSITORY_RULES CONFIGURATION_SIGNED_COMMITS_REQUIRED DEFAULT_BRANCH_NOT_FOUND FLAKY_DETECTION_NOT_CONFIGURED GITHUB_ACCOUNT_SUSPENDED GITHUB_APP_ACCESS_LOST GITHUB_RATE_LIMITED GITHUB_TOKEN_NOT_ACCEPTED GITHUB_TWO_FACTOR_AUTHENTICATION_NONCOMPLIANT GITHUB_UPSTREAM_REQUEST_FORBIDDEN GITHUB_UPSTREAM_REQUEST_REJECTED GITHUB_UPSTREAM_UNAVAILABLE INTEGRATION_NOT_CONFIGURED INVALID_CURSOR IP_ALLOW_LIST_NOT_CONFIGURED KNOWN_TESTS_BEING_COMPUTED KNOWN_TESTS_NOT_SERVED MERGE_QUEUE_DISABLED MERGE_QUEUE_POLICY_INVALID_PATTERN MERGE_QUEUE_POLICY_LIMIT_REACHED MERGE_QUEUE_POLICY_NAME_TAKEN MERGE_QUEUE_POLICY_NOT_FOUND MERGE_QUEUE_SETTING_INVALID_BRANCH_PATTERN MERGE_QUEUE_SETTING_NOT_AVAILABLE MERGE_QUEUE_SETTING_TOO_MANY_BRANCH_PATTERNS NOT_GENERALLY_AVAILABLE NO_LOGIN_IN_PROGRESS ORGANIZATION_MEMBERS_ONLY PULL_REQUEST_ALREADY_QUEUED PULL_REQUEST_LEAVING_QUEUE PULL_REQUEST_NOT_FOUND PULL_REQUEST_NOT_QUEUEABLE PULL_REQUEST_NOT_QUEUED PULL_REQUEST_QUEUE_REQUESTED PULL_REQUEST_UNREADABLE REPOSITORY_ADMIN_ROLE_REQUIRED REPOSITORY_READ_ROLE_REQUIRED REPOSITORY_WRITE_ROLE_REQUIRED RETRY_RULE_NOT_FOUND ROLE_ALREADY_GRANTED ROLE_CHANGE_REFUSED ROLE_GRANTEE_REFUSED ROLE_GRANT_NOT_FOUND SAML_ENFORCEMENT_NOT_AUTHORIZED SCHEDULED_FREEZE_NOT_FOUND SCOPES_COVERAGE_GLOB_TOO_COSTLY SCOPES_COVERAGE_MANUAL_SOURCE SCOPES_COVERAGE_PATH_NOT_FOUND SCOPES_COVERAGE_UNAVAILABLE SETTING_MANAGED_BY_ENV SETUP_ALREADY_DONE SETUP_TOKEN_MISMATCH STAFF_SESSION_REFUSED STATISTICS_SCOPE_PERIOD_TOO_LARGE SUBSCRIPTION_API_UNAVAILABLE SUBSCRIPTION_FEATURE_REQUIRED SUBSCRIPTION_INACTIVE SUBSCRIPTION_TOKEN_INVALID TEST_ALREADY_QUARANTINED TEST_BRANCH_NOT_TRACKED TEST_FAILURE_NOT_FOUND TEST_NOT_FOUND TEST_RESULTS_INGESTION_NOT_ENABLED TEST_RETRY_NOT_CONFIGURED TEST_STATE_NOT_FOUND TEST_STATE_OVERLAPExample Response
{
"detail": "string",
"error_code": "CI_ADMIN_ROLE_REQUIRED",
"documentation_url": "string",
"accepted_permissions": [
{
"resource": "merge_queue",
"access": "read"
}
]
}
APIErrorBody
ACTIVITY_LOG_METADATA_FILTER_NOT_INDEXED API_VERSION_NOT_NEWER API_VERSION_ROLLBACK_UNAVAILABLE API_VERSION_UNKNOWN APPLICATION_KEY_EXPIRED APPLICATION_KEY_REFUSED AUTO_QUARANTINE_CONFIG_NOT_FOUND CI_ADMIN_ROLE_REQUIRED CI_ID_TOKEN_AUDIENCE_REFUSED CI_ID_TOKEN_EXCHANGE_NOT_FOUND CI_ID_TOKEN_EXPIRED CI_ID_TOKEN_INVALID CI_ID_TOKEN_ISSUER_REFUSED CI_ID_TOKEN_ISSUER_UNAVAILABLE CI_ID_TOKEN_NO_MATCHING_TRUST_POLICY CI_ID_TOKEN_NO_TRUST_POLICY CI_ID_TOKEN_REPOSITORY_NOT_INSTALLED CI_TOKEN_REFUSED CI_TOKEN_SCOPES_TARGET_REFUSED CI_TRACES_UPLOAD_UNUSABLE CI_TRUST_POLICY_GRANT_REFUSED CI_TRUST_POLICY_LIMIT_REACHED CI_TRUST_POLICY_NAME_TAKEN CI_TRUST_POLICY_NOT_FOUND CI_TRUST_POLICY_REPOSITORY_UNKNOWN COMMAND_RESTRICTED CONFIGURATION_BRANCH_REFUSED CONFIGURATION_GITHUB_APP_ACCESS_REQUIRED CONFIGURATION_INVALID CONFIGURATION_REFUSED_BY_REPOSITORY_RULES CONFIGURATION_SIGNED_COMMITS_REQUIRED DEFAULT_BRANCH_NOT_FOUND FLAKY_DETECTION_NOT_CONFIGURED GITHUB_ACCOUNT_SUSPENDED GITHUB_APP_ACCESS_LOST GITHUB_RATE_LIMITED GITHUB_TOKEN_NOT_ACCEPTED GITHUB_TWO_FACTOR_AUTHENTICATION_NONCOMPLIANT GITHUB_UPSTREAM_REQUEST_FORBIDDEN GITHUB_UPSTREAM_REQUEST_REJECTED GITHUB_UPSTREAM_UNAVAILABLE INTEGRATION_NOT_CONFIGURED INVALID_CURSOR IP_ALLOW_LIST_NOT_CONFIGURED KNOWN_TESTS_BEING_COMPUTED KNOWN_TESTS_NOT_SERVED MERGE_QUEUE_DISABLED MERGE_QUEUE_POLICY_INVALID_PATTERN MERGE_QUEUE_POLICY_LIMIT_REACHED MERGE_QUEUE_POLICY_NAME_TAKEN MERGE_QUEUE_POLICY_NOT_FOUND MERGE_QUEUE_SETTING_INVALID_BRANCH_PATTERN MERGE_QUEUE_SETTING_NOT_AVAILABLE MERGE_QUEUE_SETTING_TOO_MANY_BRANCH_PATTERNS NOT_GENERALLY_AVAILABLE NO_LOGIN_IN_PROGRESS ORGANIZATION_MEMBERS_ONLY PULL_REQUEST_ALREADY_QUEUED PULL_REQUEST_LEAVING_QUEUE PULL_REQUEST_NOT_FOUND PULL_REQUEST_NOT_QUEUEABLE PULL_REQUEST_NOT_QUEUED PULL_REQUEST_QUEUE_REQUESTED PULL_REQUEST_UNREADABLE REPOSITORY_ADMIN_ROLE_REQUIRED REPOSITORY_READ_ROLE_REQUIRED REPOSITORY_WRITE_ROLE_REQUIRED RETRY_RULE_NOT_FOUND ROLE_ALREADY_GRANTED ROLE_CHANGE_REFUSED ROLE_GRANTEE_REFUSED ROLE_GRANT_NOT_FOUND SAML_ENFORCEMENT_NOT_AUTHORIZED SCHEDULED_FREEZE_NOT_FOUND SCOPES_COVERAGE_GLOB_TOO_COSTLY SCOPES_COVERAGE_MANUAL_SOURCE SCOPES_COVERAGE_PATH_NOT_FOUND SCOPES_COVERAGE_UNAVAILABLE SETTING_MANAGED_BY_ENV SETUP_ALREADY_DONE SETUP_TOKEN_MISMATCH STAFF_SESSION_REFUSED STATISTICS_SCOPE_PERIOD_TOO_LARGE SUBSCRIPTION_API_UNAVAILABLE SUBSCRIPTION_FEATURE_REQUIRED SUBSCRIPTION_INACTIVE SUBSCRIPTION_TOKEN_INVALID TEST_ALREADY_QUARANTINED TEST_BRANCH_NOT_TRACKED TEST_FAILURE_NOT_FOUND TEST_NOT_FOUND TEST_RESULTS_INGESTION_NOT_ENABLED TEST_RETRY_NOT_CONFIGURED TEST_STATE_NOT_FOUND TEST_STATE_OVERLAPExample Response
{
"detail": "string",
"error_code": "CI_TRUST_POLICY_NOT_FOUND",
"documentation_url": "string"
}
InvalidCursorBody
ACTIVITY_LOG_METADATA_FILTER_NOT_INDEXED API_VERSION_NOT_NEWER API_VERSION_ROLLBACK_UNAVAILABLE API_VERSION_UNKNOWN APPLICATION_KEY_EXPIRED APPLICATION_KEY_REFUSED AUTO_QUARANTINE_CONFIG_NOT_FOUND CI_ADMIN_ROLE_REQUIRED CI_ID_TOKEN_AUDIENCE_REFUSED CI_ID_TOKEN_EXCHANGE_NOT_FOUND CI_ID_TOKEN_EXPIRED CI_ID_TOKEN_INVALID CI_ID_TOKEN_ISSUER_REFUSED CI_ID_TOKEN_ISSUER_UNAVAILABLE CI_ID_TOKEN_NO_MATCHING_TRUST_POLICY CI_ID_TOKEN_NO_TRUST_POLICY CI_ID_TOKEN_REPOSITORY_NOT_INSTALLED CI_TOKEN_REFUSED CI_TOKEN_SCOPES_TARGET_REFUSED CI_TRACES_UPLOAD_UNUSABLE CI_TRUST_POLICY_GRANT_REFUSED CI_TRUST_POLICY_LIMIT_REACHED CI_TRUST_POLICY_NAME_TAKEN CI_TRUST_POLICY_NOT_FOUND CI_TRUST_POLICY_REPOSITORY_UNKNOWN COMMAND_RESTRICTED CONFIGURATION_BRANCH_REFUSED CONFIGURATION_GITHUB_APP_ACCESS_REQUIRED CONFIGURATION_INVALID CONFIGURATION_REFUSED_BY_REPOSITORY_RULES CONFIGURATION_SIGNED_COMMITS_REQUIRED DEFAULT_BRANCH_NOT_FOUND FLAKY_DETECTION_NOT_CONFIGURED GITHUB_ACCOUNT_SUSPENDED GITHUB_APP_ACCESS_LOST GITHUB_RATE_LIMITED GITHUB_TOKEN_NOT_ACCEPTED GITHUB_TWO_FACTOR_AUTHENTICATION_NONCOMPLIANT GITHUB_UPSTREAM_REQUEST_FORBIDDEN GITHUB_UPSTREAM_REQUEST_REJECTED GITHUB_UPSTREAM_UNAVAILABLE INTEGRATION_NOT_CONFIGURED INVALID_CURSOR IP_ALLOW_LIST_NOT_CONFIGURED KNOWN_TESTS_BEING_COMPUTED KNOWN_TESTS_NOT_SERVED MERGE_QUEUE_DISABLED MERGE_QUEUE_POLICY_INVALID_PATTERN MERGE_QUEUE_POLICY_LIMIT_REACHED MERGE_QUEUE_POLICY_NAME_TAKEN MERGE_QUEUE_POLICY_NOT_FOUND MERGE_QUEUE_SETTING_INVALID_BRANCH_PATTERN MERGE_QUEUE_SETTING_NOT_AVAILABLE MERGE_QUEUE_SETTING_TOO_MANY_BRANCH_PATTERNS NOT_GENERALLY_AVAILABLE NO_LOGIN_IN_PROGRESS ORGANIZATION_MEMBERS_ONLY PULL_REQUEST_ALREADY_QUEUED PULL_REQUEST_LEAVING_QUEUE PULL_REQUEST_NOT_FOUND PULL_REQUEST_NOT_QUEUEABLE PULL_REQUEST_NOT_QUEUED PULL_REQUEST_QUEUE_REQUESTED PULL_REQUEST_UNREADABLE REPOSITORY_ADMIN_ROLE_REQUIRED REPOSITORY_READ_ROLE_REQUIRED REPOSITORY_WRITE_ROLE_REQUIRED RETRY_RULE_NOT_FOUND ROLE_ALREADY_GRANTED ROLE_CHANGE_REFUSED ROLE_GRANTEE_REFUSED ROLE_GRANT_NOT_FOUND SAML_ENFORCEMENT_NOT_AUTHORIZED SCHEDULED_FREEZE_NOT_FOUND SCOPES_COVERAGE_GLOB_TOO_COSTLY SCOPES_COVERAGE_MANUAL_SOURCE SCOPES_COVERAGE_PATH_NOT_FOUND SCOPES_COVERAGE_UNAVAILABLE SETTING_MANAGED_BY_ENV SETUP_ALREADY_DONE SETUP_TOKEN_MISMATCH STAFF_SESSION_REFUSED STATISTICS_SCOPE_PERIOD_TOO_LARGE SUBSCRIPTION_API_UNAVAILABLE SUBSCRIPTION_FEATURE_REQUIRED SUBSCRIPTION_INACTIVE SUBSCRIPTION_TOKEN_INVALID TEST_ALREADY_QUARANTINED TEST_BRANCH_NOT_TRACKED TEST_FAILURE_NOT_FOUND TEST_NOT_FOUND TEST_RESULTS_INGESTION_NOT_ENABLED TEST_RETRY_NOT_CONFIGURED TEST_STATE_NOT_FOUND TEST_STATE_OVERLAPExample Response
{
"detail": {
"message": "string",
"cursor": "string"
},
"error_code": "INVALID_CURSOR"
}
Was this page helpful?
Thanks for your feedback!