CP Platform API 문서
외부 개발자를 위한 공개 REST API. Base URL: https://api.cp-platform.com/v1
시작하기
- 1Developer Console에서 앱을 등록하고 API Key를 발급받으세요.
- 2모든 요청에
X-API-Key: cp_live_xxx헤더를 포함하세요. - 3사용자 대신 호출하는 엔드포인트는
Authorization: Bearer <user_jwt>도 함께 보내세요.
Rate Limits
Content
60 req/min
Auth/Pay
60–120 req/min
Notify
30 req/min
엔드포인트 레퍼런스
Content API
프롬프트, 가이드, 튜토리얼 콘텐츠 조회. 별도 권한 불필요 (유효한 API Key만 있으면 됨).
GET
/content— 콘텐츠 목록?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}— 콘텐츠 단건 (body 포함)curl https://api.cp-platform.com/v1/content/getting-started \
-H "X-API-Key: cp_live_your_key"Auth Proxy
필요 권한: auth.verify
GET
/auth/userinfo— JWT 토큰 사용자 정보 조회curl https://api.cp-platform.com/v1/auth/userinfo \
-H "X-API-Key: cp_live_your_key" \
-H "Authorization: Bearer <user_jwt>"Pay Proxy
필요 권한: pay.subscriptions.read
GET
/pay/subscriptions— 사용자 구독 목록curl https://api.cp-platform.com/v1/pay/subscriptions \
-H "X-API-Key: cp_live_your_key" \
-H "Authorization: Bearer <user_jwt>"Notify Proxy
필요 권한: notify.email.send | notify.sms.send | notify.kakao.send
POST
/notify/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— 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":"안녕하세요"}'Swagger UI에서 직접 테스트하고 스키마를 확인하세요
Swagger UI 열기 →