Skip to content
supapost

API Reference

supapost REST API v1

Integrate supapost into your applications and workflows. Generate AI-powered posts, manage content, create images, and more -- all through a simple REST API.

Base URLhttps://api.supapost.ai
Authentication

All API requests require authentication using a Bearer token in the Authorization header. API keys can be generated from the dashboard settings and are available on all plans: Free (100 req/day),Pro (1,000 req/day),Agency (10,000 req/day).

bash
curl -X GET https://api.supapost.ai/api/v1/posts \
  -H "Authorization: Bearer YOUR_API_KEY"

Keep your API key secret. Do not share it in publicly accessible areas such as GitHub, client-side code, or browser requests. If a key is compromised, revoke it immediately from the dashboard.

Rate Limits

Rate limits are applied per API key to ensure fair usage. When you exceed the limit, the API will return a 429 Too Many Requests response.

EndpointLimit
Most endpoints60 req/min
Image generation20 req/min

Rate limit headers are included in every response: X-RateLimit-Limit, X-RateLimit-Remaining, and X-RateLimit-Reset.

Error Responses

All errors return a consistent JSON structure with a status code and message.

json
{
  "error": {
    "code": "UNAUTHORIZED",
    "message": "Invalid or missing API key",
    "status": 401
  }
}
StatusCodeDescription
400BAD_REQUESTInvalid request body or parameters
401UNAUTHORIZEDMissing or invalid API key
403FORBIDDENAPI access not available on your plan
404NOT_FOUNDResource not found
429RATE_LIMITEDToo many requests
500INTERNAL_ERRORSomething went wrong on our end

Endpoints

Click on an endpoint to expand its documentation including parameters, examples, and response formats.

POST/api/v1/content/generate
Generate Content (Unified)
POST/api/v1/strategy/generate
Generate Cross-Platform Strategy
POST/api/v1/content/repurpose
Repurpose Content
GET/api/v1/blogs
List Blogs
POST/api/v1/blogs
Create Blog
GET/api/v1/newsletters
List Newsletters
POST/api/v1/newsletters
Create Newsletter
GET/api/v1/usage
Get Usage
GET/api/v1/workspaces
List Workspaces
POST/api/v1/posts/generate
Generate AI Post
GET/api/v1/posts
List Posts
POST/api/v1/posts
Create Post
GET/api/v1/posts/:id
Get Post
PATCH/api/v1/posts/:id
Update Post
DELETE/api/v1/posts/:id
Delete Post
POST/api/v1/images/generate
Generate Image
GET/api/v1/templates
List Templates
POST/api/v1/topics/suggest
Suggest Topics