Skip to main content

Authentication

All API requests to Ssiat require authentication using an API key.

API Key Authentication

Include your API key in the Authorization header:

Authorization: Bearer sk_live_xxxxxxxxxxxxxxxx

Creating API Keys

  1. Go to your Dashboard
  2. Click API Keys in the sidebar
  3. Click Create New Key
  4. Give your key a descriptive name
  5. Copy and securely store your key
tip

Create separate API keys for different environments (development, staging, production).

Key Types

PrefixEnvironmentUsage
sk_live_ProductionLive traffic
sk_test_DevelopmentTesting only

Example Requests

JavaScript (fetch)

const response = await fetch('https://ssiat.dev/api/v1/og/generate', {
method: 'POST',
headers: {
'Authorization': 'Bearer sk_live_xxxxxxxxxxxxxxxx',
'Content-Type': 'application/json',
},
body: JSON.stringify({
template: 'blog',
data: { title: 'My Title' }
}),
});

const result = await response.json();

Python (requests)

import requests

response = requests.post(
'https://ssiat.dev/api/v1/og/generate',
headers={
'Authorization': 'Bearer sk_live_xxxxxxxxxxxxxxxx',
'Content-Type': 'application/json',
},
json={
'template': 'blog',
'data': {'title': 'My Title'}
}
)

result = response.json()

Security Best Practices

  1. Never expose API keys in client-side code
  2. Use environment variables to store keys
  3. Rotate keys periodically
  4. Use test keys for development
  5. Monitor API usage in your dashboard

Rate Limits

PlanRequests per Minute
Free10
Pro60
Team200

Exceeding rate limits returns a 429 Too Many Requests error.