---
title: "Get todo by id"
method: GET
path: "/todos/{todoId}"
tags: ["📝 Todo list"]
---

# Get todo by id

`GET /todos/{todoId}`

## Request

- Base URL: `https://api.freeapi.app/api/v1`
- URL: `https://api.freeapi.app/api/v1/todos/{todoId}`
- Auth: none declared
- TypeScript: <https://skmtc.dev/hiteshchoudhary-ssesph/apis/freeapi/docs/todos/:todoId/get.ts> (a function with typed inputs; its response is checked against the schema)

The API endpoint retrieves a specific todo item based on the todo ID provided as a path variable in the URL.

When accessing this endpoint and specifying a valid todo ID in the URL, you will receive a response containing the details of the corresponding todo item.

## Response `200`

Get todo by id

- object
  - `data` object
    - `__v` number
    - `_id` string
    - `createdAt` string
    - `description` string
    - `isDone` boolean
    - `title` string
    - `updatedAt` string
  - `message` string
  - `statusCode` number
  - `success` boolean

---

[API](https://skmtc.dev/hiteshchoudhary-ssesph/apis/freeapi.md) - [All operations](https://skmtc.dev/hiteshchoudhary-ssesph/apis/freeapi/llms.txt) - [OpenAPI document](https://skmtc.dev/hiteshchoudhary-ssesph/apis/freeapi/revisions/a9f3a290e4dc?raw)
