- https://llm-api.treasuredata.comhttps://llm-api.treasuredata.com/api/chats
- https://llm-api.eu01.treasuredata.comhttps://llm-api.eu01.treasuredata.com/api/chats
- https://llm-api.ap02.treasuredata.comhttps://llm-api.ap02.treasuredata.com/api/chats
- https://llm-api.treasuredata.co.jphttps://llm-api.treasuredata.co.jp/api/chats
curl -i -X POST \
https://llm-api.treasuredata.com/api/chats \
-H 'Authorization: TD1 <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"data": {
"type": "chats",
"attributes": {
"agentId": "00000000-0000-0000-0000-000000000001",
"promptId": "00000000-0000-0000-0000-000000000001",
"integrationId": "00000000-0000-0000-0000-000000000001",
"attachments": [
{
"binaryBase64": "<BASE64_CONTENT>=",
"contentType": "image/png",
"inputFieldName": "input_field_name"
}
],
"actionId": "00000000-0000-0000-0000-000000000001",
"formInterfaceId": "00000000-0000-0000-0000-000000000001",
"inputParameters": "{\"subject\":\"Welcome to our newest gummy bear\",\"topic\":\"New lemon flavored gummy bear in our collection\"}",
"chatInterfaceId": "00000000-0000-0000-0000-000000000001",
"textResourceId": "00000000-0000-0000-0000-000000000001",
"userProperties": null
}
}
}'Response
{ "data": { "id": "00000000-0000-0000-0000-000000000001", "type": "chats", "links": { … }, "attributes": { … } } }