> ## Documentation index
> Fetch the complete documentation index at: https://docs.simplycpf.com/llms.txt
> Ask it with GET https://docs.simplycpf.com/ask?q=<keywords or question>. Short keywords rank best.
> Use these to discover all available pages before exploring further.

# API Reference

> Complete API documentation for all CPF endpoints

The SimplyCPF API provides 12 endpoints organised into 5 categories.

## Base URL

```
https://simplycpf.com/api/cpf
```

## Rate Limits

Production CPF API endpoints are limited to **10 requests per 10 seconds per client IP**. Requests above this limit return HTTP `429` with this JSON body:

```json
{
  "error": "Rate limit exceeded"
}
```

Clients should back off and retry after the current 10-second window.

## Endpoints Overview

### Calculation

| Method | Endpoint | Description |
|--------|----------|-------------|
| POST | `/calculate` | Calculate CPF contributions for a single income |
| POST | `/calculate/batch` | Batch calculation for multiple scenarios |
| POST | `/projection` | Multi-year balance projection with CPF LIFE estimates |

### Age Groups

| Method | Endpoint | Description |
|--------|----------|-------------|
| GET | `/age-groups` | List all 8 age groups with rates |
| GET | `/age-group/find` | Find age group for a specific age |
| GET | `/age/from-birthdate` | Convert birth date to age |

### Income Ceiling

| Method | Endpoint | Description |
|--------|----------|-------------|
| GET | `/ceiling` | Get income ceiling for a specific date |
| GET | `/ceiling/timeline` | Historical ceiling changes |

### Interest Rates

| Method | Endpoint | Description |
|--------|----------|-------------|
| GET | `/interest-rates` | All CPF rates and SGS yields |
| GET | `/interest-rates/smra` | Calculate SMRA rate |
| GET | `/interest-rates/trend` | Historical rate trends |

### Investment

| Method | Endpoint | Description |
|--------|----------|-------------|
| POST | `/investment-comparison` | Compare investment scenarios |
