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
| Method | Endpoint | Description |
|---|---|---|
POST | /api/v1/requests/text | Process text conversation |
Request Body (JSON)
| Field | Type | Required | Description |
|---|---|---|---|
assistant_id | string | Yes | ID of the text assistant |
conversation | array | Yes | Array of message objects |
metadata | object | No | Optional metadata (source, dialog_id, etc.) |
Message Object
| Field | Type | Required | Description |
|---|---|---|---|
role | string | Yes | "operator", "client", or "system" |
text | string | Yes | Message content |
timestamp | string | No | ISO 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.