Every API here is available over the APIs.io API and to AI agents over MCP.
openapi: 3.2.0
info:
title: ShapelessAI Webhooks API
version: '1'
description: 'The social media team an agent can call. Publish to LinkedIn, X, Instagram, TikTok, YouTube, Facebook, Threads, Bluesky, Discord, Mastodon, Slack, Whop, Lemmy and Nostr, plus articles and newsletters on Tumblr, WordPress, DEV, Hashnode and Listmonk, with each network''s limits checked first; make images, AI video, edits of your own footage, carousels, thumbnails, recorded product demos, speech and subtitles, one call each; or hand the whole goal to the agent team as a job. Every refusal says what to do next (a connect link, a checkout link, the question to ask). Bearer API key (Settings -> API keys) or the hosted MCP''s OAuth token. Read the docs live, not from memory: https://shapelessai.com/llms-full.txt is every docs and capability page in one fetch, prose at https://shapelessai.com/docs. What exists and what is planned: https://shapelessai.com/api/capabilities (an x-status: planned operation answers 501 with a want door).'
servers:
- url: https://shapelessai.com
tags:
- name: Webhooks
paths:
/api/webhooks:
get:
summary: The account's webhook endpoints, each with its signing secret
operationId: getWebhooks
responses:
'200':
description: OK
'401':
description: No credential, or not valid.
'403':
description: The key is missing the "read" scope.
'429':
description: Over the key's rate limit (600 requests an hour).
security:
- apiKey:
- read
- oauth:
- read
x-scope: read
x-status: live
x-agentic-access:
action-class: connected
consequence: read
subject: optional
tags:
- Webhooks
post:
summary: 'Register an https URL for signed events: {url, events?, description?}; events…'
operationId: postWebhooks
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/WebhookCreate'
responses:
'200':
description: OK
'400':
description: Not an https URL, a private or internal address, an unknown event, or 10 endpoints already.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: No credential, or not valid.
'403':
description: The key is missing the "write" scope.
'429':
description: Over the key's rate limit (600 requests an hour).
callbacks:
postPublished:
'{$request.body#/url}':
$ref: '#/components/pathItems/post.published'
postFailed:
'{$request.body#/url}':
$ref: '#/components/pathItems/post.failed'
postComment:
'{$request.body#/url}':
$ref: '#/components/pathItems/post.comment'
postPlug:
'{$request.body#/url}':
$ref: '#/components/pathItems/post.plug'
security:
- apiKey:
- write
- oauth:
- write
x-scope: write
x-status: live
x-agentic-access:
action-class: acting
consequence: write
subject: required
audience: https://shapelessai.com
tags:
- Webhooks
/api/webhooks/{id}:
get:
summary: 'One endpoint and its delivery log, newest first (50): event, status…'
operationId: getWebhooksId
parameters:
- name: id
in: path
required: true
schema:
type: string
responses:
'200':
description: OK
'401':
description: No credential, or not valid.
'403':
description: The key is missing the "read" scope.
'404':
description: No such webhook.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: Over the key's rate limit (600 requests an hour).
security:
- apiKey:
- read
- oauth:
- read
x-scope: read
x-status: live
x-agentic-access:
action-class: connected
consequence: read
subject: optional
tags:
- Webhooks
patch:
summary: 'Edit an endpoint: {url?, events?, description?, disabled?, rotateSecret?}.'
operationId: patchWebhooksId
parameters:
- name: id
in: path
required: true
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/WebhookPatch'
responses:
'200':
description: OK
'400':
description: Nothing to change or a bad field.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: No credential, or not valid.
'403':
description: The key is missing the "write" scope.
'404':
description: No such webhook.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: Over the key's rate limit (600 requests an hour).
security:
- apiKey:
- write
- oauth:
- write
x-scope: write
x-status: live
x-agentic-access:
action-class: acting
consequence: write
subject: required
audience: https://shapelessai.com
tags:
- Webhooks
delete:
summary: Delete an endpoint; nothing still owed to it is sent
operationId: deleteWebhooksId
parameters:
- name: id
in: path
required: true
schema:
type: string
responses:
'200':
description: OK
'401':
description: No credential, or not valid.
'403':
description: The key is missing the "write" scope.
'404':
description: No such webhook.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: Over the key's rate limit (600 requests an hour).
security:
- apiKey:
- write
- oauth:
- write
x-scope: write
x-status: live
x-agentic-access:
action-class: acting
consequence: write
subject: required
audience: https://shapelessai.com
tags:
- Webhooks
/api/webhooks/{id}/test:
post:
summary: Send one signed webhook.test event now and answer {ok, status, error…
operationId: postWebhooksIdTest
parameters:
- name: id
in: path
required: true
schema:
type: string
responses:
'200':
description: OK
'401':
description: No credential, or not valid.
'403':
description: The key is missing the "write" scope.
'404':
description: No such webhook.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: Over the key's rate limit (600 requests an hour).
security:
- apiKey:
- write
- oauth:
- write
x-scope: write
x-status: live
x-agentic-access:
action-class: acting
consequence: write
subject: required
audience: https://shapelessai.com
tags:
- Webhooks
/api/webhooks/{id}/deliveries/{deliveryId}:
post:
summary: Send one logged delivery again now, same webhook-id, freshly signed; a failure…
operationId: postWebhooksIdDeliveriesDeliveryId
parameters:
- name: id
in: path
required: true
schema:
type: string
- name: deliveryId
in: path
required: true
schema:
type: string
responses:
'200':
description: OK
'401':
description: No credential, or not valid.
'403':
description: The key is missing the "write" scope.
'404':
description: No such delivery on this webhook.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: Over the key's rate limit (600 requests an hour).
security:
- apiKey:
- write
- oauth:
- write
x-scope: write
x-status: live
x-agentic-access:
action-class: acting
consequence: write
subject: required
audience: https://shapelessai.com
tags:
- Webhooks
components:
pathItems:
post.failed:
post:
summary: 'A post will not go out without a person: out of retries, refused by the platform or by a plan limit. data.post.error says why; a transient failure that is retried sends nothing.'
operationId: webhookPostFailed
parameters:
- name: webhook-id
in: header
required: true
schema:
type: string
description: 'Stable across retries: dedupe on it.'
- name: webhook-timestamp
in: header
required: true
schema:
type: string
description: Unix seconds; reject one far from now.
- name: webhook-signature
in: header
required: true
schema:
type: string
description: v1,<base64 HMAC-SHA256 of id.timestamp.body with the secret's decoded key>; any Standard Webhooks library verifies it.
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/PostEvent'
responses:
'200':
description: 'Received. Any non-2xx (or no answer in 5 s) is retried: 5 min, 30 min, 2 h, 5 h, 10 h, 14 h, 20 h, 24 h, then failed. Delivered seconds after the event, never on the publish path.'
post.comment:
post:
summary: 'One item of the post''s comment chain settled (the first comment is index 0). data.comment: {index, status sent|failed|skipped, url, error}.'
operationId: webhookPostComment
parameters:
- name: webhook-id
in: header
required: true
schema:
type: string
description: 'Stable across retries: dedupe on it.'
- name: webhook-timestamp
in: header
required: true
schema:
type: string
description: Unix seconds; reject one far from now.
- name: webhook-signature
in: header
required: true
schema:
type: string
description: v1,<base64 HMAC-SHA256 of id.timestamp.body with the secret's decoded key>; any Standard Webhooks library verifies it.
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/PostEvent'
responses:
'200':
description: 'Received. Any non-2xx (or no answer in 5 s) is retried: 5 min, 30 min, 2 h, 5 h, 10 h, 14 h, 20 h, 24 h, then failed. Delivered seconds after the event, never on the publish path.'
post.plug:
post:
summary: 'One of the post''s plugs settled. data.plug: {id, action, status fired|failed|expired, url, error}.'
operationId: webhookPostPlug
parameters:
- name: webhook-id
in: header
required: true
schema:
type: string
description: 'Stable across retries: dedupe on it.'
- name: webhook-timestamp
in: header
required: true
schema:
type: string
description: Unix seconds; reject one far from now.
- name: webhook-signature
in: header
required: true
schema:
type: string
description: v1,<base64 HMAC-SHA256 of id.timestamp.body with the secret's decoded key>; any Standard Webhooks library verifies it.
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/PostEvent'
responses:
'200':
description: 'Received. Any non-2xx (or no answer in 5 s) is retried: 5 min, 30 min, 2 h, 5 h, 10 h, 14 h, 20 h, 24 h, then failed. Delivered seconds after the event, never on the publish path.'
post.published:
post:
summary: A post went live on the platform (or you marked it posted). data.post.publishedLocation is its URL.
operationId: webhookPostPublished
parameters:
- name: webhook-id
in: header
required: true
schema:
type: string
description: 'Stable across retries: dedupe on it.'
- name: webhook-timestamp
in: header
required: true
schema:
type: string
description: Unix seconds; reject one far from now.
- name: webhook-signature
in: header
required: true
schema:
type: string
description: v1,<base64 HMAC-SHA256 of id.timestamp.body with the secret's decoded key>; any Standard Webhooks library verifies it.
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/PostEvent'
responses:
'200':
description: 'Received. Any non-2xx (or no answer in 5 s) is retried: 5 min, 30 min, 2 h, 5 h, 10 h, 14 h, 20 h, 24 h, then failed. Delivered seconds after the event, never on the publish path.'
schemas:
WebhookPatch:
type: object
properties:
url:
type: string
format: uri
events:
type: array
items:
type: string
enum:
- post.published
- post.failed
- post.comment
- post.plug
description:
type:
- string
- 'null'
maxLength: 200
disabled:
type: boolean
rotateSecret:
type: boolean
enum:
- true
additionalProperties: false
WebhookCreate:
type: object
properties:
url:
type: string
format: uri
description: https, on a public address.
events:
type: array
items:
type: string
enum:
- post.published
- post.failed
- post.comment
- post.plug
description: 'Default: every event.'
description:
type: string
maxLength: 200
required:
- url
additionalProperties: false
Error:
type: object
properties:
error:
type: string
required:
- error
PostEvent:
type: object
description: The body of every post event (Standard Webhooks shape). Verify webhook-signature with the endpoint's secret before trusting it; dedupe on webhook-id.
properties:
type:
type: string
enum:
- post.published
- post.failed
- post.comment
- post.plug
timestamp:
type: string
format: date-time
description: When it happened, not when it was delivered.
data:
type: object
properties:
post:
type: object
properties:
id:
type: string
status:
type: string
platform:
type:
- string
- 'null'
connectionId:
type:
- string
- 'null'
scheduledAt:
type: string
format: date-time
publishedAt:
type:
- string
- 'null'
format: date-time
publishedLocation:
type:
- string
- 'null'
error:
type:
- string
- 'null'
tagIds:
type: array
items:
type: string
repeatEveryDays:
type:
- integer
- 'null'
required:
- id
- status
comment:
type: object
description: 'post.comment only: the comment-chain item that settled (index 0 = the first comment).'
properties:
index:
type: integer
status:
type: string
enum:
- sent
- failed
- skipped
url:
type:
- string
- 'null'
error:
type:
- string
- 'null'
plug:
type: object
description: 'post.plug only: the plug that settled.'
properties:
id:
type: string
action:
type: string
status:
type: string
enum:
- fired
- failed
- expired
url:
type:
- string
- 'null'
error:
type:
- string
- 'null'
required:
- post
required:
- type
- timestamp
- data
securitySchemes:
apiKey:
type: http
scheme: bearer
description: slk_... key; scopes read, write, publish.
oauth:
type: oauth2
flows:
authorizationCode:
authorizationUrl: https://shapelessai.com/api/auth/mcp/authorize
tokenUrl: https://shapelessai.com/api/auth/mcp/token
scopes:
read: Read anything the account holds.
write: 'Create and edit: jobs, drafts, agents, Brand Memory.'
publish: Anything that goes out to a platform, or spends.
wiki: Write to the wiki at /vizipedia as this account, and nothing else. A key with `write` covers it.