List Workflows
This endpoint allows you to retrieve information about all workflows created within Slotify.
Authentication
This endpoint needs app token for authentication.
Method | GET |
---|---|
Endpoint | v1/workflow |
Headers | Accept: application/json |
Authorization: Bearer <base64_encoded_token> | |
Token Type | App |
Query Parameters
This endpoint supports query parameters:
Field | Value | Description |
---|---|---|
include | app,actions | shows app and actions |
search | name | search workflow by name |
Example Request:
Following code shows how to send request to retrieve workflows in Slotify api.
- PHP
- BASH
$endpoint = 'https://api.slotify.ca/v1/workflow';
$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/workflow \
-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": [
{
"uuid": "cc0be72c-5214-48ff-a62a-336c8fb65ed5",
"name": "Webhook Workflow",
"created_at": "2024-09-03T16:27:43+00:00",
"updated_at": "2024-09-03T16:27:43+00:00",
"description": "This should apply to all my bookings"
}
],
"perPage": 25,
"currentPage": 1,
"total": 1,
"totalPages": 1
}