{
  "$id": "https://intentschema.org/intents/productivity/notes/note/create/v1.json",
  "fqdn": "org.intentschema.productivity.notes.note.create.v1",
  "title": "Create note",
  "description": "Create a new note in a notes app or knowledge base.",
  "payload": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "required": [
      "target",
      "object"
    ],
    "properties": {
      "target": {
        "$ref": "https://intentschema.org/common/target/v1.json"
      },
      "object": {
        "type": "object",
        "required": [
          "title"
        ],
        "properties": {
          "title": {
            "type": "string"
          },
          "body": {
            "type": "string",
            "description": "Note body \u2014 Markdown by convention."
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "folder": {
            "type": "string",
            "description": "Optional folder/parent path or container id."
          }
        }
      },
      "idempotency_key": {
        "type": "string"
      }
    }
  },
  "result": {
    "type": "object",
    "required": [
      "external_id",
      "created_at"
    ],
    "properties": {
      "external_id": {
        "type": "string"
      },
      "created_at": {
        "type": "string",
        "format": "date-time"
      },
      "url": {
        "type": "string",
        "format": "uri"
      }
    }
  },
  "examples": [
    {
      "name": "quick note",
      "value": {
        "target": {
          "system": "notion"
        },
        "object": {
          "title": "Standup notes 2026-04-22",
          "body": "- Shipped X\n- Blocked on Y\n",
          "tags": [
            "standup"
          ]
        }
      }
    }
  ]
}
