{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/sinch/main/json-schema/sinch-conversation-list-schema.json",
  "title": "ConversationList",
  "x-generated": "2026-10-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sinch-conversations-api-openapi.yml#/components/schemas/ConversationList",
  "type": "object",
  "properties": {
    "conversations": {
      "type": "array",
      "description": "List of conversations",
      "items": {
        "$ref": "#/$defs/Conversation"
      }
    },
    "next_page_token": {
      "type": "string",
      "description": "Pagination token for the next page"
    }
  },
  "$defs": {
    "Conversation": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The unique conversation identifier"
        },
        "app_id": {
          "type": "string",
          "description": "The app ID"
        },
        "contact_id": {
          "type": "string",
          "description": "The contact ID"
        },
        "active": {
          "type": "boolean",
          "description": "Whether the conversation is active"
        },
        "active_channel": {
          "type": "string",
          "description": "The currently active channel"
        },
        "metadata": {
          "type": "string",
          "description": "Conversation metadata"
        },
        "metadata_json": {
          "type": "object",
          "description": "Structured conversation metadata"
        }
      }
    }
  }
}