Skip to main content
POST
/
chat
/
messages
Send a message
curl --request POST \
  --url https://platform.agentictrust.com/api/v1/chat/messages \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "conversationId": "<string>",
  "projectId": "<string>",
  "messages": [
    {
      "role": "<string>",
      "content": "<string>",
      "id": "<string>",
      "parts": [
        {
          "type": "<string>",
          "text": "<string>"
        }
      ]
    }
  ],
  "pageContext": {
    "url": "<string>",
    "title": "<string>",
    "description": "<string>",
    "referrer": "<string>",
    "textContent": "<string>",
    "headings": [
      "<string>"
    ],
    "buttons": [
      "<string>"
    ],
    "links": [
      {
        "href": "<string>",
        "text": "<string>"
      }
    ],
    "formFields": [
      {
        "name": "<string>",
        "type": "<string>",
        "label": "<string>",
        "placeholder": "<string>"
      }
    ]
  },
  "userTokens": {}
}
'
"<string>"

Authorizations

x-api-key
string
header
required

API key in lum_pk_* format. Pass via x-api-key header or Authorization: Bearer <key>.

Body

application/json
conversationId
string
required
projectId
string
required
messages
object[]
required
Minimum array length: 1
pageContext
object

DOM context from the page where the widget is embedded.

userTokens
object

Custom headers forwarded to action endpoints. Max 10 keys.

Response

SSE stream of AI responses.

The response is of type string.