{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/past-dev/json-schema/past-dev-ingest-request-schema.json",
  "title": "IngestRequest",
  "x-generated": "2026-10-31",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/past-dev-openapi.json#/components/schemas/IngestRequest",
  "type": "object",
  "required": [
    "content"
  ],
  "additionalProperties": false,
  "properties": {
    "content": {
      "type": "string",
      "description": "Raw text. Empty or whitespace-only content is refused."
    },
    "label": {
      "type": "string",
      "description": "Optional short title for the data point, stored as its own field and returned as label on recall sources. Omitted on a re-send, the stored label stays."
    },
    "id": {
      "type": "string",
      "description": "Stable source id, with no '/' in it. When omitted, the lowercase SHA-256 of content is used."
    },
    "timestamp": {
      "type": "string",
      "format": "date-time",
      "description": "When the content occurred. Stored at microsecond precision."
    },
    "metadata": {
      "type": [
        "object",
        "array",
        "string",
        "number",
        "boolean",
        "null"
      ],
      "description": "Optional caller JSON stored with the source."
    },
    "audience": {
      "type": "string",
      "description": "Audience slug. Omit it or send project for project-visible memory."
    },
    "identity": {
      "type": "string",
      "maxLength": 200,
      "description": "Customer id for the author. Its first ingest appearance creates the directory record."
    },
    "idempotencyKey": {
      "type": "string",
      "maxLength": 200,
      "description": "Replay key for this request."
    }
  }
}