Skip to content

Get a project template

GET
/project-templates/{templateId}
Code sample: Shell / cURL
curl --request GET \
--url https://example.com/api/v1/project-templates/example \
--header 'Authorization: Bearer <token>'

Requires the projects.view permission. Returns the structure the template applies, which PATCH accepts back after it is edited.

templateId
required

Project template identifier (CUID2).

string
>= 1 characters

Project template identifier (CUID2).

The template and its structure.

Media typeapplication/json
object
data
required

A project template with the structure it applies to a new project. Projects already created from it keep their own copy.

object
category
required

Free text the gallery filters by.

string | null
counts
required

How much structure the template applies to a project.

object
automations
required
integer
>= -9007199254740991 <= 9007199254740991
customFields
required
integer
>= -9007199254740991 <= 9007199254740991
statuses
required
integer
>= -9007199254740991 <= 9007199254740991
tasks
required
integer
>= -9007199254740991 <= 9007199254740991
views
required
integer
>= -9007199254740991 <= 9007199254740991
createdAt
required
string format: date-time
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$/
createdById
required

WorkspaceMember who saved the template; null once that member is removed.

string | null
description
required
string | null
id
required
string
isDefault

Whether a project a person creates without picking a template starts from this one. Absent on an older server.

boolean
lastUsedAt
required

When anyone last created a project from the template; null when never used.

Any of:
string format: date-time
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$/
name
required
string
structure
required

The structure the template applies; null when the stored one no longer reads.

Any of:

The structure a template applies to a new project. Statuses, views and custom fields keep the ids they had when captured so view configs, automations and seed tasks can reference them; every id is remapped when a project is created from the template.

object
automations
required
Array<object>

A captured automation, validated against the automation contract only when a project is created from the template.

object
actions
required
branches
required
conditions
required
isActive
required
boolean
name
required
string
>= 1 characters
triggers
required
customFields
required
Array<object>
object
config
required
Any of:
object
key
additional properties
description
required
string | null
id
required

Id of the row in the project the template was captured from; remapped on use.

string
>= 1 characters
isRequired
required
boolean
name
required
string
>= 1 characters
options
required
Any of:
Array
position
required
integer
>= -9007199254740991 <= 9007199254740991
type
required
string
Allowed values: TEXT NUMBER DATE CHECKBOX SELECT MULTI_SELECT MEMBER URL EMAIL CURRENCY PERCENT FORMULA ID TIMER REFERENCE FILE RATING PROGRESS STATUS
libraryFields
required
Array<object>
default:
object
fieldId
required
string
>= 1 characters
position
required
integer
>= -9007199254740991 <= 9007199254740991
statuses
required
Array<object>
object
category
required

BACKLOG, UNSTARTED, STARTED or COMPLETED; the old TODO, IN_PROGRESS and DONE map to UNSTARTED, STARTED and COMPLETED. A COMPLETED status completes the task.

string
Allowed values: BACKLOG UNSTARTED STARTED COMPLETED TODO IN_PROGRESS DONE
color
required
string
id
required

Id of the row in the project the template was captured from; remapped on use.

string
>= 1 characters
name
required
string
>= 1 characters
position
required
integer
>= -9007199254740991 <= 9007199254740991
tasks
required
Array<object>
object
assigneeId
required
Any of:
string
>= 1 characters
description
required
string | null
dueInDays
required

Days from the project’s start date to the task’s due date; null leaves it undated.

Any of:
integer
>= -9007199254740991 <= 9007199254740991
labelIds
required
Array<string>
default:
priority
required
string
Allowed values: NONE LOW MEDIUM HIGH URGENT
priorityOptionId
string | null
statusId
required
Any of:
string
>= 1 characters
subtasks
required
Array<object>
default:
object
assigneeId
required
Any of:
string
>= 1 characters
description
required
string | null
dueInDays
required

Days from the project’s start date to the task’s due date; null leaves it undated.

Any of:
integer
>= -9007199254740991 <= 9007199254740991
labelIds
required
Array<string>
default:
priority
required
string
Allowed values: NONE LOW MEDIUM HIGH URGENT
priorityOptionId
string | null
statusId
required
Any of:
string
>= 1 characters
title
required
string
>= 1 characters
title
required
string
>= 1 characters
views
required
Array<object>
object
config
required
Any of:
object
key
additional properties
id
required

Id of the row in the project the template was captured from; remapped on use.

string
>= 1 characters
isDefault
required
boolean
name
required
string
>= 1 characters
position
required
integer
>= -9007199254740991 <= 9007199254740991
type
required
string
Allowed values: BOARD LIST TIMELINE CALENDAR OVERVIEW FILES DASHBOARD
workflowId
required

The workflow a new project takes when it still exists.

Any of:
string
>= 1 characters
updatedAt
required
string format: date-time
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$/

Example

{
"data": {
"structure": {
"customFields": [
{
"type": "TEXT"
}
],
"libraryFields": [],
"statuses": [
{
"category": "BACKLOG"
}
],
"tasks": [
{
"assigneeId": null,
"dueInDays": null,
"labelIds": [],
"priority": "NONE",
"subtasks": []
}
],
"views": [
{
"type": "BOARD"
}
],
"workflowId": null
}
}
}

Unauthorized.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Forbidden.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Not found.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Rate limit exceeded. Wait for Retry-After before retrying.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}
RateLimit-Limit
string
/^\d+$/

Maximum requests in the current quota window.

RateLimit-Policy
string

Quota policy in requests and window seconds, for example 60;w=60.

RateLimit-Remaining
string
/^\d+$/

Requests left in this quota window (zero when blocked).

RateLimit-Reset
string
/^\d+$/

Seconds until the current quota window resets, when available from the rate-limit store.

Retry-After
string
/^\d+$/

Seconds until another request may be attempted.