ServiceAccounts
Issue a service account token
POST
https://api-staging.pixwel.com/api/service-accounts/{id}/tokensIssues a token that authenticates as the service account, not as the caller. The raw value is returned once in this response and cannot be retrieved again. An account may hold at most 5 unrevoked tokens, which leaves room to rotate without downtime: issue the new token, deploy it, then revoke the old one.
Path parameters
idstringrequired
Body
namestringrequired
Label describing where the token will be deployed. Trimmed, and must not be empty or whitespace-only.
expiresAtintegerstringnull
Unix timestamp or any `strtotime`-parsable string. Defaults to 90 days; must be in the future and no more than 1 year out.