Integrations

List and disconnect the Slack channels of your organization, and manage their notifications.


Get the Slack integration configuration #

GET /integrations/{owner}/configuration/slack

List the Slack channels connected to the organization, with the notification configurations of every product. A channel is connected from the Mergify dashboard; this API cannot connect one.

Application key permission: slack: read.

Application Key Admin Application Key Mergify User Token
owner string required

The owner of the repository

min length: 1 · max length: 40 · pattern: ^[a-zA-Z0-9\-]+$

200 Successful Response
channelsSlackNotificationChannelConfiguration[]required

The Slack channels connected to the organization

idstring <uuid>required

The ID of the Slack channel configuration

slack_channelstringrequired

The Slack channel the notifications are posted to

slack_team_namestring | nullrequired

The name of the Slack workspace the channel belongs to

disabled_atstring <date-time> | nullrequired

When Mergify stopped being able to post to this channel. Null while the channel receives notifications.

disabled_reason"webhook_gone" | "oauth_revoked" | nullrequired

Why Mergify cannot post to this channel anymore. Null while the channel receives notifications.

merge_queue_configsMergeQueueNotificationConfiguration[]required

The merge_queue_notification configurations of the channel

idstring <uuid>required

The ID of the notification configuration

repositoriesSlackNotificationRepository[]required

The repositories this configuration notifies about. Empty means every repository of the organization.

idintegerrequired

The ID of the repository

ownerGitHubAccountrequired

The owner of the repository

loginstringrequired
idintegerrequired
type"User" | "Organization" | "Bot" | "Mannequin" | "Enterprise" | nullrequired
avatar_urlstring | null
namestringrequired

The name of the repository

full_namestringrequired

The full name of the repository, owner/name

eventsMergeQueueNotificationEvent[]required

The merge queue events posted to the channel, each with the outcomes it posts. Empty means every event.

type"action.assign" | "action.backport" | "action.close" | "action.comment" | "action.copy" | "action.delete_head_branch" | "action.dequeue" | "action.dismiss_reviews" | "action.edit" | "action.github_actions" | "action.label" | "action.label.loop_stopped" | "action.merge" | "action.post_check" | "action.queue.batch_bisection_end" | "action.queue.batch_bisection_start" | "action.queue.batch_composition" | "action.queue.change" | "action.queue.checks.change" | "action.queue.checks_end" | "action.queue.checks_postponed" | "action.queue.checks_start" | "action.queue.conflict_deferred" | "action.queue.enter" | "action.queue.leave" | "action.queue.merged" | "action.rebase" | "action.refresh" | "action.request_reviews" | "action.review" | "action.squash" | "action.update" | "ci_insights.auto_quarantine.disabled" | "ci_insights.auto_quarantine.enabled" | "ci_insights.auto_quarantine.modified" | "ci_insights.job_retried" | "command.dequeue" | "command.queue" | "conflict_resolution.attempt" | "product.disabled" | "product.enabled" | "queue.batch_run_end" | "queue.batch_run_start" | "queue.pause.create" | "queue.pause.delete" | "queue.pause.update" | "scheduled_freeze.create" | "scheduled_freeze.delete" | "scheduled_freeze.update" | "test.health.changed" | "test.state.added" | "test.state.removed" | "test_retry.disabled" | "test_retry.enabled" | "test_retry.modified"required

The merge queue event

Enum: action.assign action.backport action.close action.comment action.copy action.delete_head_branch action.dequeue action.dismiss_reviews action.edit action.github_actions action.label action.label.loop_stopped action.merge action.post_check action.queue.batch_bisection_end action.queue.batch_bisection_start action.queue.batch_composition action.queue.change action.queue.checks.change action.queue.checks_end action.queue.checks_postponed action.queue.checks_start action.queue.conflict_deferred action.queue.enter action.queue.leave action.queue.merged action.rebase action.refresh action.request_reviews action.review action.squash action.update ci_insights.auto_quarantine.disabled ci_insights.auto_quarantine.enabled ci_insights.auto_quarantine.modified ci_insights.job_retried command.dequeue command.queue conflict_resolution.attempt product.disabled product.enabled queue.batch_run_end queue.batch_run_start queue.pause.create queue.pause.delete queue.pause.update scheduled_freeze.create scheduled_freeze.delete scheduled_freeze.update test.health.changed test.state.added test.state.removed test_retry.disabled test_retry.enabled test_retry.modified
outcomes("success" | "failure" | "pending" | "neutral")[]

