EVENT-DRIVEN ARCHITECTURE

Real-time webhook delivery with cryptographic integrity.

Eliminate wasteful HTTP polling. When an asynchronous generation completes, API Marketplace dispatches a signed webhook payload to your HTTPS endpoint with millisecond precision.

1: "${API_KEY:?Set API_KEY to your project key}"
2curl --fail-with-body -X POST "https://api.apimarketplace.com/v1/webhooks" -H "Authorization: Bearer $API_KEY" -H 'Content-Type: application/json' --data '{"url": "https://your-domain.example/webhooks", "events": ["character.ready", "character.failed", "generation.completed", "generation.failed"], "enabled": true}'
DELIVERY // CAPABILITIES

Built for enterprise event delivery.

Every webhook execution is signed, logged, and retry-protected against network disruptions.

HMAC-SHA256 Signatures

Every request includes an X-Webhook-Signature header. Compute the HMAC over the timestamp, a dot, and the raw request body with your secret; reject timestamps older than five minutes to guarantee authenticity and prevent spoofing.

Automated Retries & Backoff

If your receiving server responds with a non-2xx status code or times out, our Celery delivery worker automatically retries with exponential backoff.

Complete Delivery Logs

Inspect every delivery attempt in the developer dashboard via GET /v1/webhooks/{id}/deliveries. View HTTP status codes, latency, and response bodies.

SPECIFICATION // HEADERS & EVENTS

Webhook Protocol Specification

Supported event types and delivery headers.

SIGNATURE HEADER
X-Webhook-Signature
HMAC-SHA256 hex digest
TIMESTAMP HEADER
X-Webhook-Timestamp
Unix epoch timestamp
SUCCESS EVENT
generation.completed
Payload contains asset URLs
FAILURE EVENT
generation.failed
Payload contains error code
PRODUCTION RUNTIME

Connect webhooks to your production app.

Register your destination URL in the dashboard and test deliveries with one click.