Skip to main content
POST
/
talk2data
/
chat
/
messages
Post Chat Messages
curl --request POST \
  --url https://api.example.com/talk2data/chat/messages \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-project-id: <x-project-id>' \
  --data '
{
  "message": "<string>",
  "session_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "context": {
    "datasources": [
      {
        "resource_uri": "<string>",
        "datasource_name": "<string>",
        "type": "datasource",
        "datasource_type": "database",
        "datasource_description": "<string>",
        "created_at": "<string>",
        "selected_schemas": [
          {
            "schema_name": "<string>",
            "schema_fqn": "<string>",
            "selected_tables": [
              {
                "table_name": "<string>",
                "table_fqn": "<string>"
              }
            ]
          }
        ]
      }
    ],
    "artifacts": [
      {
        "resource_uri": "<string>",
        "artifact_type": "<string>",
        "artifact_title": "<string>",
        "created_at": "<string>"
      }
    ],
    "attachments": [
      {
        "resource_uri": "<string>",
        "filename": "<string>",
        "content_type": "<string>"
      }
    ]
  }
}
'
{
  "session_id": "<string>",
  "turn_id": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.emergence.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-project-id
string
required

Project identifier

Body

application/json

Request body for POST /api/chat/messages.

message
string
required
Required string length: 1 - 10000
session_id
string<uuid> | null
context
MessageContext · object

Context for a chat message: datasources, artifacts, attachments.

Response

Successful Response

Accepted response for POST /talk2data/chat/messages.

session_id
string
required
turn_id
string
required