Client Credentials Flow

Use for

  • Internal / Backend Services & Scripts

Do not use this flow for applications that are not able to securely store your application's client secret.

Following process describes how to authenticate and obtain authorization for the Loom AI API using the OAuth2 Client Credentials Flow.

Request

curl --request POST \
--url 'https://auth.loomai.com/oauth/token' \
--header 'content-type: application/x-www-form-urlencoded' \
--data 'audience=https%3A%2F%2Fapi.loomai.com%2F&grant_type=client_credentials&client_id={CLIENT_ID}&client_secret={CLIENT_SECRET}'

Parameter

Description

audience

Set to https://api.loomai.com/ (urlencoded).

grant_type

Set to client_credentials.

client_id

Your application's Client ID.

client_secret

Your application's Client Secret.

Response

{
"access_token": "eyJz93a...k4laUWw",
"token_type": "Bearer",
"expiry": 3600
}