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

# Get project

> Get project details with tasks, activity, comments, and associated data



## OpenAPI

````yaml /api-reference/cx/swagger.json get /todo/project/{project}
openapi: 3.0.0
info:
  description: CX API.
  title: CX API
  contact:
    name: API Support
    url: https://stax.ai
    email: support@stax.ai
  version: '1.0'
servers:
  - url: https://api.cx.stax.ai
security: []
paths:
  /todo/project/{project}:
    get:
      tags:
        - todo
      summary: Get project
      description: Get project details with tasks, activity, comments, and associated data
      parameters:
        - description: Project ID
          name: project
          in: path
          required: true
          schema:
            type: string
        - description: Return minimal data (set to any value)
          name: minimal
          in: query
          schema:
            type: string
      responses:
        '200':
          description: Project details
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/pkg_routes_todo_project.GetProjectResponse
        '400':
          description: Bad request - invalid project ID
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '404':
          description: Project not found or no access
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
      security:
        - ApiKeyAuth: []
components:
  schemas:
    pkg_routes_todo_project.GetProjectResponse:
      type: object
      properties:
        active:
          type: integer
        client_directory:
          description: >-
            The project's company's folder, when it has one: File and Directory
            pickers on the

            project page open there (ENG-9842).
          type: string
        overdue:
          type: integer
        project:
          $ref: '#/components/schemas/types.Project'
    types.Project:
      type: object
      properties:
        _id:
          type: string
        access:
          description: >-
            Access control - this is essentially just a list of user IDs who
            have tasks in this project that are assigned to them.

            R/W access is controlled by the individual use scopes
          type: array
          items:
            type: string
        activity:
          description: For returning when loading
          type: array
          items:
            $ref: '#/components/schemas/types.Activity'
        billing:
          $ref: '#/components/schemas/types.ProjectBilling'
        category:
          description: Category - inherited from project template (e.g. "plan_audit")
          type: string
        client:
          type: string
        client_name:
          type: string
        comments:
          type: array
          items:
            $ref: '#/components/schemas/types.Comment'
        completed_at:
          type: string
        created_at:
          description: Time tracking
          type: string
        deal:
          type: string
        deal_name:
          type: string
        deal_object:
          $ref: '#/components/schemas/types.Deal'
        deleted_at:
          type: string
        description:
          type: string
        due:
          type: string
        effective_billing_fee_item:
          description: >-
            EffectiveBillingFeeItem is resolved from a project override or its
            source template.
          type: string
        effective_billing_fee_item_name:
          type: string
        fields:
          type: array
          items:
            $ref: '#/components/schemas/types.Field'
        hours_logged:
          type: integer
        in_queue:
          type: boolean
        incomplete_tasks:
          type: integer
        lead:
          type: string
        lead_group:
          description: Queue routing
          type: string
        next:
          description: Return variables for list
          allOf:
            - $ref: '#/components/schemas/types.Task'
        plan:
          type: string
        plan_name:
          type: string
        queued_at:
          type: string
        starred:
          type: array
          items:
            type: string
        status:
          description: Status (this is based on the status of tasks within the project)
          type: string
        tags:
          type: array
          items:
            type: string
        tasks:
          type: array
          items:
            $ref: '#/components/schemas/types.Task'
        team:
          type: string
        team_wide_access:
          description: >-
            Team-wide access - if true, all team members have access to this
            project
          type: boolean
        template:
          type: string
        title:
          type: string
        total_tasks:
          type: integer
        view:
          type: string
    types.Activity:
      type: object
      properties:
        _id:
          type: string
        action:
          type: string
        changes:
          type: array
          items:
            $ref: '#/components/schemas/types.Change'
        client:
          type: string
        on_id:
          type: string
        on_py:
          type: integer
        on_type:
          type: string
        team:
          type: string
        timestamp:
          type: string
        user:
          type: string
    types.ProjectBilling:
      type: object
      properties:
        amount_override_minor:
          type: integer
        billable:
          type: boolean
        charge:
          type: string
        configuration_source:
          type: string
        contract_amount_minor:
          type: integer
        decision_at:
          type: string
        decision_by:
          type: string
        decision_reason:
          type: string
        default_quantity:
          $ref: '#/components/schemas/bson.Decimal128'
        fee_item:
          type: string
        invoice:
          type: string
        occurrence_key:
          type: string
        override_at:
          type: string
        override_by:
          type: string
        override_reason:
          type: string
        quantity:
          $ref: '#/components/schemas/bson.Decimal128'
        quantity_field_key:
          type: string
        revision:
          type: integer
        service_date:
          type: string
        status:
          type: string
    types.Comment:
      type: object
      properties:
        _id:
          type: string
        client:
          type: string
        content:
          type: string
        deleted_at:
          type: string
        likes:
          type: array
          items:
            type: string
        on_id:
          type: string
        on_type:
          type: string
        reply_to:
          type: string
        team:
          type: string
        timestamp:
          type: string
        user:
          type: string
    types.Deal:
      type: object
      properties:
        _id:
          type: string
        client:
          type: string
        close_date:
          type: string
        close_probability:
          description: Override values
          type: number
        closed_at:
          description: >-
            Set when the deal status changes to Won/Lost/Abandoned; cleared when
            reopened
          type: string
        closed_reason:
          description: >-
            Deal status is one of: "Open", "Won", "Lost", "Abandoned"

            Set when the deal is Lost or Abandoned; cleared when reopened or
            marked Won
          type: string
        closed_reason_detail:
          type: string
        created_at:
          type: string
        deleted_at:
          type: string
        ein:
          type: string
        funnel:
          type: string
        last_activity:
          type: string
        n_messages:
          type: integer
        n_tasks:
          type: integer
        name:
          type: string
        owner:
          type: string
        plan:
          type: string
        plan_number:
          type: string
        proposal_count:
          type: integer
        proposals:
          type: array
          items:
            $ref: '#/components/schemas/types.LinkedProposalSummary'
        pulse:
          description: For returning
          type: integer
        source:
          type: string
        stage:
          type: string
        status:
          type: string
        tags:
          type: array
          items:
            type: string
        team:
          type: string
        unread:
          type: boolean
        value:
          type: number
    types.Field:
      type: object
      properties:
        key:
          type: string
        value: {}
    types.Task:
      type: object
      properties:
        _id:
          type: string
        access:
          description: >-
            Access control - this is essentially just a list of user IDs who
            have tasks the project this task belongs to that are assigned to
            them.
          type: array
          items:
            type: string
        activity:
          type: array
          items:
            $ref: '#/components/schemas/types.Activity'
        assignee:
          type: string
        automation:
          description: An automation may be used to complete the task
          type: string
        automation_config:
          type: array
          items:
            $ref: '#/components/schemas/types.Field'
        automation_data: {}
        automation_logs:
          type: array
          items:
            $ref: '#/components/schemas/types.AutomationLog'
        automation_timing:
          description: >-
            AutomationTiming, when non-nil, schedules the automation to run
            later

            instead of immediately (nil = immediate). See AutomationTiming in

            project_template.go.
          allOf:
            - $ref: '#/components/schemas/types.AutomationTiming'
        billable:
          type: boolean
        blocked_fields:
          description: >-
            BlockingFields are project field keys that must be populated before
            the

            task can be completed. Unlike FieldsToComplete, these cannot be
            overridden.
          type: array
          items:
            type: string
        client:
          type: string
        client_task_data:
          description: JSON data for the client task
          allOf:
            - $ref: '#/components/schemas/types.ClientTaskData'
        client_task_type:
          description: >-
            If this is a task for the client to do, a client task type should be
            set - eg. "Census Data Collection", "Census Data Review",
            "Participant Notices", "Fill Web or Document Form", "Testing
            Corrections", "Other"
          type: string
        completed_at:
          type: string
        created_at:
          description: Time tracking
          type: string
        deleted_at:
          type: string
        description:
          type: string
        due:
          type: string
        fields_to_complete:
          description: >-
            If the task belongs to a project, it can require collecting
            specified fields for the project
          type: array
          items:
            type: string
        flagged_at:
          description: By automation
          type: string
        in_queue:
          type: boolean
        internal_task_data:
          description: JSON data for the internal task
          allOf:
            - $ref: '#/components/schemas/types.InternalTaskData'
        internal_task_type:
          description: >-
            If this is a special type (eg. payroll mapping, form selection,
            etc.), an internal task type should be set.
          type: string
        log_completion_to:
          type: string
        log_completion_type:
          description: Log completion time to project variable?
          type: string
        meeting:
          $ref: '#/components/schemas/types.Meeting'
        message:
          description: For returning when loading
          allOf:
            - $ref: '#/components/schemas/types.Message'
        next_at:
          type: string
        notes:
          type: string
        order:
          description: If the task is part of a project, the order should be tracked
          type: integer
        plan:
          type: string
        priority:
          type: integer
        project:
          type: string
        queue_group:
          description: Queue routing
          type: string
        queued_at:
          type: string
        scheduled_at:
          description: >-
            ScheduledAt is the absolute UTC instant a scheduled automation
            should fire,

            computed once from AutomationTiming at scheduling time (ENG-8103).

            Semantics: {ScheduledAt set, StartedAt nil} = pending;

            StartedAt set = claimed/fired; AutomationTiming nil = immediate.
          type: string
        started_at:
          type: string
        suggestion:
          type: integer
        team:
          type: string
        team_wide_access:
          description: >-
            Team-wide access - if true, all team members have access to this
            project
          type: boolean
        template:
          type: string
        work_logs:
          description: Work logs
          type: array
          items:
            $ref: '#/components/schemas/types.WorkLog'
    types.Change:
      type: object
      properties:
        data:
          type: string
        field:
          type: string
        from:
          type: string
        to:
          type: string
    bson.Decimal128:
      type: object
    types.LinkedProposalSummary:
      type: object
      properties:
        _id:
          type: string
        created_at:
          type: string
        name:
          type: string
        plan_type:
          type: string
        progress:
          type: number
        status:
          type: string
        updated_at:
          type: string
    types.AutomationLog:
      type: object
      properties:
        code:
          description: |-
            Code is a stable machine-readable reason (e.g. "missing_fields") so
            clients can branch on it without parsing Message.
          type: string
        execution_time:
          type: number
        message:
          type: string
        timestamp:
          type: string
        traceback:
          type: string
        type:
          type: string
    types.AutomationTiming:
      type: object
      properties:
        anchor:
          type: string
        date:
          description: YYYY-MM-DD, team-local; anchor "date" only
          type: string
        run_after_days:
          description: >-
            anchor "": >= 0 after the trigger; "project_due": signed, negative
            is before
          type: integer
        run_hour:
          description: 0..23, wall-clock in the team's local timezone
          type: integer
    types.ClientTaskData:
      type: object
      properties:
        allow_skip_census_upload:
          type: string
        census_upload_instructions:
          type: string
        census_v2_employee_data_policy:
          $ref: '#/components/schemas/sharedtypes.CensusV2EmployeeDataPolicy'
        census_v2_export_field:
          type: string
        census_v2_export_file_type:
          type: string
        census_v2_flow_preset:
          $ref: '#/components/schemas/sharedtypes.CensusV2FlowPreset'
        destination:
          type: string
        download_file:
          type: string
        file_upload:
          type: string
        follow_up_interval:
          type: integer
        follow_up_to:
          type: array
          items:
            type: string
        form_file:
          type: string
        form_response:
          description: Results
          type: string
        form_template:
          type: string
        last_follow_up:
          type: string
        notice_file:
          type: string
        payroll_connect_instructions:
          type: string
        payroll_enabled:
          type: string
        payroll_upload_instructions:
          type: string
        py:
          type: string
        url:
          type: string
        w2_upload_instructions:
          type: string
    types.InternalTaskData:
      type: object
      properties:
        efast_data:
          $ref: '#/components/schemas/types.EFastData'
        form_id:
          type: string
        py:
          type: string
        task_type:
          type: string
        url:
          type: string
    types.Meeting:
      type: object
      properties:
        _id:
          type: string
        added_tasks:
          type: array
          items:
            type: string
        attendees:
          type: array
          items:
            $ref: '#/components/schemas/types.MeetingAttendee'
        client:
          type: string
        created_at:
          type: string
        date:
          type: string
        deleted_at:
          type: string
        duration:
          type: number
        format:
          type: string
        location:
          type: string
        notes:
          type: string
        raw_transcript:
          type: string
        tasks:
          type: array
          items:
            type: string
        team:
          type: string
        transcript:
          type: array
          items:
            $ref: '#/components/schemas/types.MeetingTranscriptSpeech'
    types.Message:
      type: object
      properties:
        _id:
          type: string
        attachments:
          type: array
          items:
            $ref: '#/components/schemas/types.Attachment'
        bcc:
          type: string
        bookmark:
          type: boolean
        brief:
          description: Single-line summary
          type: string
        cc:
          type: string
        checksum:
          description: Checksum for de-duplication
          type: string
        clients:
          description: Is this message to/from a client?
          type: array
          items:
            type: string
        created_at:
          type: string
        date:
          type: string
        deleted_at:
          type: string
        domains:
          type: array
          items:
            type: string
        draft:
          type: boolean
        from:
          type: string
        html:
          type: string
        importance:
          type: integer
        in_reply_to:
          type: string
        internal:
          description: Is this message to/from only internal users?
          type: boolean
        message_folders:
          description: >-
            MessageFolders references the `folders` catalog rows this message
            belongs to

            (by their local ObjectID) — the per-mailbox equivalent of Tags
            (which is a

            team-wide label system). Each catalog row carries the provider's
            external_id;

            storing the local _id keeps renames free and gives referential
            integrity.

            Gmail = multi-label, Outlook = single-folder; the array models both.
          type: array
          items:
            type: string
        outbox:
          description: Magical stuff
          type: boolean
        private:
          description: >-
            The private flag is used if the message is from/to only internal
            admins (regardless of how many external users) that have the
            memberships.email.private flag set.

            This prevents other users from seeing external messages that may be
            private.
          type: boolean
        read:
          type: string
        references:
          type: string
        reply:
          type: string
        requires_response:
          type: boolean
        responses:
          type: array
          items:
            type: string
        safe_for_everyone:
          type: boolean
        schedule_id:
          description: >-
            ScheduleID is the Nylas message-schedule id returned by a native
            send_at

            (scheduled) send, used to reconcile the eventual Sent-folder message
            back

            onto this row (Nylas migration, Stage 4). Mirror of
            legacytypes.Message.
          type: string
        schedule_send_at:
          description: Schedule sending this at a specific time
          type: string
        secure:
          type: boolean
        send_failed:
          description: >-
            SendFailed marks a message whose provider-side send failed (Nylas

            message.send_failed webhook — typically a scheduled send) so the UI
            can

            flag it for the user to retry. Mirror of legacytypes.Message.
          type: boolean
        send_scheduled:
          type: boolean
        send_state:
          description: >-
            SendState records the provider-reported delivery state. Mirror of
            legacytypes.Message.
          type: string
        sentiment:
          type: integer
        source:
          type: string
        source_history_id:
          type: string
        source_id:
          type: string
        subject:
          type: string
        summary:
          type: array
          items:
            type: string
        tags:
          type: array
          items:
            type: string
        tasks:
          type: array
          items:
            type: string
        team:
          type: string
        text:
          type: string
        thread:
          type: string
        to:
          type: string
        unique_key:
          type: string
        user:
          type: string
    types.WorkLog:
      type: object
      properties:
        _id:
          type: string
        ended_at:
          type: string
        notes:
          type: string
        started_at:
          type: string
        time_spent:
          type: integer
        user:
          type: string
    sharedtypes.CensusV2EmployeeDataPolicy:
      type: string
      enum:
        - any
        - payroll_or_census
        - census_only
        - census_or_w2
        - w2_only
      x-enum-varnames:
        - CensusV2EmployeeDataPolicyAny
        - CensusV2EmployeeDataPolicyPayrollOrCensus
        - CensusV2EmployeeDataPolicyCensusOnly
        - CensusV2EmployeeDataPolicyCensusOrW2
        - CensusV2EmployeeDataPolicyW2Only
    sharedtypes.CensusV2FlowPreset:
      type: string
      enum:
        - company_contacts_ownership_payroll_census
        - company_contacts_ownership
        - payroll_census_only
      x-enum-varnames:
        - CensusV2FlowPresetCompanyContactsOwnershipPayrollCensus
        - CensusV2FlowPresetCompanyContactsOwnership
        - CensusV2FlowPresetPayrollCensusOnly
    types.EFastData:
      type: object
      properties:
        attachments:
          type: array
          items: {}
        dcg_attachments:
          type: array
          items: {}
        file_names:
          type: array
          items:
            type: string
        form:
          type: string
        schedule_instances:
          type: object
          additionalProperties:
            type: array
            items: {}
        schedules:
          type: array
          items:
            type: string
    types.MeetingAttendee:
      type: object
      properties:
        address:
          type: string
        name:
          type: string
        user:
          type: string
    types.MeetingTranscriptSpeech:
      type: object
      properties:
        speaker:
          type: string
        text:
          type: string
        timestamp:
          description: in seconds
          type: number
    types.Attachment:
      type: object
      properties:
        content_id:
          type: string
        file:
          type: string
        filename:
          type: string
        isInline:
          type: boolean
        size:
          type: integer
        source_id:
          type: string
        url:
          type: string
  securitySchemes:
    ApiKeyAuth:
      description: CX API key. Create one in CX under Settings → Advanced → API Keys.
      in: header
      name: x-api-key
      type: apiKey

````

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