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

# Search tasks with AND/OR filters

> Like listing, with the filter as a JSON tree: a condition `{"field", "op", "value"}` or a group `{"and": [...]}` / `{"or": [...]}`, at most 3 levels deep and 20 conditions. Standard fields sit at the top level and custom fields under `fields`, keyed as GET /v1/fields?object=task lists them. A task's name is `title` (there is no `name`). `type` is activity_task, risk_mitigation, expansion, key_next_step, escalation, project or milestone. `status` is the status's name and `status_group` its group: not_started, active, done or archived, or null when the status has none. `priority` is low, medium or high, or null when not set. `account` holds an account's id and `account_name` its name; `project` a project's id and `project_name` its title; `parent` the parent task's id; `activity` the activity the task came from. `assignee` holds a person's id and `assignee_name` their name; `assignee_type` is `user`, `contact`, `vendor` or `digital_worker`. A task with several assignees shows the earliest, and an `assignee` filter matches any of them. `creator` holds a user's id. Dates are YYYY-MM-DD; `created_at` and `updated_at` are their UTC day. Deleted tasks are never returned, nor customer goals, feature requests, issues and cancellations, which integrations and Statisfy's own processing write.



## OpenAPI

````yaml /api/statisfy-api.openapi.json post /v1/objects/task/records/search
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/task/records/search:
    post:
      tags:
        - tasks
      summary: Search tasks with AND/OR filters
      description: >-
        Like listing, with the filter as a JSON tree: a condition `{"field",
        "op", "value"}` or a group `{"and": [...]}` / `{"or": [...]}`, at most 3
        levels deep and 20 conditions. Standard fields sit at the top level and
        custom fields under `fields`, keyed as GET /v1/fields?object=task lists
        them. A task's name is `title` (there is no `name`). `type` is
        activity_task, risk_mitigation, expansion, key_next_step, escalation,
        project or milestone. `status` is the status's name and `status_group`
        its group: not_started, active, done or archived, or null when the
        status has none. `priority` is low, medium or high, or null when not
        set. `account` holds an account's id and `account_name` its name;
        `project` a project's id and `project_name` its title; `parent` the
        parent task's id; `activity` the activity the task came from. `assignee`
        holds a person's id and `assignee_name` their name; `assignee_type` is
        `user`, `contact`, `vendor` or `digital_worker`. A task with several
        assignees shows the earliest, and an `assignee` filter matches any of
        them. `creator` holds a user's id. Dates are YYYY-MM-DD; `created_at`
        and `updated_at` are their UTC day. Deleted tasks are never returned,
        nor customer goals, feature requests, issues and cancellations, which
        integrations and Statisfy's own processing write.
      operationId: tasks_search
      requestBody:
        content:
          application/json:
            schema:
              additionalProperties: false
              properties:
                cursor:
                  anyOf:
                    - type: string
                    - type: 'null'
                  default: null
                  description: '`next_cursor` from the previous page'
                  title: Cursor
                fields:
                  anyOf:
                    - items:
                        type: string
                      type: array
                    - type: 'null'
                  default: null
                  description: >-
                    Custom field keys to return (comma-separated); all of them
                    when omitted
                  title: Fields
                filter:
                  anyOf:
                    - $ref: '#/components/schemas/FilterCondition'
                    - $ref: '#/components/schemas/FilterGroup'
                    - type: 'null'
                  default: null
                  description: A condition, or an 'and'/'or' group of them
                  title: Filter
                limit:
                  default: 25
                  maximum: 100
                  minimum: 1
                  title: Limit
                  type: integer
              type: object
        required: false
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TaskPage'
          description: Successful Response
      security:
        - HTTPBearer: []
components:
  schemas:
    FilterCondition:
      additionalProperties: false
      properties:
        field:
          title: Field
          type: string
        op:
          enum:
            - eq
            - neq
            - gt
            - gte
            - lt
            - lte
            - in
            - nin
            - contains
            - not_contains
            - starts_with
            - ends_with
            - exists
            - not_exists
          title: Op
          type: string
        value:
          default: null
          title: Value
      required:
        - field
        - op
      title: FilterCondition
      type: object
    FilterGroup:
      additionalProperties: false
      properties:
        and:
          anyOf:
            - items:
                anyOf:
                  - $ref: '#/components/schemas/FilterCondition'
                  - $ref: '#/components/schemas/FilterGroup'
              type: array
            - type: 'null'
          default: null
          title: And
        or:
          anyOf:
            - items:
                anyOf:
                  - $ref: '#/components/schemas/FilterCondition'
                  - $ref: '#/components/schemas/FilterGroup'
              type: array
            - type: 'null'
          default: null
          title: Or
      title: FilterGroup
      type: object
    TaskPage:
      properties:
        data:
          items:
            $ref: '#/components/schemas/Task'
          title: Data
          type: array
        has_more:
          default: false
          title: Has More
          type: boolean
        next_cursor:
          anyOf:
            - type: string
            - type: 'null'
          title: Next Cursor
      required:
        - data
      title: TaskPage
      type: object
    Task:
      properties:
        account:
          anyOf:
            - type: string
            - type: 'null'
          description: The id of the account the task is on
          title: Account
        account_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Account Name
        activity:
          anyOf:
            - type: string
            - type: 'null'
          description: The id of the activity the task came from
          title: Activity
        assignee:
          anyOf:
            - type: string
            - type: 'null'
          description: 'The assignee''s id: a person''s'
          title: Assignee
        assignee_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Assignee Name
        assignee_type:
          anyOf:
            - enum:
                - user
                - contact
                - vendor
                - digital_worker
              type: string
            - type: 'null'
          description: >-
            user (a teammate), contact, vendor or digital_worker; null when
            unknown
          title: Assignee Type
        created_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Created At
        creator:
          anyOf:
            - type: string
            - type: 'null'
          description: The id of the user who created the task
          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
        parent:
          anyOf:
            - type: string
            - type: 'null'
          description: The id of the parent task
          title: Parent
        priority:
          anyOf:
            - enum:
                - low
                - medium
                - high
              type: string
            - type: 'null'
          title: Priority
        project:
          anyOf:
            - type: string
            - type: 'null'
          description: The id of the project the task is in
          title: Project
        project_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Project Name
        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
        title:
          anyOf:
            - type: string
            - type: 'null'
          title: Title
        type:
          anyOf:
            - enum:
                - activity_task
                - risk_mitigation
                - expansion
                - key_next_step
                - escalation
                - project
                - milestone
              type: string
            - type: 'null'
          title: Type
        updated_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Updated At
      required:
        - id
      title: Task
      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.