Skip to content

create

Request

Security
ApiKeyAuth
Bodyapplication/json
dataobjectrequired
curl -i -X POST \
  https://llm-api.treasuredata.com/api/agents \
  -H 'Authorization: TD1 <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "data": {
      "type": "agents",
      "attributes": {
        "name": "name1",
        "projectId": "00000000-0000-0000-0000-000000000001",
        "modelType": "claude-4.5-haiku",
        "maxToolIterations": 4,
        "temperature": 0,
        "variables": [
          {
            "name": "columns",
            "toolTargetId": "00000000-0000-0000-0000-000000000001",
            "toolTargetType": "knowledge_base",
            "targetFunction": "LIST_COLUMNS"
          }
        ],
        "reasoningEffort": "LOW"
      }
    }
  }'

Responses

Agent successfully created

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