Swipelux

Authentication

All authentication is performed via HTTP Basic Auth via the X-API-Key header.

Follow these steps to authenticate your requests:

Get your API key

Contact us at support@swipelux.com to request access to the platform.

We'll grant you a secret API key to use in your service. The API key should be kept secure and never exposed publicly. We recommend storing it as an environment variable or in a secure configuration management system.

Include the API key in requests

Add your API key to the X-API-Key header in every request:

curl https://wallet.swipelux.com/v1/customers \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: YOUR_SECRET_API_KEY'

Always use HTTPS, as we will reject all API requests over plain HTTP. No additional authentication (like passwords) is required.

Error handling

If authentication fails, you'll receive a 401 - Unauthorized HTTP status code. This happens when:

  • No API key is provided
  • An invalid API key is used

On this page