---
title: "/todos"
url: "https://developers.rest.rodeo/apis/todos/versions/7d1617fd-92fe-4136-8be7-b2acec2c30db/operations/listTodos"
---

> Full API specification: https://developers.rest.rodeo/apis/todos/versions/7d1617fd-92fe-4136-8be7-b2acec2c30db.md

# /todos

`GET` `/todos`

Operation ID: `listTodos`

Lists every todo.

## Responses

- `200` - All todos
- `401` - Missing or invalid bearer token
- `405` - Method not allowed

## OpenAPI definition

```yaml
openapi: 3.0.3
info:
  title: Todos API
  version: 1.0.0
servers:
  - url: https://api.rest.rodeo/todos/api/v1
    description: Production
paths:
  /todos:
    get:
      operationId: listTodos
      summary: /todos
      description: Lists every todo.
      responses:
        "200":
          description: All todos
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/TodosList"
              examples:
                todos:
                  value:
                    todos:
                      - id: 1f6e4c8a-2b3c-4d0f-9b0d-c7f2b6de4b1a
                        name: Book the rodeo
                        description: Reserve seats for the weekend show.
                        dueDate: 2026-10-15T17:00:00.000Z
                        completed: false
                        createdAt: 2026-09-29T09:12:00.000Z
                        updatedAt: 2026-09-29T09:12:00.000Z
                        completedAt: null
        "401":
          description: Missing or invalid bearer token
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "405":
          description: Method not allowed
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
security:
  - bearerAuth: []
components:
  schemas:
    TodosList:
      type: object
      required:
        - todos
      additionalProperties: false
      properties:
        todos:
          type: array
          items:
            $ref: "#/components/schemas/Todo"
    Error:
      type: object
      required:
        - error
      additionalProperties: false
      properties:
        error:
          type: string
    Todo:
      type: object
      required:
        - id
        - name
        - description
        - dueDate
        - completed
        - createdAt
        - updatedAt
        - completedAt
      additionalProperties: false
      properties:
        id:
          type: string
          format: uuid
          description: The todo id.
        name:
          type: string
          description: The todo name.
          maxLength: 256
          minLength: 1
        description:
          type: string
          description: The todo description.
          maxLength: 2000
        dueDate:
          type: string
          format: date-time
          nullable: true
          description: When the todo is due, or null when it has no due date.
        completed:
          type: boolean
          description: Whether the todo has been completed.
        createdAt:
          type: string
          format: date-time
          description: When the todo was created. This is the billable event.
        updatedAt:
          type: string
          format: date-time
          description: When the todo was last updated.
        completedAt:
          type: string
          format: date-time
          nullable: true
          description: When the todo was completed, or null while it is incomplete.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
```
