Aller au contenu
Peal
Esc
↑↓naviguer↵ouvrir⌘Japerçu

Every channel of a post has its result

Peal sends this to the endpoints that subscribe to post.finished, signed as the Standard Webhooks specification says. Answer any 2xx once it is taken; any other answer, or none within 15 seconds, is tried again.

POSTpost.finishedWebhook
Paramètres d'en-tête
webhook-idstringrequis

The event's id: the same on every delivery of the event, so a receiver deduplicates on it.

webhook-timestampstringrequis

When the attempt was made, in seconds since the Unix epoch: refuse one too far from now.

webhook-signaturestringrequis

One v1,<base64 HMAC-SHA256> per signing secret, separated by spaces, over <webhook-id>.<webhook-timestamp>.<body>.

Corps de la requête
requisapplication/json
idstringrequis
sampleboolean
Valeurs autorisées :true
timestampstringrequis
versionnumberrequis
Valeurs autorisées :1
workspaceExternalIdstring | nullrequis
Afficher les propriétés
Au moins un de :
string
string
null
null
dataobjectrequis
Afficher les propriétés
workspaceIdstringrequis
postIdstringrequis
finishedAtstringrequis
outcomePostOutcomerequis
Valeurs autorisées :publishedpartiallyPublishedunconfirmedfailedcancelled
roundintegerrequis
min -9007199254740991 · max 9007199254740991
targetsWebhookFinishedTarget[]requis
Afficher les propriétés
Tableau de WebhookFinishedTarget
channelIdstringrequis
platformPlatform | nullrequis
Afficher les propriétés
Au moins un de :
Platform
string
null
null
targetIdstringrequis
failureReasonFailureReason | nullrequis
Afficher les propriétés
Au moins un de :
FailureReason
string
null
null
permalinkstring | nullrequis
Afficher les propriétés
Au moins un de :
string
string
null
null
statusWebhookSettledTargetStatusrequis
Valeurs autorisées :publishedfailedunconfirmedcancelled
typestringrequis
Valeurs autorisées :post.finished
Réponses
2XX

The receiver took the event.

Charge utile
{
  "id": "string",
  "sample": true,
  "timestamp": "string",
  "version": 1,
  "workspaceExternalId": "string",
  "data": {
    "workspaceId": "string",
    "postId": "string",
    "finishedAt": "string",
    "outcome": "published",
    "round": -9007199254740991,
    "targets": [
      {
        "channelId": "string",
        "platform": "x",
        "targetId": "string",
        "failureReason": "contentRejected",
        "permalink": "string",
        "status": "published"
      }
    ]
  },
  "type": "post.finished"
}
Réponse
The receiver took the event.

Cette page vous a-t-elle été utile ?