How to generate an access token with a long lifetime
Generate API access tokens that last longer than the default 24 hours
Endpoint
POST /v2/{partition}/security/tokens/generateRequest Body
Property
Type
Description
Common lifetime values
Duration
Seconds
Examples
curl (Linux / macOS)
curl -X POST "https://sandbox-hub.shiftiq.com/v2/e99/security/tokens/generate" \
-H "Content-Type: application/json" \
-d '{
"Secret": "your-api-client-secret",
"Lifetime": 31536000
}'PowerShell (Windows)
Response
Secret expiry and token lifetime
Security considerations
Last updated
Was this helpful?