API overview
The Cherpa Open API is a REST API that connects your website and external systems to Cherpa. It uses resource-oriented URLs, JSON requests and responses, and standard HTTP methods and status codes.
It currently offers four features.
| Feature | Description |
|---|---|
| Create inquiries | Send your website contact form to the unified inbox |
| Create outbounds | Add people to reach out to to your outbound list |
| List content | Fetch published content with filters and sorting |
| Retrieve content | Fetch a single published entry |
https://api.cherpa.me/v1Authentication
Every request is authenticated with an API key. Issue a key under Settings → API keys in the console and send it in the Authorization: Bearer header.
Each key is bound to one space. The space is determined from the key automatically, so there's nothing else to specify — and a key can never reach another space's data.
You can give each key a permission to limit which APIs it can call.
| Permission | Create inquiries | Create outbounds | Content delivery |
|---|---|---|---|
full Full access | ✓ | ✓ | ✓ |
content Read content | – | – | ✓ |
inquiry Submit inquiries | ✓ | – | – |
| Situation | Result |
|---|---|
| Missing, invalid or deleted key | 401 |
| Calling an API the key isn't permitted to use | 403 |
curl https://api.cherpa.me/v1/content/blog/entries \
-H "Authorization: Bearer chp_..."Errors
The API uses standard HTTP status codes: 2xx means success, 4xx means a problem with the request (a missing value, no permission and so on), and 5xx means a server problem.
| Status | Meaning |
|---|---|
200 201 | Success (read / create) |
400 | Bad request — validation failed |
401 | Unauthorized — API key missing or invalid |
403 | Forbidden — the key isn't permitted to call this API |
404 | Resource not found |
429 | Too many requests — rate limit exceeded |
Error bodies always have the same shape.
| Field | Description |
|---|---|
code | Number identifying the kind of error (400→3, 401→16, 403→7, 404→5, 429→8) |
message | Human-readable description |
detail | Extra information. For validation failures (400), an array of per-field errors |
message is in Korean by default. Send Accept-Language: en to get English messages, as in the examples on this site.
{
"code": 16,
"message": "Invalid API key",
"detail": "Invalid API key"
}{
"code": 3,
"message": "Bad Request",
"detail": [
{ "type": "missing", "loc": ["body", "name"], "msg": "Field required" }
]
}Pagination
List content accepts page (starting at 1) and limit (default 20, max 100) query parameters and responds with a common wrapper.
| Field | Description |
|---|---|
items | Items on the current page |
total | Total number of items |
page | Current page (starting at 1) |
limit | Items per page |
total_pages | Total number of pages |
{
"items": [{ "...": "..." }],
"total": 42,
"page": 1,
"limit": 20,
"total_pages": 3
}Rate limits
To prevent floods, the create APIs limit the number of requests per calling IP. Over the limit you'll get 429 — wait a moment and try again.
| API | Limit |
|---|---|
| Create inquiries | 10 requests per 10 minutes from the same IP |
| Create outbounds | 60 requests per minute from the same IP |
Content delivery has no separate limit.
{
"code": 8,
"message": "Please try again in a moment.",
"detail": "Please try again in a moment."
}