Get project template
curl --request GET \
--url https://api.cx.stax.ai/library/project_template/{project_template} \
--header 'x-api-key: <api-key>'import requests
url = "https://api.cx.stax.ai/library/project_template/{project_template}"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.cx.stax.ai/library/project_template/{project_template}', 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/{project_template}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"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"
"net/http"
"io"
)
func main() {
url := "https://api.cx.stax.ai/library/project_template/{project_template}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<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.cx.stax.ai/library/project_template/{project_template}")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cx.stax.ai/library/project_template/{project_template}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"project_template": {
"_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>"
}
}{}{}library
Get project template
Get project template details with activity, payroll trigger clients, and project/task aggregations
GET
/
library
/
project_template
/
{project_template}
Get project template
curl --request GET \
--url https://api.cx.stax.ai/library/project_template/{project_template} \
--header 'x-api-key: <api-key>'import requests
url = "https://api.cx.stax.ai/library/project_template/{project_template}"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.cx.stax.ai/library/project_template/{project_template}', 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/{project_template}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"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"
"net/http"
"io"
)
func main() {
url := "https://api.cx.stax.ai/library/project_template/{project_template}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<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.cx.stax.ai/library/project_template/{project_template}")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cx.stax.ai/library/project_template/{project_template}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"project_template": {
"_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>"
}
}{}{}