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

List scheduled posts

Lists the posts scheduled from from (included) to to (excluded), at most 62 days apart, by scheduled instant, with their channels and how each went. Drafts have no time and are not listed; cancelled posts are, with the time they had. Needs post:read.

GET/api/v1/posts/calendar
Autorisation
AuthorizationJeton Bearer · headerrequis

An API key of a workspace, starting with peal_, or a partner key, starting with peal_partner_.

ou
__Secure-peal.session_tokenClé d'API · cookierequis

The session cookie the web app's sign-in sets. Requests that change something must come from the web app's origin.

Paramètres de requête
fromstringrequis
tostringrequis
Paramètres d'en-tête
peal-workspacestring

The id of the workspace the request acts in. An API key and an application's token bound to a workspace act in their own workspace without it; a session, the command line's sign-in and a partner key send it.

Réponses
200

Success

Tableau de Post
authorIdstring | nullrequis
Afficher les propriétés
Au moins un de :
string
string
null
null
contentPostContentrequis
Afficher les propriétés
followUpsPostPart[]
max 24 éléments
Afficher les propriétés
Tableau de PostPart
delaySecondsintegerrequis
min 0 · max 86400
mediaMediaAttachment[]requis
max 20 éléments
overridesTextOverride[]requis
textstringrequis
longueur max 65536
mediaMediaAttachment[]requis
max 20 éléments
Afficher les propriétés
Tableau de MediaAttachment
altTextstringrequis
longueur max 5000
mediaIdstringrequis
overridesTextOverride[]requis
Afficher les propriétés
Tableau de TextOverride
channelIdstringrequis
mediaMediaAttachment[]
max 20 éléments
textstringrequis
longueur min 1 · longueur max 65536
pollPoll | null
Afficher les propriétés
Au moins un de :
Poll
choicesstring[]requis
max 4 éléments
durationMinutesintegerrequis
min 1 · max 43829
multipleChoiceboolean
null
null
textstringrequis
longueur max 65536
createdViaPostOrigin | nullrequis
Afficher les propriétés
Au moins un de :
PostOrigin
idstring | nullrequis
Afficher les propriétés
Au moins un de :
string
string
null
null
namestring | nullrequis
Afficher les propriétés
Au moins un de :
string
string
null
null
viaPostOriginViarequis
Valeurs autorisées :webapiKeyapplication
null
null
idstringrequis
occurrenceinteger | nullrequis
Afficher les propriétés
Au moins un de :
integer
integer
null
null
outcomePostOutcome | nullrequis
Afficher les propriétés
Au moins un de :
PostOutcome
string
null
null
queueIdstring | nullrequis
Afficher les propriétés
Au moins un de :
string
string
null
null
recyclingIdstring | nullrequis
Afficher les propriétés
Au moins un de :
string
string
null
null
schedulePostSchedule | nullrequis
Afficher les propriétés
Au moins un de :
PostSchedule
atstringrequis
timeZonestringrequis
null
null
scheduledBystring | nullrequis
Afficher les propriétés
Au moins un de :
string
string
null
null
scheduledViaPostOrigin | nullrequis
Afficher les propriétés
Au moins un de :
PostOrigin
idstring | nullrequis
Afficher les propriétés
Au moins un de :
string
string
null
null
namestring | nullrequis
Afficher les propriétés
Au moins un de :
string
string
null
null
viaPostOriginViarequis
Valeurs autorisées :webapiKeyapplication
null
null
shortenLinksbooleanrequis
statusPostStatusrequis
Valeurs autorisées :draftawaitingApprovalscheduledpublishingfinishedcancelled
tagIdsstring[]requis
targetsPostTarget[]requis
Afficher les propriétés
Tableau de PostTarget
channelIdstringrequis
droppedboolean
editedAtstring | nullrequis
Afficher les propriétés
Au moins un de :
string
string
null
null
failureReasonFailureReason | nullrequis
Afficher les propriétés
Au moins un de :
FailureReason
string
null
null
idstringrequis
keptPrivateboolean
optionsTargetOptions | nullrequis
Afficher les propriétés
Au moins un de :
TargetOptions
Au moins un de :
YouTubeOptions
categoryIdstring
longueur max 65536
containsSyntheticMediaboolean
defaultLanguagestring
longueur max 65536
embeddableboolean
licenseYouTubeLicense
Valeurs autorisées :youtubecreativeCommon
madeForKidsboolean
notifySubscribersboolean
platformstringrequis
Valeurs autorisées :youtube
privacyYouTubePrivacy
Valeurs autorisées :publicunlistedprivate
publicStatsViewableboolean
recordingDatestring
longueur max 65536
tagsstring[]
max 500 éléments
thumbnailMediaIdany
correspond à ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$
titlestring
longueur max 65536
TikTokOptions
aiGeneratedboolean
autoAddMusicboolean
brandContentboolean
brandOrganicboolean
commercialContentboolean
disableCommentboolean
disableDuetboolean
disableStitchboolean
photoCoverIndexinteger
min 0 · max 9007199254740991
photoTitlestring
longueur max 65536
platformstringrequis
Valeurs autorisées :tiktok
privacyLevelTikTokPrivacyLevel
Valeurs autorisées :PUBLIC_TO_EVERYONEMUTUAL_FOLLOW_FRIENDSFOLLOWER_OF_CREATORSELF_ONLY
videoCoverTimestampMsinteger
min 0 · max 9007199254740991
PinterestOptions
boardIdstring
longueur max 65536
boardSectionIdstring
longueur max 65536
coverSecondinteger
min 0 · max 9007199254740991
dominantColorstring
longueur max 65536
linkstring
longueur max 65536
platformstringrequis
Valeurs autorisées :pinterest
titlestring
longueur max 65536
GoogleBusinessOptions
callToActionGoogleBusinessCallToAction
Valeurs autorisées :bookordershoplearnMoresignUpcall
callToActionUrlstring
longueur max 65536
couponCodestring
longueur max 65536
endsAtstring
longueur max 65536
platformstringrequis
Valeurs autorisées :googleBusiness
postTypeGoogleBusinessPostType
Valeurs autorisées :standardeventoffer
redeemUrlstring
longueur max 65536
startsAtstring
longueur max 65536
termsstring
longueur max 65536
titlestring
longueur max 65536
LinkedInOptions
disableReshareboolean
documentTitlestring
longueur max 65536
linkDescriptionstring
longueur max 65536
linkTitlestring
longueur max 65536
linkUrlstring
longueur max 65536
mentionsLinkedInMention[]
max 30 éléments
Afficher les propriétés
Tableau de LinkedInMention
namestringrequis
longueur max 200
urnstringrequis
longueur max 64
platformstringrequis
Valeurs autorisées :linkedin
visibilityLinkedInVisibility
Valeurs autorisées :publicconnectionsloggedIn
MastodonOptions
contentWarningstring
longueur max 65536
languagestring
longueur max 65536
platformstringrequis
Valeurs autorisées :mastodon
quotePolicyMastodonQuotePolicy
Valeurs autorisées :publicfollowersnobody
sensitiveboolean
visibilityMastodonVisibility
Valeurs autorisées :publicunlistedprivate
BlueskyOptions
contentLabelBlueskyContentLabel
Valeurs autorisées :sexualnudityporngraphic-media
disableQuotesboolean
languagesstring[]
max 3 éléments
platformstringrequis
Valeurs autorisées :bluesky
repliesBlueskyReplies
Valeurs autorisées :everyonenobodylimited
replyFollowersboolean
replyFollowingboolean
replyMentionedboolean
ThreadsOptions
linkAttachmentstring
longueur max 65536
platformstringrequis
Valeurs autorisées :threads
replyControlThreadsReplyControl
Valeurs autorisées :everyoneaccounts_you_followmentioned_onlyparent_post_author_onlyfollowers_only
topicTagstring
longueur max 65536
XOptions
communityIdstring
longueur max 65536
madeWithAiboolean
paidPartnershipboolean
platformstringrequis
Valeurs autorisées :x
replySettingsXReplySettings
Valeurs autorisées :followingmentionedUserssubscribersverified
shareWithFollowersboolean
InstagramOptions
audioNamestring
longueur max 65536
collaboratorsstring[]
max 3 éléments
coverMediaIdany
correspond à ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$
formatInstagramFormat
Valeurs autorisées :feedstory
platformstringrequis
Valeurs autorisées :instagram
shareToFeedboolean
thumbOffsetMsinteger
min 0 · max 9007199254740991
trialReelInstagramTrialReel
Valeurs autorisées :manualperformance
FacebookOptions
formatFacebookFormat
Valeurs autorisées :feedstoryreel
platformstringrequis
Valeurs autorisées :facebook
videoTitlestring
longueur max 65536
DiscordOptions
mentionsboolean
platformstringrequis
Valeurs autorisées :discord
silentboolean
suppressEmbedsboolean
threadNamestring
longueur max 65536
TelegramOptions
linkPreviewboolean
platformstringrequis
Valeurs autorisées :telegram
silentboolean
SlackOptions
platformstringrequis
Valeurs autorisées :slack
unfurlLinksboolean
SnapchatOptions
localestring
longueur max 65536
platformstringrequis
Valeurs autorisées :snapchat
null
null
partsTargetPartsrequis
Afficher les propriétés
countintegerrequis
min -9007199254740991 · max 9007199254740991
liveLivePart[]requis
Afficher les propriétés
Tableau de LivePart
indexintegerrequis
min -9007199254740991 · max 9007199254740991
permalinkstring | nullrequis
Afficher les propriétés
Au moins un de :
string
string
null
null
platformPostIdstring | nullrequis
Afficher les propriétés
Au moins un de :
string
string
null
null
publishedAtstringrequis
permalinkstring | nullrequis
Afficher les propriétés
Au moins un de :
string
string
null
null
publishedAtstring | nullrequis
Afficher les propriétés
Au moins un de :
string
string
null
null
removedAtstring | nullrequis
Afficher les propriétés
Au moins un de :
string
string
null
null
partsLeftOutboolean
roundintegerrequis
min -9007199254740991 · max 9007199254740991
statusPostTargetStatusrequis
Valeurs autorisées :pendingpublishingpublishedfailedunconfirmedcancelled
thumbnailNotSetboolean
unconfirmedReasonUnconfirmedReason | nullrequis
Afficher les propriétés
Au moins un de :
UnconfirmedReason
string
null
null
warningsPostWarning[]
Afficher les propriétés
Tableau de PostWarning
Au moins un de :
object
_tagstringrequis
Valeurs autorisées :channelsDropped
channelIdsstring[]requis
channelSetIdstringrequis
channelSetNamestringrequis
object
_tagstringrequis
Valeurs autorisées :queueChannelsDropped
channelIdsstring[]requis
queueIdstringrequis
queueNamestringrequis
object
_tagstringrequis
Valeurs autorisées :xNotBilled
channelIdsstring[]requis
reasonAllowanceReasonrequis
Valeurs autorisées :paymentMethodRequiredceilingReachednotEnabledplanAllowancepaymentFailedspendCapReached
400

