<b>An API for retrieving your access token for authentication.</b>
<b>An API for retrieving your access token for authentication.</b>
This guide will help you connect to our API using OAuth authentication. This document will guide you through setting up and using these authentication methods in your preferred programming language. For reference, you can also try out your authentication and the entire API in the OpenAPI Spec.
Prerequisites
Before you begin, ensure you have the following:
-A Blackbird AI account.
-Your client credentials (Client ID and Client Secret) for the Client Credentials flow.
https://docs.blackbird.ai/_mock/token/
https://blackbird-ai.auth.us-west-2.amazoncognito.com/
The grant type. The only valid value right now is client_credentials
https://docs.blackbird.ai/_mock/token/oauth2/token
https://blackbird-ai.auth.us-west-2.amazoncognito.com/oauth2/token
curl -i -X POST \
https://docs.blackbird.ai/_mock/token/oauth2/token \
-H 'Content-Type: application/x-www-form-urlencoded' \
-d grant_type=client_credentials \
-d client_id=your_client_id \
-d client_secret=your_client_secret
{ "access_token": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "token_type": "Bearer", "expires_in": 3600 }