Generate authentication token
Generates a single-use authentication token for accessing specific resources and actions.
Requires a valid API key (x-client-key).
For a product:read token on a provisioned single-catalogue account, omit
catalogueId; the API resolves and stores the sole enabled catalogue scope.
Merchant API calls use actionResource: merchant-api, an explicit catalogueId,
and the action documented on the target Merchant API operation.
- Type: stringaction
Resource min length:1requiredThe feature/resource name or "*"
- Type: stringaction
Type min length:1requiredThe CRUD action type or "*"
- Type: stringcatalogue
Id Optional explicit catalogue scope. Omit this for
product:readon a provisioned single-catalogue account; the API resolves the sole enabled catalogue associated with the client key. Required forlens:createand allmerchant-apiactions (suggest-identity,suggest-category,suggest-attributes,suggest-images,suggest-descriptions, andasset-upload). - Type: stringuser
Reference User reference to identify the user
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
curl https://platform.youzu.ai/api/v1/token \
--request POST \
--header 'Content-Type: application/json' \
--header 'x-client-key: YOUR_SECRET_TOKEN' \
--data '{
"actionResource": "",
"actionType": "",
"userReference": "",
"catalogueId": ""
}'
{
"token": "string",
"expiresIn": 1,
"actionResource": "string",
"actionType": "string"
}