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

# Task capabilities

> Per EHR instance: whether `POST /tasks` accepts `patientId` (a task on the chart with no note) and whether tasks can be assigned to staff groups. A UI hint stated as a fact about the EHR.



## OpenAPI

````yaml /openapi-v4.json get /tasks/capabilities
openapi: 3.0.0
info:
  title: Max AI Public API
  description: API for third-party marketplace apps
  version: '4.0'
  contact: {}
servers:
  - url: https://api.maxcare.ai/v4
security: []
tags: []
paths:
  /tasks/capabilities:
    get:
      tags:
        - Tasks
      summary: Task capabilities
      description: >-
        Per EHR instance: whether `POST /tasks` accepts `patientId` (a task on
        the chart with no note) and whether tasks can be assigned to staff
        groups. A UI hint stated as a fact about the EHR.
      operationId: TasksPublicController_getCapabilities
      parameters:
        - name: X-Organization-Id
          in: header
          required: true
          schema:
            type: string
          description: Target clinic organization ID
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TaskCapabilitiesSuccessResponse'
        '401':
          description: Invalid or missing API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicApiUnauthorizedResponse'
        '403':
          description: Insufficient scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicApiForbiddenResponse'
        '429':
          description: Rate limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicApiRateLimitResponse'
      security:
        - api-key: []
components:
  schemas:
    TaskCapabilitiesSuccessResponse:
      type: object
      properties:
        code:
          type: string
          description: Response code
          example: success
        data:
          $ref: '#/components/schemas/TaskCapabilitiesData'
      required:
        - code
        - data
    PublicApiUnauthorizedResponse:
      type: object
      properties:
        code:
          type: string
          description: Error code
          example: unauthorized
        message:
          type: string
          description: Human-readable error message
          example: Invalid or missing API key
        trace_id:
          type: string
          description: Trace ID for debugging
          example: 550e8400-e29b-41d4-a716-446655440000
      required:
        - code
        - message
        - trace_id
    PublicApiForbiddenResponse:
      type: object
      properties:
        code:
          type: string
          description: Error code
          example: forbidden
        message:
          type: string
          description: Human-readable error message
          example: Insufficient scope
        trace_id:
          type: string
          description: Trace ID for debugging
          example: 550e8400-e29b-41d4-a716-446655440000
      required:
        - code
        - message
        - trace_id
    PublicApiRateLimitResponse:
      type: object
      properties:
        code:
          type: string
          description: Error code
          example: rate_limit_exceeded
        message:
          type: string
          description: Human-readable error message
          example: Rate limit exceeded. Maximum 1000 requests per 60 seconds.
        trace_id:
          type: string
          description: Trace ID for debugging
          example: 550e8400-e29b-41d4-a716-446655440000
      required:
        - code
        - message
        - trace_id
    TaskCapabilitiesData:
      type: object
      properties:
        instances:
          type: array
          items:
            $ref: '#/components/schemas/TaskInstanceCapabilities'
      required:
        - instances
    TaskInstanceCapabilities:
      type: object
      properties:
        instanceId:
          type: string
          description: EHR instance id
        ehr:
          type: string
          example: modmed
        patientAnchor:
          type: boolean
          description: '`POST /tasks` accepts `patientId` (a task on the chart with no note)'
        assigneeGroups:
          type: boolean
          description: >-
            Tasks can be assigned to staff groups (`assigneeGroupIds`, `GET
            /tasks/assignee-groups`)
        dueDate:
          type: boolean
          description: Patient tasks accept `dueDate`
      required:
        - instanceId
        - ehr
        - patientAnchor
        - assigneeGroups
        - dueDate
  securitySchemes:
    api-key:
      scheme: bearer
      bearerFormat: JWT
      type: http
      description: Marketplace API key

````

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