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
| Argument | Type | Required | Default |
|---|---|---|---|
input | TanqoryExtAppAuthorizeInput! | Required |
Returns
TanqoryExtAppAuthorizeRequest What the authorize page shows for an app's authorize link.
| Field | Type | Description |
|---|---|---|
app | App! | The app. |
canApprove | Boolean! | 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. |
error | TanqoryExtOAuthRedirectError | The request asks for something it may not: the page sends the merchant back with |
errorRedirectUrl | URL | The app's redirect URI with |
installation | AppInstallation | 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. |
perUser | Boolean! | Whether the app asks for an online token acting for this member ( |
redirectOrigin | String! | 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 -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":""}}}'// Node.js 18 or later (fetch is built in). Save as request.mjs and run: node request.mjs
const query = `query TanqoryExtAppAuthorizeRequest(\$input: TanqoryExtAppAuthorizeInput!) {
tanqoryExtAppAuthorizeRequest(input: \$input) {
app { id }
canApprove
errorRedirectUrl
installation { id }
newScopes
perUser
redirectOrigin
}
}`;
const variables = {
"input": {
"clientId": "",
"redirectUri": ""
}
};
const res = await fetch(`https://api.tanqory.com/admin/2026-10/stores/${process.env.STORE_ID}/graphql`, {
method: 'POST',
headers: {
'Authorization': 'Bearer ' + process.env.TANQORY_ACCESS_TOKEN,
'Content-Type': 'application/json',
},
body: JSON.stringify({ query, variables }),
});
console.log(res.status, JSON.stringify(await res.json(), null, 2));# Python 3, standard library only. Save as request.py and run: python3 request.py
import json, os, urllib.request
query = """query TanqoryExtAppAuthorizeRequest($input: TanqoryExtAppAuthorizeInput!) {
tanqoryExtAppAuthorizeRequest(input: $input) {
app { id }
canApprove
errorRedirectUrl
installation { id }
newScopes
perUser
redirectOrigin
}
}"""
variables = json.loads("""{
"input": {
"clientId": "",
"redirectUri": ""
}
}""")
req = urllib.request.Request(
"https://api.tanqory.com/admin/2026-10/stores/" + os.environ["STORE_ID"] + "/graphql",
data=json.dumps({"query": query, "variables": variables}).encode(),
headers={
"Authorization": "Bearer " + os.environ["TANQORY_ACCESS_TOKEN"],
"Content-Type": "application/json",
},
)
with urllib.request.urlopen(req) as res:
print(res.status, json.dumps(json.load(res), indent=2))