PromStack
🌐
start

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_xxxxxxxxxxxxxxxx

docs: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.statusdocs:auth.errors.errordocs:auth.errors.description
401AuthenticationErrordocs:auth.errors.401
403ForbiddenErrordocs:auth.errors.403
429RateLimitErrordocs:auth.errors.429

docs:auth.nextStep.title

docs:auth.nextStep.desc

docs:auth.nextStep.link