Revoke an API key
DELETE
/api-keys/{id}
Authentication
Bearer Token API Key (header: X-API-Key)
Path Parameters
id
string
required
path
Responses
200
Revoked
No response body
curl -X DELETE 'https://platform-api.anyspend.com/api/v1/api-keys/string' \ -H 'Authorization: Bearer YOUR_API_TOKEN'
const response = await fetch('https://platform-api.anyspend.com/api/v1/api-keys/string', { method: 'DELETE', headers: { "Authorization": "Bearer YOUR_API_TOKEN" }});const data = await response.json();console.log(data);
import requestsheaders = { 'Authorization': 'Bearer YOUR_API_TOKEN'}response = requests.delete('https://platform-api.anyspend.com/api/v1/api-keys/string', headers=headers)print(response.json())
API Playground
Try this endpoint
DELETE
/api-keys/{id}

