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

# Create a status template

> Creates a status template, as the app's Templates page does, and returns it with 201. `name` is required and unique. `statuses` is the whole list, in order, by group (not_started, then active, done, archived): a status with an `id` keeps it, renamed or recolored; one without is new; one left out is removed, unless tasks or projects are in it (a 409). It is used nowhere until it is set: on a project template with PATCH /v1/project_templates/{template_id} (`project_status_template`, `task_status_template`). A template answers with its `statuses` in order (each with `id`, `name`, `color` and `group`: not_started, active, done or archived) and `used_by`, where it is set: on a project, a project's tasks, a task type, or a project template's projects or tasks. `is_global` marks the workspace's global template, used where none is set.



## OpenAPI

````yaml /api/statisfy-api.openapi.json post /v1/status_templates
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/status_templates:
    post:
      tags:
        - status_templates
      summary: Create a status template
      description: >-
        Creates a status template, as the app's Templates page does, and returns
        it with 201. `name` is required and unique. `statuses` is the whole
        list, in order, by group (not_started, then active, done, archived): a
        status with an `id` keeps it, renamed or recolored; one without is new;
        one left out is removed, unless tasks or projects are in it (a 409). It
        is used nowhere until it is set: on a project template with PATCH
        /v1/project_templates/{template_id} (`project_status_template`,
        `task_status_template`). A template answers with its `statuses` in order
        (each with `id`, `name`, `color` and `group`: not_started, active, done
        or archived) and `used_by`, where it is set: on a project, a project's
        tasks, a task type, or a project template's projects or tasks.
        `is_global` marks the workspace's global template, used where none is
        set.
      operationId: status_templates_create
      requestBody:
        content:
          application/json:
            schema:
              additionalProperties: false
              properties:
                name:
                  maxLength: 255
                  minLength: 1
                  title: Name
                  type: string
                statuses:
                  items:
                    $ref: '#/components/schemas/StatusBody'
                  maxItems: 100
                  title: Statuses
                  type: array
              required:
                - name
              type: object
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StatusTemplateRecord'
          description: Successful Response
      security:
        - HTTPBearer: []
components:
  schemas:
    StatusBody:
      additionalProperties: false
      properties:
        color:
          anyOf:
            - pattern: ^#[0-9A-Fa-f]{3}([0-9A-Fa-f]{3})?$
              type: string
            - type: 'null'
          default: null
          description: A hex color; a new status defaults to the app's grey
          title: Color
        group:
          enum:
            - not_started
            - active
            - done
            - archived
          title: Group
          type: string
        id:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          description: >-
            An existing status's id keeps it (renamed or recolored); none: a new
            status
          title: Id
        name:
          maxLength: 100
          minLength: 1
          title: Name
          type: string
      required:
        - name
        - group
      title: StatusBody
      type: object
    StatusTemplateRecord:
      properties:
        created_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          title: Created At
        id:
          title: Id
          type: string
        is_global:
          description: The workspace's global template, used where no other is set
          title: Is Global
          type: boolean
        name:
          title: Name
          type: string
        statuses:
          items:
            $ref: '#/components/schemas/Status'
          title: Statuses
          type: array
        updated_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          title: Updated At
        used_by:
          items:
            $ref: '#/components/schemas/Usage'
          title: Used By
          type: array
      required:
        - id
        - name
        - is_global
        - statuses
      title: StatusTemplateRecord
      type: object
    Status:
      properties:
        color:
          title: Color
          type: string
        group:
          anyOf:
            - enum:
                - not_started
                - active
                - done
                - archived
              type: string
            - type: 'null'
          description: not_started, active, done or archived
          title: Group
        id:
          title: Id
          type: string
        name:
          title: Name
          type: string
      required:
        - id
        - name
        - color
        - group
      title: Status
      type: object
    Usage:
      properties:
        id:
          description: That record's id (a task type's name for task_type)
          title: Id
          type: string
        object:
          description: >-
            What uses it: project, project_task (a project's tasks), task_type,
            project_template (its projects) or project_template_task (its tasks)
          title: Object
          type: string
      required:
        - object
        - id
      title: Usage
      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.