🚀 Try our APIs instantly — no account needed. See how →
curl --request POST \
--url https://api.nomba.com/v1/auth/token/refresh \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'accountId: <accountid>' \
--data '
{
"grant_type": "refresh_token",
"refresh_token": "01h4gdx2tctxfjgacbdwrcvs5d1688473602892"
}
'{
"code": "00",
"description": "Success",
"data": {
"businessId": "01a10aeb-d989-460a-bbde-9842f2b4320f",
"access_token": "eyJhbGciOiJIUzI1NiJ9.eyJHOjhmYWM4M2FjLTc2YjAtNDM1Zi1hYTM1LThkOTU3ZGQ5MjdkZCI6Ikc6OGZhYzgzYWMtNzZiMC00MzVmLWFhMzUtOGQ5NTdkZDkyN2RkIiwiUjpURUFNU19PV05FUiI6IlI6VEVBTVNfT1dORVIiLCJFbWFpbDp2aWN0b3JzaG9hZ2FAZ21haWwuY29tIjoiRW1haWw6dmljdG9yc2hvYWdhQGdtYWlsLmNvbSIsImlhdCI6MTY4MTkxODU3OSwic3ViIjoiNWUyNmNmYjAtNTI5Zi00MTdiLWI4ZDItYWJjNDcxZjRjOWRiIiwiZXhwIjoxNjgxOTIyMTc5fQ.lQOsyhR1gajKdzE9IHQEtxhQyUrArctEDZiP9pWVTFY",
"refresh_token": "01h4gdx2tctxfjgacbdwrcvs5d1688473602892",
"expiresAt": "2022-07-08T14:33:00Z"
}
}You can use this endpoint to refresh an expired access_token.
curl --request POST \
--url https://api.nomba.com/v1/auth/token/refresh \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'accountId: <accountid>' \
--data '
{
"grant_type": "refresh_token",
"refresh_token": "01h4gdx2tctxfjgacbdwrcvs5d1688473602892"
}
'{
"code": "00",
"description": "Success",
"data": {
"businessId": "01a10aeb-d989-460a-bbde-9842f2b4320f",
"access_token": "eyJhbGciOiJIUzI1NiJ9.eyJHOjhmYWM4M2FjLTc2YjAtNDM1Zi1hYTM1LThkOTU3ZGQ5MjdkZCI6Ikc6OGZhYzgzYWMtNzZiMC00MzVmLWFhMzUtOGQ5NTdkZDkyN2RkIiwiUjpURUFNU19PV05FUiI6IlI6VEVBTVNfT1dORVIiLCJFbWFpbDp2aWN0b3JzaG9hZ2FAZ21haWwuY29tIjoiRW1haWw6dmljdG9yc2hvYWdhQGdtYWlsLmNvbSIsImlhdCI6MTY4MTkxODU3OSwic3ViIjoiNWUyNmNmYjAtNTI5Zi00MTdiLWI4ZDItYWJjNDcxZjRjOWRiIiwiZXhwIjoxNjgxOTIyMTc5fQ.lQOsyhR1gajKdzE9IHQEtxhQyUrArctEDZiP9pWVTFY",
"refresh_token": "01h4gdx2tctxfjgacbdwrcvs5d1688473602892",
"expiresAt": "2022-07-08T14:33:00Z"
}
}Documentation Index
Fetch the complete documentation index at: https://developer.nomba.com/llms.txt
Use this file to discover all available pages before exploring further.
Nomba authenticates API calls with OAuth2 HTTP bearer tokens. There are two methods of authentication; Client-Credentials method and PKCE (Proof Key for Code Exchange) method. In each of the methods, You will get an ACCESS_TOKEN. You need to use an "Authorization" HTTP header to provide your ACCESS_TOKEN. For example: Authorization: {ACCESS_TOKEN}.
The parent accountId of the business.
"890022ce-bae0-45c1-9b9d-ee7872e6ca27"
The request payload required to refresh the client's access_token
A structure representing a refresh token request.
The grant type of the authentication.
client_credentials, refresh_token "refresh_token"
A Base64 Encoded String used to refresh an expired access_token
30 - 60"01h4gdx2tctxfjgacbdwrcvs5d1688473602892"