cURL
curl --request PUT \ --url https://api.compute.x.io/v1/api-keys/{uuid}/revoke \ --header 'Content-Type: application/json' \ --data '{}'
{ "created_at": "2023-12-25", "is_revoked": true, "name": "<string>", "object": "api_key", "permissions": [ "<string>" ], "public_key": "<string>", "updated_at": "2023-12-25", "_id": "<string>", "account": "<string>", "account_uuid": "<string>", "allowed_ips": [ "127.0.0.1", "192.168.1.1/24" ], "deleted_at": "2023-12-25", "expires_at": "2023-12-25", "last_used_at": "2023-12-25", "uuid": "<string>" }
The body is of type object.
object
API key revoked successfully
api_key
OPTIONAL: List of allowed IP addresses or CIDR ranges. If no IPs are provided, the API key can be used from any IP address.
["127.0.0.1", "192.168.1.1/24"]