Password
How to execute the authorization flow and get your access token
Getting an access token
Request
Arguments
Body parameter
Type
Required
Description
Example
Sales channel
curl -g -X POST \
'https://auth.commercelayer.io/oauth/token' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"grant_type": "password",
"username": "[email protected]",
"password": "s3creT",
"client_id": "{{your_client_id}}",
"scope": "market:id:xYZkjABcde"
}'{
"access_token": "acC3sSt0K3Nwrt6kic7.abc4bnm5...",
"token_type": "bearer",
"expires_in": 14400,
"refresh_token": "r3fResHt0k3nvbn7mnr9ert123",
"scope": "market:id:xYZkjABcde",
"created_at": 123456789,
"owner_id": "zxcVBnMASd",
"owner_type": "customer"
}Last updated