{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/simple-ai/json-schema/simple-ai-call-note-response-schema.json",
  "title": "Call Note Response",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/simple-ai-call-notes-api-openapi.yml#/components/schemas/CallNoteResponse",
  "type": "object",
  "required": [
    "id",
    "score",
    "user",
    "created_at",
    "updated_at"
  ],
  "properties": {
    "id": {
      "type": "integer",
      "title": "ID",
      "description": "Unique identifier for the call note"
    },
    "note": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Note",
      "description": "The text content of the note"
    },
    "score": {
      "type": "string",
      "enum": [
        "good",
        "room_for_improvement",
        "unrated"
      ],
      "title": "Score",
      "description": "The score/rating for the call"
    },
    "user": {
      "type": "object",
      "title": "User",
      "description": "The user who created the note. If created via API without a user, first_name will be 'API' and other fields will be null.",
      "properties": {
        "id": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ],
          "title": "ID",
          "description": "User's unique identifier (null for API-created notes)"
        },
        "email": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Email",
          "description": "User's email address (null for API-created notes)"
        },
        "first_name": {
          "type": "string",
          "title": "First Name",
          "description": "User's first name or 'API' for API-created notes"
        },
        "last_name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Last Name",
          "description": "User's last name (null for API-created notes)"
        }
      },
      "required": [
        "first_name"
      ]
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At",
      "description": "When the note was created"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "title": "Updated At",
      "description": "When the note was last updated"
    }
  }
}