Getting started
Authentication
How to authenticate with the Parallèle API.
Authentication
All Parallèle API endpoints require authentication via API keys.
API Keys
API keys are workspace-scoped credentials that grant read access to your content.
Generating an API Key
- Log in to Parallèle
- Navigate to Settings > API
- Click Generate API Key
- Copy and store the key securely
API keys are shown only once. If you lose a key, you'll need to generate a new one.
Key Format
Parallèle API keys follow this format:
The prl_ prefix helps identify Parallèle keys in your codebase.
Using API Keys
Include the API key in the x-api-key header:
In your code:
Security Best Practices
Environment Variables
Never hardcode API keys in your source code:
Server-Side Only
API keys should only be used in server-side code:
Proxy Pattern for Client Components
If you need content in client components, create an API route:
Then fetch from the client:
Error Responses
401 Unauthorized
Returned when the API key is missing or invalid:
Common causes:
- Missing
x-api-keyheader - Incorrect API key
- Deleted or revoked key