Treasure Data Agent Schedule API

The AgentSchedule API from Treasure Data — 4 operation(s) for agentschedule.

Operations 7

GET /api/agent_schedules index
POST /api/agent_schedules create
DELETE /api/agent_schedules/{id} destroy
GET /api/agent_schedules/{id} show
PATCH /api/agent_schedules/{id} update
POST /api/agent_schedules/{id}/callback callback
POST /api/agent_schedules/{id}/execute Execute agent schedule - returns workflow YAML

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/treasure-data-agentschedule-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

treasure-data-agentschedule-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: llm-api Agent Schedule API
  version: 1.0.0
servers:
- url: https://llm-api.treasuredata.com
- url: https://llm-api.eu01.treasuredata.com
- url: https://llm-api.ap02.treasuredata.com
- url: https://llm-api.treasuredata.co.jp
security:
- ApiKeyAuth: []
tags:
- name: AgentSchedule
paths:
  /api/agent_schedules:
    get:
      summary: index
      tags:
      - AgentSchedule
      responses:
        '200':
          description: Empty result set when interface type filter does not match any resources values
          content:
            application/vnd.api+json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                        type:
                          type: string
                        links:
                          type: object
                          properties:
                            self:
                              type: string
                          required:
                          - self
                        attributes:
                          type: object
                          properties:
                            createdAt:
                              type: string
                            updatedAt:
                              type: string
                            projectId:
                              type: string
                            agentId:
                              type: string
                            formInterfaceId:
                              type:
                              - string
                              - 'null'
                            chatInterfaceId:
                              type:
                              - string
                              - 'null'
                            interfaceType:
                              type: string
                              enum:
                              - form
                              - chat
                            name:
                              type: string
                            description:
                              type:
                              - string
                              - 'null'
                            status:
                              type: string
                              enum:
                              - active
                              - paused
                              - disabled
                            repeatUnit:
                              type: string
                              enum:
                              - no_repeat
                              - daily
                              - weekly
                              - monthly
                            repeatFrequency:
                              type: integer
                            repeatSubFrequency:
                              type: array
                              items:
                                type: integer
                            timezone:
                              type: string
                            startAt:
                              type: string
                            endAt:
                              type:
                              - string
                              - 'null'
                            parameterValues:
                              type: object
                              properties:
                                param1:
                                  type:
                                  - string
                                  - 'null'
                                param2:
                                  type:
                                  - string
                                  - 'null'
                                input:
                                  type:
                                  - string
                                  - 'null'
                            sendEmailNotification:
                              type: boolean
                            emailRecipients:
                              type: array
                              items:
                                type: string
                            textResourceId:
                              type:
                              - string
                              - 'null'
                            workflowProjectId:
                              type:
                              - string
                              - 'null'
                            workflowSessionId:
                              type:
                              - string
                              - 'null'
                            workflowAttemptId:
                              type:
                              - string
                              - 'null'
                            lastExecutedAt:
                              type:
                              - string
                              - 'null'
                            executionCount:
                              type: integer
                            lastRunStatus:
                              type:
                              - string
                              - 'null'
                              enum:
                              - success
                              - failure
                            lastRunErrorMessage:
                              type:
                              - string
                              - 'null'
                          required:
                          - createdAt
                          - updatedAt
                          - projectId
                          - agentId
                          - formInterfaceId
                          - chatInterfaceId
                          - interfaceType
                          - name
                          - description
                          - status
                          - repeatUnit
                          - repeatFrequency
                          - repeatSubFrequency
                          - timezone
                          - startAt
                          - endAt
                          - parameterValues
                          - sendEmailNotification
                          - emailRecipients
                          - textResourceId
                          - workflowProjectId
                          - workflowSessionId
                          - workflowAttemptId
                          - lastExecutedAt
                          - executionCount
                          - lastRunStatus
                          - lastRunErrorMessage
                        relationships:
                          type: object
                          properties:
                            project:
                              type: object
                              properties:
                                data:
                                  type: object
                                  properties:
                                    type:
                                      type: string
                                    id:
                                      type: string
                                  required:
                                  - type
                                  - id
                              required:
                              - data
                            createdBy:
                              type: object
                              properties:
                                data:
                                  type: object
                                  properties:
                                    type:
                                      type: string
                                    id:
                                      type: string
                                  required:
                                  - type
                                  - id
                              required:
                              - data
                            updatedBy:
                              type: object
                              properties:
                                data:
                                  type: object
                                  properties:
                                    type:
                                      type: string
                                    id:
                                      type: string
                                  required:
                                  - type
                                  - id
                              required:
                              - data
                            agent:
                              type: object
                              properties:
                                data:
                                  type: object
                                  properties:
                                    type:
                                      type: string
                                    id:
                                      type: string
                                  required:
                                  - type
                                  - id
                              required:
                              - data
                            formInterface:
                              type: object
                              properties:
                                data:
                                  type: object
                                  properties:
                                    type:
                                      type: string
                                    id:
                                      type: string
                                  required:
                                  - type
                                  - id
                              required:
                              - data
                            chatInterface:
                              type: object
                              properties:
                                data:
                                  type: object
                                  properties:
                                    type:
                                      type: string
                                    id:
                                      type: string
                                  required:
                                  - type
                                  - id
                              required:
                              - data
                      required:
                      - id
                      - type
                      - links
                      - attributes
                  meta:
                    type: object
                    properties:
                      total:
                        type: integer
                    required:
                    - total
                  links:
                    type: object
                    properties:
                      first:
                        type: string
                      last:
                        type: string
                    required:
                    - first
                    - last
                  included:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                        type:
                          type: string
                        links:
                          type:
                          - object
                          - 'null'
                          properties:
                            self:
                              type: string
                          required:
                          - self
                        attributes:
                          type: object
                          properties:
                            createdAt:
                              type:
                              - string
                              - 'null'
                            updatedAt:
                              type:
                              - string
                              - 'null'
                            name:
                              type: string
                            description: {}
                            useRuntimeTextResource:
                              type:
                              - boolean
                              - 'null'
                            useParentSegment:
                              type:
                              - boolean
                              - 'null'
                            useWorkflowExecutor:
                              type:
                              - boolean
                              - 'null'
                            isManaged:
                              type:
                              - boolean
                              - 'null'
                            managedType:
                              type:
                              - string
                              - 'null'
                            email:
                              type:
                              - string
                              - 'null'
                            projectId:
                              type: string
                            agentId:
                              type: string
                            promptTemplate:
                              type: string
                            formJsonSchema:
                              type: string
                            formUiSchema: {}
                            useTextResource:
                              type: boolean
                            starterMessage:
                              type: string
                            textInputEnabled:
                              type: boolean
                            textInputAgentId:
                              type: string
                            chatInterfaceButtons:
                              type: array
                              items: {}
                          required:
                          - name
                      required:
                      - id
                      - type
                      - attributes
                required:
                - data
                - meta
                - links
              example:
                data: []
                meta:
                  total: 0
                links:
                  first: http://www.example.com/api/agent_schedules?filter%5BinterfaceType%5D=nonexistent&page%5Blimit%5D=20&page%5Boffset%5D=0
                  last: http://www.example.com/api/agent_schedules?filter%5BinterfaceType%5D=nonexistent&page%5Blimit%5D=20&page%5Boffset%5D=0
                included:
                - id: 00000000-0000-0000-0000-000000000001
                  type: chatInterfaces
                  links:
                    self: http://www.example.com/api/chat_interfaces/00000000-0000-0000-0000-000000000001
                  attributes:
                    createdAt: '2025-05-01T05:05:14.000Z'
                    updatedAt: '2025-05-01T05:05:14.000Z'
                    projectId: 00000000-0000-0000-0000-000000000001
                    name: hsniqued
                    starterMessage: ''
                    textInputEnabled: true
                    textInputAgentId: 00000000-0000-0000-0000-000000000001
                    isManaged: false
                    chatInterfaceButtons: []
                - id: 00000000-0000-0000-0000-000000000001
                  type: chatInterfaces
                  links:
                    self: http://www.example.com/api/chat_interfaces/00000000-0000-0000-0000-000000000001
                  attributes:
                    createdAt: '2025-05-01T05:05:14.000Z'
                    updatedAt: '2025-05-01T05:05:14.000Z'
                    projectId: 00000000-0000-0000-0000-000000000001
                    name: ijpodbmo
                    starterMessage: ''
                    textInputEnabled: true
                    textInputAgentId: 00000000-0000-0000-0000-000000000001
                    isManaged: false
                    chatInterfaceButtons: []
        '401':
          description: Rejected by 401
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                  error:
                    type: string
                required:
                - status
                - error
              example:
                status: '401'
                error: User credentials aren't set on the request
      parameters:
      - name: filter[agentId]
        in: query
        required: false
        schema:
          type: string
        example: 00000000-0000-0000-0000-000000000001
      - name: filter[formInterfaceId]
        in: query
        required: false
        schema:
          type: string
        example: 00000000-0000-0000-0000-000000000001
      - name: filter[chatInterfaceId]
        in: query
        required: false
        schema:
          type: string
        example: 00000000-0000-0000-0000-000000000001
      - name: filter[interfaceType]
        in: query
        required: false
        schema:
          type: string
        example: nonexistent
      - name: filter[projectId]
        in: query
        required: false
        schema:
          type: string
        example: 00000000-0000-0000-0000-000000000001
      - name: include
        in: query
        required: false
        schema:
          type: string
        example: chatInterface
      - name: sort
        in: query
        required: false
        schema:
          type: string
        example: id
    post:
      summary: create
      tags:
      - AgentSchedule
      responses:
        '201':
          description: Agent schedule successfully created
          content:
            application/vnd.api+json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      id:
                        type: string
                      type:
                        type: string
                      links:
                        type: object
                        properties:
                          self:
                            type: string
                        required:
                        - self
                      attributes:
                        type: object
                        properties:
                          createdAt:
                            type: string
                          updatedAt:
                            type: string
                          projectId:
                            type: string
                          agentId:
                            type: string
                          formInterfaceId:
                            type:
                            - string
                            - 'null'
                          chatInterfaceId:
                            type:
                            - string
                            - 'null'
                          interfaceType:
                            type: string
                          name:
                            type: string
                          description:
                            type:
                            - string
                            - 'null'
                          status:
                            type: string
                          repeatUnit:
                            type: string
                          repeatFrequency:
                            type: integer
                          repeatSubFrequency:
                            type: array
                            items:
                              type: integer
                          timezone:
                            type: string
                          startAt:
                            type: string
                          endAt:
                            type:
                            - string
                            - 'null'
                          parameterValues:
                            type: object
                            properties:
                              param2:
                                type: string
                              param1:
                                type: string
                              image_param:
                                type: array
                                items:
                                  type: object
                                  properties:
                                    contentType:
                                      type: string
                                    binaryBase64:
                                      type: string
                                  required:
                                  - contentType
                                  - binaryBase64
                              array_param:
                                type: array
                                items:
                                  type: string
                              mixed_param:
                                type: array
                                items:
                                  type: string
                                  oneOf:
                                  - type: string
                                  - type: object
                                    properties:
                                      contentType:
                                        type: string
                                      binaryBase64:
                                        type: string
                                    required:
                                    - contentType
                                    - binaryBase64
                              regular_param:
                                type: string
                              attachment_param:
                                type: array
                                items:
                                  type: object
                                  properties:
                                    contentType:
                                      type: string
                                    binaryBase64:
                                      type: string
                                  required:
                                  - contentType
                                  - binaryBase64
                              button_id:
                                type: string
                              input:
                                type: string
                              test:
                                type: string
                              report_description:
                                type: string
                              report_title:
                                type: string
                          sendEmailNotification:
                            type: boolean
                          emailRecipients:
                            type: array
                            items:
                              type: string
                          textResourceId:
                            type:
                            - string
                            - 'null'
                          workflowProjectId:
                            type:
                            - string
                            - 'null'
                          workflowSessionId:
                            type:
                            - string
                            - 'null'
                          workflowAttemptId:
                            type:
                            - string
                            - 'null'
                          lastExecutedAt:
                            type:
                            - string
                            - 'null'
                          executionCount:
                            type: integer
                          lastRunStatus:
                            type:
                            - string
                            - 'null'
                            enum:
                            - success
                            - failure
                          lastRunErrorMessage:
                            type:
                            - string
                            - 'null'
                        required:
                        - createdAt
                        - updatedAt
                        - projectId
                        - agentId
                        - formInterfaceId
                        - chatInterfaceId
                        - interfaceType
                        - name
                        - description
                        - status
                        - repeatUnit
                        - repeatFrequency
                        - repeatSubFrequency
                        - timezone
                        - startAt
                        - endAt
                        - parameterValues
                        - sendEmailNotification
                        - emailRecipients
                        - textResourceId
                        - workflowProjectId
                        - workflowSessionId
                        - workflowAttemptId
                        - lastExecutedAt
                        - executionCount
                        - lastRunStatus
                        - lastRunErrorMessage
                    required:
                    - id
                    - type
                    - links
                    - attributes
                required:
                - data
              example:
                data:
                  id: 00000000-0000-0000-0000-000000000001
                  type: agentSchedules
                  links:
                    self: http://www.example.com/api/agent_schedules/00000000-0000-0000-0000-000000000001
                  attributes:
                    createdAt: '2025-05-01T05:05:14.000Z'
                    updatedAt: '2025-05-01T05:05:14.000Z'
                    projectId: 00000000-0000-0000-0000-000000000001
                    agentId: 00000000-0000-0000-0000-000000000001
                    formInterfaceId: null
                    chatInterfaceId: 00000000-0000-0000-0000-000000000001
                    interfaceType: chat
                    name: Test Chat Schedule
                    description: null
                    status: active
                    repeatUnit: daily
                    repeatFrequency: 1
                    repeatSubFrequency: []
                    timezone: UTC
                    startAt: '2026-01-23T02:17:36'
                    endAt: null
                    parameterValues:
                      param2: value2
                      param1: value1
                      image_param:
                      - contentType: image/jpeg
                        binaryBase64: /9j/4AAQSkZJRgABAQEBLAEsAAD/4QClRXhpZgAASUkqAAgAA
                      array_param:
                      - item1
                      - item2
                      mixed_param:
                      - regular_item
                      - contentType: application/pdf
                        binaryBase64: pdf_data_here
                      regular_param: regular_value
                      attachment_param:
                      - contentType: image/jpeg
                        binaryBase64: /9j/4AAQSkZJRgABAQEBLAEsAAD/4QClRXhpZgAASUkqAAgAA
                      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
                    emailRecipients:
                    - 00000000-0000-0000-0000-000000000001
                    textResourceId: null
                    workflowProjectId: test-project-id
                    workflowSessionId: null
                    workflowAttemptId: null
                    lastExecutedAt: null
                    executionCount: 0
                    lastRunStatus: null
                    lastRunErrorMessage: null
        '400':
          description: rejects emailRecipients in request payload with validation error
          content:
            application/vnd.api+json:
              schema:
                type: object
                properties:
                  errors:
                    type: array
                    items:
                      type: object
                      properties:
                        title:
                          type: string
                        detail:
                          type: string
                        code:
                          type: string
                        status:
                          type: string
                      required:
                      - title
                      - detail
                      - code
                      - status
                required:
                - errors
              example:
                errors:
                - title: Param not allowed
                  detail: emailRecipients is not allowed.
                  code: '105'
                  status: '400'
        '401':
          description: Rejected by 401
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                  error:
                    type: string
                required:
                - status
                - error
              example:
                status: '401'
                error: User credentials aren't set on the request
        '403':
          description: returns 403 Forbidden when trying to use chat_interface and agent from different account
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                  error:
                    type: string
                required:
                - status
                - error
              example:
                status: '403'
                error: Forbidden
        '422':
          description: rejects neither form_interface nor chat_interface
          content:
            application/vnd.api+json:
              schema:
                type: object
                properties:
                  errors:
                    type: array
                    items:
                      type: object
                      properties:
                        title:
                          type: string
                        detail:
                          type: string
                        code:
                          type: string
                        source:
                          type: object
                          properties:
                            pointer:
                              type: string
                          required:
                          - pointer
                        status:
                          type: string
                        meta:
                          type: object
                          properties:
                            validationCode:
                              type: string
                            originalType:
                              type: string
                          required:
                          - validationCode
                      required:
                      - title
                      - detail
                      - code
                      - source
                      - status
                      - meta
                required:
                - errors
              example:
                errors:
                - title: Either form_interface_id or chat_interface_id must be provided
                  detail: Either form_interface_id or chat_interface_id mus

# --- truncated at 32 KB (80 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/treasure-data/refs/heads/main/openapi/treasure-data-agentschedule-api-openapi.yml