Create webhook
Register a new webhook. A test API key creates an owned test endpoint when isTest is omitted or true; isTest: false returns AUTH_FORBIDDEN.
- Multiple webhooks can be registered
- A signing secret is returned upon registration
Important: The secret is only shown in this response. Store it securely.
Webhook Event Types
| Event Type | Description |
|---|---|
order.antiAi.completed | Anti-AI processing completed |
order.antiAi.failed | Anti-AI processing failed |
order.watermarkEmbed.completed | Watermark embedding completed |
order.watermarkEmbed.failed | Watermark embedding failed |
order.watermarkExtract.completed | Watermark extraction completed |
order.watermarkExtract.failed | Watermark extraction failed |
Signature Verification
Webhook requests include an X-MoriBiz-Signature header.
The signature is generated using HMAC-SHA256 with the secret issued at registration.
const crypto = require('crypto');
const signature = crypto.createHmac('sha256', secret)
.update(JSON.stringify(payload))
.digest('hex');
Retry Policy
- Max 3 retries
- Exponential backoff (1s, 2s, 4s)
- Success response: 2xx status code
Set isTest to true for a test webhook endpoint. Test API keys can manage only test endpoints owned by the same owner.
Authorizations
Bearer API key for external client access. Live keys use the sk_ prefix; test keys use the sk_test_ prefix and support order-lifecycle testing with mock responses without processing or credit usage.
Body
Response
Webhook created successfully