NuruPayDocs
Account

Identify the API key

GET
/v1/whoami

Returns the merchant and mode the API key belongs to. Useful to check a key works.

Authorization

apiKey
AuthorizationBearer <token>

Authorization: Bearer np_test_sk_…. The key's prefix selects test or live mode.

In: header

Response Body

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/v1/whoami"
{  "object": "principal",  "merchant_id": "string",  "mode": "live",  "key_id": "string"}