Authentication

All API requests require authentication via an API key. This page explains how to get and use your keys.

Getting an API Key

  1. Sign up for a free account
  2. Go to your Dashboard
  3. Click Generate New Key
  4. Copy the key and store it securely

Using Your API Key

Include your API key in the X-Api-Key header:

curl -H "X-Api-Key: swa_your_api_key_here" \
  -H "Content-Type: application/json" \
  https://simplewebapis.com/api/qrcode \
  -d '{"text": "https://example.com"}'
Security Note: Never expose your API key in client-side code, public repositories, or share it with unauthorized parties. If you suspect a key has been compromised, revoke it immediately from your dashboard.