Schedules API — Agentuity Documentation

Schedules API

Create and manage cron-based scheduled jobs with destinations and delivery tracking

Create and manage cron-based scheduled jobs with destinations and delivery tracking.

https://catalyst-usw.agentuity.cloud

Authentication

All requests require a Bearer token. Pass your SDK key in the Authorization header.

HeaderValue
AuthorizationBearer YOUR_SDK_KEY

You can find your SDK key in the Agentuity Console under your project settings.


Schedule Management

Create Schedule

Create a new cron-based schedule with optional destinations.

POST/schedule/create
https://catalyst-usw.agentuity.cloud/schedule/create

Request Body

Schedule creation payload.

FieldTypeDescription
namestringHuman-readable name for the schedule.
descriptionstringOptional description of the schedule's purpose. (optional)
expressionstringCron expression defining when the schedule fires
destinationsobject[]Optional array of destinations to create alongside the schedule. (optional)
destinations[].typestringThe destination type: `'url'` for HTTP endpoints or `'sandbox'` for Agentuity sandbox execution.
destinations[].configobjectType-specific destination configuration.

Response

Returns the created schedule and its destinations.

StatusDescription
201Schedule created
401Unauthorized — invalid or missing Bearer token

Response Fields

FieldTypeDescription
scheduleobjectThe newly created schedule record.
schedule.idstringUnique identifier for the schedule.
schedule.created_atstringISO 8601 timestamp when the schedule was created.
schedule.updated_atstringISO 8601 timestamp when the schedule was last modified.
schedule.created_bystringID of the user who created the schedule.
schedule.namestringHuman-readable name for the schedule.
schedule.descriptionstring | nullOptional description of the schedule's purpose.
schedule.expressionstringA cron expression defining the schedule's firing interval
schedule.due_datestringISO 8601 timestamp of the next scheduled execution.
destinationsobject[]Array of destinations that were created alongside the schedule.
destinations[].idstringUnique identifier for the destination.
destinations[].schedule_idstringThe ID of the parent schedule.
destinations[].created_atstringISO 8601 timestamp when the destination was created.
destinations[].updated_atstringISO 8601 timestamp when the destination was last updated.
destinations[].created_bystringID of the user who created the destination.
destinations[].typestringThe destination type: `'url'` for HTTP endpoints or `'sandbox'` for Agentuity sandbox execution.
destinations[].configobjectType-specific destination configuration.

Example

curl -X POST 'https://catalyst-usw.agentuity.cloud/schedule/create' \
  -H 'Authorization: Bearer $AGENTUITY_SDK_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "name": "Daily Report",
  "expression": "0 9 * * *",
  "destinations": [
    {
      "type": "url",
      "config": {
        "url": "https://example.com/webhook"
      }
    }
  ]
}'

List Schedules

List all schedules with optional pagination.

GET/schedule/list
https://catalyst-usw.agentuity.cloud/schedule/list

Parameters

query
NameTypeRequiredDescription
limitnumberNoMax results (max 500)
offsetnumberNoPagination offset

Response

Returns paginated list of schedules.

StatusDescription
200Schedules returned
401Unauthorized — invalid or missing Bearer token

Response Fields

FieldTypeDescription
schedulesobject[]Array of schedule records for the current page.
schedules[].idstringUnique identifier for the schedule.
schedules[].created_atstringISO 8601 timestamp when the schedule was created.
schedules[].updated_atstringISO 8601 timestamp when the schedule was last modified.
schedules[].created_bystringID of the user who created the schedule.
schedules[].namestringHuman-readable name for the schedule.
schedules[].descriptionstring | nullOptional description of the schedule's purpose.
schedules[].expressionstringA cron expression defining the schedule's firing interval
schedules[].due_datestringISO 8601 timestamp of the next scheduled execution.
totalnumberTotal number of schedules across all pages.

Example

