How to generate an access token with a long lifetime
Endpoint
POST /v2/{partition}/security/tokens/generateRequest Body
Property
Type
Description
Common lifetime values
Duration
Seconds
Example (PowerShell)
$url = "https://sandbox-hub.shiftiq.com/v2/e99/security/tokens/generate"
$json = @'
{
"Secret": "your-api-client-secret",
"Lifetime": 31536000
}
'@
curl.exe -X POST $url `
-H "Content-Type: application/json" `
-d $jsonResponse
Secret expiry and token lifetime
Security considerations
Last updated
Was this helpful?