Slotify

Retrieve Specific Scheduler

This endpoint will be used to retrieve specific scheduler for given app;

Authentication

This endpoint needs app token for authentication.

MethodGET
Endpointv1/schedulers/:uuid
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 specific scehduler in Slotify api.

  • PHP
  • BASH
$endpoint = 'https://api.slotify.ca/v1/sechedulers/uuid?include=resources,rules';
$owner_token = base64_encode('email: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/bc7b15f9-2573-4aaa-be09-44d6c6f9c62c?include=resources,rules \
  -H 'Authorization: Bearer ' \
  -H 'Accept: application/json'

Example Response:

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

  • 200 Ok
{
    "success": true,
    "data": {
        "mode": "round_robin",
        "uuid": "d6fae7ba-56b7-4845-a3eb-1a7064e3d200",
        "name": "Dhruti's Working Hours",
        "color": "#f5f5f5",
        "graph": "instant",
        "duration": "30 minutes",
        "timezone": null,
        "min_notice": "1 hours",
        "created_at": "2024-04-30T21:24:00+00:00",
        "updated_at": "2024-04-30T21:24:00+00:00",
        "buffer_time": "0 minutes",
        "time_format": null,
        "slot_capacity": 1,
        "booking_window": "6 months",
        "perday_capacity": 0,
        "min_cancellation": "1 hours",
        "resources": [],
        "rules": []
    }
}