{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/crevio-co/json-schema/crevio-co-call-schema.json",
  "title": "Call",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/crevio-co-calls-api-openapi.yml#/components/schemas/Call",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "object": {
      "type": "string"
    },
    "direction": {
      "type": "string",
      "enum": [
        "inbound",
        "outbound"
      ]
    },
    "status": {
      "type": "string",
      "enum": [
        "queued",
        "scheduled",
        "ringing",
        "in_progress",
        "ended",
        "failed"
      ]
    },
    "to_number": {
      "type": [
        "string",
        "null"
      ]
    },
    "from_number": {
      "type": [
        "string",
        "null"
      ]
    },
    "objective": {
      "type": [
        "string",
        "null"
      ]
    },
    "summary": {
      "type": [
        "string",
        "null"
      ]
    },
    "transcript": {
      "type": [
        "string",
        "null"
      ]
    },
    "recording_url": {
      "type": [
        "string",
        "null"
      ]
    },
    "ended_reason": {
      "type": [
        "string",
        "null"
      ]
    },
    "duration_seconds": {
      "type": [
        "integer",
        "null"
      ]
    },
    "credits_charged": {
      "type": [
        "integer",
        "null"
      ]
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    },
    "customer": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "id",
    "object",
    "direction",
    "status",
    "to_number",
    "from_number",
    "objective",
    "summary",
    "transcript",
    "recording_url",
    "ended_reason",
    "duration_seconds",
    "credits_charged",
    "created_at",
    "updated_at",
    "customer"
  ]
}