Skip to main content

Common Authentication Errors

Missing Authentication

Cause: No authentication header provided. Solution: Include the API key header:
  • X-API-Key: pk_your_api_key_here
API keys are the primary authentication method. Get your API key from https://app.poesius.com.

Invalid API Key

Cause: API key is incorrect or has been revoked. Solution:
  1. Verify the API key is correct
  2. Check if the key has been revoked in the web app
  3. Create a new API key if needed

Invalid or Revoked API Key

Cause: API key is invalid or has been revoked. Solution:
  • Create a new API key in the web app at https://app.poesius.com
  • Verify the API key is correct and active
  • API keys don’t expire automatically, but can be revoked by you or the system

Prevention

Always Include Authentication

Verify API Key Before Use

Error Handling

Best Practices

  • Store Securely: Never commit API keys to version control
  • Use Environment Variables: Store keys in environment variables
  • Rotate Keys: Regularly rotate API keys for security
  • Use API Keys for Automation: Prefer API keys over tokens for long-running processes
  • Monitor Usage: Check API key usage in the web app

Authentication Guide

Learn how to authenticate properly

Error Handling Overview

See other error types