Get Checklist Types
curl --request GET \
--url https://api.xenia.team/api/v1/task/checklist-types \
--header 'workspace-id: <workspace-id>' \
--header 'x-client-key: <api-key>' \
--header 'x-client-secret: <api-key>'import requests
url = "https://api.xenia.team/api/v1/task/checklist-types"
headers = {
"workspace-id": "<workspace-id>",
"x-client-key": "<api-key>",
"x-client-secret": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {
'workspace-id': '<workspace-id>',
'x-client-key': '<api-key>',
'x-client-secret': '<api-key>'
}
};
fetch('https://api.xenia.team/api/v1/task/checklist-types', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.xenia.team/api/v1/task/checklist-types",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"workspace-id: <workspace-id>",
"x-client-key: <api-key>",
"x-client-secret: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.xenia.team/api/v1/task/checklist-types"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("workspace-id", "<workspace-id>")
req.Header.Add("x-client-key", "<api-key>")
req.Header.Add("x-client-secret", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.xenia.team/api/v1/task/checklist-types")
.header("workspace-id", "<workspace-id>")
.header("x-client-key", "<api-key>")
.header("x-client-secret", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.xenia.team/api/v1/task/checklist-types")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["workspace-id"] = '<workspace-id>'
request["x-client-key"] = '<api-key>'
request["x-client-secret"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "9742d327-1a5f-4912-9e12-ff7cb768b6e8",
"name": "SOP",
"description": "Step-by-step instructions outlining how to perform a specific process",
"createdAt": "2023-01-03T06:34:37.055Z",
"updatedAt": "2023-01-03T06:34:37.055Z"
},
{
"id": "f17c356e-577e-4c81-9f6a-efde14b1df55",
"name": "Checklist",
"description": "Follow a set of steps or track progress in a given task",
"createdAt": "2023-01-03T06:34:37.055Z",
"updatedAt": "2023-01-03T06:34:37.055Z"
},
{
"id": "632bcfc9-649f-4893-a0e7-65b47d403775",
"name": "Inspection",
"description": "Prompt Pass or Fail choices to assess whether equipment or systems are meeting standards",
"createdAt": "2023-01-03T06:34:37.055Z",
"updatedAt": "2023-01-03T06:34:37.055Z"
},
{
"id": "7f0e62dd-eea5-4d93-9d00-c30a5b1146f8",
"name": "Log",
"description": "Record data such as numbers, text responses, or other types of information",
"createdAt": "2023-01-03T06:34:37.055Z",
"updatedAt": "2023-01-03T06:34:37.055Z"
}
],
"meta": {}
}Templates
Get Template Types
Returns a list of all available checklist types for the current workspace.
GET
/
api
/
v1
/
task
/
checklist-types
Get Checklist Types
curl --request GET \
--url https://api.xenia.team/api/v1/task/checklist-types \
--header 'workspace-id: <workspace-id>' \
--header 'x-client-key: <api-key>' \
--header 'x-client-secret: <api-key>'import requests
url = "https://api.xenia.team/api/v1/task/checklist-types"
headers = {
"workspace-id": "<workspace-id>",
"x-client-key": "<api-key>",
"x-client-secret": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {
'workspace-id': '<workspace-id>',
'x-client-key': '<api-key>',
'x-client-secret': '<api-key>'
}
};
fetch('https://api.xenia.team/api/v1/task/checklist-types', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.xenia.team/api/v1/task/checklist-types",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"workspace-id: <workspace-id>",
"x-client-key: <api-key>",
"x-client-secret: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.xenia.team/api/v1/task/checklist-types"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("workspace-id", "<workspace-id>")
req.Header.Add("x-client-key", "<api-key>")
req.Header.Add("x-client-secret", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.xenia.team/api/v1/task/checklist-types")
.header("workspace-id", "<workspace-id>")
.header("x-client-key", "<api-key>")
.header("x-client-secret", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.xenia.team/api/v1/task/checklist-types")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["workspace-id"] = '<workspace-id>'
request["x-client-key"] = '<api-key>'
request["x-client-secret"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "9742d327-1a5f-4912-9e12-ff7cb768b6e8",
"name": "SOP",
"description": "Step-by-step instructions outlining how to perform a specific process",
"createdAt": "2023-01-03T06:34:37.055Z",
"updatedAt": "2023-01-03T06:34:37.055Z"
},
{
"id": "f17c356e-577e-4c81-9f6a-efde14b1df55",
"name": "Checklist",
"description": "Follow a set of steps or track progress in a given task",
"createdAt": "2023-01-03T06:34:37.055Z",
"updatedAt": "2023-01-03T06:34:37.055Z"
},
{
"id": "632bcfc9-649f-4893-a0e7-65b47d403775",
"name": "Inspection",
"description": "Prompt Pass or Fail choices to assess whether equipment or systems are meeting standards",
"createdAt": "2023-01-03T06:34:37.055Z",
"updatedAt": "2023-01-03T06:34:37.055Z"
},
{
"id": "7f0e62dd-eea5-4d93-9d00-c30a5b1146f8",
"name": "Log",
"description": "Record data such as numbers, text responses, or other types of information",
"createdAt": "2023-01-03T06:34:37.055Z",
"updatedAt": "2023-01-03T06:34:37.055Z"
}
],
"meta": {}
}⌘I