The outcomes of this event to post, among those it can have. A request may leave it empty for every outcome; a response always lists them.

"success" | "failure" | "pending" | "neutral"
ci_insights_configsCiInsightsNotificationConfiguration[]required

The ci_insights_notification configurations of the channel

idstring <uuid>required

The ID of the notification configuration

repositoriesSlackNotificationRepository[]required

The repositories this configuration notifies about. Empty means every repository of the organization.

idintegerrequired

The ID of the repository

ownerGitHubAccountrequired

The owner of the repository

loginstringrequired
idintegerrequired
type"User" | "Organization" | "Bot" | "Mannequin" | "Enterprise" | nullrequired
avatar_urlstring | null
namestringrequired

The name of the repository

full_namestringrequired

The full name of the repository, owner/name

branchesstring[]required

The branches whose CI jobs are reported. Empty means every branch.

pipeline_namesstring[]required

The CI pipelines whose jobs are reported. Empty means every pipeline.

job_namesstring[]required

The CI jobs that are reported. Empty means every job.

conclusions("success" | "failure" | "neutral" | "cancelled" | "skipped" | "timed_out" | "action_required")[]required

The job conclusions that are reported. Empty means every conclusion.

test_quarantine_configsTestQuarantineNotificationConfiguration[]required

The test_quarantine_notification configurations of the channel

idstring <uuid>required

The ID of the notification configuration

repositoriesSlackNotificationRepository[]required

The repositories this configuration notifies about. Empty means every repository of the organization.

idintegerrequired

The ID of the repository

ownerGitHubAccountrequired

The owner of the repository

loginstringrequired
idintegerrequired
type"User" | "Organization" | "Bot" | "Mannequin" | "Enterprise" | nullrequired
avatar_urlstring | null
namestringrequired

The name of the repository

full_namestringrequired

The full name of the repository, owner/name

event_types("test.health.changed" | "test.state.added" | "test.state.removed")[]required

The test events posted to the channel. Empty means every event except test.health.changed, which is posted only when listed.

health_from_states("healthy" | "dormant" | "flaky" | "broken")[]required

The health states a test leaves for its test.health.changed event to be posted. Empty means every state.

"healthy" | "dormant" | "flaky" | "broken"
health_to_states("healthy" | "dormant" | "flaky" | "broken")[]required

The health states a test enters for its test.health.changed event to be posted. Empty means every state.

"healthy" | "dormant" | "flaky" | "broken"
merge_queue_event_possible_outcomesobjectrequired

The outcomes each Merge Queue event can have, which a notification can narrow it to.

Example Response
                        {
  "channels": [
    {
      "id": "efb5681e-7906-4ee9-843b-42e956052987",
      "slack_team_name": "My Slack Team",
      "slack_channel": "#notification",
      "disabled_at": "2024-01-15T10:30:00Z",
      "disabled_reason": "webhook_gone",
      "merge_queue_configs": [
        {
          "id": "cc363671-e816-44a5-ba68-b92391fcdaec",
          "repositories": [
            {
              "id": 123,
              "name": "my-repo",
              "owner": {
                "id": 234,
                "login": "me",
                "type": "User"
              },
              "full_name": "me/my-repo"
            }
          ],
          "events": [
            {
              "type": "scheduled_freeze.create",
              "outcomes": []
            }
          ]
        }
      ],
      "ci_insights_configs": [],
      "test_quarantine_configs": []
    }
  ],
  "merge_queue_event_possible_outcomes": {
    "action.queue.leave": [
      "success",
      "failure",
      "neutral"
    ],
    "scheduled_freeze.create": [
      "neutral"
    ]
  }
}
                      
400 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

403 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

404 Not found
409 Conflict
422 Unprocessable entity
Example Request
curl -X GET "https://api.mergify.com/v1/integrations/:owner/configuration/slack" \
  -H "Authorization: Bearer <token>"

Disconnect a Slack channel #

DELETE /integrations/{owner}/configuration/slack/{channel_configuration_id}

Disconnect a Slack channel from the organization, with every notification configuration it holds

Application key permission: slack: write.

Application Key Admin Application Key Mergify User Token
channel_configuration_id string <uuid> required

The ID of the Slack channel configuration

owner string required

The owner of the repository

min length: 1 · max length: 40 · pattern: ^[a-zA-Z0-9\-]+$

