Read the contract
- todoListId
- todo-lists/54
- title
- Read the contract
- isDone
- true
- dueDate
- —
- completedAt
- createdAt
- updatedAt
Overview
todos / #634
Read the contract
#634
Request
curl example
curl -sS \ "https://example-data.com/api/v1/todos/634" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/todos/634" ); const todo = await res.json();
TypeScript example
// Download once: mkdir -p types && curl -o types/todos.d.ts https://example-data.com/types/todos.d.ts
import type { Todo } from "./types/todos";
const res = await fetch(
"https://example-data.com/api/v1/todos/634"
);
const todo = (await res.json()) as Todo; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/todos/634"
)
todo = res.json() Response
{
"id": 634,
"todoListId": 54,
"title": "Read the contract",
"isDone": true,
"dueDate": null,
"completedAt": "2026-03-07T10:05:28.999Z",
"createdAt": "2025-06-27T21:10:36.147Z",
"updatedAt": "2025-10-27T12:42:26.480Z"
}