Skip to Content
Bhakti BaazarDevelopers
API referenceAccount

Check a key

GET
/ping

Scope: none. Any working key can call this.

Confirms the key works and lists the scopes it can use right now.

Authorization

sellerApiKey
headerAuthorizationBearer <bbsk_live_…>

A Seller API key, bbsk_live_…

Response Body

application/json
  1. response
ok*boolean
sellerId*string
Formatuuid
key*
scopes*array<>

The scopes this key can use right now: those chosen when it was made that its creator still holds.

serverTime*string
Formatdate-time
Example Request
curl -X GET 'https://api.bhaktibaazar.com/seller-api/v1/ping'
Example Response
{  "ok": true,  "sellerId": "2b5cb5ab-0f11-4d75-8f0a-a6d87a9d534e",  "key": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "name": "My website",    "expiresAt": "2019-08-24T14:15:22Z"  },  "scopes": [    "catalog:read"  ],  "serverTime": "2019-08-24T14:15:22Z"}