revokeConnectedApp
Requires at least one of the permissions notifications:push-token:manage or settings:api:update.
Disconnect one MCP app from your account in this organization: every access and refresh token it holds for you is revoked at once. Returns the number of tokens revoked.
Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.
Example:
- GraphQL
- cURL
mutation RevokeConnectedApp($clientId: String!) {
revokeConnectedApp(clientId: $clientId)
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "mutation RevokeConnectedApp($clientId: String!) {\n revokeConnectedApp(clientId: $clientId)\n}",
"variables": {
"clientId": "string"
}
}
EOF
Variables:
{
"clientId": "string"
}
Response:
{
"data": {
"revokeConnectedApp": 0
}
}
revokeConnectedApp(
clientId: String!
): Int!
Arguments
revokeConnectedApp.clientId ● String! non-null scalar
The ID of the connected app.
Type
Int scalar
The Int scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.