POST
/
v1
/
auth
/
token
/
issue
curl --request POST \
  --url https://api.nomba.com/v1/auth/token/issue \
  --header 'Content-Type: application/json' \
  --header 'accountId: <accountid>' \
  --data '{
  "client_id": "2242b79d-f2cf-4ccc-ada1-e890bd1a9f0d",
  "client_secret": "JFJ8yq3G4+DvjivJMsji0YkZBkkKdSdjifR+TgT9RLM=",
  "grant_type": "client_credentials"
}'
{
  "code": "00",
  "data": {
    "access_token": "eyJhbGciOiJIUzI1NiJ9.eyJHOjhmYWM4M2FjLTc2YjAtNDM1Zi1hYTM1LThkOTU3ZGQ5MjdkZCI6Ikc6OGZhYzgzYWMtNzZiMC00MzVmLWFhMzUtOGQ5NTdkZDkyN2RkIiwiUjpURUFNU19PV05FUiI6IlI6VEVBTVNfT1dORVIiLCJFbWFpbDp2aWN0b3JzaG9hZ2FAZ21haWwuY29tIjoiRW1haWw6dmljdG9yc2hvYWdhQGdtYWlsLmNvbSIsImlhdCI6MTY4MTkxODU3OSwic3ViIjoiNWUyNmNmYjAtNTI5Zi00MTdiLWI4ZDItYWJjNDcxZjRjOWRiIiwiZXhwIjoxNjgxOTIyMTc5fQ.lQOsyhR1gajKdzE9IHQEtxhQyUrArctEDZiP9pWVTFY",
    "businessId": "01a10aeb-d989-460a-bbde-9842f2b4320f",
    "expiresAt": "2022-07-08T14:33:00Z",
    "refresh_token": "01h4gdx2tctxfjgacbdwrcvs5d1688473602892"
  },
  "description": "Success"
}

Headers

accountId
string
required

The parent accountId of the business.

Body

application/json
client_id
string
required

The client's id as obtained from your Nomba dashboard.

client_secret
string
required

The client's secret as obtained from your Nomba dashboard. It is securely generated by the Nomba system

grant_type
enum<string>
required

The grant type of the authentication.

Available options:
client_credentials,
refresh_token

Response

200 - application/json
code
string
required

Response Code

data
object
required

A structure representing an authentication result.

description
string
required

Response description