Skip to content

Endpoints

MethodPathPurpose
GET/ai/statusCheck availability
POST/ai/generate-contentGenerate platform captions
POST/ai/suggest-hashtagsSuggest hashtags per platform

AI features require Pro or Business tier.

GET /ai/status

json
{
  "success": true,
  "data": { "available": true, "model": "gemini-2.0-flash" }
}

POST /ai/generate-content

bash
curl -X POST https://api.socifyr.com/api/ai/generate-content \
  -H "Authorization: Bearer sk_..." \
  -H "X-Workspace-Id: <workspaceId>" \
  -H "Content-Type: application/json" \
  -d '{
    "uploadType": "video",
    "platforms": ["instagram", "linkedin"],
    "title": "Product launch",
    "description": "We are shipping our new SDK",
    "tone": "professional",
    "brandVoice": "We speak with authority but stay approachable"
  }'
FieldTypeDescription
uploadTypetext / photo / video / documentRequired
platformsstring[]Required — target platforms
text / title / descriptionstring?Context for the AI
toneprofessional / casual / humorous / inspirational / informativeOptional
brandVoicestring?Free-text brand instructions

Response:

json
{
  "success": true,
  "data": {
    "content": {
      "instagram": "...",
      "linkedin": "..."
    }
  }
}

POST /ai/suggest-hashtags

bash
curl -X POST https://api.socifyr.com/api/ai/suggest-hashtags \
  -H "Authorization: Bearer sk_..." \
  -H "X-Workspace-Id: <workspaceId>" \
  -H "Content-Type: application/json" \
  -d '{
    "text": "Launching our social automation SDK",
    "platforms": ["instagram", "x"],
    "count": 15,
    "existingHashtags": ["#devtools"]
  }'

Response:

json
{
  "success": true,
  "data": [
    { "platform": "instagram", "hashtags": ["#socialmedia", "#automation", "..."] },
    { "platform": "x", "hashtags": ["#dev", "#api", "..."] }
  ]
}