TanqoryDocs

tanqoryExtAppAuthorizeRequest

  • Query
  • Apps and platform

What the authorize page shows for an app's authorize link. Null when the client id names no app this store may authorize (unknown, made by Tanqory, or not published and this is not a development store of its developer), or the redirect URI is not one of the app's registered redirect URLs: the page then shows the error and never redirects (RFC 6749 §4.1.2.1).

Arguments

ArgumentTypeRequiredDefault
inputTanqoryExtAppAuthorizeInput!Required

Returns

TanqoryExtAppAuthorizeRequest What the authorize page shows for an app's authorize link.

FieldTypeDescription
appApp!

The app.

canApproveBoolean!

Whether the member asking may approve: installing or adding scopes needs apps.manage and a role that may change the store; signing in to an installed app that asks for nothing new (per-user) needs only what opening apps needs.

errorTanqoryExtOAuthRedirectError

The request asks for something it may not: the page sends the merchant back with errorRedirectUrl.

errorRedirectUrlURL

The app's redirect URI with error, error_description and state, when error is set.

installationAppInstallation

The installation, when the app is installed on the store.

newScopes[String!]!

Asked-for scopes the installation does not hold yet: every one for an app not installed.

perUserBoolean!

Whether the app asks for an online token acting for this member (grant_options[]=per-user).

redirectOriginString!

The origin the merchant is sent back to.

scopes[AccessScope!]!

Every scope the app asks for, with what it allows.

Example request

A starting point: required arguments as variables and a few fields of the result. Replace the placeholders.

Set STORE_ID and TANQORY_ACCESS_TOKEN in your environment first (Make your first API call).

curl
curl -X POST "https://api.tanqory.com/admin/2026-10/stores/$STORE_ID/graphql" \
  -H "Authorization: Bearer $TANQORY_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  --data '{"query":"query TanqoryExtAppAuthorizeRequest($input: TanqoryExtAppAuthorizeInput!) {\n  tanqoryExtAppAuthorizeRequest(input: $input) {\n    app { id }\n    canApprove\n    errorRedirectUrl\n    installation { id }\n    newScopes\n    perUser\n    redirectOrigin\n  }\n}","variables":{"input":{"clientId":"","redirectUri":""}}}'

Built from commit c0b3fb3fdef7 · API version 2026-10