{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/asapp3/json-schema/asapp3-time-based-conversation-schema.json",
  "title": "TimeBasedConversation",
  "description": "Conversation between an agent and a customer that requires a timestamp of creation",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/asapp3-conversations-api-openapi.yml#/components/schemas/TimeBasedConversation",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "The identifier of the conversation."
    },
    "externalId": {
      "type": "string",
      "description": "Your unique identifier for a conversation."
    },
    "agent": {
      "type": "object",
      "description": "Information about the agent participating in the conversation.",
      "properties": {
        "externalId": {
          "type": "string",
          "description": "The unique identifier for the agent in your external system."
        },
        "name": {
          "type": "string",
          "description": "The display name of the agent."
        }
      },
      "required": [
        "externalId"
      ]
    },
    "customer": {
      "type": "object",
      "description": "Information about the customer participating in the conversation.",
      "properties": {
        "externalId": {
          "type": "string",
          "description": "The unique identifier for the customer in your external system."
        },
        "name": {
          "type": "string",
          "description": "The display name of the customer."
        }
      },
      "required": [
        "externalId"
      ]
    },
    "metadata": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "Additional key-value pairs to store custom metadata about the conversation. Use this for filtering or categorization purposes."
    },
    "timestamp": {
      "type": "string",
      "format": "date-time",
      "description": "The time when the conversation was created. Include the timezone, otherwise UTC will be assumed."
    }
  },
  "required": [
    "externalId",
    "customer",
    "timestamp"
  ]
}