POST request with a JSON payload to a URL you add.
Use webhooks to trigger downstream workflows: notify a CMS, update a search index, fetch player data for a native app, or sync content across systems. See the Pugpig integration guide for a common app-distribution pattern.
Use the API
Use the API
Manage webhooks with the BeyondWords API:
- List webhooks:
GET /projects/{project_id}/webhooks - Create a webhook:
POST /projects/{project_id}/webhooks - Edit a webhook
- Test a webhook
- Delete a webhook
How it works
- Content is created or updated in BeyondWords through the API, WordPress, Ghost, Magic Embed, RSS Feed Importer, or the BeyondWords dashboard.
- BeyondWords generates audio and video for the content, or prepares it without audio if
generate_audioisfalse. - When this finishes or fails, or when the content item is deleted, BeyondWords sends a notification to each enabled webhook in your project. Every enabled webhook gets every event.
- Your endpoint receives a JSON payload and responds with a
2xxstatus code.
4xx or 5xx status code isn’t retried.
Event types
Set up a webhook
1
Create a new webhook
Go to Settings → Developers → Webhooks in your project dashboard.Click + Webhook.
2
Enter webhook URL
Enter the HTTPS URL where BeyondWords should send event notifications. This should be an endpoint on your server that accepts
POST requests with a JSON body.3
Set request headers (optional)
If your endpoint needs authentication or other custom headers, add them here. BeyondWords sends them with every webhook request:
- Add a Header name and Header value.
- To add another header, click +.
4
Enable static IP (optional)
If your endpoint requires IP allowlisting, enable static IP so webhook requests originate from a fixed address.
- Switch Static IP on.
- Allowlist the displayed IP address in your firewall, CDN, or server configuration.
Webhook requests are sent from
20.234.8.180 when static IP is enabled.5
Enable and save
Toggle Enabled on, then click Save changes.
Test your webhook
Quick preview with Webhook.site
If you want to see what a webhook payload looks like without building an endpoint, use Webhook.site. It gives you a temporary URL that logs any requests sent to it.- Open webhook.site and copy your unique URL.
- In BeyondWords, go to Settings → Developers → Webhooks and paste that URL into Webhook URL.
- Click Test, or publish content and wait for a real
audio.updatedevent. - Return to Webhook.site to inspect the JSON payload, headers, and timestamp.
Test from the dashboard
Before going live with your own endpoint:- Configure your Webhook URL and optional headers.
- Click Test
2xx response. You can also test a webhook via the API.
Payload reference
Each notification is aPOST request with Content-Type: application/json. The event type is in action_type.
Common fields
After receiving a webhook, fetch full player data with the player API using
source_id or get player by content ID using content_id.
audio.updated
Triggered when generation or regeneration completes successfully.audio.updated payload
content.ready
Triggered when a content item withgenerate_audio set to false is prepared without audio. The payload has the ready state and an empty media array.
content.ready payload
audio.error
Triggered when generation fails.audio.error payload
audio.deleted
Triggered when a content item is deleted.audio.deleted payload
Manage webhooks
You can create multiple webhooks per project, for example one for your CMS and one for a partner integration. For each webhook you can:- Edit the URL, headers, or static IP settings.
- Temporarily disable it with the Enabled toggle.
- Delete it when no longer needed.
Security and reliability
- Use HTTPS: Webhook URLs should be served over HTTPS.
- Authenticate requests: Configure request headers (such as
Authorization) in the webhook settings. Validate these on your server before processing the payload. BeyondWords doesn’t sign payloads with a shared secret. Authentication uses the headers you add. - Allowlist static IPs: If your endpoint is behind a firewall, enable static IP and allowlist the BeyondWords egress addresses.
- Respond quickly: Return a
2xxresponse promptly. Process the payload asynchronously if needed. - Handle retries: If a request times out after your server received it, BeyondWords may send it again. Make your handler idempotent so duplicate notifications for the same
content_idandaction_typedon’t cause problems. - Map content reliably: Prefer
source_idovertitleor URLs, which can change.
FAQs
When does audio.updated fire?
When does audio.updated fire?
audio.updated fires when audio/video generation or regeneration completes successfully, when the content item reaches the processed state. It doesn’t fire when generation starts, only when it finishes. If generation fails, audio.error fires instead. Content items with generate_audio set to false send content.ready instead.How do I map a webhook back to my CMS article?
How do I map a webhook back to my CMS article?
Use
source_id in the payload. This is the external ID you set when creating content (your CMS article ID, WordPress post ID, RSS guid, etc.). If you didn’t set a source_id, use content_id and store the mapping in your system, or look up content in the BeyondWords dashboard.What should my endpoint return?
What should my endpoint return?
Return any
2xx HTTP status code to acknowledge receipt. A 4xx or 5xx response counts as a failure and isn’t retried. Only connection failures and timeouts are retried.Do webhooks include video?
Do webhooks include video?
Yes. Although event names reference audio, payloads describe the whole content item. Check the
media array for generated assets. For full player configuration including video, use the player API after receiving the webhook.Can I use webhooks with Magic Embed or WordPress?
Can I use webhooks with Magic Embed or WordPress?
Yes. Any integration that creates content in BeyondWords can trigger webhooks when processing completes. Set a stable
source_id in your embed code or CMS integration so webhook payloads map cleanly to your articles. See Magic Embed and WordPress.How are webhooks different from polling the API?
How are webhooks different from polling the API?
Webhooks push notifications to your server when events occur. Polling requires your server to repeatedly call the content API or player API to check whether processing has finished. Webhooks are more efficient for workflows that need to react promptly when generation completes.