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

> Creates a project and returns it with 201: the app's own create, with `source` statisfy and no creator. `title` is required. `account` (a live account's id), `description`, `priority` (low, medium or high), `start_date` (today, US Pacific, when not sent), `due_date` (30 days from now when not sent), `assignee` (a user's id), `status` (a status's name) and custom fields under `fields` are optional; the project may not end before it starts, defaults included. Without `status`, it starts in your workspace's `TODO` status unless its template has a status template (below); a sent `status` must be one of that template's statuses. With `template` (an id from GET /v1/project_templates) it is made from that template, as in the app: its tasks are created, scheduled from `start_date`; it starts in the first status of the template's status template, if it has one; it is due the template's number of days from now when `due_date` is not sent; a template for an account's projects needs `account`, and one that assigns the project from an account field needs that field filled on the account (a sent `assignee` still wins). A template task the app refuses is skipped and named in the answer's `warnings`: its subtasks are created at the top level, and its dependencies are left out. `warnings` also names a task created without its custom values and a custom field the template names that no longer exists. Every key is checked before anything is written, and any problem refuses the whole request with a 422 listing each one in `details`. A 500 that says the project was created names it in `details` (`project_ids`): do not create it again. Send an `Idempotency-Key` header to make a retry safe: the same key replays the first answer, including such a 500.



## OpenAPI

````yaml /api/statisfy-api.openapi.json post /v1/objects/project/records
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/objects/project/records:
    post:
      tags:
        - projects
      summary: Create a project
      description: >-
        Creates a project and returns it with 201: the app's own create, with
        `source` statisfy and no creator. `title` is required. `account` (a live
        account's id), `description`, `priority` (low, medium or high),
        `start_date` (today, US Pacific, when not sent), `due_date` (30 days
        from now when not sent), `assignee` (a user's id), `status` (a status's
        name) and custom fields under `fields` are optional; the project may not
        end before it starts, defaults included. Without `status`, it starts in
        your workspace's `TODO` status unless its template has a status template
        (below); a sent `status` must be one of that template's statuses. With
        `template` (an id from GET /v1/project_templates) it is made from that
        template, as in the app: its tasks are created, scheduled from
        `start_date`; it starts in the first status of the template's status
        template, if it has one; it is due the template's number of days from
        now when `due_date` is not sent; a template for an account's projects
        needs `account`, and one that assigns the project from an account field
        needs that field filled on the account (a sent `assignee` still wins). A
        template task the app refuses is skipped and named in the answer's
        `warnings`: its subtasks are created at the top level, and its
        dependencies are left out. `warnings` also names a task created without
        its custom values and a custom field the template names that no longer
        exists. Every key is checked before anything is written, and any problem
        refuses the whole request with a 422 listing each one in `details`. A
        500 that says the project was created names it in `details`
        (`project_ids`): do not create it again. Send an `Idempotency-Key`
        header to make a retry safe: the same key replays the first answer,
        including such a 500.
      operationId: projects_create
      requestBody:
        content:
          application/json:
            schema:
              additionalProperties: true
              description: >-
                A create body in the project's own shape: standard keys at the
                top level, custom

                keys under ``fields``. ``title`` is required.
              properties:
                account:
                  default: null
                  description: The id of the account the project is on
                  title: Account
                  type: string
                assignee:
                  default: null
                  description: A user's id
                  title: Assignee
                  type: string
                description:
                  default: null
                  description: Free text
                  title: Description
                  type: string
                due_date:
                  default: null
                  description: >-
                    YYYY-MM-DD; 30 days from now when not sent; not with a
                    template, which sets it
                  format: date
                  title: Due Date
                  type: string
                fields:
                  anyOf:
                    - additionalProperties: true
                      type: object
                    - type: 'null'
                  default: null
                  description: Custom field keys to values
                  title: Fields
                priority:
                  default: null
                  description: low, medium or high
                  enum:
                    - low
                    - medium
                    - high
                  title: Priority
                  type: string
                start_date:
                  default: null
                  description: YYYY-MM-DD; today (US Pacific) when not sent
                  format: date
                  title: Start Date
                  type: string
                template:
                  default: null
                  description: >-
                    A template's id (GET /v1/project_templates): the project is
                    made from it, its tasks included
                  title: Template
                  type: string
                title:
                  default: null
                  description: 'Required: the project''s name'
                  title: Title
                  type: string
              type: object
        required: false
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreatedProject'
          description: Successful Response
      security:
        - HTTPBearer: []
components:
  schemas:
    CreatedProject:
      description: A new project, and what its create from a template could not do.
      properties:
        account:
          anyOf:
            - type: string
            - type: 'null'
          description: The id of the account the project is on
          title: Account
        account_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Account Name
        assignee:
          anyOf:
            - type: string
            - type: 'null'
          description: The assignee's user id
          title: Assignee
        created_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Created At
        creator:
          anyOf:
            - type: string
            - type: 'null'
          description: The creator's user id
          title: Creator
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
        due_date:
          anyOf:
            - type: string
            - type: 'null'
          title: Due Date
        fields:
          additionalProperties: true
          title: Fields
          type: object
        id:
          title: Id
          type: string
        priority:
          anyOf:
            - enum:
                - low
                - medium
                - high
              type: string
            - type: 'null'
          title: Priority
        source:
          anyOf:
            - type: string
            - type: 'null'
          title: Source
        start_date:
          anyOf:
            - type: string
            - type: 'null'
          title: Start Date
        status:
          anyOf:
            - type: string
            - type: 'null'
          title: Status
        status_group:
          anyOf:
            - enum:
                - not_started
                - active
                - done
                - archived
              type: string
            - type: 'null'
          title: Status Group
        template:
          anyOf:
            - type: string
            - type: 'null'
          description: The id of the template the project was created from
          title: Template
        title:
          anyOf:
            - type: string
            - type: 'null'
          title: Title
        updated_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Updated At
        warnings:
          description: >-
            What a create from a template skipped: a template task the task
            create refused (its subtasks are then created at the top level, each
            named too), a task created without its custom values, or a custom
            field the template names that no longer exists. Empty when nothing
            was
          items:
            type: string
          title: Warnings
          type: array
      required:
        - id
      title: CreatedProject
      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.