Revoke an API key
Authorization
bearerAuth AuthorizationBearer <token>
Authenticate using an API Key:
Authorization: Bearer rk_live_your-api-keyIn: header
Path Parameters
id*string
Response Body
application/json
application/problem+json
application/problem+json
application/problem+json
curl -X DELETE "https://api.routeany.com/v1/account/api-keys/string"{
"id": "string",
"key_prefix": "string",
"name": "string",
"is_active": true,
"revoked_at": "2019-08-24T14:15:22Z"
}{
"type": "https://api.routeany.com/errors/unauthorized",
"title": "Unauthorized",
"status": 401,
"detail": "Invalid or missing API key",
"code": "AUTH_INVALID_TOKEN"
}{
"type": "https://api.routeany.com/errors/not-found",
"title": "Not Found",
"status": 404,
"detail": "The requested resource was not found",
"code": "RESOURCE_NOT_FOUND"
}{
"type": "https://api.routeany.com/errors/validation-error",
"title": "Validation Error",
"status": 400,
"detail": "The 'prompt' field is required",
"code": "VALIDATION_INVALID_ARGUMENT",
"trace_id": "string",
"request_id": "string",
"errors": [
{
"field": "input.prompt",
"code": "VALIDATION_INVALID_ARGUMENT",
"message": "prompt is required"
}
]
}