Schedulin Webhooks API
The Webhooks API from Schedulin — 5 operation(s) for webhooks.
The Webhooks API from Schedulin — 5 operation(s) for webhooks.
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/schedulin-app:schedulin-app-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: Schedulin Webhooks API
version: 0.1.0
description: 'Schedulin API for social media management.
## Authentication
All API requests require authentication via the `x-api-key` header.
You can generate an API key from your Schedulin dashboard.
```
x-api-key: your-api-key
```'
servers:
- url: https://api.schedulin.app
security:
- apiKey: []
tags:
- name: Webhooks
paths:
/v0/webhooks:
get:
operationId: v0.webhooks.list
summary: List webhook endpoints
description: List the organization's webhook endpoints. Signing secrets are masked.
tags:
- Webhooks
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/WebhookEndpoint'
required:
- data
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'422':
$ref: '#/components/responses/ValidationFailed'
'429':
$ref: '#/components/responses/RateLimited'
'500':
$ref: '#/components/responses/InternalServerError'
x-fern-sdk-group-name: webhooks
x-fern-sdk-method-name: list
security:
- apiKey: []
- oauth2:
- webhooks:read
post:
operationId: v0.webhooks.create
summary: Create a webhook endpoint
description: Register an HTTPS endpoint for event deliveries. The response includes the signing secret ONCE — store it; later reads return a masked value.
tags:
- Webhooks
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
url:
type: string
maxLength: 2048
format: uri
events:
type: array
minItems: 1
maxItems: 5
items:
enum:
- post.published
- post.failed
- generation.completed
- generation.failed
- social_account.connected
type: string
description:
type: string
maxLength: 500
required:
- url
- events
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/WebhookEndpoint'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'409':
$ref: '#/components/responses/Conflict'
'422':
$ref: '#/components/responses/ValidationFailed'
'429':
$ref: '#/components/responses/RateLimited'
'500':
$ref: '#/components/responses/InternalServerError'
x-fern-sdk-group-name: webhooks
x-fern-sdk-method-name: create
security:
- apiKey: []
- oauth2:
- webhooks:write
/v0/webhooks/{id}:
get:
operationId: v0.webhooks.retrieve
summary: Get a webhook endpoint
description: Retrieve one webhook endpoint, including failure counters. The signing secret is masked.
tags:
- Webhooks
parameters:
- name: id
in: path
required: true
schema:
type: string
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/WebhookEndpoint'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'422':
$ref: '#/components/responses/ValidationFailed'
'429':
$ref: '#/components/responses/RateLimited'
'500':
$ref: '#/components/responses/InternalServerError'
x-fern-sdk-group-name: webhooks
x-fern-sdk-method-name: retrieve
security:
- apiKey: []
- oauth2:
- webhooks:read
patch:
operationId: v0.webhooks.update
summary: Update a webhook endpoint
description: Update URL, subscribed events, description, or enabled state. Re-enabling resets the failure streak.
tags:
- Webhooks
parameters:
- name: id
in: path
required: true
schema:
type: string
requestBody:
required: false
content:
application/json:
schema:
type: object
properties:
url:
type: string
maxLength: 2048
format: uri
events:
type: array
minItems: 1
maxItems: 5
items:
enum:
- post.published
- post.failed
- generation.completed
- generation.failed
- social_account.connected
type: string
description:
anyOf:
- type: string
maxLength: 500
- type: 'null'
enabled:
type: boolean
required: []
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/WebhookEndpoint'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'409':
$ref: '#/components/responses/Conflict'
'422':
$ref: '#/components/responses/ValidationFailed'
'429':
$ref: '#/components/responses/RateLimited'
'500':
$ref: '#/components/responses/InternalServerError'
x-fern-sdk-group-name: webhooks
x-fern-sdk-method-name: update
security:
- apiKey: []
- oauth2:
- webhooks:write
delete:
operationId: v0.webhooks.delete
summary: Delete a webhook endpoint
description: Delete a webhook endpoint and its delivery history. Deliveries already in flight are dropped.
tags:
- Webhooks
parameters:
- name: id
in: path
required: true
schema:
type: string
requestBody:
required: false
content:
application/json:
schema:
type: object
properties: {}
required: []
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
required:
- success
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'409':
$ref: '#/components/responses/Conflict'
'422':
$ref: '#/components/responses/ValidationFailed'
'429':
$ref: '#/components/responses/RateLimited'
'500':
$ref: '#/components/responses/InternalServerError'
x-fern-sdk-group-name: webhooks
x-fern-sdk-method-name: delete
security:
- apiKey: []
- oauth2:
- webhooks:write
/v0/webhooks/{id}/rotate-secret:
post:
operationId: v0.webhooks.rotateSecret
summary: Rotate the signing secret
description: Generate a new signing secret for the endpoint and return it ONCE. The old secret stops signing immediately.
tags:
- Webhooks
parameters:
- name: id
in: path
required: true
schema:
type: string
requestBody:
required: false
content:
application/json:
schema:
type: object
properties: {}
required: []
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/WebhookEndpoint'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'409':
$ref: '#/components/responses/Conflict'
'422':
$ref: '#/components/responses/ValidationFailed'
'429':
$ref: '#/components/responses/RateLimited'
'500':
$ref: '#/components/responses/InternalServerError'
x-fern-sdk-group-name: webhooks
x-fern-sdk-method-name: rotateSecret
security:
- apiKey: []
- oauth2:
- webhooks:write
/v0/webhooks/{id}/test:
post:
operationId: v0.webhooks.test
summary: Send a test delivery
description: Send a signed `ping` event to the endpoint URL and record it in the delivery history.
tags:
- Webhooks
parameters:
- name: id
in: path
required: true
schema:
type: string
requestBody:
required: false
content:
application/json:
schema:
type: object
properties: {}
required: []
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
properties:
deliveryId:
type: string
required:
- deliveryId
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'409':
$ref: '#/components/responses/Conflict'
'422':
$ref: '#/components/responses/ValidationFailed'
'429':
$ref: '#/components/responses/RateLimited'
'500':
$ref: '#/components/responses/InternalServerError'
x-fern-sdk-group-name: webhooks
x-fern-sdk-method-name: test
security:
- apiKey: []
- oauth2:
- webhooks:write
/v0/webhooks/{id}/deliveries:
get:
operationId: v0.webhooks.listDeliveries
summary: List deliveries for an endpoint
description: 'Delivery history for a webhook endpoint: event, status, attempts, last response code, and payload.'
tags:
- Webhooks
parameters:
- name: id
in: path
required: true
schema:
type: string
- name: limit
in: query
required: false
schema:
type: integer
minimum: 1
maximum: 100
default: 25
allowEmptyValue: true
allowReserved: true
- name: page
in: query
required: false
schema:
type: integer
minimum: 1
default: 1
allowEmptyValue: true
allowReserved: true
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/WebhookDelivery'
required:
- data
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'422':
$ref: '#/components/responses/ValidationFailed'
'429':
$ref: '#/components/responses/RateLimited'
'500':
$ref: '#/components/responses/InternalServerError'
x-fern-sdk-group-name: webhooks
x-fern-sdk-method-name: listDeliveries
security:
- apiKey: []
- oauth2:
- webhooks:read
components:
schemas:
WebhookDelivery:
type: object
properties:
id:
type: string
endpointId:
type: string
event:
type: string
payload:
type: object
propertyNames:
type: string
additionalProperties: {}
status:
enum:
- PENDING
- SUCCESS
- FAILED
type: string
attempts:
type: integer
responseStatus:
anyOf:
- type: integer
- type: 'null'
lastError:
anyOf:
- type: string
- type: 'null'
deliveredAt:
anyOf:
- type: string
format: date-time
x-native-type: date
- type: 'null'
createdAt:
type: string
format: date-time
x-native-type: date
required:
- id
- endpointId
- event
- payload
- status
- attempts
- responseStatus
- lastError
- deliveredAt
- createdAt
WebhookEndpoint:
type: object
properties:
id:
type: string
url:
type: string
secret:
type: string
events:
type: array
items:
enum:
- post.published
- post.failed
- generation.completed
- generation.failed
- social_account.connected
type: string
description:
anyOf:
- type: string
- type: 'null'
enabled:
type: boolean
consecutiveFailures:
type: integer
lastSuccessAt:
anyOf:
- type: string
format: date-time
x-native-type: date
- type: 'null'
lastFailureAt:
anyOf:
- type: string
format: date-time
x-native-type: date
- type: 'null'
disabledAt:
anyOf:
- type: string
format: date-time
x-native-type: date
- type: 'null'
createdAt:
type: string
format: date-time
x-native-type: date
updatedAt:
type: string
format: date-time
x-native-type: date
required:
- id
- url
- secret
- events
- description
- enabled
- consecutiveFailures
- lastSuccessAt
- lastFailureAt
- disabledAt
- createdAt
- updatedAt
ValidationErrorResponse:
type: object
description: 422 error. `data.fieldErrors` maps each invalid field to its messages; `data.formErrors` holds errors not tied to one field. `code` is "INPUT_VALIDATION_FAILED" for schema validation and "UNPROCESSABLE_CONTENT" for business-rule rejections, whose reason is also in `data.message`.
properties:
code:
type: string
description: '"INPUT_VALIDATION_FAILED" or "UNPROCESSABLE_CONTENT"'
status:
type: integer
message:
type: string
defined:
type: boolean
data:
type: object
properties:
message:
type: string
description: Human-readable reason (business-rule rejections only).
formErrors:
type: array
items:
type: string
fieldErrors:
type: object
additionalProperties:
type: array
items:
type: string
required:
- code
- status
- data
RateLimitErrorResponse:
type: object
description: '429 rate-limit error. Per-key request limits return `code: "RATE_LIMITED"` (also mirrored under `error`); the per-user limiter returns `code: "TOO_MANY_REQUESTS"`. Honor the `Retry-After` header.'
properties:
code:
type: string
status:
type: integer
message:
type: string
defined:
type: boolean
data:
type: object
additionalProperties: true
error:
type: object
properties:
code:
type: string
message:
type: string
required:
- code
- message
required:
- code
- status
ErrorResponse:
type: object
description: Error envelope. The machine-readable `code` and HTTP `status` are always present; the human-readable reason is in `message` / `data.message`.
properties:
code:
type: string
description: e.g. "BAD_REQUEST", "UNAUTHORIZED", "NOT_FOUND".
status:
type: integer
message:
type: string
defined:
type: boolean
data:
type: object
additionalProperties: true
properties:
message:
type: string
userMessage:
type: string
description: End-user-safe explanation, when available.
errorTag:
type: string
isRetryable:
type: boolean
required:
- code
- status
responses:
ValidationFailed:
description: 'Unprocessable request. Schema validation failures have `code: "INPUT_VALIDATION_FAILED"` and `data.fieldErrors` mapping each invalid field to its messages (nested issues name their full path, e.g. `media[0].url: ...`). Business-rule rejections (e.g. a `scheduledAt` in the past) have `code: "UNPROCESSABLE_CONTENT"` and carry the reason in `data.message` and `data.formErrors`.'
content:
application/json:
schema:
$ref: '#/components/schemas/ValidationErrorResponse'
example:
defined: false
code: INPUT_VALIDATION_FAILED
status: 422
message: Input validation failed
data:
formErrors: []
fieldErrors:
caption:
- 'Too small: expected string to have >=1 characters'
Forbidden:
description: Forbidden — the credential lacks the required scope or access.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
example:
defined: false
code: FORBIDDEN
status: 403
message: Forbidden
data:
message: Forbidden
Unauthorized:
description: Unauthorized — missing or invalid API key / access token.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
example:
defined: false
code: UNAUTHORIZED
status: 401
message: Unauthorized
data:
message: Unauthorized
NotFound:
description: Not Found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
example:
defined: false
code: NOT_FOUND
status: 404
message: Not Found
data:
message: Not Found
Conflict:
description: Conflict
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
example:
defined: false
code: CONFLICT
status: 409
message: Conflict
data:
message: Conflict
BadRequest:
description: Bad Request — the request isn't allowed in the resource's current state (e.g. editing a published post).
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
example:
defined: false
code: BAD_REQUEST
status: 400
message: Bad Request
data:
message: Bad Request
RateLimited:
description: Rate limit exceeded. Wait `Retry-After` seconds before retrying.
content:
application/json:
schema:
$ref: '#/components/schemas/RateLimitErrorResponse'
example:
code: RATE_LIMITED
status: 429
message: Rate limit exceeded. Retry after 12s.
error:
code: RATE_LIMITED
message: Rate limit exceeded. Retry after 12s.
headers:
Retry-After:
description: Seconds to wait before retrying.
schema:
type: integer
InternalServerError:
description: Internal Server Error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
example:
defined: false
code: INTERNAL_SERVER_ERROR
status: 500
message: Internal Server Error
data:
message: Internal Server Error
securitySchemes:
apiKey:
type: apiKey
in: header
name: x-api-key
description: API key for authentication
oauth2:
type: oauth2
description: OAuth2 authorization code flow (PKCE supported). Each operation lists the scope it requires.
flows:
authorizationCode:
authorizationUrl: https://api.schedulin.app/oauth/authorize
tokenUrl: https://api.schedulin.app/oauth/token
scopes:
posts:read: View posts and drafts
posts:write: Create, edit, and delete posts
tags:read: View tags
tags:write: Create, edit, and delete tags
social-accounts:read: View connected social accounts
social-accounts:write: Update and disconnect social accounts
channels:read: View channels
media:read: View media files
media:write: Upload and delete media files
analytics:read: View analytics data
org:read: View organization details
ai:read: View AI generation jobs and available voices
ai:write: Generate AI images and videos (spends AI credits)
webhooks:read: View webhook endpoints and delivery history
webhooks:write: Create, edit, and delete webhook endpoints