Skip to main content

Get list of schedules

GET 

/v2/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.

Request

Query Parameters

    offset double

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


    Example: 0
    limit double

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


    Example: 1000
    desc boolean

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


    Example: true

Status 200

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