204 No Content
400 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

403 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

404 Not found
409 Conflict
422 Unprocessable entity
Example Request
curl -X DELETE "https://api.mergify.com/v1/integrations/:owner/configuration/slack/:channel_configuration_id" \
  -H "Authorization: Bearer <token>"

Create a Slack notification configuration #

POST /integrations/{owner}/configuration/slack/{channel_configuration_id}/{product}

Create a notification configuration for a product on a connected Slack channel. The request body and the response follow the schema of product.

Application key permission: slack: write.

Application Key Admin Application Key Mergify User Token
channel_configuration_id string <uuid> required

The ID of the Slack channel configuration

owner string required

The owner of the repository

min length: 1 · max length: 40 · pattern: ^[a-zA-Z0-9\-]+$

product "merge_queue_notification" | "test_quarantine_notification" | "ci_insights_notification" required

The product the notification configuration is for

Variant 1
repositoriesstring[]

The names of the organization's repositories to notify about. Empty means every repository of the organization.

eventsMergeQueueNotificationEvent[] | null

The merge queue events posted to the channel, each with the outcomes it posts. Empty means every event. Required.

type"action.assign" | "action.backport" | "action.close" | "action.comment" | "action.copy" | "action.delete_head_branch" | "action.dequeue" | "action.dismiss_reviews" | "action.edit" | "action.github_actions" | "action.label" | "action.label.loop_stopped" | "action.merge" | "action.post_check" | "action.queue.batch_bisection_end" | "action.queue.batch_bisection_start" | "action.queue.batch_composition" | "action.queue.change" | "action.queue.checks.change" | "action.queue.checks_end" | "action.queue.checks_postponed" | "action.queue.checks_start" | "action.queue.conflict_deferred" | "action.queue.enter" | "action.queue.leave" | "action.queue.merged" | "action.rebase" | "action.refresh" | "action.request_reviews" | "action.review" | "action.squash" | "action.update" | "ci_insights.auto_quarantine.disabled" | "ci_insights.auto_quarantine.enabled" | "ci_insights.auto_quarantine.modified" | "ci_insights.job_retried" | "command.dequeue" | "command.queue" | "conflict_resolution.attempt" | "product.disabled" | "product.enabled" | "queue.batch_run_end" | "queue.batch_run_start" | "queue.pause.create" | "queue.pause.delete" | "queue.pause.update" | "scheduled_freeze.create" | "scheduled_freeze.delete" | "scheduled_freeze.update" | "test.health.changed" | "test.state.added" | "test.state.removed" | "test_retry.disabled" | "test_retry.enabled" | "test_retry.modified"required

The merge queue event

Enum: action.assign action.backport action.close action.comment action.copy action.delete_head_branch action.dequeue action.dismiss_reviews action.edit action.github_actions action.label action.label.loop_stopped action.merge action.post_check action.queue.batch_bisection_end action.queue.batch_bisection_start action.queue.batch_composition action.queue.change action.queue.checks.change action.queue.checks_end action.queue.checks_postponed action.queue.checks_start action.queue.conflict_deferred action.queue.enter action.queue.leave action.queue.merged action.rebase action.refresh action.request_reviews action.review action.squash action.update ci_insights.auto_quarantine.disabled ci_insights.auto_quarantine.enabled ci_insights.auto_quarantine.modified ci_insights.job_retried command.dequeue command.queue conflict_resolution.attempt product.disabled product.enabled queue.batch_run_end queue.batch_run_start queue.pause.create queue.pause.delete queue.pause.update scheduled_freeze.create scheduled_freeze.delete scheduled_freeze.update test.health.changed test.state.added test.state.removed test_retry.disabled test_retry.enabled test_retry.modified
outcomes("success" | "failure" | "pending" | "neutral")[]

The outcomes of this event to post, among those it can have. A request may leave it empty for every outcome; a response always lists them.

"success" | "failure" | "pending" | "neutral"
Variant 2
repositoriesstring[]

The names of the organization's repositories to notify about. Empty means every repository of the organization.

branchesstring[]

The branches whose CI jobs are reported. Empty means every branch.

pipeline_namesstring[]

The CI pipelines whose jobs are reported. Empty means every pipeline.

job_namesstring[]

The CI jobs that are reported. Empty means every job.

conclusions("success" | "failure" | "neutral" | "cancelled" | "skipped" | "timed_out" | "action_required")[]

