Skip to content
Documentation menu
docs / api / post-v1-keys-self-webhook-secret
Optimisation and jobs

POST/v1/keys/self/webhook-secret

Access and price

AuthAn API key, as Authorization: Bearer snk_… or ?api_key=snk_…. Not metered: it draws no quota and no credit. Needs a full key; a browser (maps) key is refused.
PriceNot metered: no quota, no credit.

What it does

Mint (or rotate) the calling key's webhook signing secret (quota-free).

An API key, as Authorization: Bearer snk_… or ?api_key=snk_…. Not metered: it draws no quota and no credit.

Call it

bash
curl -fsS -X POST "https://api.mapmap.ai/v1/keys/self/webhook-secret" \
  -H "Authorization: Bearer $MAPMAP_KEY"

Responses

200The new secret, shown exactly once. Calling again mints another and invalidates this one, including for deliveries already in flight
FieldTypeRequiredDescription
created_atstringyesRFC 3339 UTC time this secret was minted.
key_idstringyesThe key this secret signs for.
signature_headerstringyesThe header to verify: X-MapMap-Signature, the lowercase hex HMAC-SHA256 of the raw request body under this secret.
webhook_secretstringyesThe secret itself: 64 lowercase hex characters. **Shown once.** Calling again mints a new one and invalidates this.

Example: A response assembled from this schema's own field examples, enums, defaults and types; not a recorded call

json
{
  "created_at": "string",
  "key_id": "string",
  "signature_header": "string",
  "webhook_secret": "string"
}
401Missing or invalid API key. Also: No key, or a missing, malformed, unknown, revoked or expired one (unauthorized)

application/problem+json · Problem

403A browser (maps-scoped) key on a route that needs a full-scope key (scope-insufficient)

application/problem+json · Problem

504The request did not finish within the gateway's request deadline (request-timeout)

application/problem+json · Problem

Error bodies follow the shared problem model documented on API conventions.

Also under Optimisation and jobs

Generated from https://api.mapmap.ai/openapi.json on 2026-11-12 · operationId rotate_webhook_secret