curl --request GET \
--url https://api.statisfy.com/v1/project_templates/{template_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.statisfy.com/v1/project_templates/{template_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.statisfy.com/v1/project_templates/{template_id}', 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.statisfy.com/v1/project_templates/{template_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.statisfy.com/v1/project_templates/{template_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.statisfy.com/v1/project_templates/{template_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.statisfy.com/v1/project_templates/{template_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"account_specific": true,
"assignee_role": "<string>",
"cascade_dates": true,
"due_within": 123,
"id": "<string>",
"name": "<string>",
"project_fields": [
"<string>"
],
"project_status_template": {
"id": "<string>",
"name": "<string>"
},
"synced": true,
"task_fields": [
"<string>"
],
"task_status_template": {
"id": "<string>",
"name": "<string>"
},
"tasks": [
{
"assignee_role": "<string>",
"due_within": 123,
"id": "<string>",
"parent": "<string>",
"start_day": 123,
"status": "<string>",
"title": "<string>",
"type": "task",
"depends_on": [
"<string>"
],
"description": "<string>",
"position": "<string>",
"priority": "low"
}
],
"created_at": "2023-11-07T05:31:56Z",
"description": "<string>",
"missing_fields": [
{
"custom_field_id": 123,
"location": "<string>",
"label": ""
}
]
}Get a project template with its tasks
One project template, as the app’s template page shows it. A template answers with its tasks (each with id, title, type task or milestone, parent, priority, start_day (days from the project’s start it starts) and due_within (days after it starts that it is due), assignee_role, the status a project’s task starts in, and depends_on, the tasks it waits for), the status templates its projects and its tasks use (project_status_template, task_status_template; null: the workspace’s global one), and missing_fields, custom fields it names that no longer exist. A template synced from another tool is read only.
curl --request GET \
--url https://api.statisfy.com/v1/project_templates/{template_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.statisfy.com/v1/project_templates/{template_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.statisfy.com/v1/project_templates/{template_id}', 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.statisfy.com/v1/project_templates/{template_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.statisfy.com/v1/project_templates/{template_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.statisfy.com/v1/project_templates/{template_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.statisfy.com/v1/project_templates/{template_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"account_specific": true,
"assignee_role": "<string>",
"cascade_dates": true,
"due_within": 123,
"id": "<string>",
"name": "<string>",
"project_fields": [
"<string>"
],
"project_status_template": {
"id": "<string>",
"name": "<string>"
},
"synced": true,
"task_fields": [
"<string>"
],
"task_status_template": {
"id": "<string>",
"name": "<string>"
},
"tasks": [
{
"assignee_role": "<string>",
"due_within": 123,
"id": "<string>",
"parent": "<string>",
"start_day": 123,
"status": "<string>",
"title": "<string>",
"type": "task",
"depends_on": [
"<string>"
],
"description": "<string>",
"position": "<string>",
"priority": "low"
}
],
"created_at": "2023-11-07T05:31:56Z",
"description": "<string>",
"missing_fields": [
{
"custom_field_id": 123,
"location": "<string>",
"label": ""
}
]
}Authorizations
An API key, sent as Authorization: Bearer stfy_live_…. See Authentication for how to get one and which scopes it needs.
Response
Successful Response
Was this page helpful?