Skip to main content

Authentication

The Wappfy API supports two authentication methods. All requests must include one of these. Pass your API key in the X-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.
The key value is only returned once at creation time. Store it securely.

Bearer Token (Supabase JWT)

Pass a Supabase access token in the Authorization header:
JWT tokens are short-lived and must be refreshed. They are typically used by the frontend dashboard, not for server-to-server integrations.

Security best practices

API keys don’t expire and are easier to manage for backend integrations.
If a key is compromised, delete it and create a new one.
All API requests must use HTTPS. HTTP requests will be rejected.
API keys should only be used in server-side code, never in client-side JavaScript.

Error responses