Authentication
Last updated
Last updated
Go to the Credentials section of your Profile page on cortecs.ai and create your credentials first.
📌 Remember to include the
Authorization: Bearer <access_token>
header when required.
Authenticates a client using the client credentials and returns an access token to be used for further API requests.
The client ID assigned to the client.
your_client_id
The client secret assigned to the client.
your_client_secret
The type of grant being used, typically "client_credentials".
client_credentials
POST /api/v1/oauth2/token HTTP/1.1
Host: cortecs.ai
Content-Type: application/json
Accept: */*
Content-Length: 101
{
"client_id": "your_client_id",
"client_secret": "your_client_secret",
"grant_type": "client_credentials"
}
{
"access_token": "abcdef123456",
"token_type": "Bearer",
"expires_in": 3600
}