Skip to Content
TMBillOpen API
Meta

Who am I - the calling key, its app, scopes, expiry and granted stores

GET
/me

Authorization

apiKey
headerAuthorizationBearer <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).

Response Body

Key details

application/json
  1. response
app_id*string
app_name*string
key_prefix*string
env*string
Value in"live""test"
scopes*array<string>
created_at*string
Formatdate-time
expires_at*|

null = never expires (default). Revocation still applies.

Formatdate-time
last_used_at?|
Formatdate-time
store_count*integer

Number of stores granted to this key

stores*array<string>

Granted store ids, at most the first 100. Use GET /v1/stores for all.

Itemsitems <= 100
ip_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.

Itemsitems <= 20
Example Request
curl -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"  ]}