> ## Documentation Index
> Fetch the complete documentation index at: https://help.statisfy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 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.



## OpenAPI

````yaml /api/statisfy-api.openapi.json get /v1/project_templates/{template_id}
openapi: 3.1.0
info:
  description: >-
    The agent-first Statisfy API. Authenticate with an API key (`Authorization:
    Bearer stfy_live_…`), then call `GET /v1/meta/capabilities` to discover
    every operation and its schemas.
  title: Statisfy API
  version: 1.0.0
servers:
  - url: https://api.statisfy.com
    description: Production
security: []
paths:
  /v1/project_templates/{template_id}:
    get:
      tags:
        - project_templates
      summary: Get a project template with its tasks
      description: >-
        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.
      operationId: project_templates_get
      parameters:
        - description: The template's id, as GET /v1/project_templates lists it
          in: path
          name: template_id
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProjectTemplateRecord'
          description: Successful Response
      security:
        - HTTPBearer: []
components:
  schemas:
    ProjectTemplateRecord:
      properties:
        account_specific:
          description: 'For an account''s projects: a create from it then needs an account'
          title: Account Specific
          type: boolean
        assignee_role:
          anyOf:
            - type: string
            - type: 'null'
          description: The account role (a user field, by key) a project is assigned to
          title: Assignee Role
        cascade_dates:
          description: Whether moving a task's dates moves the tasks that wait for it
          title: Cascade Dates
          type: boolean
        created_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          title: Created At
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
        due_within:
          description: Days from the project's start the project is due
          title: Due Within
          type: integer
        id:
          title: Id
          type: string
        missing_fields:
          description: Custom fields the template names that no longer exist
          items:
            $ref: '#/components/schemas/MissingField'
          title: Missing Fields
          type: array
        name:
          title: Name
          type: string
        project_fields:
          description: The custom fields its projects have, by key
          items:
            type: string
          title: Project Fields
          type: array
        project_status_template:
          anyOf:
            - $ref: '#/components/schemas/StatusTemplateRef'
            - type: 'null'
          description: >-
            The status template its projects use; null: the workspace's global
            one
        synced:
          description: >-
            Synced from another tool, which owns it: it cannot be changed or
            deleted here
          title: Synced
          type: boolean
        task_fields:
          description: The custom fields its projects' tasks have, by key
          items:
            type: string
          title: Task Fields
          type: array
        task_status_template:
          anyOf:
            - $ref: '#/components/schemas/StatusTemplateRef'
            - type: 'null'
          description: 'The status template its tasks use; null: the workspace''s global one'
        tasks:
          items:
            $ref: '#/components/schemas/TemplateTask'
          title: Tasks
          type: array
      required:
        - id
        - name
        - account_specific
        - due_within
        - cascade_dates
        - assignee_role
        - project_status_template
        - task_status_template
        - tasks
        - project_fields
        - task_fields
        - synced
      title: ProjectTemplateRecord
      type: object
    MissingField:
      properties:
        custom_field_id:
          title: Custom Field Id
          type: integer
        label:
          default: ''
          title: Label
          type: string
        location:
          description: >-
            Where the template names it, such as `assignee_role` or
            `task[<id>].assignee_role`
          title: Location
          type: string
      required:
        - location
        - custom_field_id
      title: MissingField
      type: object
    StatusTemplateRef:
      properties:
        id:
          title: Id
          type: string
        name:
          title: Name
          type: string
      required:
        - id
        - name
      title: StatusTemplateRef
      type: object
    TemplateTask:
      properties:
        assignee_role:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            The account role (a user field of the account, by key) whose person
            a project's task is assigned to
          title: Assignee Role
        depends_on:
          description: Ids of the template tasks it waits for
          items:
            type: string
          title: Depends On
          type: array
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
        due_within:
          description: >-
            Days after the task starts that it is due (a project's task is due
            on day start_day + due_within)
          title: Due Within
          type: integer
        id:
          description: The task's id within the template
          title: Id
          type: string
        parent:
          anyOf:
            - type: string
            - type: 'null'
          description: The id of the template task it sits under, or null
          title: Parent
        position:
          anyOf:
            - type: string
            - type: 'null'
          title: Position
        priority:
          anyOf:
            - enum:
                - low
                - medium
                - high
              type: string
            - type: 'null'
          title: Priority
        start_day:
          description: Days from the project's start the task starts on
          title: Start Day
          type: integer
        status:
          anyOf:
            - type: string
            - type: 'null'
          description: The status a project's task starts in
          title: Status
        title:
          title: Title
          type: string
        type:
          description: task, or milestone (a top-level task other tasks sit under)
          enum:
            - task
            - milestone
          title: Type
          type: string
      required:
        - id
        - title
        - type
        - parent
        - start_day
        - due_within
        - assignee_role
        - status
      title: TemplateTask
      type: object
  securitySchemes:
    HTTPBearer:
      scheme: bearer
      type: http
      description: >-
        An API key, sent as `Authorization: Bearer stfy_live_…`. See
        [Authentication](/rest-api/authentication) for how to get one and which
        scopes it needs.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.