Unify and manage your data

List schedules

Learn more about list schedules.

Use the List schedules to review and audit every schedule in the tenant in one place.

HTTP method and endpoint

Use the following HTTP method and endpoint path to list schedules.

GET {TenantURL}/ai/agentflow/api/v202605/{tenant_id}/schedules

The following table describes the endpoint path parameters.

ParameterTypeRequiredDescription
TenantURLStringYesThe base URL for your tenant.
tenant_idStringYesThe unique identifier of your tenant.

Query parameters

The following table describes the query parameters and their values.

ParameterTypeRequiredDescriptionAccepted values / Default
statusStringNoReturns only schedules with this status. .Accepted values: active, paused, running, cancelled, completed, failed
agent_idStringNoReturns only results for this agent.—
schedule_typeStringNoReturns only schedules of this type.Accepted values / Default: recurring, run-once.
searchStringNoReturns only schedules whose name or query contains this text.—
limitIntegerNoThe maximum number of schedules to return per page.Default: 50
page_tokenStringNoThe page token from a previous response. Omit to get the first page.—

Request headers

The following request headers must be included.

HeaderValueRequired
Authorization<access_token>Yes

Request body

This operation does not require a request body.

Example request

Use the following example to see how a complete request is structured, with headers.

GET {TenantURL}/ai/agentflow/api/v202605/tenant-xyz/schedules
Authorization: <access_token>

Response body

The following table describes the fields returned in the response body.

ParameterTypeDescription
schedulesArrayThe schedules in the current page of results.
schedules[].schedule_idStringThe unique identifier of the schedule.
schedules[].tenant_idStringThe unique identifier of the tenant.
schedules[].agent_idStringThe unique identifier of the agent that the schedule runs.
schedules[].nameStringThe display name of the schedule.
schedules[].queryStringThe prompt or query sent to the agent on each run.
schedules[].schedule_typeStringThe type of schedule: recurring or run-once.
schedules[].cron_expressionStringThe 5-field cron expression for the schedule, when schedule_type is recurring.
schedules[].interval_minutesIntegerThe interval in minutes between runs, when schedule_type is recurring.
schedules[].statusStringThe status of the schedule: active, paused, running, cancelled, completed, or failed.
schedules[].next_run_atStringThe date and time of the next scheduled run.
schedules[].last_run_atStringThe date and time of the last run.
schedules[].run_countIntegerThe number of times this schedule has run.
schedules[].run_onceBooleanWhether this is a one-time (run-once) schedule. When true, the schedule runs once. When false, the schedule is recurring.
schedules[].last_conversation_idStringThe unique identifier of the conversation from the most recent run.
schedules[].created_byStringThe unique identifier of the user who created the schedule.
schedules[].created_atStringThe date and time when the schedule was created.
schedules[].updated_atStringThe date and time when the record was last updated.
paginationObjectPagination details for the current page of results.
pagination.total_countIntegerThe number of items in the current page of results.
pagination.next_page_tokenStringThe token to pass as page_token to get the next page of results. Empty when this is the last page.
pagination.limitIntegerThe maximum number of items per page.

Example response

The following example shows a successful response.

{
  "schedules": [
    {
      "schedule_id": "sched-abc123",
      "tenant_id": "tenant-xyz",
      "agent_id": "my-support-agent",
      "name": "Daily support escalation check",
      "query": "Check for support tickets requiring escalation",
      "schedule_type": "recurring",
      "cron_expression": "0 9 * * MON-FRI",
      "interval_minutes": 60,
      "status": "active",
      "next_run_at": "2025-05-14T09:00:00Z",
      "last_run_at": "2025-05-13T09:00:00Z",
      "run_count": 5,
      "run_once": false,
      "last_conversation_id": "conv-abc123",
      "created_by": "user@example.com",
      "created_at": "2025-05-01T10:00:00Z",
      "updated_at": "2025-05-13T15:30:00Z"
    }
  ],
  "pagination": {
    "total_count": 1,
    "next_page_token": "null",
    "limit": 50
  }
}

The following table lists the possible error responses returned by this API.

HTTP statusDescriptionRecommended action
422 Unprocessable EntityValidation ErrorReview the request parameters or body, correct the invalid values, and resend the request.