Skip to main content

API Keys

All API requests require authentication using an API key. Include your key in the X-API-Key header:
Keep your API key secure. Never expose it in client-side code or public repositories.

Getting Your API Key

  1. Sign up at debtstack.ai
  2. Go to your Dashboard
  3. Copy your API key from the API Keys section

Key Format

API keys follow the format ds_ followed by 32 hexadecimal characters:

Rate Limits

Rate limits are applied per API key based on your tier:

Rate Limit Headers

Every response includes rate limit information:

Handling Rate Limits

When you exceed the rate limit, you’ll receive a 429 Too Many Requests response:
Check the Retry-After header for when you can retry.

Credit System (Pay-as-You-Go)

Pay-as-You-Go users pay per API call based on endpoint complexity:

Credit Packages

Pre-purchase credits for predictable budgeting: Credits never expire and remain in your account until used.

Checking Credit Balance

Response:

Pricing Tiers

Pay-as-You-Go

$0/month + usage
  • Pay per API call (0.050.05-0.15)
  • 60 requests/minute
  • 211 companies
  • All basic endpoints
  • No monthly commitment

Pro

$199/month
  • Unlimited API queries
  • 100 requests/minute
  • 211 companies
  • All basic endpoints
  • Email support (48hr)

Business

$499/month
  • Everything in Pro, plus:
  • 500 requests/minute
  • 5 team seats
  • Covenant comparison
  • Historical bond pricing
  • Bulk data export
  • Usage analytics
  • Priority support (24hr)
  • 99.9% uptime SLA

Business-Only Endpoints

These advanced endpoints are exclusively available on the Business tier: For Business tier inquiries, contact us.

Security Best Practices

Store your API key in environment variables, not in code:
You can regenerate your API key from the dashboard. The old key will be immediately invalidated.
Check your usage regularly in the dashboard to detect any unauthorized access.