webhooks

Register webhook

Register a webhook URL to receive events.

Currently supported events:

  • post.published — fired when a post is published to any platform. Payload includes the full post object with business_id.

Webhooks are org-scoped. One registration covers all businesses in the org.

Send an Idempotency-Key header to make a retry safe (a resend with the same key returns the original webhook instead of registering a duplicate).

Errors: 400 invalid_request: The URL is not HTTPS, or the org already has 5 webhooks. 401 authentication_required: API key or token is missing, invalid, or revoked. 403 permission_denied: Your plan does not include API access. 422 IDEMPOTENCY_KEY_CONFLICT: The Idempotency-Key was reused with a different body. 429 rate_limit_exceeded: You sent too many requests this minute.

post/api/webhooks

Request

  • Base URL: https://api.mymarky.ai
  • URL: https://api.mymarky.ai/api/webhooks
  • Auth: HTTP bearer

Headers

Idempotency-Keystring nullable

Optional. Send a unique value (e.g. a UUID) to make this create request safe to retry. A repeat with the same key returns the original response instead of creating a duplicate. Cached for 24h, scoped to your org. Reusing a key with a different body returns 422.

Marky-Version'2026-04-08' | '2026-07-17' | '2026-08-02' | '2026-08-04' | '2026-08-06'
Example:2026-08-06

Opt into a dated API version. Omit to stay on the floor (2026-04-08) forever — unpinned clients never break. Pin to a newer date (e.g. 2026-08-06) to receive the newest response shapes. Unknown values fall back to the floor. See https://docs.mymarky.ai for the versioning model.

Request body

urlstring required

HTTPS URL to receive webhook events

eventsstring[] required

Events to subscribe to

Response

Successful Response

idstring required
urlstring required
eventsstring[] required
org_idstring required
secretstring nullable

Signing secret (only shown on creation)

created_atstring required

Changes

No recorded changes to this operation across all 1 revision of this API.