Skip to content
Docs
Open Escouade
Documentation contents

Docs › Mail › Tools

set_webhook

View as .md

Declare the space’s webhook.

Declares the https address where the server reports, through a signed JSON POST (Standard Webhooks), what happens to the space’s messages and threads: departure, bounce, unsubscribe, reply, objection, delivery, refusal, new e-mail, suspended inbox. The same events can be read again with event_feed. The signing secret is returned once only, in this response. An address already declared is replaced, with a new secret. A test event (mail.webhook.test) leaves straight away.

Access

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

Parameters

ParameterTypeRequiredDescription
urlstringyesThe https address that will receive the events.

Call it

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

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

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