curl -X GET 'https://catalyst-usw.agentuity.cloud/schedule/list' \
  -H 'Authorization: Bearer $AGENTUITY_SDK_KEY'

Get Schedule

Get a specific schedule by ID.

GET/schedule/get/{scheduleId}
https://catalyst-usw.agentuity.cloud/schedule/get/{scheduleId}

Parameters

path
NameTypeRequiredDescription
scheduleIdstringYesSchedule ID (sch_ prefix)

Response

Returns the schedule object.

StatusDescription
200Schedule returned
401Unauthorized — invalid or missing Bearer token
404Schedule not found

Response Fields

FieldTypeDescription
scheduleobjectThe schedule record.
schedule.idstringUnique identifier for the schedule.
schedule.created_atstringISO 8601 timestamp when the schedule was created.
schedule.updated_atstringISO 8601 timestamp when the schedule was last modified.
schedule.created_bystringID of the user who created the schedule.
schedule.namestringHuman-readable name for the schedule.
schedule.descriptionstring | nullOptional description of the schedule's purpose.
schedule.expressionstringA cron expression defining the schedule's firing interval
schedule.due_datestringISO 8601 timestamp of the next scheduled execution.
destinationsobject[]Array of destinations configured for this schedule.
destinations[].idstringUnique identifier for the destination.
destinations[].schedule_idstringThe ID of the parent schedule.
destinations[].created_atstringISO 8601 timestamp when the destination was created.
destinations[].updated_atstringISO 8601 timestamp when the destination was last updated.
destinations[].created_bystringID of the user who created the destination.
destinations[].typestringThe destination type: `'url'` for HTTP endpoints or `'sandbox'` for Agentuity sandbox execution.
destinations[].configobjectType-specific destination configuration.

Example

curl -X GET 'https://catalyst-usw.agentuity.cloud/schedule/get/sch_abc123' \
  -H 'Authorization: Bearer $AGENTUITY_SDK_KEY'

Update Schedule

Update a schedule's name, description, or cron expression.

PUT/schedule/update/{scheduleId}
https://catalyst-usw.agentuity.cloud/schedule/update/{scheduleId}

Parameters

path
NameTypeRequiredDescription
scheduleIdstringYesSchedule ID

Request Body

Fields to update.

FieldTypeDescription
namestringUpdated human-readable name for the schedule. (optional)
descriptionstringUpdated description. (optional)
expressionstringUpdated cron expression. If changed, the `due_date` is automatically recomputed. (optional)

Response

Returns the updated schedule.

StatusDescription
200Schedule updated
401Unauthorized — invalid or missing Bearer token
404Schedule not found

Response Fields

FieldTypeDescription
scheduleobjectThe updated schedule record.
schedule.idstringUnique identifier for the schedule.
schedule.created_atstringISO 8601 timestamp when the schedule was created.
schedule.updated_atstringISO 8601 timestamp when the schedule was last modified.
schedule.created_bystringID of the user who created the schedule.
schedule.namestringHuman-readable name for the schedule.
schedule.descriptionstring | nullOptional description of the schedule's purpose.
schedule.expressionstringA cron expression defining the schedule's firing interval
schedule.due_datestringISO 8601 timestamp of the next scheduled execution.

Example

curl -X PUT 'https://catalyst-usw.agentuity.cloud/schedule/update/sch_abc123' \
  -H 'Authorization: Bearer $AGENTUITY_SDK_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "expression": "0 */6 * * *"
}'

Delete Schedule

Delete a schedule and all associated destinations and delivery history.

DELETE/schedule/delete/{scheduleId}
https://catalyst-usw.agentuity.cloud/schedule/delete/{scheduleId}

Parameters

path
NameTypeRequiredDescription
scheduleIdstringYesSchedule ID

Response

Deletes the schedule and all associated destinations and delivery history.

StatusDescription
204Schedule deleted
401Unauthorized — invalid or missing Bearer token
404Schedule not found

