{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/getsocialclaw-com/json-schema/getsocialclaw-com-dashboard-compose-request-schema.json",
  "title": "DashboardComposeRequest",
  "description": "Dashboard compose request. Supports one account or a targets array.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/getsocialclaw-com-openapi.json#/components/schemas/DashboardComposeRequest",
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "title": {
      "type": [
        "string",
        "null"
      ],
      "description": "Post title. Also accepted as name."
    },
    "text": {
      "type": [
        "string",
        "null"
      ],
      "description": "Post body. Also accepted as description."
    },
    "account": {
      "type": [
        "string",
        "null"
      ],
      "description": "Single account handle."
    },
    "accountHandle": {
      "type": [
        "string",
        "null"
      ],
      "description": "Alias for account."
    },
    "targets": {
      "type": "array",
      "description": "Multi-channel targets.",
      "items": {
        "type": "object",
        "additionalProperties": true,
        "properties": {
          "account": {
            "type": "string",
            "description": "Account handle."
          },
          "accountHandle": {
            "type": [
              "string",
              "null"
            ],
            "description": "Alias for account."
          },
          "settings": {
            "type": "object"
          }
        }
      }
    },
    "assets": {
      "type": "array",
      "description": "Assets for the post.",
      "items": {
        "$ref": "#/$defs/AssetInput"
      }
    },
    "timezone": {
      "type": [
        "string",
        "null"
      ],
      "description": "IANA timezone. Defaults to UTC."
    },
    "publishAt": {
      "type": [
        "string",
        "null"
      ],
      "description": "Scheduled publish time.",
      "format": "date-time"
    },
    "publishNow": {
      "type": "boolean",
      "description": "Publish immediately when true."
    },
    "campaignName": {
      "type": [
        "string",
        "null"
      ],
      "description": "Campaign name for multi-target posts."
    }
  },
  "$defs": {
    "AssetInput": {
      "type": "object",
      "description": "Media asset referenced by a post.",
      "additionalProperties": true,
      "properties": {
        "id": {
          "type": [
            "string",
            "null"
          ],
          "description": "Client-side or SocialClaw asset id."
        },
        "url": {
          "type": "string",
          "description": "Publicly reachable media URL."
        },
        "managed": {
          "type": "boolean",
          "description": "True when this is a SocialClaw-managed asset."
        },
        "originalFilename": {
          "type": [
            "string",
            "null"
          ],
          "description": "Original file name."
        },
        "mime": {
          "type": [
            "string",
            "null"
          ],
          "description": "MIME type."
        },
        "kind": {
          "type": [
            "string",
            "null"
          ],
          "enum": [
            "image",
            "video",
            "audio",
            "other",
            null
          ]
        },
        "size": {
          "type": [
            "integer",
            "null"
          ],
          "description": "File size in bytes."
        },
        "duration": {
          "type": [
            "number",
            "null"
          ],
          "description": "Duration in seconds for video/audio."
        },
        "width": {
          "type": [
            "integer",
            "null"
          ],
          "description": "Media width in pixels."
        },
        "height": {
          "type": [
            "integer",
            "null"
          ],
          "description": "Media height in pixels."
        },
        "altText": {
          "type": [
            "string",
            "null"
          ],
          "description": "Alt text where the provider supports it."
        }
      },
      "required": [
        "url"
      ]
    }
  }
}