Skip to main content
POST
/
talk2data
/
chat
/
sessions
/
{session_id}
/
context
Add context items
curl --request POST \
  --url https://api.example.com/talk2data/chat/sessions/{session_id}/context \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-project-id: <x-project-id>' \
  --data '
{
  "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>"
    }
  ]
}
'
{
  "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>"
    }
  ]
}

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

Path Parameters

session_id
string
required

Session ID

Body

application/json

Add one or more context items to a session (POST .../context).

datasources
DatasourceContext · object[]
Maximum array length: 20
artifacts
ArtifactContext · object[]
Maximum array length: 50
attachments
AttachmentContext · object[]
Maximum array length: 20

Response

Successful Response

Current session context (GET/POST/DELETE .../context).

datasources
DatasourceContext · object[]
artifacts
ArtifactContext · object[]
attachments
AttachmentContext · object[]