{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/popp/json-schema/popp-list-candidate-notes-response-schema.json",
  "title": "ListCandidateNotesResponse",
  "description": "A page of the notes held about a candidate.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/popp-candidates-api-openapi.yml#/components/schemas/ListCandidateNotesResponse",
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean",
      "description": "True when the candidate was found and their notes returned."
    },
    "items": {
      "type": "array",
      "description": "Notes about this candidate, newest first.",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "content": {
            "type": "string",
            "description": "The note, as written."
          },
          "source": {
            "type": "string",
            "enum": [
              "API",
              "ATS"
            ],
            "description": "Where the note came from. ATS notes are synced from your applicant tracking system and are read-only here."
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "content",
          "source",
          "createdAt",
          "updatedAt"
        ],
        "additionalProperties": false
      }
    },
    "nextToken": {
      "type": [
        "string",
        "null"
      ],
      "description": "Pass back as `nextToken` to fetch the next page. Null when there are no more results."
    }
  },
  "required": [
    "ok",
    "items",
    "nextToken"
  ],
  "additionalProperties": false
}