API Reference
Text Analysis

Text Analysis

Base URL: https://app.lisn.dev/api

Send a text conversation for analysis. The system skips the STT step and sends the conversation directly to the LLM.


Endpoint

MethodEndpointDescription
POST/api/v1/requests/textProcess text conversation

Request Body (JSON)

FieldTypeRequiredDescription
assistant_idstringYesID of the text assistant
conversationarrayYesArray of message objects
metadataobjectNoOptional metadata (source, dialog_id, etc.)

Message Object

FieldTypeRequiredDescription
rolestringYes"operator", "client", or "system"
textstringYesMessage content
timestampstringNoISO 8601 timestamp

Example

curl -X POST "https://app.lisn.dev/api/v1/requests/text" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "assistant_id": "ast_xyz789",
    "conversation": [
      {"role": "operator", "text": "Hello, how can I help?", "timestamp": "2026-03-10T10:00:00Z"},
      {"role": "client", "text": "I need pricing info", "timestamp": "2026-03-10T10:00:07Z"}
    ],
    "metadata": {
      "source": "crm",
      "dialog_id": "12345"
    }
  }'

See Response Format for the full session object returned after processing.