The job conclusions that are reported. Empty means every conclusion.

Variant 3
repositoriesstring[]

The names of the organization's repositories to notify about. Empty means every repository of the organization.

event_types("test.health.changed" | "test.state.added" | "test.state.removed")[]

The test events posted to the channel. Empty means every event except test.health.changed, which is posted only when listed.

health_from_states("healthy" | "dormant" | "flaky" | "broken")[]

The health states a test leaves for its test.health.changed event to be posted. Empty means every state.

"healthy" | "dormant" | "flaky" | "broken"
health_to_states("healthy" | "dormant" | "flaky" | "broken")[]

The health states a test enters for its test.health.changed event to be posted. Empty means every state.

"healthy" | "dormant" | "flaky" | "broken"
201 Created
Variant 1
idstring <uuid>required

The ID of the notification configuration

repositoriesSlackNotificationRepository[]required

The repositories this configuration notifies about. Empty means every repository of the organization.

idintegerrequired

The ID of the repository

ownerGitHubAccountrequired

The owner of the repository

loginstringrequired
idintegerrequired
type"User" | "Organization" | "Bot" | "Mannequin" | "Enterprise" | nullrequired
avatar_urlstring | null
namestringrequired

The name of the repository

full_namestringrequired

The full name of the repository, owner/name

eventsMergeQueueNotificationEvent[]required

The merge queue events posted to the channel, each with the outcomes it posts. Empty means every event.

type"action.assign" | "action.backport" | "action.close" | "action.comment" | "action.copy" | "action.delete_head_branch" | "action.dequeue" | "action.dismiss_reviews" | "action.edit" | "action.github_actions" | "action.label" | "action.label.loop_stopped" | "action.merge" | "action.post_check" | "action.queue.batch_bisection_end" | "action.queue.batch_bisection_start" | "action.queue.batch_composition" | "action.queue.change" | "action.queue.checks.change" | "action.queue.checks_end" | "action.queue.checks_postponed" | "action.queue.checks_start" | "action.queue.conflict_deferred" | "action.queue.enter" | "action.queue.leave" | "action.queue.merged" | "action.rebase" | "action.refresh" | "action.request_reviews" | "action.review" | "action.squash" | "action.update" | "ci_insights.auto_quarantine.disabled" | "ci_insights.auto_quarantine.enabled" | "ci_insights.auto_quarantine.modified" | "ci_insights.job_retried" | "command.dequeue" | "command.queue" | "conflict_resolution.attempt" | "product.disabled" | "product.enabled" | "queue.batch_run_end" | "queue.batch_run_start" | "queue.pause.create" | "queue.pause.delete" | "queue.pause.update" | "scheduled_freeze.create" | "scheduled_freeze.delete" | "scheduled_freeze.update" | "test.health.changed" | "test.state.added" | "test.state.removed" | "test_retry.disabled" | "test_retry.enabled" | "test_retry.modified"required

The merge queue event

Enum: action.assign action.backport action.close action.comment action.copy action.delete_head_branch action.dequeue action.dismiss_reviews action.edit action.github_actions action.label action.label.loop_stopped action.merge action.post_check action.queue.batch_bisection_end action.queue.batch_bisection_start action.queue.batch_composition action.queue.change action.queue.checks.change action.queue.checks_end action.queue.checks_postponed action.queue.checks_start action.queue.conflict_deferred action.queue.enter action.queue.leave action.queue.merged action.rebase action.refresh action.request_reviews action.review action.squash action.update ci_insights.auto_quarantine.disabled ci_insights.auto_quarantine.enabled ci_insights.auto_quarantine.modified ci_insights.job_retried command.dequeue command.queue conflict_resolution.attempt product.disabled product.enabled queue.batch_run_end queue.batch_run_start queue.pause.create queue.pause.delete queue.pause.update scheduled_freeze.create scheduled_freeze.delete scheduled_freeze.update test.health.changed test.state.added test.state.removed test_retry.disabled test_retry.enabled test_retry.modified
outcomes("success" | "failure" | "pending" | "neutral")[]

The outcomes of this event to post, among those it can have. A request may leave it empty for every outcome; a response always lists them.

"success" | "failure" | "pending" | "neutral"
Variant 2
idstring <uuid>required

The ID of the notification configuration

repositoriesSlackNotificationRepository[]required

The repositories this configuration notifies about. Empty means every repository of the organization.

