How to Access Your APIs
An authorized token is needed before calling an API endpoint of deployment.
To get the token, follow the below steps mentioned:
Open a Deployment.
Make sure the deployment is deployed successfully.
Move to the API Access section.
Click on the Copy button displayed for Authenticate to Get a Token section.
Paste and run the curl command in the terminal to get the Token.
Once a token is obtained, the next step is to access the API endpoint of deployment.
To access API, follow the steps mentioned below:
Click on the Copy button displayed for Access Your API section.
Paste and run the curl command in the terminal to access API endpoint.
For e.g.: If its a GET API call,
curl -X GET https://api.kintohub.com/<KintoBlockname>/<endpoint of KintoBlock> -H "Authorization: Bearer <Token>" 'Content-Type: application/json'
Make sure to pass the Token obtained, KintoBlock name and endpoint of KintoBlock.
Once the API call is successful, a response from the deployment will be displayed in the terminal.