API Authorization & Setup
How to obtain your access token to authenticate your api calls
Authorization Guide
To use the Nutrition Hub APIs, you need to obtain a Bearer Token using your API key. Follow the steps below to authorize your API requests.
Obtain Bearer Token
Endpoint: POST
Path Parameters:
key
: Your API or license key provided in your product dashboard.
Response Schema:
access_token
(string): The Bearer Token you will use to authorize your API requests.expires_in
(number): Token expiration time in seconds.scope
(string): The scope of the token.token_type
(string): The type of the token, typically "Bearer".
Example Request:
Example Response:
Using the Bearer Token
Include the access_token
in the Authorization header for all your API requests. The only required header is the Authorization
header with the Bearer token.
Example Authorization Header:
Last updated