API ReferenceIntegration
Get API key details
GET
Returns the application, environment, scopes and prefix of the key making the request. Works with any valid key and never returns the secret.
BearerAuthheader
AuthorizationBearer <token>Secret API key: tp_test_. or tp_live_.. Server-side only.
Safe integration metadata
application/json- response
application_reference*stringenvironment*unknownValue in
"sandbox""live"scopes*array<>Items
1 <= items <= 9credential_prefix*stringMatch
^tp_(test|live)_[0-9a-f]{32}$curl -X GET 'https://api.teepay.me/v1/whoami'Example Response
{ "application_reference": "string", "environment": "sandbox", "scopes": [ "integration:read" ], "credential_prefix": "string"}Overview
Every public TeePay endpoint with its parameters, request bodies, responses and code samples.
Get capabilities GET
Returns which features this key can use right now, and the countries and currencies it can collect in (supported_countries, supported_currencies). A feature is true only when the key has the scope, the account has the permission and TeePay has enabled the feature for the account. Read this instead of hard-coding markets: new countries appear here when TeePay enables them.