Skip to main content
POST
Create a deployment trigger

Authorizations

Authorization
string
header
required

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

x-checkly-account
string

Your Checkly account ID, you can find it at https://app.checklyhq.com/settings/account/general

Body

application/json
repoId
required

The provider-side repository ID, e.g. GitHub’s numeric id.

repoName
string
required

The repository name, e.g. acme/storefront.

checkId
string | null

The ID of the check to run on deploy.

groupId
number | null

The ID of the check group to run on deploy.

A link to the repository.

useEnvironmentUrl
boolean
default:true

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.

includeScreenshots
boolean
default:false

Attach screenshots to the check run posted back to the commit.

provider
enum<string>
default:GITHUB

The deployment provider. Only GITHUB is supported.

Available options:
GITHUB
runLocation
enum<string>
default:us-east-1

The region the triggered run executes in.

Available options:
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
environmentRegexFilter
string | null

Only deployments whose environment name matches this regular expression trigger a run, e.g. ^(?:Preview|staging)$.

Maximum string length: 255
environmentUrlRegexFilter
string | null

Only deployments whose environment URL matches this regular expression trigger a run.

Maximum string length: 255

Response

Successful

id
number

The deployment trigger ID.

checkId
string | null

The check this trigger runs.

groupId
number | null

The check group this trigger runs.

provider
string

The deployment provider. Always GITHUB for this endpoint.

repoId
string

The provider-side repository ID.

repoName
string

The repository name, e.g. acme/storefront.

A link to the repository.

useEnvironmentUrl
boolean

Whether the deployment’s environment_url is injected into the run.

includeScreenshots
boolean

Whether screenshots are attached to the posted check run.

environmentRegexFilter
string | null

Only deployments whose environment name matches this regex trigger a run.

environmentUrlRegexFilter
string | null

Only deployments whose environment URL matches this regex trigger a run.

runLocation
string

The region the triggered run executes in.

created_at
string<date>
updated_at
string<date> | null