dopost · Schema

Post

Social MediaSchedulingPublishingInstagramFacebookTikTokPinterestX TwitterYouTubeContent ManagementREST

Properties

Name Type Description
id string Unique dopost post identifier.
accountId string Connected social account that owns the post.
platform string
status string
text string
publishAt stringnull
publishedAt stringnull
mediaIds array
createdAt string
updatedAt string
View JSON Schema on GitHub

JSON Schema

post.schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://dopost.co/schemas/post.schema.json",
  "title": "Post",
  "type": "object",
  "required": ["id", "accountId", "status", "text"],
  "properties": {
    "id": { "type": "string", "description": "Unique dopost post identifier." },
    "accountId": { "type": "string", "description": "Connected social account that owns the post." },
    "platform": {
      "type": "string",
      "enum": ["instagram", "facebook", "tiktok", "pinterest", "x", "youtube"]
    },
    "status": {
      "type": "string",
      "enum": ["draft", "scheduled", "published", "failed"]
    },
    "text": { "type": "string" },
    "publishAt": { "type": ["string", "null"], "format": "date-time" },
    "publishedAt": { "type": ["string", "null"], "format": "date-time" },
    "mediaIds": { "type": "array", "items": { "type": "string" } },
    "createdAt": { "type": "string", "format": "date-time" },
    "updatedAt": { "type": "string", "format": "date-time" }
  },
  "additionalProperties": true
}