Credentials

Restore a revoked secret

Makes a revoked secret authenticate again. Any member of the account can restore within 24 hours of the revoke; after that, contact support. Refused while the credential already has two active secrets, and once the secret's own expiry has passed.

post/api/v1/account/credentials/secrets/{secretId}/restore

Request

  • Base URL
    https://api.sahha.ai (the document declares no server; this is the origin it was published from)
  • Auth
    API key in header Authorization

Path parameters

secretIdstring uuid required

Query parameters

environmentstring

Request body

accountIdstring uuid

The account the credential belongs to.

environmentstring

sandbox or production. It must be the environment the request is sent to.

credentialTypestring

application or client.

Example request

{
  "environment": "sandbox",
  "credentialType": "client"
}

Response

Every secret of the credential after the restore.

Changes

No recorded changes to this operation across all 1 revision of this API.