---
updatedAt: 2026-08-13T04:11:04.000Z
agentTools:
  projectIndex: https://docs.api.getrotor.com/llms.txt
---

# List tasks

Returns a paginated list of tasks for the authenticated company.
Results are ordered by creation time (newest first).

Requires the `tasks:read` scope.


# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "Rotor OpenAPI",
    "description": "Public-facing API for Rotor — a CRM and field service platform built for home service businesses.\n\nCurrent version: `1.1.0`\n\n## Authentication\n\nAll requests must be authenticated with a company API key.\n\n- Header: `x-api-key: rotor_{keyId}_{keySecret}`\n- Version header: `rotor-api-version: 1.1.0`\n\nAPI keys are scoped to a specific company and can be managed by company administrators in **Settings → Integrations → API Keys**.\n\n## Rate Limits\n\nEach API key is limited to **1000 requests per UTC day** across all OpenAPI endpoints.\n\n## Scopes\n\nEach API key is granted specific scopes that control what actions it can perform:\n\n| Scope | Description |\n|---|---|\n| `leads:create` | Create and update leads |\n| `leads:read` | Read lead records |\n| `customers:create` | Create and update customers |\n| `customers:read` | Read customer records |\n| `service_plans:read` | Read service plan records |\n| `jobs:read` | Read serviced job records |\n| `pins:read` | Read pin records and pin types |\n| `timesheets:read` | Read timesheet records and visit timer records |\n| `tasks:read` | Read task records |\n| `tasks:create` | Create tasks |\n| `tasks:update` | Update tasks |\n| `configuration:read` | Read company configuration (service types, line item templates) |\n\n## Getting Started\n\n1. **Set the required version header**: Send `rotor-api-version: 1.1.0` with every request\n2. **Create an API key**: Go to Settings → Integrations → API Keys, create a key with the scopes you need\n3. **For testing**: Use `GET /auth/test` to verify your credentials\n",
    "version": "1.1.0",
    "contact": {
      "name": "Rotor API Support",
      "url": "https://getrotor.com"
    }
  },
  "servers": [
    {
      "url": "https://api.getrotor.com/open-api",
      "description": "Production server"
    },
    {
      "url": "http://localhost:3000/open-api",
      "description": "Development server"
    }
  ],
  "security": [
    {
      "ApiKey": []
    }
  ],
  "paths": {
    "/tasks": {
      "get": {
        "summary": "List tasks",
        "description": "Returns a paginated list of tasks for the authenticated company.\nResults are ordered by creation time (newest first).\n\nRequires the `tasks:read` scope.\n",
        "operationId": "listTasks",
        "tags": [
          "Tasks"
        ],
        "security": [
          {
            "ApiKey": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/RotorApiVersionHeader"
          },
          {
            "$ref": "#/components/parameters/PageParam"
          },
          {
            "$ref": "#/components/parameters/LimitParam"
          },
          {
            "name": "status",
            "in": "query",
            "description": "Filter tasks by status",
            "schema": {
              "type": "string",
              "enum": [
                "open",
                "in_progress",
                "waiting",
                "done"
              ]
            }
          },
          {
            "name": "priority",
            "in": "query",
            "description": "Filter tasks by priority",
            "schema": {
              "type": "string",
              "enum": [
                "low",
                "medium",
                "high"
              ]
            }
          },
          {
            "name": "contact_id",
            "in": "query",
            "description": "Filter tasks linked to a given contact (lead or customer)",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "contact_type",
            "in": "query",
            "description": "Filter tasks by linked contact type",
            "schema": {
              "type": "string",
              "enum": [
                "lead",
                "customer"
              ]
            }
          },
          {
            "name": "assigned_to",
            "in": "query",
            "description": "Filter to tasks assigned to a given user ID",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "search",
            "in": "query",
            "description": "Case-insensitive search against the task name",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Tasks listed successfully",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/PaginatedResponse"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/Task"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    }
  },
  "components": {
    "parameters": {
      "RotorApiVersionHeader": {
        "name": "rotor-api-version",
        "in": "header",
        "description": "Required OpenAPI version header.",
        "required": true,
        "schema": {
          "type": "string",
          "enum": [
            "1.1.0"
          ],
          "default": "1.1.0"
        },
        "example": "1.1.0"
      },
      "PageParam": {
        "name": "page",
        "in": "query",
        "description": "Page number (1-based)",
        "schema": {
          "type": "integer",
          "minimum": 1,
          "default": 1
        },
        "example": 1
      },
      "LimitParam": {
        "name": "limit",
        "in": "query",
        "description": "Number of results per page (max 1000)",
        "schema": {
          "type": "integer",
          "minimum": 1,
          "maximum": 1000,
          "default": 50
        },
        "example": 50
      }
    },
    "responses": {
      "Unauthorized": {
        "description": "Authentication required",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorResponse"
            },
            "example": {
              "status": "error",
              "message": "Authentication required. Provide x-api-key header.",
              "error_code": "AUTHENTICATION_REQUIRED"
            }
          }
        }
      },
      "Forbidden": {
        "description": "Insufficient scope",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorResponse"
            },
            "example": {
              "status": "error",
              "message": "Forbidden: required scope 'leads:read' not granted for this API key",
              "error_code": "INSUFFICIENT_SCOPE"
            }
          }
        }
      },
      "TooManyRequests": {
        "description": "Daily API key rate limit exceeded",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorResponse"
            },
            "example": {
              "status": "error",
              "message": "Daily API key request limit of 1000 exceeded",
              "error_code": "RATE_LIMIT_EXCEEDED"
            }
          }
        }
      },
      "InternalError": {
        "description": "Internal server error",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorResponse"
            },
            "example": {
              "status": "error",
              "message": "Internal server error"
            }
          }
        }
      }
    },
    "schemas": {
      "PaginatedResponse": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "example": "success"
          },
          "pagination": {
            "type": "object",
            "properties": {
              "page": {
                "type": "integer",
                "example": 1
              },
              "limit": {
                "type": "integer",
                "example": 50
              },
              "total": {
                "type": "integer",
                "description": "Total number of matching records",
                "example": 142
              },
              "has_more": {
                "type": "boolean",
                "description": "Whether more pages are available",
                "example": true
              }
            }
          }
        }
      },
      "ErrorResponse": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "example": "error"
          },
          "message": {
            "type": "string",
            "example": "Validation failed"
          },
          "error_code": {
            "type": "string",
            "description": "Machine-readable error code",
            "example": "INSUFFICIENT_SCOPE"
          },
          "limit": {
            "type": "integer",
            "description": "Daily request limit for the API key when rate limited",
            "example": 1000
          },
          "requests_today": {
            "type": "integer",
            "description": "Number of requests already consumed today by the API key",
            "example": 1000
          },
          "reset_at": {
            "type": "string",
            "format": "date-time",
            "description": "UTC timestamp when the daily request counter resets",
            "example": "2026-03-31T00:00:00Z"
          },
          "errors": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "field": {
                  "type": "string",
                  "example": "email"
                },
                "message": {
                  "type": "string",
                  "example": "Invalid email format"
                }
              }
            }
          }
        }
      },
      "Task": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "Unique task identifier"
          },
          "name": {
            "type": "string",
            "description": "Task name",
            "example": "Follow up on roof estimate"
          },
          "status": {
            "type": "string",
            "enum": [
              "open",
              "in_progress",
              "waiting",
              "done"
            ],
            "description": "Task status"
          },
          "priority": {
            "type": "string",
            "enum": [
              "low",
              "medium",
              "high"
            ],
            "description": "Task priority"
          },
          "notes": {
            "type": "string",
            "nullable": true,
            "description": "Free-form task notes"
          },
          "due_date": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "When the task is due (ISO 8601)"
          },
          "end_date": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Optional end date (ISO 8601); must be on or after due_date"
          },
          "contact_id": {
            "type": "string",
            "format": "uuid",
            "nullable": true,
            "description": "Linked lead or customer ID"
          },
          "contact_type": {
            "type": "string",
            "enum": [
              "lead",
              "customer"
            ],
            "nullable": true,
            "description": "Type of the linked contact"
          },
          "assigned_to": {
            "type": "array",
            "description": "IDs of the company members assigned to this task",
            "items": {
              "type": "string",
              "format": "uuid"
            }
          },
          "position": {
            "type": "integer",
            "description": "Display ordering position"
          },
          "created_by": {
            "type": "string",
            "format": "uuid",
            "nullable": true,
            "description": "ID of the user who created the task (null for API-key created tasks)"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "When the task was created"
          }
        },
        "required": [
          "id",
          "name",
          "status",
          "priority",
          "assigned_to",
          "position"
        ]
      }
    },
    "securitySchemes": {
      "ApiKey": {
        "type": "apiKey",
        "in": "header",
        "name": "x-api-key",
        "description": "Company API key in the format: `rotor_{keyId}_{keySecret}`\n\nTo obtain an API key:\n1. Log into your Rotor dashboard\n2. Go to Settings → Integrations → API Keys\n3. Create a new key and select the scopes you need\n4. Copy the key — it's only shown once!\n"
      }
    }
  },
  "tags": [
    {
      "name": "Tasks",
      "description": "Read, create, and update tasks"
    }
  ]
}
```