Automation API and Webhooks
Use the Automation Hub to connect an authorized external tool or service to your workspace. It provides API keys for listing connected publishing accounts and creating posts, outbound webhooks for event notifications, and recent request and delivery logs.

Access the Automation Hub
Open Automation API from the workspace sidebar. The link is available when the Automation feature is enabled for your plan and workspace. If it is missing, ask the workspace owner to check the plan and team module permissions.
The API base URL shown on the page is specific to your installation. Use its Copy button rather than constructing a URL from memory.
Create and protect an API key
- In API keys, enter a recognizable name for the integration, such as n8n production.
- Select Create key.
- Copy the full key from the one-time dialog and store it in the external service's secret store. The full value cannot be displayed again after you close the dialog.
- Send it with API requests using either the Authorization header with a Bearer token or the X-Automation-Key header.
- When a key is no longer needed or may have been exposed, revoke it. Delete it to remove its record; any integration still using it will stop working.
New keys have accounts:read and posts:write permissions. The key list shows its name, permission set, shortened prefix, and last-used time.
Use the API
The API base URL shown in the Hub is followed by these endpoints:
- GET /me confirms the key and returns its workspace and permissions.
- GET /accounts lists active publishing accounts accessible to the current workspace. This endpoint requires accounts:read.
- POST /posts creates a post and requires posts:write.
For POST /posts, provide at least one accessible account ID. Add a caption, publicly reachable media_urls, and network_options as needed. Set mode to draft to save a draft, or scheduled to create a scheduled post. For scheduled posts, include schedule_at and, when needed, timezone. Set mode to publish_now only when you intend to request immediate publishing; test first with a draft or a controlled account.
The service validates account access and each network's content and media requirements. A request can fail if an account is inactive, unavailable to the workspace, or the post does not meet that network's rules. Check the response and the Recent automation logs section before retrying to avoid duplicate posts.
Send post-status webhooks to another service
- In Outbound webhooks, enter a name and the destination URL supplied by your integration.
- Enter the event names to receive, separated by commas. The interface lists post.published, post.failed, patreon.supporter.created, and twitch.stream.online as examples.
- Select Add webhook and confirm it appears as Active.
- Use Pause to stop delivery temporarily, Enable to resume, or Delete to remove the endpoint.
Each webhook has a signing secret shown in the workspace. Keep it private. Outgoing requests include the X-Automation-Event, X-Automation-Request-Id, X-Automation-Timestamp, and X-Automation-Signature headers. To verify a request, calculate sha256= followed by the HMAC-SHA256 of the timestamp, a period, and the raw request body, using the webhook signing secret; compare the result with the signature header. Verify the raw body before parsing it.
If a signing secret is exposed, pause or delete that webhook and create a replacement. Update the external service with the new secret before resuming delivery.
Review activity and troubleshoot
The Recent automation logs section shows the latest requests and webhook deliveries, including direction, event, time, status, and HTTP response code when available.
- 401 Unauthorized: confirm the key was copied correctly and has not been revoked.
- 403 Forbidden: check that the key has the permission required by the endpoint.
- 422 Unprocessable Entity: review the response for invalid account IDs, missing fields, or content and media requirements for the selected network.
- No accounts returned: switch to the intended workspace and confirm it has active, publishable accounts.
- Webhook delivery failed: verify the destination URL is reachable, the selected event matches, and the receiving service accepts the request. Use the log status to guide retries.
Treat API keys, webhook signing secrets, and log payloads as private workspace data. Do not paste them into screenshots, public issue reports, or shared documents.