idintegerrequired

The ID of the repository

ownerGitHubAccountrequired

The owner of the repository

loginstringrequired
idintegerrequired
type"User" | "Organization" | "Bot" | "Mannequin" | "Enterprise" | nullrequired
avatar_urlstring | null
namestringrequired

The name of the repository

full_namestringrequired

The full name of the repository, owner/name

branchesstring[]required

The branches whose CI jobs are reported. Empty means every branch.

pipeline_namesstring[]required

The CI pipelines whose jobs are reported. Empty means every pipeline.

job_namesstring[]required

The CI jobs that are reported. Empty means every job.

conclusions("success" | "failure" | "neutral" | "cancelled" | "skipped" | "timed_out" | "action_required")[]required

The job conclusions that are reported. Empty means every conclusion.

Variant 3
idstring <uuid>required

The ID of the notification configuration

repositoriesSlackNotificationRepository[]required

The repositories this configuration notifies about. Empty means every repository of the organization.

idintegerrequired

The ID of the repository

ownerGitHubAccountrequired

The owner of the repository

loginstringrequired
idintegerrequired
type"User" | "Organization" | "Bot" | "Mannequin" | "Enterprise" | nullrequired
avatar_urlstring | null
namestringrequired

The name of the repository

full_namestringrequired

The full name of the repository, owner/name

event_types("test.health.changed" | "test.state.added" | "test.state.removed")[]required

The test events posted to the channel. Empty means every event except test.health.changed, which is posted only when listed.

health_from_states("healthy" | "dormant" | "flaky" | "broken")[]required

The health states a test leaves for its test.health.changed event to be posted. Empty means every state.

"healthy" | "dormant" | "flaky" | "broken"
health_to_states("healthy" | "dormant" | "flaky" | "broken")[]required

The health states a test enters for its test.health.changed event to be posted. Empty means every state.

"healthy" | "dormant" | "flaky" | "broken"
Example Response
                        {
  "id": "cc363671-e816-44a5-ba68-b92391fcdaec",
  "repositories": [
    {
      "id": 123,
      "name": "my-repo",
      "owner": {
        "id": 234,
        "login": "me",
        "type": "User"
      },
      "full_name": "me/my-repo"
    }
  ],
  "events": [
    {
      "type": "scheduled_freeze.create",
      "outcomes": []
    }
  ]
}
                      
400 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

403 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

404 Not Found
409 Conflict
422 Unprocessable entity
Example Request
curl -X POST "https://api.mergify.com/v1/integrations/:owner/configuration/slack/:channel_configuration_id/:product" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
  "repositories": [
    "string"
  ],
  "events": [
    {
      "type": "action.assign",
      "outcomes": null
    }
  ]
}'

Update a Slack notification configuration #

PUT /integrations/{owner}/configuration/slack/{channel_configuration_id}/{product}/{notification_configuration_id}

Replace a notification configuration of a connected Slack channel. The request body follows the schema of product, and a field left out is reset to empty.

Application key permission: slack: write.

Application Key Admin Application Key Mergify User Token
channel_configuration_id string <uuid> required

The ID of the Slack channel configuration

notification_configuration_id string <uuid> required

The ID of the Slack notification configuration

owner string required

The owner of the repository

min length: 1 · max length: 40 · pattern: ^[a-zA-Z0-9\-]+$

product "merge_queue_notification" | "test_quarantine_notification" | "ci_insights_notification" required

The product the notification configuration is for

Variant 1
repositoriesstring[]

The names of the organization's repositories to notify about. Empty means every repository of the organization.

eventsMergeQueueNotificationEvent[] | null

The merge queue events posted to the channel, each with the outcomes it posts. Empty means every event. Required.

