Revoke a data-plane API key this partner minted
DELETE
/v1/partner/tenants/{id}/api-keys/{keyId}
const url = 'https://api.emite.cr/v1/partner/tenants/example/api-keys/example';const options = {method: 'DELETE'};
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.emite.cr/v1/partner/tenants/example/api-keys/exampleThe key stops authenticating at once — with no grace, unlike the rotation of a mint with revokeExisting: true, and cutting short a grace one left running. Idempotent: an already-revoked key answers 204 too. Only a key this partner minted for that company: any other id answers 404 PARTNER_API_KEY_NOT_FOUND, and a company this partner does not manage 404 PARTNER_TENANT_NOT_FOUND.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
keyId
required
string
Header Parameters
Section titled “Header Parameters”x-partner-key
string
Partner app credential (ecp_*)
Responses
Section titled “Responses”The key no longer authenticates. No body.