Authentication

API Key Authentication

All API requests require authentication using an API key. Include your API key in the Authorization header:

Authorization: Bearer YOUR_API_KEY
Keep your API key secret! Do not share it publicly or commit it to version control.
Getting Your API Key
  1. Create an account or log in at SynGen Pro
  2. Navigate to your Profile page
  3. Your API key is displayed in the "API Key" section
  4. Click "Copy" to copy it to your clipboard
Log in to view your API key.
Example Request
# Using curl
curl -X POST https://your-domain.com/api/generate \
  -H "Authorization: Bearer sk_live_abc123..." \
  -H "Content-Type: application/json" \
  -d '{"rows": 10, "format": "json", "fields": [...]}'

# Using Python
import requests

headers = {
    "Authorization": "Bearer sk_live_abc123...",
    "Content-Type": "application/json"
}

response = requests.post(
    "https://your-domain.com/api/generate",
    headers=headers,
    json={"rows": 10, "format": "json", "fields": [...]}
)
Error Responses
Status Error Description
401 Unauthorized Missing or invalid API key
403 Forbidden API key is valid but lacks permission
429 Rate Limited Daily request limit exceeded