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
- Go to your Dashboard
- Click API Keys in the sidebar
- Click Create New Key
- Give your key a descriptive name
- Copy and securely store your key
tip
Create separate API keys for different environments (development, staging, production).
Key Types
| Prefix | Environment | Usage |
|---|---|---|
sk_live_ | Production | Live traffic |
sk_test_ | Development | Testing 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
- Never expose API keys in client-side code
- Use environment variables to store keys
- Rotate keys periodically
- Use test keys for development
- Monitor API usage in your dashboard
Rate Limits
| Plan | Requests per Minute |
|---|---|
| Free | 10 |
| Pro | 60 |
| Team | 200 |
Exceeding rate limits returns a 429 Too Many Requests error.