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.
/v1/generate
Generate 5 platform-specific social media posts.
| Field | Type | Required | Description |
|---|---|---|---|
topic | string | Yes | What to generate content about |
industry | string | No | technology, healthcare, finance, education, ecommerce, realestate, marketing |
tone | string | No | professional, casual, humorous, inspirational, educational |
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"}'
{
"result": {
"message": "Workflow was started"
},
"credits_remaining": 99,
"plan": "starter"
}
/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
}
| Code | Meaning |
|---|---|
| 401 | Missing API key |
| 403 | Invalid or inactive API key |
| 402 | Subscription expired |
| 429 | Credit limit reached |
| 400 | Missing or invalid request parameters |