CP Platform API Docs

Public REST API for external developers. Base URL: https://api.cp-platform.com/v1

Getting started

  1. 1Developer Console — register an app and issue an API Key.
  2. 2Include the X-API-Key: cp_live_xxx header in every request.
  3. 3For endpoints that act on behalf of a user, also send Authorization: Bearer <user_jwt>as well.

Rate Limits

Content
60 req/min
Auth/Pay
60–120 req/min
Notify
30 req/min

Endpoint reference

Content API

Retrieve prompt, guide, and tutorial content. No special permissions required (a valid API Key is enough).

GET/content— Content list

?type=prompt|guide|tutorial|reference &tag=xxx &limit=20 &offset=0

curl https://api.cp-platform.com/v1/content \
  -H "X-API-Key: cp_live_your_key"
GET/content/{slug}— Single content item (with body)
curl https://api.cp-platform.com/v1/content/getting-started \
  -H "X-API-Key: cp_live_your_key"

Auth Proxy

Required permission: auth.verify

GET/auth/userinfo— Get user info from JWT token
curl https://api.cp-platform.com/v1/auth/userinfo \
  -H "X-API-Key: cp_live_your_key" \
  -H "Authorization: Bearer <user_jwt>"

Pay Proxy

Required permission: pay.subscriptions.read

GET/pay/subscriptions— User subscription list
curl https://api.cp-platform.com/v1/pay/subscriptions \
  -H "X-API-Key: cp_live_your_key" \
  -H "Authorization: Bearer <user_jwt>"

Notify Proxy

Required permission: notify.email.send | notify.sms.send | notify.kakao.send

POST/notify/send/email— Send email
curl -X POST https://api.cp-platform.com/v1/notify/send/email \
  -H "X-API-Key: cp_live_your_key" \
  -H "Authorization: Bearer <user_jwt>" \
  -H "Content-Type: application/json" \
  -d '{"to":"user@example.com","subject":"Hello","body":"<p>Hi</p>"}'
POST/notify/send/sms— Send SMS
curl -X POST https://api.cp-platform.com/v1/notify/send/sms \
  -H "X-API-Key: cp_live_your_key" \
  -H "Authorization: Bearer <user_jwt>" \
  -H "Content-Type: application/json" \
  -d '{"to":"010-0000-0000","message":"Hello"}'
POST/notify/send/kakao— KakaoTalk अलिमटॉक भेजें (अनुमोदित टेम्पलेट)
curl -X POST https://api.cp-platform.com/v1/notify/send/kakao \
  -H "X-API-Key: cp_live_your_key" \
  -H "Authorization: Bearer <user_jwt>" \
  -H "Content-Type: application/json" \
  -d '{"to":"010-0000-0000","template_code":"WELCOME","variables":{}}'

Test directly and inspect schemas in Swagger UI

Open Swagger UI →