> Agent-readable docs index: /llms.txt. Download /docs.zip to grep all markdown files locally.

---
title: "Get task"
description: "Retrieve a single task by ID."
api: "GET /tasks/{taskId}"
gridGap: 30
---

<Aside full>

<RequestExample>

```bash lines=false
curl -X GET "https://api.example.com/v1/tasks/<taskId>" \
  -H "Authorization: Bearer <token>"
```

</RequestExample>

</Aside>

<OpenAPIEndpoint {...{"method":"get","path":"/tasks/{taskId}","summary":"Get task","description":"Retrieve a single task by ID.","parameters":[{"name":"taskId","in":"path","required":true,"description":"The task's unique identifier","schema":{"type":"string","format":"uuid"}}],"responses":[{"status":"200","description":"The task","schema":{"type":"object","required":["id","title","completed"],"properties":{"id":{"type":"string","format":"uuid","description":"Unique task identifier"},"title":{"type":"string","description":"Short description of the task","minLength":1,"maxLength":200},"completed":{"type":"boolean","description":"Whether the task is done","default":false},"createdAt":{"type":"string","format":"date-time","description":"When the task was created"}}}},{"status":"404","description":"Task not found"}],"security":[{"name":"bearerAuth","type":"http","scheme":"bearer","in":"header","description":"JWT token from /auth/login"}],"servers":[{"url":"https://api.example.com/v1","description":"Production"}]}} />

---

*Powered by [holocron.so](https://holocron.so)*
