Skip to content

create

Request

Security
ApiKeyAuth
Bodyapplication/json
dataobjectrequired
curl -i -X POST \
  https://llm-api.treasuredata.com/api/chat_interfaces \
  -H 'Authorization: TD1 <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "data": {
      "type": "chat_interfaces",
      "attributes": {
        "projectId": "00000000-0000-0000-0000-000000000001",
        "name": "Test Chat Interface",
        "textInputEnabled": true,
        "textInputAgentId": "00000000-0000-0000-0000-000000000001",
        "chatInterfaceButtons": [
          {
            "agentId": "00000000-0000-0000-0000-000000000001",
            "label": "Help",
            "prompt": "Please help me with this task"
          },
          {
            "agentId": "00000000-0000-0000-0000-000000000001",
            "label": "Info",
            "prompt": "Tell me more information"
          }
        ]
      }
    }
  }'

Responses

creates a chat_interface with buttons

Bodyapplication/vnd.api+json
dataobjectrequired
Response
{ "data": { "id": "00000000-0000-0000-0000-000000000001", "type": "chatInterfaces", "links": {}, "attributes": {} } }