How to access Kamili Toolbox programmatically via the REST API.
Kamili Toolbox offers a REST API for programmatic access to most tools.
## Authentication
All API requests require an API key. Generate one from your account dashboard at [my.kamili.one](https://my.kamili.one).
Include your API key in the Authorization header:
```
Authorization: Bearer YOUR_API_KEY
```
## Base URL
```
https://api.toolbox.kamili.one/v1
```
## Available Endpoints
### Image Operations
```
POST /image/resize
POST /image/compress
POST /image/convert
POST /image/remove-background (AI, Pro)
```
### PDF Operations
```
POST /pdf/merge
POST /pdf/split
POST /pdf/compress
POST /pdf/to-images
```
### Text Operations
```
POST /text/hash
POST /text/convert
POST /text/ai-rewrite (AI, Pro)
POST /text/ai-summarize (AI, Pro)
```
### Data Operations
```
POST /data/json-format
POST /data/csv-to-json
POST /data/json-to-csv
```
## Example: Resize an Image
```bash
curl -X POST https://api.toolbox.kamili.one/v1/image/resize \
-H "Authorization: Bearer YOUR_API_KEY" \
-F "file=@photo.jpg" \
-F "width=800" \
-F "height=600" \
-F "maintain_aspect=true"
```
## Rate Limits
| Tier | Requests/minute | Requests/month |
|------|----------------|----------------|
| Free | 10 | 1,000 |
| Pro | 100 | 100,000 |
| Enterprise | Custom | Custom |
## SDKs
Official SDKs are available for:
- JavaScript/TypeScript
- Python
- PHP
View documentation and download SDKs at [my.kamili.one/api](https://my.kamili.one/api).