Client credentials
How to execute the authorization flow and get your access token
Getting an access token
Request
Arguments
Body parameter
Type
Required
Description
Examples
Sales channel
curl -g -X POST \
'https://auth.commercelayer.io/oauth/token' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"grant_type": "client_credentials",
"client_id": "{{your_client_id}}",
"scope": "market:id:xYZkjABcde"
}'{
"access_token": "acC3sSt0K3Nwrt6kic7.abc4bnm5...",
"token_type": "bearer",
"expires_in": 14400,
"scope": "market:id:xYZkjABcde",
"created_at": 123456789
}Integration
Last updated