← Files
API Endpoint Documentation Template
Document one endpoint clearly.
# [METHOD] /[path]
[What it does in one sentence.]
## Authentication
[Bearer token, scopes]
## Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| id | path | string | Yes | |
| limit | query | integer | No | Default 20 |
## Request example
```bash
curl -X POST https://api.example.com/v1/items \
-H "Authorization: Bearer TOKEN" \
-H "Content-Type: application/json" \
-d '{"name": "Example"}'
```
## Response
```json
{ "id": "123", "name": "Example", "created_at": "2025-01-01T00:00:00Z" }
```
## Errors
| Status | Code | Meaning |
|---|---|---|
| 400 | invalid_request | Missing or invalid field |
| 401 | unauthorized | Bad or missing token |
| 404 | not_found | Resource does not exist |