Skip to content
Ordinal
Esc
↑↓navigate↵open⌘Jpreview

post.created

Fired when a new post is created

SENDpost.created
Message
application/json
typestring

The event type (e.g. post.created).

dataobject

Event-specific payload for this webhook.

Show properties
postobject

The created post.

Show properties
idstring

Post ID.

titlestring

Post title.

statusstring

Post status.

channelsstring[]

Channels the post is scheduled for.

campaignCampaign | null

Campaign if assigned. Contains id, name, startDate, and endDate.

Show properties
Any of:
Campaign
idstring<uuid>

Campaign ID.

namestring

Campaign name.

startDatestring<date-time>

Campaign start, as an ISO 8601 timestamp.

endDatestring<date-time>

Campaign end, as an ISO 8601 timestamp.

null
null
urlstring

Ordinal post URL.

workspaceWorkspace

Workspace the post belongs to. Contains id, slug, and name.

Show properties
idstring<uuid>

Workspace ID.

slugstring

Workspace slug.

namestring

Workspace name.

createdByUser

User who created the post. Contains id, firstName, lastName, and email.

Show properties
idstring<uuid>

User ID.

firstNamestring | null

First name. Can be null.

lastNamestring | null

Last name. Can be null.

emailstring<email>

Email address.

createdAtstring<date-time>

ISO 8601 timestamp when the post was created.

labelsLabel[]

Labels attached to the post. Each contains id, name, color, and backgroundColor.

Show properties
Array of Label
idstring<uuid>

Label ID.

namestring

Label name.

colorstring

Label text color.

backgroundColorstring

Label background color.

linkedInLinkedInContent | null

LinkedIn content when the post includes LinkedIn. Contains profile (id, name, detail), copy, and assets (id, name, url, mimetype, size, width, height, duration).

Show properties
Any of:
LinkedInContent
profileChannelProfile | null

LinkedIn profile the content is posted as. Null when no profile is selected.

Show properties
Any of:
ChannelProfile
idstring<uuid>

Profile ID.

namestring | null

Profile name. Can be null.

detailstring | null

Profile handle or vanity name. Can be null.

null
null
copystring

LinkedIn post copy.

assetsAsset[]

Media attached to the LinkedIn post.

Show properties
Array of Asset
idstring<uuid>

Asset ID.

namestring

File name.

urlstring<uri>

Asset URL.

mimetypestring

MIME type.

sizenumber

File size in bytes.

widthnumber | null

Width in pixels. Null for non-images.

heightnumber | null

Height in pixels. Null for non-images.

durationnumber | null

Duration in seconds. Null for images.

null
null
xXContent | null

X/Twitter content when the post includes Twitter. Contains profile (id, name, detail) and tweets (array of { copy, assets }).

Show properties
Any of:
XContent
profileChannelProfile | null

X profile the content is posted as. Null when no profile is selected.

Show properties
Any of:
ChannelProfile
idstring<uuid>

Profile ID.

namestring | null

Profile name. Can be null.

detailstring | null

Profile handle or vanity name. Can be null.

null
null
tweetsTweet[]

Tweets in the thread.

Show properties
Array of Tweet
copystring

Tweet text.

assetsAsset[]

Media attached to the tweet.

Show properties
Array of Asset
idstring<uuid>

Asset ID.

namestring

File name.

urlstring<uri>

Asset URL.

mimetypestring

MIME type.

sizenumber

File size in bytes.

widthnumber | null

Width in pixels. Null for non-images.

heightnumber | null

Height in pixels. Null for non-images.

durationnumber | null

Duration in seconds. Null for images.

null
null
instagramInstagramContent | null

Instagram content when the post includes Instagram. Contains profile (id, name, detail), type, copy, and assets (id, name, url, mimetype, size, width, height, duration). Null when the post has no Instagram channel.

Show properties
Any of:
InstagramContent
profileChannelProfile | null

Instagram profile the content is posted as. Null when no profile is selected.

Show properties
Any of:
ChannelProfile
idstring<uuid>

Profile ID.

namestring | null

Profile name. Can be null.

detailstring | null

Profile handle or vanity name. Can be null.

null
null
typestring | null

Instagram post type. Can be null.

copystring

Instagram caption.

assetsAsset[]

Media attached to the Instagram post.

