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

# List contact tasks

> Returns tasks attached to contacts, 50 per page. Non-admins only see tasks on contacts shared with them.



## OpenAPI

````yaml /api-reference/specs/tasks.json get /api/contacts/tasks
openapi: 3.1.0
info:
  title: ConveYour API — Tasks
  description: >-
    Actionable items. Two separate resources: org-level tasks assigned to users
    or teams, and contact-level tasks attached to an individual contact.
  version: 1.0.0
servers:
  - url: https://{subdomain}.conveyour.com
    description: Your organization's ConveYour instance
    variables:
      subdomain:
        default: acme
        description: >-
          Your organization's slug — the subdomain you sign in on. Replace
          `acme` with yours: if you sign in at `bigco.conveyour.com`, enter
          `bigco`.
security:
  - conveyourToken: []
paths:
  /api/contacts/tasks:
    get:
      tags:
        - Tasks
      summary: List contact tasks
      description: >-
        Returns tasks attached to contacts, 50 per page. Non-admins only see
        tasks on contacts shared with them.
      operationId: listContactTasks
      parameters:
        - name: contact
          in: query
          required: false
          schema:
            type: string
          description: Only tasks for this contact ID.
        - name: search
          in: query
          required: false
          schema:
            type: string
          description: Substring match against the task body.
        - name: from
          in: query
          required: false
          schema:
            type: integer
          description: Only tasks due on or after this Unix timestamp.
        - name: to
          in: query
          required: false
          schema:
            type: integer
          description: Only tasks due on or before this Unix timestamp.
        - name: assigned_to
          in: query
          required: false
          schema:
            type: array
          description: Filter by assigned user ID. Repeat the key for several.
        - $ref: '#/components/parameters/teams'
      responses:
        '200':
          description: Success.
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/Envelope'
                  - type: object
                    properties:
                      data:
                        type: object
                        properties:
                          results:
                            type: array
                            items:
                              $ref: '#/components/schemas/ContactTask'
                          page:
                            type: integer
                            description: Current page.
                          pages:
                            type: integer
                            description: Total pages.
                          count:
                            type: integer
                            description: Total matching tasks.
        '403':
          description: Forbidden — the key lacks the required permission.
components:
  parameters:
    teams:
      name: teams[]
      in: query
      description: >-
        Team scope for the request, as one or more team ObjectIds. The brackets
        are required: PHP keeps only the last value for a repeated plain key, so
        `teams=A&teams=B` silently resolves to B alone. On requests with a JSON
        body you may send `teams` (no brackets) in the body instead.


        **Values that are not valid ObjectIds are silently ignored** — a
        mistyped team ID behaves as if no team was sent. See the [teams section
        of the API conventions guide](/guides/api-conventions#team-scoping).
      style: form
      explode: true
      schema:
        type: array
        items:
          type: string
      example:
        - 64a1b2c3d4e5f6a7b8c9d0ff
  schemas:
    Envelope:
      type: object
      description: The common response envelope shared by all ConveYour endpoints.
      properties:
        status:
          type: string
          enum:
            - ok
            - failed
          description: '`ok` on success, `failed` on error.'
        message:
          type: string
          description: Human-readable description of the result.
        data:
          description: >-
            The response payload — an object or an array depending on the
            endpoint.
    ContactTask:
      type: object
      description: >-
        A contact-level task (MySQL `tasks` table). The stored row plus
        `contact_name` and `user_name`; the list endpoint also attaches
        `assigned_to`.
      properties:
        id:
          type: integer
          description: Task ID.
        contact_id:
          type: string
          description: Contact the task is attached to.
        org_id:
          type: integer
          description: Owning organization.
        user_id:
          type: integer
          description: User who created the task.
        body:
          type: string
          description: Task body.
        due:
          type:
            - integer
            - 'null'
          description: Due date as a Unix timestamp; null when unset.
        done:
          type:
            - integer
            - 'null'
          description: Completion flag (tinyint); null when unset.
        shared:
          type: integer
          default: 0
          description: Shared flag (tinyint). Defaults to 0.
        contact_name:
          type: string
          description: Resolved contact name; empty string when the contact is missing.
        user_name:
          type: string
          description: Resolved creator name; empty string when unresolved.
        assigned_to:
          type: array
          items:
            type: string
          description: >-
            Assigned user IDs. Added by the LIST endpoint only, from the
            assignment join.
        created_at:
          type: string
          description: Creation timestamp.
  securitySchemes:
    conveyourToken:
      type: apiKey
      in: header
      name: x-conveyour-token
      description: >-
        Your API key token. Contacts endpoints require a **Server-only — Full
        API** key — see [Authentication](/quickstart).

````

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