Delete API Key
DELETE
/api-keys/{id}
const url = 'https://api.testzilla.ai/v1/api-keys/example';const options = {method: 'DELETE', headers: {'x-api-key': '<x-api-key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://api.testzilla.ai/v1/api-keys/example \ --header 'x-api-key: <x-api-key>'Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” id
required
string
Id identifier
Responses
Section titled “ Responses ”Key revoked (idempotent: a second call reports it was already revoked).
Media type application/json
object
success
required
boolean
message
required
string
Example
{ "success": true}Unauthorized (missing or invalid API key)
API key not found.
Media type application/json
object
error
required
Human-readable error message.
string
Example generated
{ "error": "example"}