BhejDe
API Reference · v1 · REST

API Documentation

Complete reference for every BhejDe public endpoint — request parameters, headers, response envelopes, and error codes. All HTTP, all JSON.

2Endpoints
RESTStyle
JSONFormat
BearerAuth
Browse Reference
POST/api/v1/public/token Public

Get Access Token

Exchange your API client credentials (clientId + clientSecret) for a short-lived Bearer token. Create an API client first via Settings → Webhooks in your BhejDe account.

Request Headers

HeaderValueRequired
Content-Typeapplication/jsonYes

Request Body Parameters

FieldTypeReq
clientIdstringYes
clientSecretstringYes

Sample Request Body

request.json
1
2
3
4
{
"clientId": "bdclient_xxxxxxxxxxxx",
"clientSecret": "your-client-secret"
}

Sample Response

response.json
1
2
3
4
5
6
7
8
9
{
"status": "success",
"message": "Token issued successfully.",
"data": {
"token": "eyJhbGciOiJIUzI1NiIs...",
"expiresIn": 3600
},
"isSuccess": true
}

Error Codes

400Missing or malformed request body.
401clientId or clientSecret not recognised.
429Too many token requests — rate limit exceeded.