Show properties
Array of Asset
idstring<uuid>

Asset ID.

namestring

File name.

urlstring<uri>

Asset URL.

mimetypestring

MIME type.

sizenumber

File size in bytes.

widthnumber | null

Width in pixels. Null for non-images.

heightnumber | null

Height in pixels. Null for non-images.

durationnumber | null

Duration in seconds. Null for images.

null
null
tikTokTikTokContent | null

TikTok content when the post includes TikTok. Contains profile (id, name, detail), copy, and assets (id, name, url, mimetype, size, width, height, duration). Null when the post has no TikTok channel.

Show properties
Any of:
TikTokContent
profileChannelProfile | null

TikTok profile the content is posted as. Null when no profile is selected.

Show properties
Any of:
ChannelProfile
idstring<uuid>

Profile ID.

namestring | null

Profile name. Can be null.

detailstring | null

Profile handle or vanity name. Can be null.

null
null
copystring

TikTok caption.

assetsAsset[]

Media attached to the TikTok post.

Show properties
Array of Asset
idstring<uuid>

Asset ID.

namestring

File name.

urlstring<uri>

Asset URL.

mimetypestring

MIME type.

sizenumber

File size in bytes.

widthnumber | null

Width in pixels. Null for non-images.

heightnumber | null

Height in pixels. Null for non-images.

durationnumber | null

Duration in seconds. Null for images.

null
null
youTubeShortsYouTubeShortsContent | null

YouTube Shorts content when the post includes YouTube Shorts. Contains profile (id, name, detail), title, description, and assets. Null when the post has no YouTube Shorts channel.

Show properties
Any of:
YouTubeShortsContent
profileChannelProfile | null

YouTube channel the Short is posted as. Null when no channel is selected.

Show properties
Any of:
ChannelProfile
idstring<uuid>

Profile ID.

namestring | null

Profile name. Can be null.

detailstring | null

Profile handle or vanity name. Can be null.

null
null
titlestring | null

Short title. Can be null.

descriptionstring | null

Short description. Can be null.

assetsAsset[]

Media attached to the Short.

Show properties
Array of Asset
idstring<uuid>

Asset ID.

namestring

File name.

urlstring<uri>

Asset URL.

mimetypestring

MIME type.

sizenumber

File size in bytes.

widthnumber | null

Width in pixels. Null for non-images.

heightnumber | null

Height in pixels. Null for non-images.

durationnumber | null

Duration in seconds. Null for images.

null
null
createdAtstring<date-time>

ISO 8601 timestamp when the webhook event was created.

Message
{
  "type": "post.created",
  "data": {
    "post": {
      "id": "550e8400-e29b-41d4-a716-446655440001",
      "title": "New Draft",
      "status": "draft",
      "channels": [
        "LinkedIn"
      ],
      "campaign": null,
      "url": "https://app.tryordinal.com/acme/posts/550e8400-e29b-41d4-a716-446655440001",
      "labels": [
        {
          "id": "550e8400-e29b-41d4-a716-446655440400",
          "name": "Marketing",
          "color": "#9333ea",
          "backgroundColor": "#f3e8ff"
        }
      ],
      "workspace": {
        "id": "550e8400-e29b-41d4-a716-446655440000",
        "slug": "acme",
        "name": "Acme Inc"
      },
      "createdBy": {
        "id": "550e8400-e29b-41d4-a716-446655440010",
        "firstName": "Jane",
        "lastName": "Doe",
        "email": "jane@example.com"
      },
      "createdAt": "2025-02-26T12:00:00.000Z",
      "linkedIn": {
        "profile": {
          "id": "550e8400-e29b-41d4-a716-446655440002",
          "name": "Acme Inc",
          "detail": "acme-inc"
        },
        "copy": "Excited to share our latest product update!",
        "assets": [
          {
            "id": "550e8400-e29b-41d4-a716-446655440010",
            "name": "product-photo.jpg",
            "url": "https://cdn.tryordinal.com/assets/product-photo.jpg",
            "mimetype": "image/jpeg",
            "size": 245678,
            "width": 1920,
            "height": 1080,
            "duration": null
          }
        ]
      },
      "x": null,
      "instagram": null,
      "tikTok": null,
      "youTubeShorts": null
    }
  },
  "createdAt": "2025-02-26T12:00:00.000Z"
}