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

# List task context

> Records from connected apps attached to a task, as they were saved.



## OpenAPI

````yaml GET /tasks/{taskId}/context
openapi: 3.1.0
info:
  title: Whirl API
  version: 1.0.0
  description: >-
    Read and change Whirl workspaces, tasks, reminders, agents' instructions and
    approvals as the signed-in user. The same operations are available as tools
    on the MCP server at /mcp.
servers:
  - url: https://api.whirl.sh/api/v1
security:
  - oauth2: []
paths:
  /tasks/{taskId}/context:
    get:
      tags:
        - workspace
      summary: List task context
      description: >-
        List a task's attached source records and their saved snapshots. Use
        provider research for current data.
      operationId: list_task_context
      parameters:
        - name: taskId
          in: path
          required: true
          schema:
            type: string
            minLength: 1
            maxLength: 64
            description: Task id from list_tasks or search_tasks.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  context:
                    maxItems: 50
                    type: array
                    items:
                      anyOf:
                        - type: object
                          properties:
                            entityType:
                              type: string
                              minLength: 1
                              maxLength: 64
                            entityId:
                              type: string
                              minLength: 1
                              maxLength: 256
                            title:
                              type: string
                              minLength: 1
                              maxLength: 160
                            url:
                              type: string
                              maxLength: 2048
                              format: uri
                            details:
                              maxItems: 2
                              type: array
                              items:
                                anyOf:
                                  - type: string
                                    minLength: 1
                                    maxLength: 160
                                  - type: object
                                    properties:
                                      at:
                                        type: integer
                                        minimum: -9007199254740991
                                        maximum: 9007199254740991
                                      hasTime:
                                        type: boolean
                                    required:
                                      - at
                                      - hasTime
                                    additionalProperties: false
                            contextId:
                              type: string
                            integration:
                              type: string
                            connectedAccount:
                              type: string
                          required:
                            - entityType
                            - entityId
                            - title
                            - details
                            - contextId
                            - integration
                            - connectedAccount
                          additionalProperties: false
                        - type: object
                          properties:
                            title:
                              type: string
                              minLength: 1
                              maxLength: 160
                            value:
                              anyOf:
                                - type: string
                                  minLength: 1
                                  maxLength: 2048
                                - type: number
                            icon:
                              type: string
                              enum:
                                - info
                                - text
                                - hash
                                - banknote
                                - chart-column
                                - percent
                                - calendar
                                - clock
                                - user
                                - building-2
                                - map-pin
                                - package
                                - tag
                                - link
                                - lightbulb
                            integration:
                              type: string
                              const: whirl
                            entityType:
                              type: string
                              const: fact
                            entityId:
                              type: string
                              minLength: 1
                              maxLength: 256
                            contextId:
                              type: string
                          required:
                            - title
                            - value
                            - integration
                            - entityType
                            - entityId
                            - contextId
                          additionalProperties: false
                required:
                  - context
                additionalProperties: false
        '400':
          $ref: '#/components/responses/Problem'
        '401':
          $ref: '#/components/responses/Problem'
        '403':
          $ref: '#/components/responses/Problem'
        '404':
          $ref: '#/components/responses/Problem'
        '409':
          $ref: '#/components/responses/Problem'
        '422':
          $ref: '#/components/responses/Problem'
        '429':
          $ref: '#/components/responses/Problem'
      security:
        - oauth2:
            - workspace:read
components:
  responses:
    Problem:
      description: RFC 9457 problem details
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Problem'
  schemas:
    Problem:
      type: object
      properties:
        type:
          type: string
        title:
          type: string
        status:
          type: integer
        detail:
          type: string
        code:
          type: string
      required:
        - title
        - status
        - code
  securitySchemes:
    oauth2:
      type: oauth2
      flows:
        authorizationCode:
          authorizationUrl: https://api.whirl.sh/oauth/authorize
          tokenUrl: https://api.whirl.sh/oauth/token
          refreshUrl: https://api.whirl.sh/oauth/token
          scopes:
            workspace:read: >-
              Workspaces, tasks, People, task context, notes, messages,
              reminders, and pending approvals.
            workspace:write: >-
              Create and update tasks, People, task context, notes, tags,
              reminders, and workspaces.
            agents:read: >-
              Agents, runs, configuration, handbook, memory, tone examples,
              scheduled tasks, and connected-service research.
            agents:write: >-
              Edit agent configuration, handbook, memory, tone examples, and
              schedules, and give agents tasks.
            approvals:write: Approve, reject, or edit actions agents want to take.
            offline_access: >-
              Keep access without asking you to sign in again, until you
              disconnect it.

````

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