{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/postbase-so/json-schema/postbase-so-created-post-schema.json",
  "title": "CreatedPost",
  "x-generated": "2026-11-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/postbase-so-openapi.json#/components/schemas/CreatedPost",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "body": {
      "type": "string"
    },
    "scheduled_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "status": {
      "type": "string",
      "enum": [
        "draft",
        "scheduled",
        "publishing",
        "published",
        "failed"
      ]
    },
    "media": {
      "type": "integer",
      "description": "How many files are attached"
    },
    "warning": {
      "type": "string",
      "description": "Something to tell the user, such as X charging for links"
    },
    "idempotent_replay": {
      "type": "boolean",
      "description": "True when this repeats an earlier request with the same idempotency key"
    }
  },
  "required": [
    "id",
    "status"
  ]
}