Documentation menu
Optimisation and jobs
POST/v1/keys/self/webhook-secret
Access and price
| Auth | An 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. |
|---|---|
| Price | Not 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
| Field | Type | Required | Description |
|---|---|---|---|
| created_at | string | yes | RFC 3339 UTC time this secret was minted. |
| key_id | string | yes | The key this secret signs for. |
| signature_header | string | yes | The header to verify: X-MapMap-Signature, the lowercase hex
HMAC-SHA256 of the raw request body under this secret. |
| webhook_secret | string | yes | The 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