API Documentation

Authentication

Include your API key in the X-API-Key header:

X-API-Key: csa_abc123def456...

You can also pass it as a query parameter: ?api_key=csa_abc123...

Get your key by subscribing on Gumroad.

Endpoints

POST /v1/generate

Generate 5 platform-specific social media posts.

Request Body

FieldTypeRequiredDescription
topicstringYesWhat to generate content about
industrystringNotechnology, healthcare, finance, education, ecommerce, realestate, marketing
tonestringNoprofessional, casual, humorous, inspirational, educational

Example

curl -X POST https://api.cybersavvyai.com/v1/generate \
  -H "X-API-Key: csa_your-key-here" \
  -H "Content-Type: application/json" \
  -d '{"topic": "AI tools for small business", "industry": "technology", "tone": "professional"}'

Response

{
  "result": {
    "message": "Workflow was started"
  },
  "credits_remaining": 99,
  "plan": "starter"
}
GET /v1/credits

Check your remaining credits.

curl https://api.cybersavvyai.com/v1/credits \
  -H "X-API-Key: csa_your-key-here"
{
  "credits_remaining": 99,
  "credits_used": 1,
  "credits_limit": 100,
  "plan": "starter",
  "expires_at": 1723660800
}

Error Codes

CodeMeaning
401Missing API key
403Invalid or inactive API key
402Subscription expired
429Credit limit reached
400Missing or invalid request parameters