cURL
curl --request POST \ --url https://api.unkey.dev/v1/apis.deleteKeys \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "apiId": "api_1234", "permanent": false }'
{ "deletedKeys": 123 }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
The keys have been deleted
The response is of type object.
object
Was this page helpful?