Create a deployment trigger
Create a GitHub deployment trigger for a Checkly check or check group.
Authorizations
The Checkly Public API uses API keys to authenticate requests. You can get the API Key here. Your API key is like a password: keep it secure!
Authentication to the API is performed using the Bearer auth method in the Authorization header and using the account ID.
For example, set Authorization header while using cURL: curl -H "Authorization: Bearer [apiKey]" "X-Checkly-Account: [accountId]"
Headers
Your Checkly account ID, you can find it at https://app.checklyhq.com/settings/account/general
Body
The provider-side repository ID, e.g. GitHub’s numeric id.
The repository name, e.g. acme/storefront.
The ID of the check to run on deploy.
The ID of the check group to run on deploy.
A link to the repository.
Run the check against the deployment’s environment_url instead of its own target. API and URL checks get their host swapped; browser and multi-step checks receive it as the ENVIRONMENT_URL environment variable.
Attach screenshots to the check run posted back to the commit.
The deployment provider. Only GITHUB is supported.
GITHUB The region the triggered run executes in.
us-east-1, us-east-2, us-west-1, us-west-2, ca-central-1, sa-east-1, eu-west-1, eu-central-1, eu-west-2, eu-west-3, eu-north-1, eu-south-1, me-south-1, ap-southeast-1, ap-northeast-1, ap-east-1, ap-southeast-2, ap-southeast-3, ap-northeast-2, ap-northeast-3, ap-south-1, af-south-1 Only deployments whose environment name matches this regular expression trigger a run, e.g. ^(?:Preview|staging)$.
255Only deployments whose environment URL matches this regular expression trigger a run.
255Response
Successful
The deployment trigger ID.
The check this trigger runs.
The check group this trigger runs.
The deployment provider. Always GITHUB for this endpoint.
The provider-side repository ID.
The repository name, e.g. acme/storefront.
A link to the repository.
Whether the deployment’s environment_url is injected into the run.
Whether screenshots are attached to the posted check run.
Only deployments whose environment name matches this regex trigger a run.
Only deployments whose environment URL matches this regex trigger a run.
The region the triggered run executes in.