type"action.assign" | "action.backport" | "action.close" | "action.comment" | "action.copy" | "action.delete_head_branch" | "action.dequeue" | "action.dismiss_reviews" | "action.edit" | "action.github_actions" | "action.label" | "action.label.loop_stopped" | "action.merge" | "action.post_check" | "action.queue.batch_bisection_end" | "action.queue.batch_bisection_start" | "action.queue.batch_composition" | "action.queue.change" | "action.queue.checks.change" | "action.queue.checks_end" | "action.queue.checks_postponed" | "action.queue.checks_start" | "action.queue.conflict_deferred" | "action.queue.enter" | "action.queue.leave" | "action.queue.merged" | "action.rebase" | "action.refresh" | "action.request_reviews" | "action.review" | "action.squash" | "action.update" | "ci_insights.auto_quarantine.disabled" | "ci_insights.auto_quarantine.enabled" | "ci_insights.auto_quarantine.modified" | "ci_insights.job_retried" | "command.dequeue" | "command.queue" | "conflict_resolution.attempt" | "product.disabled" | "product.enabled" | "queue.batch_run_end" | "queue.batch_run_start" | "queue.pause.create" | "queue.pause.delete" | "queue.pause.update" | "scheduled_freeze.create" | "scheduled_freeze.delete" | "scheduled_freeze.update" | "test.health.changed" | "test.state.added" | "test.state.removed" | "test_retry.disabled" | "test_retry.enabled" | "test_retry.modified"required

The merge queue event

Enum: action.assign action.backport action.close action.comment action.copy action.delete_head_branch action.dequeue action.dismiss_reviews action.edit action.github_actions action.label action.label.loop_stopped action.merge action.post_check action.queue.batch_bisection_end action.queue.batch_bisection_start action.queue.batch_composition action.queue.change action.queue.checks.change action.queue.checks_end action.queue.checks_postponed action.queue.checks_start action.queue.conflict_deferred action.queue.enter action.queue.leave action.queue.merged action.rebase action.refresh action.request_reviews action.review action.squash action.update ci_insights.auto_quarantine.disabled ci_insights.auto_quarantine.enabled ci_insights.auto_quarantine.modified ci_insights.job_retried command.dequeue command.queue conflict_resolution.attempt product.disabled product.enabled queue.batch_run_end queue.batch_run_start queue.pause.create queue.pause.delete queue.pause.update scheduled_freeze.create scheduled_freeze.delete scheduled_freeze.update test.health.changed test.state.added test.state.removed test_retry.disabled test_retry.enabled test_retry.modified
outcomes("success" | "failure" | "pending" | "neutral")[]

The outcomes of this event to post, among those it can have. A request may leave it empty for every outcome; a response always lists them.

"success" | "failure" | "pending" | "neutral"
Variant 2
repositoriesstring[]

The names of the organization's repositories to notify about. Empty means every repository of the organization.

branchesstring[]

The branches whose CI jobs are reported. Empty means every branch.

pipeline_namesstring[]

The CI pipelines whose jobs are reported. Empty means every pipeline.

job_namesstring[]

The CI jobs that are reported. Empty means every job.

conclusions("success" | "failure" | "neutral" | "cancelled" | "skipped" | "timed_out" | "action_required")[]

The job conclusions that are reported. Empty means every conclusion.

Variant 3
repositoriesstring[]

The names of the organization's repositories to notify about. Empty means every repository of the organization.

event_types("test.health.changed" | "test.state.added" | "test.state.removed")[]

The test events posted to the channel. Empty means every event except test.health.changed, which is posted only when listed.

health_from_states("healthy" | "dormant" | "flaky" | "broken")[]

The health states a test leaves for its test.health.changed event to be posted. Empty means every state.

"healthy" | "dormant" | "flaky" | "broken"
health_to_states("healthy" | "dormant" | "flaky" | "broken")[]

The health states a test enters for its test.health.changed event to be posted. Empty means every state.

"healthy" | "dormant" | "flaky" | "broken"
204 No Content
400 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

403 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

404 Not Found
409 Conflict
422 Unprocessable entity
Example Request
curl -X PUT "https://api.mergify.com/v1/integrations/:owner/configuration/slack/:channel_configuration_id/:product/:notification_configuration_id" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
  "repositories": [
    "string"
  ],
  "events": [
    {
      "type": "action.assign",
      "outcomes": null
    }
  ]
}'

Delete a Slack notification configuration #

DELETE /integrations/{owner}/configuration/slack/{channel_configuration_id}/{product}/{notification_configuration_id}

Delete a notification configuration from a connected Slack channel

Application key permission: slack: write.

Application Key Admin Application Key Mergify User Token
channel_configuration_id string <uuid> required

The ID of the Slack channel configuration

notification_configuration_id string <uuid> required

The ID of the Slack notification configuration

product "merge_queue_notification" | "test_quarantine_notification" | "ci_insights_notification" required

The product the notification configuration is for

owner string required

The owner of the repository

min length: 1 · max length: 40 · pattern: ^[a-zA-Z0-9\-]+$

204 No Content
400 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

