Skip to content
gist.link ↗

rotateAppCredentials

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

Issue or rotate the app’s OAuth client credentials (available once listed). The secret is returned exactly once — store it in your app’s secret manager. Requires an org admin.

developers:mutation:rotateAppCredentials

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 {
rotateAppCredentials(uuid: ID!): AppCredentials!
}
Argument Type Required Description
uuid ID! Yes —

AppCredentials! — 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 RotateAppCredentials($uuid: ID!) { rotateAppCredentials(uuid: $uuid) { clientId clientSecret webhookSecret } }",
"variables": {
"uuid": "01a01234-abcd-7000-9000-0123456789ab"
}
}
JSON