Prompt Manager API는 Bearer Token 방식을 사용하여 인증합니다. 모든 요청 헤더에 API 키를 포함해야 합니다.
API 키는 설정 > API 키 메뉴에서 발급받을 수 있습니다.
보안 주의사항
Authorization: Bearer pm_xxxxxxxxxxxxxxxxcurl https://promstack.com/api/sdk/prompts \
-H "Authorization: Bearer $PROMSTACK_API_KEY" \
-H "Content-Type: application/json"import { PromStackClient } from '@promstack-1/sdk';
// SDK automatically handles authentication headers
const client = new PromStackClient({
apiKey: process.env.PROMSTACK_API_KEY!,
baseUrl: 'https://promstack.com'
});
const prompts = await client.getPrompts();| Status | Error | 설명 |
|---|---|---|
401 | AuthenticationError | API 키가 없거나 유효하지 않음 |
403 | ForbiddenError | 해당 리소스에 대한 접근 권한 없음 |
429 | RateLimitError | 요청 한도 초과 (Retry-After 헤더 확인) |