Back

Authentication

Learn how to authenticate API requests with API keys

Authentication

All API requests must include your API key in the Authorization header using the Bearer token format.

API Key Format

Authorization: Bearer <your-api-key>

Your API key starts with wk_live_ for production or wk_test_ for test keys.

Creating an API Key

  1. Log in to your dashboard
  2. Navigate to DeveloperAPI Keys
  3. Click Create API Key
  4. Select the scopes you need
  5. Copy and securely store your API key
    You'll only see it once!

Keep your API key secure. Never commit it to version control or expose it in client-side code. Store it in environment variables or use secret management services.

Making Authenticated Requests

Invalid API Key Response

If your API key is invalid or missing, you'll receive a 401 Unauthorized response:

{
  "success": false,
  "error": {
    "code": "INVALID_API_KEY",
    "message": "Invalid API key"
  }
}

Base URL

All API requests should be made to:

https://api.walletwerk.eu/api/v1

Test vs Production Keys

  • Test keys (wk_test_...): Use for development and testing. They work with all endpoints but don't send real emails or create production wallet cards.
  • Production keys (wk_live_...): Use in production. They create real wallet cards and send actual emails.

You can create multiple API keys with different scopes for different services or environments. This allows you to rotate keys and limit access.