Credentials
Roll a secret
Creates a new secret for the account's application or client credential in the given environment and returns it once. The secret it replaces keeps working until expireOldIn has passed: 7 days by default for a client secret, until it is revoked for an app secret, so shipped apps keep working until they are updated. A credential holds at most two active secrets, so a third roll is refused until one is revoked or has expired. The caller must be a member of the account, signed in with a user token.
post/api/v1/account/credentials/roll
Request
- Base URLhttps://api.sahha.ai (the document declares no server; this is the origin it was published from)
- AuthAPI key in header Authorization
Query parameters
environmentstring
Request body
Example request
{
"environment": "sandbox",
"credentialType": "client",
"expireOldIn": "7d"
}Response
The new secret and every secret of the credential.
Changes
No recorded changes to this operation across all 1 revision of this API.