Retrieve Specific Workflow
This endpoint will be used to retrieve specific workflow for given app.
Authentication
This endpoint needs app token for authentication.
Method | GET |
---|---|
Endpoint | v1/workflow/:uuid |
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 specific workflow in Slotify api.
- PHP
- BASH
$endpoint = 'https://api.slotify.ca/v1/workflow/uuid?include=app,actions';
$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/bc7b15f9-2573-4aaa-be09-44d6c6f9c62c?include=app,actions \
-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": {
"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",
"app": {
"slug": "sample-app",
"name": "Sample App",
"uuid": "fe23bd6e-cf4d-4706-9001-a4c66ef4a756",
"token": "58534f85-ec4d-4bb3-8c41-ec1393886724",
"created_at": "2024-09-03T13:46:12+00:00",
"updated_at": "2024-09-03T13:46:12+00:00",
"description": "stay always fit and happy"
},
"actions": []
}
}