The range ends before it starts, or spans more than the list takes: 62 days for the posts scheduled in a range. | The request names no workspace, and its credential belongs to none: send the workspace's id in the Peal-Workspace header. Nothing was done.

Au moins un de :
InvalidTimeRangeEncoded
_tagstringrequis
Valeurs autorisées :InvalidTimeRange
codestring
messagestring
requestIdstring
WorkspaceRequiredEncoded
_tagstringrequis
Valeurs autorisées :WorkspaceRequired
codestring
messagestring
requestIdstring
401

Sign in, or send an API key as a bearer token: the request has no valid credentials.

_tagstringrequis
Valeurs autorisées :Unauthenticated
codestring
messagestring
requestIdstring
403

The credentials are valid but do not allow this request. reason says why: the OAuth client was not given the scope the request takes (missingScope, with scope and permission: the user connects the client again and allows it), the member's role or the API key lacks a permission (missingPermission, with permission: an owner or an admin changes the role, or creates a key with it), only a person in their own session may do it (personRequired), the key or token belongs to another workspace (wrongWorkspace), the account is suspended (suspended), a browser sent the cookie from another site (untrustedOrigin), or the workspace requires two-step verification and the member's account does not have it on (twoStepRequired: they turn it on in the web app's account settings, and their sessions, applications and command line work again at once; API keys are never refused for it).

_tagstringrequis
Valeurs autorisées :Forbidden
codestring
messagestring
requestIdstring
permissionPermission

One action on one resource of a workspace.

Valeurs autorisées :activity:readads:readads:manageads:spendads:authorizeanalytics:readapiKey:createapiKey:readapiKey:updateapiKey:deleteassistant:useassistant:configurebilling:readbilling:managechannel:readchannel:connectchannel:disconnectengagement:readengagement:replyengagement:messageengagement:readMessagesinvitation:createinvitation:cancelmedia:readmedia:uploadmedia:deletemember:createmember:updatemember:deleteorganization:updateorganization:deleteorganization:securepartner:readpartner:managepost:readpost:createpost:updatepost:deletepost:schedulepost:approvepost:publishwebhook:readwebhook:manage
reasonForbiddenReason
Valeurs autorisées :missingScopemissingPermissionpersonRequiredwrongWorkspacesuspendeduntrustedOrigintwoStepRequired
scopestring
404

No workspace with this id is open to the caller.

_tagstringrequis
Valeurs autorisées :WorkspaceNotFound
codestring
messagestring
requestIdstring
429

This credential sent more than limit requests in windowSeconds seconds: nothing was done. Wait retryAfterSeconds seconds, as the Retry-After header says, then send the request again. Every answer to a key or a token carries the RateLimit-Policy and RateLimit headers, which say how many requests are left. policy says which limit applied: on a server that bills, a billing account without a payment method sends fewer (free), and withPaymentMethod is what a payment method gives.

_tagstringrequis
Valeurs autorisées :TooManyRequests
codestring
messagestring
requestIdstring
limitintegerrequis
min -9007199254740991 · max 9007199254740991
policystring
Valeurs autorisées :defaultfreeoverride
retryAfterSecondsintegerrequis
min -9007199254740991 · max 9007199254740991
windowSecondsintegerrequis
min -9007199254740991 · max 9007199254740991
withPaymentMethodinteger
min -9007199254740991 · max 9007199254740991
Requête
curl -X GET 'https://api.example.com/api/v1/posts/calendar?from=string&to=string' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Accept: application/json'
Réponse
[
  {
    "authorId": "string",
    "content": {
      "followUps": [
        {
          "delaySeconds": 0,
          "media": [
            {
              "altText": "string",
              "mediaId": "string"
            }
          ],
          "overrides": [
            {
              "channelId": "string",
              "media": [
                {
                  "altText": "string",
                  "mediaId": "string"
                }
              ],
              "text": "string"
            }
          ],
          "text": "string"
        }
      ],
      "media": [
        {
          "altText": "string",
          "mediaId": "string"
        }
      ],
      "overrides": [
        {
          "channelId": "string",
          "media": [
            {
              "altText": "string",
              "mediaId": "string"
            }
          ],
          "text": "string"
        }
      ],
      "poll": {
        "choices": [
          "string"
        ],
        "durationMinutes": 1,
        "multipleChoice": true
      },
      "text": "string"
    },
    "createdVia": {
      "id": "string",
      "name": "string",
      "via": "web"
    },
    "id": "string",
    "occurrence": -9007199254740991,
    "outcome": "published",
    "queueId": "string",
    "recyclingId": "string",
    "schedule": {
      "at": "string",
      "timeZone": "string"
    },
    "scheduledBy": "string",
    "scheduledVia": {
      "id": "string",
      "name": "string",
      "via": "web"
    },
    "shortenLinks": true,
    "status": "draft",
    "tagIds": [
      "string"
    ],
    "targets": [
      {
        "channelId": "string",
        "dropped": true,
        "editedAt": "string",
        "failureReason": "contentRejected",
        "id": "string",
        "keptPrivate": true,
        "options": {
          "categoryId": "string",
          "containsSyntheticMedia": true,
          "defaultLanguage": "string",
          "embeddable": true,
          "license": "youtube",
          "madeForKids": true,
          "notifySubscribers": true,
          "platform": "youtube",
          "privacy": "public",
          "publicStatsViewable": true,
          "recordingDate": "string",
          "tags": [
            "string"
          ],
          "thumbnailMediaId": "string",
          "title": "string"
        },
        "parts": {
          "count": -9007199254740991,
          "live": [
            {
              "index": -9007199254740991,
              "permalink": "string",
              "platformPostId": "string",
              "publishedAt": "string"
            }
          ]
        },
        "permalink": "string",
        "publishedAt": "string",
        "removedAt": "string",
        "partsLeftOut": true,
        "round": -9007199254740991,
        "status": "pending",
        "thumbnailNotSet": true,
        "unconfirmedReason": "noResponse"
      }
    ],
    "warnings": [
      {
        "_tag": "channelsDropped",
        "channelIds": [
          "string"
        ],
        "channelSetId": "string",
        "channelSetName": "string"
      }
    ]
  }
]

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