Skip to main content
POST
/
platform
/
v1
/
auth
/
token
Create Access Token
curl --request POST \
  --url https://commerceos.aiagents.fabric.inc/platform/v1/auth/token \
  --header 'Content-Type: application/json' \
  --data '
{
  "grant_type": "client_credentials",
  "client_id": "ser_zUe74HYT98d6ItDhIQWYYur0k",
  "client_secret": "bv_1s9uWC_7324598gjdsh_ijSUVmm6YCt-6Ahd8Nt3GsTb8w8"
}
'
{
  "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
  "token_type": "bearer",
  "expires_in": 3600,
  "scope": ""
}

Body

application/json
grant_type
string
required
Example:

"client_credentials"

client_id
string
required
Example:

"ser_zUe74HYT98d6ItDhIQWYYur0k"

client_secret
string
required
Example:

"bv_1s9uWC_7324598gjdsh_ijSUVmm6YCt-6Ahd8Nt3GsTb8w8"

Response

Successful authentication

access_token
string
required

Access token used for authenticated requests. Tokens expire every 60 minutes.

Example:

"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."

token_type
string
required

Type of token returned.

Example:

"bearer"

expires_in
integer
required

Time in seconds until the token expires.

Example:

3600

scope
string
required

Scope of the access token.

Example:

""