Disable account auth key
DELETE/account/auth-keys/:id
Disables an auth key of the authenticated account. Requests signed with a disabled key fail with Disabled authorisation key.
You cannot disable the last active key of an account that has no secret, because the account would be locked.
Requires authentication: sign the request (see Authentication) or send the legacy x-sideshift-secret header.
Request
Path Parameters
The auth key id, from GET /v2/account/auth-keys.
Header Parameters
Your Ed25519 public key, hex encoded. Required when signing the request. See Authentication.
Current Unix time in milliseconds, the same value used in the signed message. Must be within 60 seconds of server time. Required when signing the request.
Ed25519 signature of timestamp + METHOD + path + body, hex encoded. Required when signing the request. See Authentication.
Legacy account secret. Not needed when the request is signed with the x-sideshift-key, x-sideshift-timestamp and x-sideshift-signature headers. See Authentication.
Responses
- 204
- 400
- 403
- 404
- application/json
- Schema
- Example
Schema
error object
{
"error": {
"message": "Cannot disable the only auth key of an account without a secret",
"code": "BAD_USER_INPUT"
}
}
- application/json
- Schema
- Example
Schema
error object
{
"error": {
"message": "Authentication required: sign the request or send the x-sideshift-secret header",
"code": "FORBIDDEN"
}
}
- application/json
- Schema
- Example
Schema
error object
{
"error": {
"message": "Not found",
"code": "NOT_FOUND"
}
}