tanqoryExtStoreSecurityPolicy
- Query
- Other operations
The store's sign-in rules for its staff. The store owner and admins.
Arguments
None.
Returns
TanqoryExtStoreSecurityPolicy! A store's sign-in rules for its staff.
| Field | Type | Description |
|---|---|---|
allowedAddressRanges | [String!]! | IPv4/IPv6 addresses and CIDR ranges staff may use the store from; empty = any address. Never asked of the owner. |
available | Boolean! | False while the platform switch for these rules is off: none is enforced and they cannot be changed. |
idleTimeoutChoices | [Int!]! | The inactivity limits a store may pick, in minutes. |
idleTimeoutMinutes | Int | Minutes without using the store after which a staff member signs in again; null = no limit. Applies to the owner too. |
recommendedIdleTimeoutMinutes | Int! | The limit the page suggests first (60 minutes, NIST SP 800-63B-4's inactivity bound at AAL2). |
requireTwoStep | Boolean! | Staff must sign in with a passkey or an authenticator app (an emailed code alone does not count). Never asked of the owner. |
updatedAt | DateTime | |
youAreOwner | Boolean! | The signed-in member is the store owner (the rules that could shut a store out never apply to the owner). |
youSignedInWithTwoStep | Boolean! | The signed-in member's session was signed in with a passkey or an authenticator app. |
yourAddress | String | The address of this request as the API confirmed it at the edge; null when it could not be confirmed. |
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 TanqoryExtStoreSecurityPolicy {\n tanqoryExtStoreSecurityPolicy {\n allowedAddressRanges\n available\n idleTimeoutChoices\n idleTimeoutMinutes\n recommendedIdleTimeoutMinutes\n requireTwoStep\n updatedAt\n youAreOwner\n youSignedInWithTwoStep\n yourAddress\n }\n}","variables":{}}'// Node.js 18 or later (fetch is built in). Save as request.mjs and run: node request.mjs
const query = `query TanqoryExtStoreSecurityPolicy {
tanqoryExtStoreSecurityPolicy {
allowedAddressRanges
available
idleTimeoutChoices
idleTimeoutMinutes
recommendedIdleTimeoutMinutes
requireTwoStep
updatedAt
youAreOwner
youSignedInWithTwoStep
yourAddress
}
}`;
const variables = {};
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 TanqoryExtStoreSecurityPolicy {
tanqoryExtStoreSecurityPolicy {
allowedAddressRanges
available
idleTimeoutChoices
idleTimeoutMinutes
recommendedIdleTimeoutMinutes
requireTwoStep
updatedAt
youAreOwner
youSignedInWithTwoStep
yourAddress
}
}"""
variables = json.loads("""{}""")
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))