Skip to main content
GET
/
auto-schedule
/
list
curl \
-H "Authorization: Bearer API_KEY" \
-X GET https://api.ayrshare.com/api/auto-schedule/list
{
    "status": "success",
    "schedules": {
        "Title 1": {
            "lastScheduleDate": "2024-01-05T22:30:00Z",
            "schedule": [
                "20:03Z",
                "22:34Z"
            ]
        },
        "Title 2": {
            "schedule": [
                "13:05Z",
                "22:14Z"
            ],
            "lastScheduleDate": "2024-01-04T22:30:00Z",
            "daysOfWeek": [
                2,
                3,
                4
            ]
        }
    }
}

Documentation Index

Fetch the complete documentation index at: https://www.ayrshare.com/docs/llms.txt

Use this file to discover all available pages before exploring further.

List the active auto schedules. Returns an array of schedules with titles, times, and last scheduled date. The lastScheduleDate timestamp is the next schedule date or the previously scheduled date if no pending posts.

Header Parameters

curl \
-H "Authorization: Bearer API_KEY" \
-X GET https://api.ayrshare.com/api/auto-schedule/list
{
    "status": "success",
    "schedules": {
        "Title 1": {
            "lastScheduleDate": "2024-01-05T22:30:00Z",
            "schedule": [
                "20:03Z",
                "22:34Z"
            ]
        },
        "Title 2": {
            "schedule": [
                "13:05Z",
                "22:14Z"
            ],
            "lastScheduleDate": "2024-01-04T22:30:00Z",
            "daysOfWeek": [
                2,
                3,
                4
            ]
        }
    }
}