Slotify

List Schedulers

 This endpoint allows you to retrieve information about all schedulers created within Slotify.

Authentication

This endpoint needs app token for authentication.

MethodGET
Endpointv1/schedulers
HeadersAccept: application/json 
Authorization: Bearer <base64_encoded_token> 
Token TypeApp

Query Parameters

This endpoint supports query parameters:

FieldValueDescription
includeapp,resources,rulesshow app, resources or rules details
searchname, mode, graphsearch by name, mode or graph

Example Request:

Following code shows how to send request to retrieve schedulers in Slotify api.

  • PHP
  • BASH
$endpoint = 'https://api.slotify.ca/v1/schedulers';
$owner_token = base64_encode('app_token'); 

$curl = curl_init();

curl_setopt_array($curl, array(
    CURLOPT_URL => $endpoint,
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_ENCODING => '',
    CURLOPT_MAXREDIRS => 10,
    CURLOPT_TIMEOUT => 0,
    CURLOPT_FOLLOWLOCATION => true,
    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
    CURLOPT_CUSTOMREQUEST => 'GET',
    CURLOPT_HTTPHEADER => array(
        'Authorization: Bearer ' . $owner_token,
        'Accept: application/json',
        'Content-Type: application/json'
    ),
));

$response = curl_exec($curl);

if(curl_errno($curl)) {
    echo 'Error: ' . curl_error($curl);
} else {
    echo $response;
}

curl_close($curl);
curl -X GET \
  https://api.slotify.ca/v1/schedulers \
  -H 'Authorization: Bearer ' \
  -H 'Accept: application/json'

Example Response:

Following response will be provided by Slotify server when this endpoint is called:

  • 200 Ok
{
    "data": [
        {
            "slug": "instant",
            "mode": "round_robin",
            "uuid": "28f0b45d-d14f-438f-b59a-833a57a31147",
            "name": "Instant Scheduler",
            "color": "#84cc16",
            "event": {
                "what": "Meeting with John Doe",
                "location": {
                    "type": "google_meet"
                },
                "start_at": "2024-09-03",
                "description": "Let's meet online and discuss details"
            },
            "graph": "instant",
            "duration": "30 minutes",
            "timezone": "America/Toronto",
            "unit_price": 0,
            "min_notice": "1 days",
            "created_at": "2024-09-03T15:51:25+00:00",
            "updated_at": "2024-09-03T15:51:25+00:00",
            "buffer_time": "0 minutes",
            "time_format": null,
            "service_flow": "auto",
            "slot_capacity": 5,
            "booking_window": "4 weeks",
            "perday_capacity": 500,
            "min_cancellation": "1 days"
        }
    ],
    "perPage": 25,
    "currentPage": 1,
    "total": 1,
    "totalPages": 1
}