Revoke under the tenant owner's console token, keeping the install and its sessions.
DELETE
/installs/{id}/key
const url = 'https://api.canopyhq.dev/installs/example/key';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.canopyhq.dev/installs/example/key \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
Opaque; never the key, never anything the vendor chose.
string
The install whose key is revoked.
Responses
Section titled “Responses”Owner only. No key resolves until the owner rotates. The install and its sessions remain. Open sessions keep their landed config and work until their 15-minute tokens expire; the revoked key cannot renew them.
Only the tenant owner may revoke.
The tenant has no such install, or it was deleted.
Another key-management operation won; retry revocation.