403 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

404 Not Found
409 Conflict
422 Unprocessable entity
Example Request
curl -X DELETE "https://api.mergify.com/v1/integrations/:owner/configuration/slack/:channel_configuration_id/:product/:notification_configuration_id" \
  -H "Authorization: Bearer <token>"

Send a test Slack notification #

POST /integrations/{owner}/configuration/slack/{channel_configuration_id}/{product}/{notification_configuration_id}/test

Post a clearly-labeled test message to the configured Slack channel to validate delivery

Application key permission: slack: write.

Application Key Admin Application Key Mergify User Token
channel_configuration_id string <uuid> required

The ID of the Slack channel configuration

notification_configuration_id string <uuid> required

The ID of the Slack notification configuration

product "merge_queue_notification" | "test_quarantine_notification" | "ci_insights_notification" required

The product the notification configuration is for

owner string required

The owner of the repository

min length: 1 · max length: 40 · pattern: ^[a-zA-Z0-9\-]+$

204 No Content
400 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

402 SUBSCRIPTION_FEATURE_REQUIRED: The organization's subscription does not include the feature feature names; upgrading the subscription enables it. Here, integration_slack: Slack Integration.

Body: SubscriptionFeatureRequiredBody

403 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

404 Not Found
409 Conflict
422 Unprocessable entity
502 Slack delivery failed
Example Request
curl -X POST "https://api.mergify.com/v1/integrations/:owner/configuration/slack/:channel_configuration_id/:product/:notification_configuration_id/test" \
  -H "Authorization: Bearer <token>"

Error response bodies #

An endpoint lists each error status it returns and links to the body that comes with it.

APIVersionUnknownBody

detailstringrequired
error_code"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_OVERLAP"
Enum: 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_OVERLAP
documentation_urlstring
served_versionsstring[]required
Example Response
                {
  "detail": "string",
  "error_code": "API_VERSION_UNKNOWN",
  "documentation_url": "string",
  "served_versions": [
    "string"
  ]
}
              

CredentialRefusedBody

detailstringrequired
error_code"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_OVERLAP"
Enum: 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_OVERLAP
documentation_urlstring
accepted_permissionsAcceptedPermission[] | null

The permissions the operation accepts, any one of which a credential needs to call it, as its x-mergify-permission extension lists them, whatever refused the credential. Null when the operation takes no credential of this kind.

resource"merge_queue" | "merge_queue_statistics" | "merge_queue_pause" | "scheduled_freezes" | "merge_queue_settings" | "merge_protections" | "ci_jobs" | "job_retry_rules" | "runners" | "runner_fleet_settings" | "tests" | "quarantines" | "test_retry_settings" | "flaky_detection_settings" | "test_tracked_branches" | "test_selection" | "repositories" | "configuration" | "pull_requests" | "simulators" | "activity_log" | "slack" | "datadog" | "users" | "products" | "roles" | "api_version" | "oidc_trust_policies" | "ci_reporting"required
Enum: merge_queue merge_queue_statistics merge_queue_pause scheduled_freezes merge_queue_settings merge_protections ci_jobs job_retry_rules runners runner_fleet_settings tests quarantines test_retry_settings flaky_detection_settings test_tracked_branches test_selection repositories configuration pull_requests simulators activity_log slack datadog users products roles api_version oidc_trust_policies ci_reporting
access"read" | "write"required
Enum: read write
Example Response
                {
  "detail": "string",
  "error_code": "APPLICATION_KEY_REFUSED",
  "documentation_url": "string",
  "accepted_permissions": [
    {
      "resource": "merge_queue",
      "access": "read"
    }
  ]
}
              

SubscriptionFeatureRequiredBody

detailstringrequired
error_code"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_OVERLAP"
Enum: 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_OVERLAP
documentation_urlstring
feature"ci_insights_quarantine" | "delegated_roles" | "integration_datadog" | "integration_slack" | "merge_queue_scopes" | "merge_queue_stats" | "scheduled_freeze" | "test_tracked_branches"required
Enum: ci_insights_quarantine delegated_roles integration_datadog integration_slack merge_queue_scopes merge_queue_stats scheduled_freeze test_tracked_branches
Example Response
                {
  "detail": "string",
  "error_code": "SUBSCRIPTION_FEATURE_REQUIRED",
  "documentation_url": "string",
  "feature": "ci_insights_quarantine"
}
              

Was this page helpful?