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

# List Agent Tasks

> Retrieves a paginated list of tasks assigned to a specific agent.



## OpenAPI

````yaml GET /api/v1/vendors/{vendorId}/organizations/{organizationId}/agents/{agentId}/tasks
openapi: 3.1.0
info:
  title: Deepslate
  description: OpenAPI specification of the public Deepslate API
  version: v1.0
servers:
  - url: https://app.deepslate.eu
    description: Generated server url
security: []
tags:
  - name: SIP Credentials Management
    description: API endpoints for managing SIP Credentials within an Organization
  - name: Assistant Management
    description: API endpoints for managing Assistants within an Organization
  - name: SIP Numbers Management
    description: API endpoints for managing SIP Numbers within an Organization
  - name: Agent Task Management
    description: API endpoints for retrieving Agent Tasks
  - name: Organization Management
    description: API endpoints for managing Organizations
  - name: Agent Management
    description: API endpoints for managing Agents within an Organization
  - name: LLM Generation Strategy Management
    description: >-
      API endpoints for managing LLM Generation Strategies within an
      Organization
paths:
  /api/v1/vendors/{vendorId}/organizations/{organizationId}/agents/{agentId}/tasks:
    get:
      tags:
        - Agent Task Management
      summary: List Agent Tasks
      description: Retrieves a paginated list of tasks assigned to a specific agent.
      operationId: getTasks
      parameters:
        - name: page
          in: query
          description: Page number of the requested page (0-indexed)
          required: false
          schema:
            type: integer
            default: 0
        - name: size
          in: query
          description: Number of items per page
          required: false
          schema:
            type: integer
            default: 20
        - name: sort
          in: query
          description: >-
            Sorting criteria in the format: property,(asc|desc). Default sort is
            'createdAt,desc'. Multiple sort criteria are supported.
          required: false
          schema:
            type: string
            default: createdAt,desc
          example: createdAt,desc
        - name: vendorId
          in: path
          description: ID of the Vendor (UUID)
          required: true
          schema:
            type: string
          example: a1b2c3d4-e5f6-7890-1234-567890abcdef
        - name: organizationId
          in: path
          description: ID of the Organization (UUID)
          required: true
          schema:
            type: string
          example: f0e9d8c7-b6a5-4321-fedc-ba9876543210
        - name: agentId
          in: path
          description: ID of the Agent (UUID)
          required: true
          schema:
            type: string
          example: 98765432-10fe-dcba-9876-543210fedcba
      responses:
        '200':
          description: Successfully retrieved the list of agent tasks
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AgentTaskDescriptionPagedResponse'
        '401':
          description: Unauthorized
        '403':
          description: >-
            Forbidden - User cannot view organization details or agent task
            descriptions
        '404':
          description: Vendor, Organization, or Agent not found
components:
  schemas:
    AgentTaskDescriptionPagedResponse:
      type: object
      description: Paged API response wrapper
      properties:
        success:
          type: boolean
          description: Indicates if the request was successful
          example: true
        message:
          type: string
          description: Human-readable message
        data:
          type: array
          description: List of data items
          items:
            $ref: '#/components/schemas/AgentTaskDescription'
        page:
          type: integer
          format: int32
          description: Current page number (0-indexed)
          example: 0
        size:
          type: integer
          format: int32
          description: Size of each page
          example: 20
        totalElements:
          type: integer
          format: int64
          description: Total number of elements
          example: 100
        totalPages:
          type: integer
          format: int32
          description: Total number of pages
          example: 5
        timestamp:
          type: string
          format: date-time
          description: Response timestamp in ISO-8601 format
          example: '2025-04-17T14:23:30Z'
        traceId:
          type: string
          description: Correlation or trace ID
      required:
        - page
        - size
        - success
        - timestamp
        - totalElements
        - totalPages
    AgentTaskDescription:
      type: object
      description: Basic description of an Agent Task, typically used in lists.
      properties:
        id:
          type: string
          description: Unique identifier of the agent task (UUID).
          example: 77aaddcc-88bb-11ee-aacc-112233445566
        userValues:
          type: object
          additionalProperties:
            type: string
          description: >-
            Key-value pairs representing user-specific data relevant to the
            task.
          example:
            customer_name: Alice Wonderland
            product_interest: Teapot
            callback_reason: Price query
        targetNumber:
          type: string
          description: >-
            Target phone number for the task (e.g., customer callback number,
            preferably E.164 format).
          example: '+491721234567'
      required:
        - id
        - targetNumber
        - userValues

````