πAuthentication
For authenticating requests with Stampede, we utilise the OAuth 2.0 protocol, specifically using Bearer Tokens. Your integration must include these Bearer Tokens in the request headers to ensure secure and authorised access. This can look like this within your request headers:
authorization: Bearer XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Generating a client_id
& client_secret
client_id
& client_secret
You can generate a client_id
& client_secret
by heading to the Stampede dashboard > Marketplace > API Keys > Create New API Key.
From there, you'll be able to create a new client_id
then in return will provide you with a client_secret
. Keep it safe so it saves the hassle...
Generating a Bearer Token (also known as app-only)
Generate a Bearer Token
POST
~/oauth/token
Request Body
Name
Type
Description
client_id*
String
client_secret*
String
grant_type*
String
client_credentials
{
"access_token": string,
"expires_in": number,
"token_type": "Bearer",
"scope": "ALL:ALL"
}
Examples
curl --location 'https://global.stampede.ai/oauth/token' \
--header 'Content-Type: application/json' \
--data '{
"client_id": "ai.stampede.marketplace.example",
"client_secret": "XXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"grant_type": "client_credentials"
}'
Last updated
Was this helpful?