Authentication
The Wappfy API supports two authentication methods. All requests must include one of these.API Key (recommended)
Pass your API key in theX-Api-Key header:
Creating an API key
API keys are created via the dashboard or the API. Keys are scoped to a user and have the same permissions as the user’s account.Bearer Token (Supabase JWT)
Pass a Supabase access token in theAuthorization header:
Security best practices
Use API keys for server-to-server
Use API keys for server-to-server
API keys don’t expire and are easier to manage for backend integrations.
Rotate keys regularly
Rotate keys regularly
If a key is compromised, delete it and create a new one.
Use HTTPS always
Use HTTPS always
All API requests must use HTTPS. HTTP requests will be rejected.
Don't expose keys in frontend code
Don't expose keys in frontend code
API keys should only be used in server-side code, never in client-side JavaScript.
Error responses
| Status | Description |
|---|---|
401 | Missing or invalid authentication token |
403 | Insufficient permissions for this resource |