- Docs
- Api%2Freference%2Fapikeys%2FDeleteApiKey
Delete an API key
Revoke a key for good. It stops working within about 30 seconds, after the authorization cache expires. Only the wallet that created a key can delete it. A deleted key cannot be brought back, and a key's permissions can never be edited — to change what a key may do, create a new one and delete this one. Requires the `api-keys.delete` permission.
The access token returned after a successful sign-in, sent as
Authorization: Bearer <access_token>.
It identifies the person and the organization they are working in, and
it lasts about fifteen minutes. When it runs out, use their refresh
token at POST /auth/refresh-token instead of asking them to sign in
again.
In: header
Path Parameters
Identifier of the API key, as returned by POST /api-keys. Not the key secret.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X DELETE "https://api.dual.network/api-keys/665f1c2d4b1a2c3d4e5f6a60"{}{
"code": 3,
"message": "Key: 'limit' Error:Field validation for 'limit' failed on the 'lte' tag"
}{
"code": 16,
"message": "no auth provided"
}{
"code": 5,
"message": "object not found"
}{
"code": 13,
"message": "internal error"
}