You can follow the steps below to generate an access token for your application via cURL:
-
In the Choreo Developer Portal header, click Applications.
-
On the My Applications page, click on the application for which you want to generate the token.
-
In the left navigation menu, click the required environment under Credentials. This opens the Application Keys pane of the specific environment.
-
Copy the Consumer Key, Consumer Secret, and Token Endpoint values.
-
Use the following template and compile the cURL command with the values you copied in the above step.
=== "Format"
curl -k -X POST <token_endpoint> -d "grant_type=client_credentials" -H "Authorization: Basic <base64encode(consumer-key:consumer-secret)>"
-
Execute the cURL command to generate an access token.
You follow the steps below to generate an access token for testing purposes:
- In the Choreo Developer Portal header, click Applications.
- On the My Applications page, click on the application for which you want to generate keys and tokens.
- In the left navigation menu, click the required environment under Credentials. This opens the Application Keys pane of the specific environment.
- Click Generate Token.