Skip to content

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.

FeatureDescription
Create inquiriesSend your website contact form to the unified inbox
Create outboundsAdd people to reach out to to your outbound list
List contentFetch published content with filters and sorting
Retrieve contentFetch a single published entry

Authentication ​

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.

PermissionCreate inquiriesCreate outboundsContent delivery
full Full access✓✓✓
content Read content––✓
inquiry Submit inquiries✓––
SituationResult
Missing, invalid or deleted key401
Calling an API the key isn't permitted to use403
Auth header
bash
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.

StatusMeaning
200 201Success (read / create)
400Bad request — validation failed
401Unauthorized — API key missing or invalid
403Forbidden — the key isn't permitted to call this API
404Resource not found
429Too many requests — rate limit exceeded

Error bodies always have the same shape.

FieldDescription
codeNumber identifying the kind of error (400→3, 401→16, 403→7, 404→5, 429→8)
messageHuman-readable description
detailExtra 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.

Error response · 401
json
{
  "code": 16,
  "message": "Invalid API key",
  "detail": "Invalid API key"
}
Validation failed · 400
json
{
  "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.

FieldDescription
itemsItems on the current page
totalTotal number of items
pageCurrent page (starting at 1)
limitItems per page
total_pagesTotal number of pages
List response
json
{
  "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.

APILimit
Create inquiries10 requests per 10 minutes from the same IP
Create outbounds60 requests per minute from the same IP

Content delivery has no separate limit.

Limit exceeded · 429
json
{
  "code": 8,
  "message": "Please try again in a moment.",
  "detail": "Please try again in a moment."
}