{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/phone-inc/main/json-schema/phone-inc-post-api-v1-calls-response-schema.json",
  "title": "PostApiV1CallsResponse",
  "x-generated": "2026-10-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/phone-inc-openapi-generated.yml#/components/schemas/PostApiV1CallsResponse",
  "type": "object",
  "properties": {
    "calls": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "from": {
            "type": "string"
          },
          "to": {
            "type": "string"
          },
          "direction": {
            "type": "string"
          },
          "state": {
            "type": "string"
          },
          "started_at": {
            "type": "string",
            "format": "date-time"
          },
          "answered_at": {
            "type": "string",
            "format": "date-time"
          },
          "duration": {
            "type": "integer"
          },
          "summary": {
            "type": "string"
          },
          "transcription": {
            "type": "string"
          },
          "transcription_segments": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "speaker": {
                  "type": "string"
                },
                "text": {
                  "type": "string"
                },
                "employee_id": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              }
            }
          },
          "recording_url": {
            "type": "string"
          },
          "business_number_id": {
            "type": "string"
          },
          "business_number_name": {
            "type": "string"
          },
          "business_number": {
            "type": "string"
          },
          "business_number_formatted": {
            "type": "string"
          },
          "employees": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "first_name": {
                  "type": "string"
                },
                "last_name": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "next_cursor": {
      "type": [
        "string",
        "null"
      ]
    }
  }
}