Cette page n’est pas encore traduite. Vous lisez la version anglaise.

Webhook subscriptions (REST hooks)

Subscribe a URL to MapDove's events with an API key: the connection test, creating and removing hooks, sample events and delivery rules.

Automation tools and your own services can subscribe to MapDove’s notification events with an API key, without anyone opening Settings. A subscription, or hook, is an ordinary webhook channel of the workspace: it has the same signed deliveries, retries and URL checks, it appears in Settings → Notifications, and it counts towards the plan’s channel limit.

These endpoints take an API key only and are not metered: no API call is counted. Your plan must include API access. The rate limit is 60 requests per key per minute.

Method Path What it does
GET /api/v1/me Connection test: the key’s workspace, member, plan, the events you can subscribe to and the limits
GET /api/v1/hooks The workspace’s hooks created with API keys
POST /api/v1/hooks Subscribe a URL: { "url", "events", "name"? } → 201 with the hook and its secret (shown only here)
DELETE /api/v1/hooks/:id Unsubscribe → 204
GET /api/v1/hooks/samples?event= One to three example events in the exact delivery shape, to set up a trigger before a real event arrives

Events: alert.triggered, dataset.updated, report.scheduled, export.ready, briefing.scheduled.

curl https://api.mapdove.com/api/v1/hooks \
  -H "Authorization: Bearer $MAPDOVE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://example.com/mapdove","events":["alert.triggered","export.ready"]}'

Rules

  • The key’s member must be a workspace owner or admin to subscribe. A hook receives events only while that member still is one.
  • The url must be https:// on a public address.
  • Each delivery carries X-MapDove-Signature, made with the hook’s secret, and X-MapDove-Delivery for deduplication. The secret can’t be rotated: to change it, delete the hook and subscribe again.
  • Revoking the API key deletes its hooks, however the key is revoked.
  • A hook is removed when your endpoint answers 410 Gone, or when 20 deliveries in a row fail.
  • Hooks can’t be edited from the app.

Authentication, errors and rate limits work as everywhere else in the API: see the API overview.