Overview
Projects can require an API key. When required, send a bearer token.
fluar_sk_xxxxxxxxxxxxxxxxxxxxxxxxxxxx
Keep your API key private. Anyone with the key can access your team’s projects.
Get a key
- Settings -> API Keys
- Generate New Key
- Copy and store it (shown once)
Use the key
Authorization: Bearer YOUR_API_KEY
curl -X POST "https://fluar.com/api/v2/{teamSlug}/{projectId}/rows" \
-H "Authorization: Bearer fluar_sk_xxxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{"email":"[email protected]"}'
Project API settings
| Setting | Default | Description |
|---|
api.enabled | true | Enable or disable API access |
api.requireKey | false | Require an API key |
api.createColumnsFromKeys | false | Auto-create columns from new keys |
Common auth errors
| Status | Message | Fix |
|---|
| 401 | API key is required for this project | Add the Authorization header |
| 401 | Missing or invalid Authorization header | Use Authorization: Bearer <key> |
| 403 | Invalid API key | Regenerate and use the correct key |
| 403 | API is not enabled for this project | Enable API in project settings |
Minimal security hygiene
- Store keys in environment variables.
- Rotate keys if exposed.