Delete one environment's credentials
DELETE
/v1/tenants/{tenantId}/credentials/{environment}
const url = 'https://api.emite.cr/v1/tenants/example/credentials/sandbox';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://api.emite.cr/v1/tenants/example/credentials/sandbox \ --header 'Authorization: Bearer <token>'Deletes the stored certificate, PIN and ATV credentials of that environment, and its cached ATV tokens. Allowed on the active environment too: until new credentials are uploaded, documents of that environment cannot be signed or sent.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”tenantId
required
string
environment
required
string
Responses
Section titled “Responses”Credentials deleted.
Missing or invalid JWT / API key
:tenantId is not the caller's company, or insufficient scope — credentials:* is never granted to an API key.