Skip to content

Authentication

All API requests must include your API key in the Authorization header.

The Prediko API uses Bearer token authentication. Include your API key in every request:

Authorization: Bearer pk_live_YOUR_API_KEY

API keys follow a predictable format:

Format Example
pk_live_* pk_live_8x9kL2mP4nQ7rS1tU3vW5xY6
  1. Log into your Prediko Dashboard
  2. Navigate to Settings > API Keys
  3. Click Create API Key
  4. Name your key descriptively (e.g., “ERP Integration - Production”)
  5. Copy and securely store the key
Terminal window
curl -X GET "https://api.prediko.io/api/v1/orders" \
-H "Authorization: Bearer pk_live_YOUR_API_KEY"
  • Store API keys in environment variables
  • Rotate keys periodically
  • Monitor API key usage in the dashboard
  • Commit API keys to version control
  • Share keys via email or chat
  • Use production keys in client-side code
  • Embed keys in mobile apps
Status Error Description
401 Missing Authorization header No API key provided
401 Invalid API key format Key doesn’t match expected format
401 Invalid or expired API key Key not found or has been revoked

Example error response:

{
"detail": "Invalid or expired API key"
}