Skip to content
gist.link ↗

installApp

Mutation Developers API — POST https://developers.api.gist.link/graphql

Install a listed app for the caller’s organization on the given plan. This is the consent step: it grants the app’s OAuth client access to this org (with the manifest’s permissions), adds the paid plan to the org’s monthly GistLink invoice, and registers the app’s automations. Requires an org admin.

developers:mutation:installApp

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

type Mutation {
installApp(key: String!, planKey: String!): AppInstall!
}
Argument Type Required Description
key String! Yes —
planKey String! Yes —

AppInstall! — see the Developers types reference.

Terminal window
curl https://developers.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "mutation InstallApp($key: String!, $planKey: String!) { installApp(key: $key, planKey: $planKey) { uuid currency status } }",
"variables": {
"key": "example",
"planKey": "example"
}
}
JSON