v3

latestOpenAPI 3.1.2Apache 2.02026-07-31231237972.0 KB
Schedules

Get list of schedules

Gets the list of schedules that the user created.

The endpoint supports pagination using the limit and offset parameters. It will not return more than 1000 records.

By default, the records are sorted by the createdAt field in ascending order. To sort the records in descending order, use the desc=1 parameter.

get/v2/schedules

Query parameters

offsetnumber double

Number of items that should be skipped at the start. The default value is 0.

limitnumber double
Example:1000

Maximum number of items to return. The default value as well as the maximum is 1000.

descboolean
Example:true

If true or 1 then the objects are sorted by the createdAt field in descending order. By default, they are sorted in ascending order.

Response

Example response

{
  "data": {
    "total": 1,
    "limit": 1000,
    "count": 1,
    "items": [
      {
        "id": "asdLZtadYvn4mBZmm",
        "userId": "wRsJZtadYvn4mBZmm",
        "name": "my-schedule",
        "cronExpression": "* * * * *",
        "timezone": "UTC",
        "isEnabled": true,
        "isExclusive": true,
        "createdAt": "2019-12-12T07:34:14.202Z",
        "modifiedAt": "2019-12-20T06:33:11.202Z",
        "nextRunAt": "2019-04-12T07:34:10.202Z",
        "lastRunAt": "2019-04-12T07:33:10.202Z",
        "actions": [
          {
            "id": "ZReCs7hkdieq8ZUki",
            "actorId": "HKhKmiCMrDgu9eXeE"
          }
        ]
      }
    ]
  }
}