List project templates
curl --request POST \
--url https://api.cx.stax.ai/library/project_template/_list \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"filters": {
"data": [
{
"key": "<string>",
"op": "<string>",
"value": "<unknown>"
}
],
"search": "<string>",
"tags": [
"<string>"
]
},
"page": {
"limit": 123,
"skip": 123
},
"sort": {
"field": "<string>",
"last": "<unknown>",
"order": 123
}
}
'import requests
url = "https://api.cx.stax.ai/library/project_template/_list"
payload = {
"filters": {
"data": [
{
"key": "<string>",
"op": "<string>",
"value": "<unknown>"
}
],
"search": "<string>",
"tags": ["<string>"]
},
"page": {
"limit": 123,
"skip": 123
},
"sort": {
"field": "<string>",
"last": "<unknown>",
"order": 123
}
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
filters: {
data: [{key: '<string>', op: '<string>', value: '<unknown>'}],
search: '<string>',
tags: ['<string>']
},
page: {limit: 123, skip: 123},
sort: {field: '<string>', last: '<unknown>', order: 123}
})
};
fetch('https://api.cx.stax.ai/library/project_template/_list', 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.cx.stax.ai/library/project_template/_list",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'filters' => [
'data' => [
[
'key' => '<string>',
'op' => '<string>',
'value' => '<unknown>'
]
],
'search' => '<string>',
'tags' => [
'<string>'
]
],
'page' => [
'limit' => 123,
'skip' => 123
],
'sort' => [
'field' => '<string>',
'last' => '<unknown>',
'order' => 123
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.cx.stax.ai/library/project_template/_list"
payload := strings.NewReader("{\n \"filters\": {\n \"data\": [\n {\n \"key\": \"<string>\",\n \"op\": \"<string>\",\n \"value\": \"<unknown>\"\n }\n ],\n \"search\": \"<string>\",\n \"tags\": [\n \"<string>\"\n ]\n },\n \"page\": {\n \"limit\": 123,\n \"skip\": 123\n },\n \"sort\": {\n \"field\": \"<string>\",\n \"last\": \"<unknown>\",\n \"order\": 123\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.cx.stax.ai/library/project_template/_list")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"filters\": {\n \"data\": [\n {\n \"key\": \"<string>\",\n \"op\": \"<string>\",\n \"value\": \"<unknown>\"\n }\n ],\n \"search\": \"<string>\",\n \"tags\": [\n \"<string>\"\n ]\n },\n \"page\": {\n \"limit\": 123,\n \"skip\": 123\n },\n \"sort\": {\n \"field\": \"<string>\",\n \"last\": \"<unknown>\",\n \"order\": 123\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cx.stax.ai/library/project_template/_list")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"filters\": {\n \"data\": [\n {\n \"key\": \"<string>\",\n \"op\": \"<string>\",\n \"value\": \"<unknown>\"\n }\n ],\n \"search\": \"<string>\",\n \"tags\": [\n \"<string>\"\n ]\n },\n \"page\": {\n \"limit\": 123,\n \"skip\": 123\n },\n \"sort\": {\n \"field\": \"<string>\",\n \"last\": \"<unknown>\",\n \"order\": 123\n }\n}"
response = http.request(request)
puts response.read_body{
"project_templates": [
{
"_id": "<string>",
"activity": [
{
"_id": "<string>",
"action": "<string>",
"changes": [
{
"data": "<string>",
"field": "<string>",
"from": "<string>",
"to": "<string>"
}
],
"client": "<string>",
"on_id": "<string>",
"on_py": 123,
"on_type": "<string>",
"team": "<string>",
"timestamp": "<string>",
"user": "<string>"
}
],
"billing": {
"billable_field_key": "<string>",
"default_quantity": {},
"fee_item": "<string>",
"nonbillable_reason_field_key": "<string>",
"quantity_field_key": "<string>",
"require_billable_decision": true,
"revision": 123
},
"category": "<string>",
"created_at": "<string>",
"deleted_at": "<string>",
"description": "<string>",
"estimated_time": 123,
"fields": [
{
"key": "<string>",
"value": "<unknown>"
}
],
"lead": "<string>",
"lead_group": "<string>",
"n_active_projects": 123,
"n_active_tasks": 123,
"num_tasks": 123,
"projects": {
"complete": 123,
"in_progress": 123,
"on_hold": 123,
"overdue": 123,
"projects": [
"<string>"
],
"tasks": [
{
"assignee": "<string>",
"doing": 123,
"done": 123,
"overdue": 123,
"total": 123
}
],
"total": 123
},
"schedule": [
{
"client_request": "<string>",
"clients": [
"<string>"
],
"clients_filter": {
"assignee": [
"<string>"
],
"data": [
{
"key": "<string>",
"op": "<string>",
"value": "<unknown>"
}
],
"status": [
"<string>"
],
"tags": [
"<string>"
]
},
"deals": [
"<string>"
],
"deals_filter": {
"funnel": [
"<string>"
],
"owner": [
"<string>"
],
"source": [
"<string>"
],
"stage": [
"<string>"
],
"status": [
"<string>"
],
"value": [
{
"key": "<string>",
"op": "<string>",
"value": "<unknown>"
}
]
},
"due": "<string>",
"fields": [
{
"key": "<string>",
"value": "<unknown>"
}
],
"file": "<string>",
"frequency": "<string>",
"ignore_active": true,
"lead": "<string>",
"lead_group": "<string>",
"plans": [
"<string>"
],
"plans_filter": {
"client": [
"<string>"
],
"data": [
{
"key": "<string>",
"op": "<string>",
"value": "<unknown>"
}
],
"provisions": {},
"pye": "<unknown>",
"status": [
"<string>"
],
"tags": [
"<string>"
],
"type": [
"<string>"
]
},
"timestamp": "<string>"
}
],
"tags": [
"<string>"
],
"tasks": [
{
"assignee": "<string>",
"assignee_group": "<string>",
"automation": "<string>",
"automation_config": [
{
"key": "<string>",
"value": "<unknown>"
}
],
"automation_timing": {
"anchor": "<string>",
"date": "<string>",
"run_after_days": 123,
"run_hour": 123
},
"billable": true,
"billing_decision": true,
"blocked_fields": [
"<string>"
],
"client_task_data": {
"allow_skip_census_upload": "<string>",
"census_upload_instructions": "<string>",
"census_v2_employee_data_policy": "any",
"census_v2_export_field": "<string>",
"census_v2_export_file_type": "<string>",
"census_v2_flow_preset": "company_contacts_ownership_payroll_census",
"destination": "<string>",
"download_file": "<string>",
"form_file": "<string>",
"form_template": "<string>",
"notice_file": "<string>",
"payroll_connect_instructions": "<string>",
"payroll_enabled": "<string>",
"payroll_upload_instructions": "<string>",
"py": "<string>",
"url": "<string>",
"w2_upload_instructions": "<string>"
},
"client_task_type": "<string>",
"description": "<string>",
"due_after_days": 123,
"due_static": "<string>",
"fields_to_complete": [
"<string>"
],
"internal_task_data": {
"form_id": "<string>",
"py": "<string>",
"task_type": "<string>",
"url": "<string>"
},
"internal_task_type": "<string>",
"log_completion_to": "<string>",
"log_completion_type": "<string>",
"notes": "<string>",
"required": true
}
],
"team": "<string>",
"title": "<string>",
"triggers": [
{
"file_upload": {
"directory": "<string>",
"file_field_key": "<string>",
"plan_type": "<string>",
"relative_path": "<string>"
},
"form_email_field": "<string>",
"form_file_field": "<string>",
"form_name_field": "<string>",
"form_template": "<string>",
"lead": "<string>",
"lead_group": "<string>",
"payroll_trigger_clients": 123,
"type": "<string>"
}
],
"view": "<string>"
}
],
"total": 123
}{}{}library
List project templates
List project templates with filtering, sorting, and pagination. Supports minimal data mode. Non-minimal responses include schedules, task counts, and the number of active (not completed) projects launched from each template plus the incomplete tasks on those projects.
POST
/
library
/
project_template
/
_list
List project templates
curl --request POST \
--url https://api.cx.stax.ai/library/project_template/_list \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"filters": {
"data": [
{
"key": "<string>",
"op": "<string>",
"value": "<unknown>"
}
],
"search": "<string>",
"tags": [
"<string>"
]
},
"page": {
"limit": 123,
"skip": 123
},
"sort": {
"field": "<string>",
"last": "<unknown>",
"order": 123
}
}
'import requests
url = "https://api.cx.stax.ai/library/project_template/_list"
payload = {
"filters": {
"data": [
{
"key": "<string>",
"op": "<string>",
"value": "<unknown>"
}
],
"search": "<string>",
"tags": ["<string>"]
},
"page": {
"limit": 123,
"skip": 123
},
"sort": {
"field": "<string>",
"last": "<unknown>",
"order": 123
}
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
filters: {
data: [{key: '<string>', op: '<string>', value: '<unknown>'}],
search: '<string>',
tags: ['<string>']
},
page: {limit: 123, skip: 123},
sort: {field: '<string>', last: '<unknown>', order: 123}
})
};
fetch('https://api.cx.stax.ai/library/project_template/_list', 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.cx.stax.ai/library/project_template/_list",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'filters' => [
'data' => [
[
'key' => '<string>',
'op' => '<string>',
'value' => '<unknown>'
]
],
'search' => '<string>',
'tags' => [
'<string>'
]
],
'page' => [
'limit' => 123,
'skip' => 123
],
'sort' => [
'field' => '<string>',
'last' => '<unknown>',
'order' => 123
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.cx.stax.ai/library/project_template/_list"
payload := strings.NewReader("{\n \"filters\": {\n \"data\": [\n {\n \"key\": \"<string>\",\n \"op\": \"<string>\",\n \"value\": \"<unknown>\"\n }\n ],\n \"search\": \"<string>\",\n \"tags\": [\n \"<string>\"\n ]\n },\n \"page\": {\n \"limit\": 123,\n \"skip\": 123\n },\n \"sort\": {\n \"field\": \"<string>\",\n \"last\": \"<unknown>\",\n \"order\": 123\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.cx.stax.ai/library/project_template/_list")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"filters\": {\n \"data\": [\n {\n \"key\": \"<string>\",\n \"op\": \"<string>\",\n \"value\": \"<unknown>\"\n }\n ],\n \"search\": \"<string>\",\n \"tags\": [\n \"<string>\"\n ]\n },\n \"page\": {\n \"limit\": 123,\n \"skip\": 123\n },\n \"sort\": {\n \"field\": \"<string>\",\n \"last\": \"<unknown>\",\n \"order\": 123\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cx.stax.ai/library/project_template/_list")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"filters\": {\n \"data\": [\n {\n \"key\": \"<string>\",\n \"op\": \"<string>\",\n \"value\": \"<unknown>\"\n }\n ],\n \"search\": \"<string>\",\n \"tags\": [\n \"<string>\"\n ]\n },\n \"page\": {\n \"limit\": 123,\n \"skip\": 123\n },\n \"sort\": {\n \"field\": \"<string>\",\n \"last\": \"<unknown>\",\n \"order\": 123\n }\n}"
response = http.request(request)
puts response.read_body{
"project_templates": [
{
"_id": "<string>",
"activity": [
{
"_id": "<string>",
"action": "<string>",
"changes": [
{
"data": "<string>",
"field": "<string>",
"from": "<string>",
"to": "<string>"
}
],
"client": "<string>",
"on_id": "<string>",
"on_py": 123,
"on_type": "<string>",
"team": "<string>",
"timestamp": "<string>",
"user": "<string>"
}
],
"billing": {
"billable_field_key": "<string>",
"default_quantity": {},
"fee_item": "<string>",
"nonbillable_reason_field_key": "<string>",
"quantity_field_key": "<string>",
"require_billable_decision": true,
"revision": 123
},
"category": "<string>",
"created_at": "<string>",
"deleted_at": "<string>",
"description": "<string>",
"estimated_time": 123,
"fields": [
{
"key": "<string>",
"value": "<unknown>"
}
],
"lead": "<string>",
"lead_group": "<string>",
"n_active_projects": 123,
"n_active_tasks": 123,
"num_tasks": 123,
"projects": {
"complete": 123,
"in_progress": 123,
"on_hold": 123,
"overdue": 123,
"projects": [
"<string>"
],
"tasks": [
{
"assignee": "<string>",
"doing": 123,
"done": 123,
"overdue": 123,
"total": 123
}
],
"total": 123
},
"schedule": [
{
"client_request": "<string>",
"clients": [
"<string>"
],
"clients_filter": {
"assignee": [
"<string>"
],
"data": [
{
"key": "<string>",
"op": "<string>",
"value": "<unknown>"
}
],
"status": [
"<string>"
],
"tags": [
"<string>"
]
},
"deals": [
"<string>"
],
"deals_filter": {
"funnel": [
"<string>"
],
"owner": [
"<string>"
],
"source": [
"<string>"
],
"stage": [
"<string>"
],
"status": [
"<string>"
],
"value": [
{
"key": "<string>",
"op": "<string>",
"value": "<unknown>"
}
]
},
"due": "<string>",
"fields": [
{
"key": "<string>",
"value": "<unknown>"
}
],
"file": "<string>",
"frequency": "<string>",
"ignore_active": true,
"lead": "<string>",
"lead_group": "<string>",
"plans": [
"<string>"
],
"plans_filter": {
"client": [
"<string>"
],
"data": [
{
"key": "<string>",
"op": "<string>",
"value": "<unknown>"
}
],
"provisions": {},
"pye": "<unknown>",
"status": [
"<string>"
],
"tags": [
"<string>"
],
"type": [
"<string>"
]
},
"timestamp": "<string>"
}
],
"tags": [
"<string>"
],
"tasks": [
{
"assignee": "<string>",
"assignee_group": "<string>",
"automation": "<string>",
"automation_config": [
{
"key": "<string>",
"value": "<unknown>"
}
],
"automation_timing": {
"anchor": "<string>",
"date": "<string>",
"run_after_days": 123,
"run_hour": 123
},
"billable": true,
"billing_decision": true,
"blocked_fields": [
"<string>"
],
"client_task_data": {
"allow_skip_census_upload": "<string>",
"census_upload_instructions": "<string>",
"census_v2_employee_data_policy": "any",
"census_v2_export_field": "<string>",
"census_v2_export_file_type": "<string>",
"census_v2_flow_preset": "company_contacts_ownership_payroll_census",
"destination": "<string>",
"download_file": "<string>",
"form_file": "<string>",
"form_template": "<string>",
"notice_file": "<string>",
"payroll_connect_instructions": "<string>",
"payroll_enabled": "<string>",
"payroll_upload_instructions": "<string>",
"py": "<string>",
"url": "<string>",
"w2_upload_instructions": "<string>"
},
"client_task_type": "<string>",
"description": "<string>",
"due_after_days": 123,
"due_static": "<string>",
"fields_to_complete": [
"<string>"
],
"internal_task_data": {
"form_id": "<string>",
"py": "<string>",
"task_type": "<string>",
"url": "<string>"
},
"internal_task_type": "<string>",
"log_completion_to": "<string>",
"log_completion_type": "<string>",
"notes": "<string>",
"required": true
}
],
"team": "<string>",
"title": "<string>",
"triggers": [
{
"file_upload": {
"directory": "<string>",
"file_field_key": "<string>",
"plan_type": "<string>",
"relative_path": "<string>"
},
"form_email_field": "<string>",
"form_file_field": "<string>",
"form_name_field": "<string>",
"form_template": "<string>",
"lead": "<string>",
"lead_group": "<string>",
"payroll_trigger_clients": 123,
"type": "<string>"
}
],
"view": "<string>"
}
],
"total": 123
}{}{}Authorizations
Body
application/json
List project templates request