Meta
Who am I - the calling key, its app, scopes, expiry and granted stores
GET
apiKeyheader
AuthorizationBearer <tmb_live_<prefix>_<secret> or tmb_test_<prefix>_<secret>>Scopes (set per key, narrowed by the merchant's grant): stores:read, stores:write, menu:read, orders:read, orders:write, rider:write, sales:read, customers:pii, mcp:use (the key may be used on the MCP endpoint POST /mcp; by default one MCP-enabled app per merchant account).
Key details
application/json- response
app_id*stringapp_name*stringkey_prefix*stringenv*stringValue in
"live""test"scopes*array<string>created_at*stringFormat
date-timeexpires_at*|null = never expires (default). Revocation still applies.
Format
date-timelast_used_at?|Format
date-timestore_count*integerNumber of stores granted to this key
stores*array<string>Granted store ids, at most the first 100. Use GET /v1/stores for all.
Items
items <= 100ip_allowlist?array<string>|IPv4/IPv6 addresses or CIDR ranges allowed to use this key. null = any IP (default). Set by the developer in the console; a connected merchant can narrow it further for their stores.
Items
items <= 20curl -X GET 'https://openapi.tmbill.com/v1/me'Example Response
{ "app_id": "string", "app_name": "string", "key_prefix": "tmb_live_8f3a2c1d", "env": "live", "scopes": [ "string" ], "created_at": "2019-08-24T14:15:22Z", "expires_at": "2019-08-24T14:15:22Z", "last_used_at": "2019-08-24T14:15:22Z", "store_count": 0, "stores": [ "string" ], "ip_allowlist": [ "203.0.113.10" ]}