ADMI ENTERPRISES s.r.o. Webhooks API
Subscriptions to post.published, post.failed and account.needs_reconnect, and test deliveries.
Subscriptions to post.published, post.failed and account.needs_reconnect, and test deliveries.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/preflight-social:preflight-social-webhooks-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Preflight Webhooks API
version: 2026.10.24
summary: Schedule, validate and publish social media posts to twelve networks.
description: 'Preflight (preflight.social) is a social media scheduler that checks every post against each network''s real publishing rules before it leaves. This is its REST API: upload a file, create and schedule a post to YouTube, TikTok, Instagram, Facebook, Threads, LinkedIn, Pinterest, Bluesky, Mastodon, Telegram, Discord and Tumblr, read its figures, act on comments, edit or take it down. The same workspace is reachable by AI assistants over MCP at https://preflight.social/mcp. Prose documentation: https://preflight.social/documentation. API keys, webhooks and the MCP server come with every plan, Free included.'
termsOfService: https://preflight.social/terms
contact:
name: Preflight
url: https://preflight.social
email: info@preflight.social
servers:
- url: https://preflight.social/v1
security:
- apiKey: []
tags:
- name: Webhooks
description: Subscriptions to post.published, post.failed and account.needs_reconnect, and test deliveries.
paths:
/workspace/webhooks:
get:
tags:
- Webhooks
operationId: listWebhooks
summary: Subscriptions
description: Scope webhooks:read.
responses:
'200':
description: Subscriptions, without secrets.
content:
application/json:
schema:
type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/Webhook'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
post:
tags:
- Webhooks
operationId: createWebhook
summary: Subscribe an https address to events
description: 'Scope webhooks:write. The secret is shown once. Deliveries carry x-preflight-event, x-preflight-id, x-preflight-timestamp and x-preflight-signature-v2 (t=…,v2=hex HMAC-SHA256 of `${t}.${body}`); answer 2xx within 10 seconds or it is retried five times. Events: post.published (once per target, when live), post.failed (once retrying has stopped), account.needs_reconnect (once when a channel stops working and a refresh could not fix it).'
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- url
properties:
url:
type: string
format: uri
description: https and public.
events:
type: array
items:
type: string
enum:
- post.published
- post.failed
- account.needs_reconnect
description: Defaults to all of them.
responses:
'201':
description: Created, with the secret.
content:
application/json:
schema:
$ref: '#/components/schemas/Webhook'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'402':
$ref: '#/components/responses/PaymentRequired'
'403':
$ref: '#/components/responses/Forbidden'
/workspace/webhooks/{id}:
parameters:
- name: id
in: path
required: true
schema:
type: string
format: uuid
delete:
tags:
- Webhooks
operationId: deleteWebhook
summary: Unsubscribe
responses:
'204':
description: Deleted.
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
/workspace/webhooks/{id}/test:
parameters:
- name: id
in: path
required: true
schema:
type: string
format: uuid
post:
tags:
- Webhooks
operationId: testWebhook
summary: Send a test delivery
description: 'Sends one signed sample of an event to the webhook now, with "test": true in the envelope, and answers with what the receiver said. Not retried. Without event, the first event the webhook listens to. Scope webhooks:write, up to 10 a minute.'
requestBody:
required: false
content:
application/json:
schema:
type: object
properties:
event:
type: string
enum:
- post.published
- post.failed
- account.needs_reconnect
responses:
'200':
description: The receiver answered 2xx.
content:
application/json:
schema:
type: object
properties:
delivered:
const: true
event:
type: string
deliveryId:
type: string
format: uuid
status:
type: integer
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'424':
description: 'webhook_delivery_failed: the receiver answered something other than 2xx (status) or could not be reached (status null).'
content:
application/json:
schema:
type: object
properties:
error:
type: object
properties:
code:
type: string
const: webhook_delivery_failed
message:
type: string
event:
type: string
deliveryId:
type: string
status:
type:
- integer
- 'null'
'429':
$ref: '#/components/responses/TooMany'
components:
responses:
BadRequest:
description: The body did not validate (invalid_request; field says which).
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
TooMany:
description: Rate limited; retry after the Retry-After header.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
NotFound:
description: No such post, file or account in this workspace.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
Unauthorized:
description: Missing, expired or unrecognised key.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
PaymentRequired:
description: 'The plan''s allowance: post_limit, upload_limit, file_too_large, channel_limit, api_not_on_plan, ai_limit, ai_daily_limit, ai_not_in_plan. Carries limit and upgradeTo.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
Forbidden:
description: The key lacks the scope for this call.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
schemas:
ValidationIssue:
type: object
required:
- severity
- message
properties:
platform:
$ref: '#/components/schemas/Platform'
description: Absent for a problem with the post as a whole, such as a file.
severity:
type: string
enum:
- error
- warning
message:
type: string
code:
type: string
description: 'For a plan limit: post_limit, upload_limit or channel_limit.'
Platform:
type: string
enum:
- youtube
- tiktok
- instagram
- facebook
- threads
- twitter
- linkedin
- pinterest
- bluesky
- mastodon
- telegram
- discord
- tumblr
description: A network's name. twitter (X) is text-only and not offered to new accounts.
Error:
type: object
required:
- error
properties:
error:
type: object
required:
- code
- message
properties:
code:
type: string
description: 'Stable: invalid_request, unauthorized, forbidden, not_found, post_limit, upload_limit, file_too_large, channel_limit, api_not_on_plan, ai_limit, ai_daily_limit, ai_not_in_plan, account_not_connected, media_unusable, already_started, targets_locked, in_flight, nothing_to_retry, nothing_waiting, unsupported, not_published, in_use, video_on_youtube, payload_too_large, validation_failed, ai_declined, rate_limited, ai_unavailable.'
message:
type: string
description: Meant to be read by a person.
field:
type: string
description: 'For invalid_request: which field.'
limit:
type: integer
description: 'For a plan refusal: the allowance.'
upgradeTo:
type: string
description: 'For a plan refusal: the first plan that would allow it.'
issues:
type: array
items:
$ref: '#/components/schemas/ValidationIssue'
description: For validation_failed.
Webhook:
type: object
properties:
id:
type: string
format: uuid
url:
type: string
format: uri
events:
type: array
items:
type: string
enum:
- post.published
- post.failed
- account.needs_reconnect
active:
type: boolean
secret:
type: string
description: whsec_…, shown once, on creation only.
secretHint:
type: string
description: 'In the list: whsec_… and the secret''s last four characters.'
examples:
- whsec_…x9Qa
createdAt:
type: string
format: date-time
securitySchemes:
apiKey:
type: http
scheme: bearer
bearerFormat: sk_live_…
description: 'An API key from Settings → API keys (every plan). Scopes: posts:read, posts:write (drafts), posts:publish (anything that goes live), media:read, media:write, webhooks:read, webhooks:write, or * for everything. A missing scope answers 403 forbidden and names it.'
externalDocs:
description: Documentation
url: https://preflight.social/documentation