Example

curl -X DELETE 'https://catalyst-usw.agentuity.cloud/schedule/delete/sch_abc123' \
  -H 'Authorization: Bearer $AGENTUITY_SDK_KEY'

Destinations

Create Destination

Add a destination to a schedule.

POST/schedule/destinations/create/{scheduleId}
https://catalyst-usw.agentuity.cloud/schedule/destinations/create/{scheduleId}

Parameters

path
NameTypeRequiredDescription
scheduleIdstringYesSchedule ID

Request Body

Destination creation payload.

FieldTypeDescription
typestringThe destination type: `'url'` for HTTP endpoints or `'sandbox'` for Agentuity sandbox execution.
configobjectType-specific destination configuration.

Response

Returns the created destination.

StatusDescription
201Destination created
401Unauthorized — invalid or missing Bearer token
404Schedule not found

Response Fields

FieldTypeDescription
destinationobjectThe newly created destination record.
destination.idstringUnique identifier for the destination.
destination.schedule_idstringThe ID of the parent schedule.
destination.created_atstringISO 8601 timestamp when the destination was created.
destination.updated_atstringISO 8601 timestamp when the destination was last updated.
destination.created_bystringID of the user who created the destination.
destination.typestringThe destination type: `'url'` for HTTP endpoints or `'sandbox'` for Agentuity sandbox execution.
destination.configobjectType-specific destination configuration.

Example

curl -X POST 'https://catalyst-usw.agentuity.cloud/schedule/destinations/create/sch_abc123' \
  -H 'Authorization: Bearer $AGENTUITY_SDK_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "type": "url",
  "config": {
    "url": "https://example.com/callback",
    "method": "POST"
  }
}'

Delete Destination

Delete a destination from a schedule.

DELETE/schedule/destinations/delete/{destinationId}
https://catalyst-usw.agentuity.cloud/schedule/destinations/delete/{destinationId}

Parameters

path
NameTypeRequiredDescription
destinationIdstringYesDestination ID (sdst_ prefix)

Response

Empty response on success.

StatusDescription
204Destination deleted
401Unauthorized — invalid or missing Bearer token
404Destination not found

Example

curl -X DELETE 'https://catalyst-usw.agentuity.cloud/schedule/destinations/delete/sdst_abc123' \
  -H 'Authorization: Bearer $AGENTUITY_SDK_KEY'

Deliveries

List Deliveries

List delivery attempts for a schedule.

GET/schedule/deliveries/{scheduleId}
https://catalyst-usw.agentuity.cloud/schedule/deliveries/{scheduleId}

Parameters

path
NameTypeRequiredDescription
scheduleIdstringYesSchedule ID
query
NameTypeRequiredDescription
limitnumberNoMaximum results to return
offsetnumberNoPagination offset

Response

Returns delivery attempts with status, retries, and error details.

StatusDescription
200Deliveries returned
401Unauthorized — invalid or missing Bearer token
404Schedule not found

Response Fields

FieldTypeDescription
deliveriesobject[]Array of delivery attempt records.
deliveries[].idstringUnique identifier for the delivery attempt.
deliveries[].datestringISO 8601 timestamp when the delivery was attempted.
deliveries[].schedule_idstringThe ID of the schedule that triggered this delivery.
deliveries[].schedule_destination_idstringThe ID of the destination this delivery was sent to.
deliveries[].statusstringDelivery status: `'pending'` (queued), `'success'` (delivered), or `'failed'` (delivery error).
deliveries[].retriesnumberNumber of retry attempts made for this delivery.
deliveries[].errorstring | nullError message if the delivery failed, `null` on success.
deliveries[].responseobject | nullThe response received from the destination, or `null` if no response.

Example

curl -X GET 'https://catalyst-usw.agentuity.cloud/schedule/deliveries/sch_abc123' \
  -H 'Authorization: Bearer $AGENTUITY_SDK_KEY'