docs:auth.title
docs:auth.desc
docs:auth.apiKey.title
docs:auth.apiKey.location
docs:auth.security.title
- • docs:auth.security.prefix
- • docs:auth.security.leak
- • docs:auth.security.env
docs:auth.header.title
HTTP Header
Authorization: Bearer pm_xxxxxxxxxxxxxxxxdocs:auth.example.title
cURL
curl https://promstack.com/api/sdk/prompts \
-H "Authorization: Bearer $PROMSTACK_API_KEY" \
-H "Content-Type: application/json"docs:auth.sdk.title
TypeScript
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();docs:auth.projectScope.title
🔒 docs:auth.projectScope.important
docs:auth.projectScope.desc
docs:auth.errors.title
| docs:auth.errors.status | docs:auth.errors.error | docs:auth.errors.description |
|---|---|---|
401 | AuthenticationError | docs:auth.errors.401 |
403 | ForbiddenError | docs:auth.errors.403 |
429 | RateLimitError | docs:auth.errors.429 |
