Skip to content

create

Request

Security
ApiKeyAuth
Bodyapplication/json
dataobjectrequired
curl -i -X POST \
  https://llm-api.treasuredata.com/api/agent_schedules \
  -H 'Authorization: TD1 <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "data": {
      "type": "agent_schedules",
      "attributes": {
        "projectId": "00000000-0000-0000-0000-000000000001",
        "agentId": "00000000-0000-0000-0000-000000000001",
        "formInterfaceId": "00000000-0000-0000-0000-000000000001",
        "name": "Test Chat Schedule",
        "repeatUnit": "daily",
        "repeatFrequency": 1,
        "repeatSubFrequency": [],
        "timezone": "UTC",
        "startAt": "2026-01-23T02:17:36Z",
        "description": "Automated schedule for reports",
        "parameterValues": {
          "param2": "value2",
          "param1": "value1",
          "image_param": [
            {
              "binaryBase64": "/9j/4AAQSkZJRgABAQEBLAEsAAD/4QClRXhpZgAASUkqAAgAA",
              "contentType": "image/jpeg"
            }
          ],
          "regular_param": "regular_value",
          "array_param": [
            "item1",
            "item2"
          ],
          "attachment_param": [
            {
              "binaryBase64": "/9j/4AAQSkZJRgABAQEBLAEsAAD/4QClRXhpZgAASUkqAAgAA",
              "contentType": "image/jpeg"
            }
          ],
          "mixed_param": [
            "regular_item",
            {
              "binaryBase64": "pdf_data_here",
              "contentType": "application/pdf"
            }
          ],
          "button_id": "00000000-0000-0000-0000-000000000001",
          "input": "user text input",
          "test": "value",
          "report_description": "Weekly team status report",
          "report_title": "Team Status"
        },
        "sendEmailNotification": true,
        "endAt": "2025-12-31T23:59:00",
        "textResourceId": "00000000-0000-0000-0000-000000000001",
        "chatInterfaceId": "00000000-0000-0000-0000-000000000001"
      }
    }
  }'

Responses

Agent schedule successfully created

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