Revoke API key
DELETE
/api/v1/auth/api-keys/{api_key_id}
const url = 'https://app.ayna.com/api/v1/auth/api-keys/example';const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
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://app.ayna.com/api/v1/auth/api-keys/example \ --header 'Authorization: Bearer <token>'Revoke (deactivate) an API key.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”api_key_id
required
Api Key Id
string
Responses
Section titled “Responses”OK
Media typeapplication/json
Response
object
key
additional properties
any
Example generated
{}