Skip to main content

API Reference

Complete reference for the Ssiat API.

Base URL

https://ssiat.dev/api/v1

Authentication

All requests require an API key in the Authorization header:

Authorization: Bearer YOUR_API_KEY

Endpoints Overview

MethodEndpointDescription
POST/og/generateGenerate an OG image
GET/og/templatesList available templates
GET/user/profileGet user profile
GET/stats/usageGet usage statistics

Response Format

All responses follow this structure:

Success Response

{
"success": true,
"data": {
// Response data
}
}

Error Response

{
"success": false,
"error": {
"code": "ERROR_CODE",
"message": "Human-readable error message"
}
}

HTTP Status Codes

StatusDescription
200Success
400Bad Request - Invalid parameters
401Unauthorized - Invalid or missing API key
403Forbidden - Insufficient permissions
404Not Found - Resource doesn't exist
429Too Many Requests - Rate limit exceeded
500Internal Server Error

Rate Limits

PlanLimit
Free10 requests/minute
Pro60 requests/minute
Team200 requests/minute

Rate limit headers are included in responses:

X-RateLimit-Limit: 60
X-RateLimit-Remaining: 59
X-RateLimit-Reset: 1704067200

Interactive API Docs

For interactive API testing, visit our Scalar API Reference.