Peal API
https://api.example.comPosts
Posts, from draft to published, with their tags and signatures.
- GETList scheduled posts
/api/v1/posts/calendar - GETList posts
/api/v1/posts - POSTCreate and send a post
/api/v1/posts - POSTCreate and send several posts
/api/v1/posts/bulk - POSTImport posts from CSV
/api/v1/posts/import - POSTValidate a post
/api/v1/posts/validate - GETGet a post
/api/v1/posts/{postId} - PUTUpdate a draft
/api/v1/posts/{postId} - GETWait for a post's outcome
/api/v1/posts/{postId}/outcome - GETList a post's attempts
/api/v1/posts/{postId}/attempts - PUTSet a post's tags
/api/v1/posts/{postId}/tags - POSTDuplicate a post
/api/v1/posts/{postId}/duplicate - POSTSchedule a draft
/api/v1/posts/{postId}/schedule - POSTReschedule a post
/api/v1/posts/{postId}/reschedule - POSTAdd a post to a queue
/api/v1/posts/{postId}/queue - POSTUnschedule a post
/api/v1/posts/{postId}/unschedule - POSTRepost on a channel
/api/v1/posts/{postId}/targets/{targetId}/repost - DELETERemove a channel from a post
/api/v1/posts/{postId}/targets/{targetId} - POSTConfirm a post on a channel
/api/v1/posts/{postId}/targets/{targetId}/confirm - POSTPublish a channel without its first comment
/api/v1/posts/{postId}/targets/{targetId}/leave-out-rest - POSTUnpublish a post on a channel
/api/v1/posts/{postId}/targets/{targetId}/unpublish - POSTEdit a published post on a channel
/api/v1/posts/{postId}/targets/{targetId}/edit - POSTUnpublish a post
/api/v1/posts/{postId}/unpublish - GETList a post's changes
/api/v1/posts/{postId}/changes - POSTCancel a post
/api/v1/posts/{postId}/cancel - POSTCreate a draft
/api/v1/posts/drafts - GETList drafts
/api/v1/posts/drafts - DELETEDiscard a draft
/api/v1/posts/drafts/{postId} - GETList tags
/api/v1/posts/tags - POSTCreate a tag
/api/v1/posts/tags - PATCHUpdate a tag
/api/v1/posts/tags/{tagId} - DELETEDelete a tag
/api/v1/posts/tags/{tagId} - GETList signatures
/api/v1/posts/signatures - POSTCreate a signature
/api/v1/posts/signatures - PUTUpdate a signature
/api/v1/posts/signatures/{signatureId} - DELETEDelete a signature
/api/v1/posts/signatures/{signatureId}
Approvals
Posts that wait for an approval: comments, approvals, requested changes and review links.
- GETGet the review settings
/api/v1/approvals/settings - PUTUpdate the review settings
/api/v1/approvals/settings - GETList pending approvals
/api/v1/approvals - GETGet a post's review
/api/v1/approvals/{postId} - POSTComment on a post
/api/v1/approvals/{postId}/comments - PATCHResolve a thread
/api/v1/approvals/{postId}/comments/{commentId} - POSTApprove a post
/api/v1/approvals/{postId}/approve - POSTRequest changes to a post
/api/v1/approvals/{postId}/request-changes - GETList a post's review links
/api/v1/approvals/{postId}/links - POSTCreate a review link
/api/v1/approvals/{postId}/links - DELETERevoke a review link
/api/v1/approvals/links/{linkId}
Channels
The accounts and websites a workspace posts to, what each takes, and their default options.
- GETList channels
/api/v1/channels - GETSearch channels
/api/v1/channels/search - GETList connectable platforms
/api/v1/channels/platforms - POSTConnect a website
/api/v1/channels/websites - POSTConnect a website with a key
/api/v1/channels/websites/keys - POSTConnect a chat
/api/v1/channels/chats - POSTStart signing in to a website
/api/v1/channels/websites/sign-in/{platform} - POSTComplete signing in to a website
/api/v1/channels/websites/sign-in/{platform}/callback - POSTStart connecting an account
/api/v1/channels/connect/{platform} - POSTComplete connecting an account
/api/v1/channels/connect/{platform}/callback - POSTChoose the accounts to connect
/api/v1/channels/connect/{platform}/accounts - POSTStart reconnecting a channel
/api/v1/channels/{channelId}/reconnect - PATCHRename a channel
/api/v1/channels/{channelId} - DELETEDisconnect a channel
/api/v1/channels/{channelId} - POSTTurn a channel off
/api/v1/channels/{channelId}/disable - POSTTurn a channel back on
/api/v1/channels/{channelId}/enable - GETDescribe every platform
/api/v1/channels/capabilities - GETDescribe a channel
/api/v1/channels/{channelId}/capabilities - GETGet a channel's default options
/api/v1/channels/{channelId}/default-options - PUTSet a channel's default options
/api/v1/channels/{channelId}/default-options - DELETEClear a channel's default options
/api/v1/channels/{channelId}/default-options - GETList a channel's lookups
/api/v1/channels/{channelId}/lookups - POSTRun a channel's lookup
/api/v1/channels/{channelId}/lookups/{name} - GETList channel sets
/api/v1/channels/sets - POSTCreate a channel set
/api/v1/channels/sets - PUTUpdate a channel set
/api/v1/channels/sets/{channelSetId} - DELETEDelete a channel set
/api/v1/channels/sets/{channelSetId} - POSTCreate a connect link
/api/v1/channels/connect-links - GETList connect links
/api/v1/channels/connect-links - GETGet a connect link
/api/v1/channels/connect-links/{linkId} - DELETERevoke a connect link
/api/v1/channels/connect-links/{linkId} - GETRead a TikTok channel's creator
/api/v1/channels/{channelId}/tiktok-creator
Media
The media library: uploads, and images, voice-overs, transcripts, videos and slideshows made for it.
- GETList media
/api/v1/media - POSTStart an upload
/api/v1/media - POSTImport media from a URL
/api/v1/media/import - GETGet media
/api/v1/media/{mediaId} - PATCHDescribe media
/api/v1/media/{mediaId} - DELETEDelete media
/api/v1/media/{mediaId} - POSTComplete an upload
/api/v1/media/{mediaId}/complete - GETGet where media is used
/api/v1/media/{mediaId}/usage - POSTMake an image into the media library
/api/v1/media/images - POSTMake a voice-over into the media library
/api/v1/media/voiceovers - POSTTranscribe a file of the media library
/api/v1/media/{mediaId}/transcriptions - POSTMake a video into the media library
/api/v1/media/videos/generations - GETList video jobs
/api/v1/media/videos/generations - GETGet a video job
/api/v1/media/videos/generations/{generationId} - POSTCompose a slide video into the media library
/api/v1/media/slideshows - GETList slide video jobs
/api/v1/media/slideshows - POSTRender a Shotstack Edit into the media library
/api/v1/media/slideshows/edits - GETGet a slide video job
/api/v1/media/slideshows/{slideshowId}
Inbox
Comments, direct messages and reviews, and the answers to them.
- GETList the inbox's threads
/api/v1/inbox/comments/threads - GETGet a thread
/api/v1/inbox/comments/threads/{threadId} - GETGet a channel's inbox abilities
/api/v1/inbox/comments/channels/{channelId}/abilities - POSTReply to a comment
/api/v1/inbox/comments/{commentId}/replies - POSTMark a comment answered
/api/v1/inbox/comments/{commentId}/answered - POSTModerate a comment
/api/v1/inbox/comments/{commentId}/moderation - POSTConfirm an unconfirmed reply
/api/v1/inbox/comments/replies/{replyId}/confirmation - DELETEWithdraw a reply
/api/v1/inbox/comments/replies/{replyId} - GETList the conversations
/api/v1/inbox/messages/conversations - GETGet a conversation
/api/v1/inbox/messages/conversations/{conversationId} - POSTSend a direct message
/api/v1/inbox/messages/conversations/{conversationId}/messages - POSTSend a private reply to a comment
/api/v1/inbox/messages/private-replies - GETGet a private reply
/api/v1/inbox/messages/private-replies/{privateReplyId} - POSTConfirm an unconfirmed private reply
/api/v1/inbox/messages/private-replies/{privateReplyId}/confirm - POSTMark a conversation read
/api/v1/inbox/messages/conversations/{conversationId}/read - GETGet the direct messages' settings
/api/v1/inbox/messages/settings - PUTTurn a channel's direct messages on or off
/api/v1/inbox/messages/channels/{channelId} - PUTLet an application read the direct messages
/api/v1/inbox/messages/applications - POSTConfirm an unconfirmed message
/api/v1/inbox/messages/outgoing/{messageId}/confirmation - GETList the locations' reviews
/api/v1/inbox/reviews/threads - GETGet a location's reviews
/api/v1/inbox/reviews/threads/{threadId} - PUTReply to a review
/api/v1/inbox/reviews/{reviewId}/reply - DELETEDelete a review's reply
/api/v1/inbox/reviews/{reviewId}/reply - POSTMark a review answered
/api/v1/inbox/reviews/{reviewId}/answered
Automations
Queues, recycling, follow-ups, comment rules and feeds, which post or answer on their own.
- GETList comment rules
/api/v1/automations/comment-rules - POSTStart a comment rule
/api/v1/automations/comment-rules - GETList where comment rules answer
/api/v1/automations/comment-rules/platforms - GETGet a comment rule
/api/v1/automations/comment-rules/{ruleId} - PATCHUpdate a comment rule
/api/v1/automations/comment-rules/{ruleId} - DELETEStop a comment rule
/api/v1/automations/comment-rules/{ruleId} - GETList queues
/api/v1/automations/queues - POSTCreate a queue
/api/v1/automations/queues - GETGet a queue
/api/v1/automations/queues/{queueId} - PUTUpdate a queue
/api/v1/automations/queues/{queueId} - DELETEDelete a queue
/api/v1/automations/queues/{queueId} - GETPreview a queue's slots
/api/v1/automations/queues/{queueId}/slots - POSTReshuffle a queue
/api/v1/automations/queues/{queueId}/reshuffle - GETList recycling rules
/api/v1/automations/recycling - POSTStart repeating a post
/api/v1/automations/recycling - GETGet a recycling rule
/api/v1/automations/recycling/{ruleId} - PATCHUpdate a recycling rule
/api/v1/automations/recycling/{ruleId} - DELETEStop a recycling rule
/api/v1/automations/recycling/{ruleId} - POSTResume a recycling rule
/api/v1/automations/recycling/{ruleId}/resume - GETList follow-up rules
/api/v1/automations/follow-ups - POSTStart a follow-up rule
/api/v1/automations/follow-ups - GETList where follow-up rules act
/api/v1/automations/follow-ups/platforms - GETGet a follow-up rule
/api/v1/automations/follow-ups/{ruleId} - PATCHUpdate a follow-up rule
/api/v1/automations/follow-ups/{ruleId} - DELETEStop a follow-up rule
/api/v1/automations/follow-ups/{ruleId} - POSTApprove a follow-up rule
/api/v1/automations/follow-ups/{ruleId}/approve - GETList feeds
/api/v1/automations/feeds - POSTAdd a feed
/api/v1/automations/feeds - POSTPreview a feed
/api/v1/automations/feeds/preview - GETGet a feed
/api/v1/automations/feeds/{feedId} - PATCHUpdate a feed
/api/v1/automations/feeds/{feedId} - DELETEDelete a feed
/api/v1/automations/feeds/{feedId} - GETList a feed's items
/api/v1/automations/feeds/{feedId}/items
Analytics
How posts and channels did.
- GETSummarize the workspace's analytics
/api/v1/analytics/summary - GETGet the workspace's analytics dashboard
/api/v1/analytics/dashboard - GETGet a channel's analytics over time
/api/v1/analytics/channels/{channelId} - GETExport the workspace's analytics
/api/v1/analytics/export - GETGet when a channel's posts did best
/api/v1/analytics/best-times - GETGet a post's analytics
/api/v1/analytics/posts/{postId}
Ads
Connect ad accounts, read how ads did, and boost posts.
- GETGet what the server offers of ads
/api/v1/ads - GETList ad network sign-ins
/api/v1/ads/connections - POSTStart an ad network sign-in
/api/v1/ads/connections/{network} - POSTComplete an ad network sign-in
/api/v1/ads/connections/{network}/callback - GETList the ad accounts a sign-in reaches
/api/v1/ads/connections/{connectionId}/accounts - POSTConnect ad accounts
/api/v1/ads/connections/{connectionId}/accounts - DELETERemove an ad network sign-in
/api/v1/ads/connections/{connectionId} - GETList ad accounts
/api/v1/ads/accounts - GETGet an ad account and its spending
/api/v1/ads/accounts/{accountId} - DELETEDisconnect an ad account
/api/v1/ads/accounts/{accountId} - PUTAllow an ad account to spend, with a monthly ceiling
/api/v1/ads/accounts/{accountId}/spending - GETList an ad account's campaigns
/api/v1/ads/accounts/{accountId}/campaigns - GETList an ad account's ads
/api/v1/ads/accounts/{accountId}/ads - GETGet an ad account's daily numbers
/api/v1/ads/accounts/{accountId}/insights - GETGet a post's organic and paid numbers
/api/v1/ads/posts/{postId} - POSTCheck a boost and what it would commit
/api/v1/ads/boosts/quote - POSTBoost a published post
/api/v1/ads/boosts - GETList boosts
/api/v1/ads/boosts - GETGet a boost
/api/v1/ads/boosts/{boostId} - POSTPause a boost
/api/v1/ads/boosts/{boostId}/pause - POSTResume a paused boost
/api/v1/ads/boosts/{boostId}/resume - POSTStop a boost
/api/v1/ads/boosts/{boostId}/stop - GETList the ads audit trail
/api/v1/ads/audit
Articles
Articles published to the websites connected as channels.
- GETList articles
/api/v1/articles - POSTCreate an article
/api/v1/articles - GETGet an article
/api/v1/articles/{articleId} - PATCHUpdate an article
/api/v1/articles/{articleId} - DELETEDelete an article
/api/v1/articles/{articleId} - POSTSchedule an article
/api/v1/articles/{articleId}/schedule - POSTUnschedule an article
/api/v1/articles/{articleId}/unschedule - POSTSend an article again
/api/v1/articles/{articleId}/retry - POSTUnpublish an article
/api/v1/articles/{articleId}/unpublish - POSTUpdate an article on its site
/api/v1/articles/{articleId}/site
Links
The short links in posts, and how often they were opened.
- GETGet the short links' status
/api/v1/links/status - PUTSet the short links' default
/api/v1/links/settings - GETList the short links
/api/v1/links - GETGet a short link
/api/v1/links/{linkId}
Webhook endpoints
The endpoints a workspace’s events are sent to.
- GETList webhook endpoints
/api/v1/webhooks - POSTCreate a webhook endpoint
/api/v1/webhooks - GETList deliveries across endpoints
/api/v1/webhooks/deliveries - POSTSend many deliveries again
/api/v1/webhooks/deliveries/redeliver - GETGet a webhook endpoint
/api/v1/webhooks/{endpointId} - PATCHUpdate a webhook endpoint
/api/v1/webhooks/{endpointId} - DELETEDelete a webhook endpoint
/api/v1/webhooks/{endpointId} - POSTRotate a webhook endpoint's secret
/api/v1/webhooks/{endpointId}/secret - POSTSend a test event
/api/v1/webhooks/{endpointId}/test - GETList an endpoint's deliveries
/api/v1/webhooks/{endpointId}/deliveries - POSTSend a delivery again
/api/v1/webhooks/{endpointId}/deliveries/{deliveryId}/redeliver
Assistant
Suggestions for a post’s text, and the AI providers and models a workspace uses.
- GETGet the assistant's status
/api/v1/assistant - POSTSuggest a change to a post's text
/api/v1/assistant/suggestions - GETGet the workspace's image provider
/api/v1/assistant/image-provider - PUTSet the workspace's image provider
/api/v1/assistant/image-provider - DELETERemove the workspace's image provider
/api/v1/assistant/image-provider - GETGet the workspace's text provider
/api/v1/assistant/text-provider - PUTSet the workspace's text provider
/api/v1/assistant/text-provider - DELETERemove the workspace's text provider
/api/v1/assistant/text-provider - POSTTest the workspace's text provider
/api/v1/assistant/text-provider/test - GETList the workspace's AI providers
/api/v1/assistant/providers - PUTConnect an AI provider
/api/v1/assistant/providers/{provider} - DELETEDisconnect an AI provider
/api/v1/assistant/providers/{provider} - POSTTest an AI provider
/api/v1/assistant/providers/{provider}/test - GETList the workspace's models
/api/v1/assistant/models - PUTChoose a model for a use
/api/v1/assistant/models/{capability} - DELETEUnset a use's model
/api/v1/assistant/models/{capability}
Workspace
The workspace itself: members, invitations, API keys, activity, billing and usage.
- GETGet the workspace's security policy
/api/v1/workspace/security - GETList the workspace's activity
/api/v1/workspace/activity - POSTCreate an API key
/api/v1/workspace/api-keys - GETList API keys
/api/v1/workspace/api-keys - DELETERevoke an API key
/api/v1/workspace/api-keys/{apiKeyId} - GETList members
/api/v1/workspace/members - GETList invitations
/api/v1/workspace/invitations - POSTInvite someone
/api/v1/workspace/invitations - DELETERevoke an invitation
/api/v1/workspace/invitations/{invitationId} - GETGet the workspace's billing
/api/v1/workspace/billing - GETGet the workspace's standing
/api/v1/workspace/billing/standing - GETGet the workspace's usage
/api/v1/workspace/usage - GETGet the partner account's usage per customer
/api/v1/workspace/usage/partner
Partner
A partner’s customer workspaces, its usage, and the partner account itself.
- GETRead the partner account
/api/v1/partner - GETSee which customers need attention
/api/v1/partner/overview - GETList the partner's workspaces
/api/v1/partner/workspaces - POSTCreate a workspace for a customer
/api/v1/partner/workspaces - GETRead a workspace of the partner
/api/v1/partner/workspaces/{workspaceId} - PATCHChange a workspace of the partner
/api/v1/partner/workspaces/{workspaceId} - DELETEDelete a workspace of the partner
/api/v1/partner/workspaces/{workspaceId} - POSTMove a channel to another workspace of the partner
/api/v1/partner/workspaces/{workspaceId}/channels/{channelId}/move - GETRead the workspace's partner account
/api/v1/partner/account - POSTOpen a partner account
/api/v1/partner/account - PATCHChange the partner account
/api/v1/partner/account - DELETEClose the partner account
/api/v1/partner/account - GETList partner keys
/api/v1/partner/account/keys - POSTCreate a partner key
/api/v1/partner/account/keys - DELETERevoke a partner key
/api/v1/partner/account/keys/{partnerKeyId} - GETSee which of the partner's customers need attention
/api/v1/partner/account/overview - GETList the partner account's workspaces
/api/v1/partner/account/workspaces - GETGet the partner's usage per customer
/api/v1/partner/customer-usage
Credential
What the credential of a request is, and what it may do.
System
Health checks and the API’s changelog.
- GETCheck that the server is up
/api/health - GETCheck that the server can take traffic
/api/ready - GETList what each release of the API changed
/api/changelog
Webhooks
- POSTA post was scheduled, or moved to another time
post.scheduled - POSTA scheduled post, or one that waited, was taken back to draft
post.unscheduled - POSTA post went live on a channel
post.published - POSTA post did not go out on a channel
post.failed - POSTPeal cannot tell whether a post went live on a channel
post.unconfirmed - POSTA post was cancelled
post.cancelled - POSTEvery channel of a post has its result
post.finished - POSTA post was deleted from a channel's platform
post.unpublished - POSTPeal could not delete a post from a channel's platform
post.unpublish_failed - POSTA post's text was edited on a channel's platform
post.edited - POSTPeal could not edit a post's text on a channel's platform
post.edit_failed - POSTA post waits for an approval
post.approval_requested - POSTA post that waited was approved
post.approved - POSTChanges were asked for on a post that waited
post.changes_requested - POSTAn account was connected, or a channel authorized again
channel.connected - POSTA channel was disconnected
channel.disconnected - POSTA channel's authorization stopped working
channel.reconnect_needed - POSTA member turned a channel off
channel.disabled - POSTA member turned a channel back on
channel.enabled - POSTA channel's authorization ends soon, and cannot be renewed
channel.expiring - POSTAn article went to its website
article.published - POSTAn article did not go to its website
article.failed - POSTA file was read, and can go in posts
media.ready - POSTA file was refused, or could not be read
media.failed - POSTSomeone commented under a post that went live
comment.received - POSTA reply to a comment went out from Peal
comment.replied - POSTSomeone reviewed a location a channel posts as
review.received - POSTA reply to a review went out from Peal
review.replied - POSTSomeone sent a direct message to a channel's account
message.received - POSTA direct message went out from Peal
message.sent - POSTA boost was made and turned on
boost.started - POSTA member paused a boost
boost.paused - POSTA member ran a paused boost again
boost.resumed - POSTA member stopped a boost for good
boost.stopped - POSTA boost's end date passed
boost.ended - POSTA boost could not be made, and nothing ran
boost.failed - POSTPeal cannot tell whether a boost runs
boost.unconfirmed - POSTA boost spent its whole total budget
boost.budget_reached - POSTSomeone asked for a test event
webhook.test