{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/agentstack-tech/json-schema/agentstack-tech-dm-message-post-body-schema.json",
  "title": "DmMessagePostBody",
  "description": "Append a DM row to the author's user-scoped outbox (deterministic DM channel id).",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/agentstack-tech-agentsocial-api-openapi.yml#/components/schemas/DmMessagePostBody",
  "properties": {
    "home_project_id": {
      "type": "integer",
      "minimum": 1.0,
      "title": "Home Project Id",
      "default": 1
    },
    "channel_id": {
      "type": "string",
      "title": "Channel Id",
      "default": ""
    },
    "body": {
      "type": "string",
      "maxLength": 16000,
      "title": "Body",
      "default": ""
    },
    "meta": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Meta"
    },
    "attachments": {
      "anyOf": [
        {
          "items": {
            "additionalProperties": true,
            "type": "object"
          },
          "type": "array",
          "maxItems": 12
        },
        {
          "type": "null"
        }
      ],
      "title": "Attachments"
    },
    "client_message_id": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 128
        },
        {
          "type": "null"
        }
      ],
      "title": "Client Message Id",
      "description": "Optional client idempotency key (8–128 URL-safe chars); replays return the same row."
    }
  },
  "type": "object"
}