Skip to content
Docs
Open Escouade
Documentation contents

Docs › Mail › Tools

revoke_key

View as .md

Revoke an access.

Removes an access to the space: an agent’s key, or a connected assistant. It stops answering immediately, with no going back; what it had written or queued stays. An access cannot revoke itself. Pass confirm = true.

Access

  • Key: an Escouade Mail key with approve.
  • Space: any space, verified or not.
  • Changes nothing: no, it acts.
  • Safe to replay: use an idempotency_key where the tool offers one.

Parameters

ParameterTypeRequiredDescription
key_idstringyesThe access to remove (key_…, see list_keys).
confirmbooleanyesMust be true: revocation cannot be undone.

Call it

Terminal
curl -s https://api.subagent.fr/v1/revoke_key \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer sak_…' \
  -d '{"key_id": "…", "confirm": "…"}'

The full page in French, with the response fields and every refusal the tool can return: /mail/docs/reference/revoke_key.

This page in Markdown: /en/mail/docs/reference/revoke_key.md All the docs for an agent: /en/mail/docs/llms.txt Legal notice · Terms · Privacy · Service status