{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/roark/json-schema/roark-agent-endpoint-detail-response-schema.json",
  "title": "AgentEndpointDetailResponse",
  "description": "Detailed agent endpoint response",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/roark-agent-endpoint-api-openapi.yml#/components/schemas/AgentEndpointDetailResponse",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "description": "Agent endpoint ID"
    },
    "agentId": {
      "type": "string",
      "format": "uuid",
      "description": "Agent ID this endpoint belongs to"
    },
    "type": {
      "type": "string",
      "enum": [
        "PHONE",
        "WEBSOCKET",
        "LIVEKIT",
        "SMALL_WEBRTC",
        "ELEVENLABS_WS",
        "KORE",
        "GOOGLE_CES",
        "DAILY"
      ],
      "description": "Agent endpoint type (PHONE, WEBSOCKET, LIVEKIT, SMALL_WEBRTC, or ELEVENLABS_WS)"
    },
    "value": {
      "type": "string",
      "description": "Agent endpoint value (phone number, URL, etc.)"
    },
    "environment": {
      "type": "string",
      "description": "Agent endpoint environment"
    },
    "direction": {
      "type": "string",
      "enum": [
        "INCOMING",
        "OUTGOING",
        "INCOMING_AND_OUTGOING"
      ],
      "description": "Agent endpoint direction (INCOMING, OUTGOING, INCOMING_AND_OUTGOING)"
    },
    "outboundDialType": {
      "type": "string",
      "enum": [
        "NONE",
        "HTTP_REQUEST"
      ],
      "description": "Outbound dial type (NONE or HTTP_REQUEST)"
    },
    "outboundDialHttpRequestDefinitionId": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid",
      "description": "ID of the linked HTTP request definition for outbound dialing"
    },
    "createdAt": {
      "type": "string",
      "description": "Creation timestamp"
    },
    "updatedAt": {
      "type": "string",
      "description": "Last update timestamp"
    }
  },
  "required": [
    "id",
    "agentId",
    "type",
    "value",
    "environment",
    "direction",
    "outboundDialType",
    "outboundDialHttpRequestDefinitionId",
    "createdAt",
    "updatedAt"
  ]
}