OAuth
Issue OAuth token
Generate an OAuth access token for machine-to-machine API access.
post/v2/oauth/token
Request
- Base URLhttps://api.demo-retail.urbanfox.io
- Authnone required
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body application/x-www-form-urlencoded
Example request
{
"client_id": "A1b2C3d4E5f6G7h8I9j0K1l2M3n4O5p6",
"client_secret": "csec_example_7q9x2k4m6p8r0t1v3w5y",
"grant_type": "client_credentials"
}Response
Successful Response
Example response
{
"access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.example.signature",
"token_type": "Bearer",
"expires_in": 86400
}Changes
No recorded changes to this operation across all 8 revisions of this API.