Authentication
How to authenticate with Limio's APIs using OAuth Bearer Tokens.
Last updated
Was this helpful?
Was this helpful?
curl --request POST \
--url https://{tenant}/oauth2/token \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data grant_type=client_credentials \
--data client_id={client_id_details} \
--data client_secret={client_secret_details}{
"access_token": "<YOUR_TOKEN_HERE>",
"token_type": "Bearer",
"expires_in": 3600
}const basePath = 'api';
const domain = 'prod.limio.com'; // or 'prod-us.limio.com'
const tenant = 'your-tenant';
const resp = await fetch(
`https://${tenant}.${domain}/${basePath}/order`,
{
method: 'POST',
headers: {
'Content-Type': 'application/json',
Authorization: 'Bearer <YOUR_TOKEN_HERE>'
},
body: JSON.stringify({ /* order payload */ })
}
);fetch('/api/catalog', {
headers: { Authorization: 'YOUR_API_KEY_HERE' }
}).then(res => res.json());