# REQUEST/RESPONSE FORMATS

[← API Endpoints](./01-api-endpoints.md) | [Next: API Authentication →](./03-api-authentication.md)

---

## Request Format

**Headers:**
```
Authorization: Bearer <JWT_TOKEN>
Content-Type: application/json
```

**Query Parameters:**
- Pagination: `?page=1&limit=20`
- Filtering: `?status=active&projectId=xxx`
- Sorting: `?sort=createdAt&order=desc`

---

## Response Format

**Success Response:**
```json
{
  "data": { ... },
  "meta": {
    "page": 1,
    "limit": 20,
    "total": 100
  }
}
```

**Error Response:**
```json
{
  "error": {
    "code": "VALIDATION_ERROR",
    "message": "Invalid input data",
    "details": [...]
  }
}
```

Chi tiết: [Error Responses](./04-error-responses.md)

---

**Next**: [API Authentication](./03-api-authentication.md)
