Back to API
API Documentation

Authentication

All API requests require authentication using an API key. Include your key in the Authorization header.

API Key Format

API keys start with fs_ followed by 32 alphanumeric characters:

text
fs_kWm9X8a2Bq5TpN7Hc3FrYz6MjLvS1Kd4

Making Authenticated Requests

Include your API key in the Authorization header with Bearer token format:

bash
curl -X GET https://foldr.space/api/v1/images \
  -H "Authorization: Bearer fs_your_api_key"

Security Best Practices

  • Never expose your API key in client-side code
  • Use environment variables to store your key
  • Rotate your key if you suspect it has been compromised
  • Use different keys for development and production