Skip to content
gist.link ↗

deployments

Query Deploy API — POST https://deploy.api.gist.link/graphql

Cursor-paginated deployments, optionally filtered to one application. Any org member.

deploy:query:deployments

The calling IAM key must hold this permission (or a wildcard that covers it: deploy:query:* or deploy:*) and the access token must have been minted with audience=deploy. See Permissions.

type Query {
deployments(applicationId: Int, filter: DeploymentFilter, sort: SortInput, first: Int, after: String): DeploymentConnection!
}
Argument Type Required Description
applicationId Int No —
filter DeploymentFilter No —
sort SortInput No —
first Int No —
after String No —

DeploymentConnection! — see the Deploy types reference.

Terminal window
curl https://deploy.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "query Deployments($applicationId: Int, $filter: DeploymentFilter, $sort: SortInput, $first: Int, $after: String) { deployments(applicationId: $applicationId, filter: $filter, sort: $sort, first: $first, after: $after) { totalCount edges { cursor node { id uuid status created_at } } } }",
"variables": {
"applicationId": 10,
"filter": {
"status": "example"
},
"sort": {
"field": "example",
"direction": "ASC"
},
"first": 10,
"after": "cursor"
}
}
JSON