Skip to main content

1. Get your API key

Navigate to Settings > Developer in the Supapost dashboard and create a new API key.

2. Make your first request

curl -X POST https://api.supapost.so/generate/slides \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "Create 3 slides about morning routines with motivational text"
  }'

3. Check the response

The API returns slide definitions with backgrounds, text layers, and AI-generated images:
{
  "slides": [
    {
      "name": "Slide 1",
      "background": {
        "type": "image",
        "imageUrl": "https://cdn.supapost.so/exports/..."
      }
    }
  ],
  "texts": [
    {
      "slideIndex": 0,
      "text": {
        "content": "Transform Your Mornings",
        "fontSize": 84,
        "fontWeight": 800,
        "x": 90,
        "y": 750,
        "width": 900,
        "color": "#ffffff",
        "textAlign": "center"
      }
    }
  ],
  "images": [
    {
      "slideIndex": 0,
      "imageUrl": "https://cdn.supapost.so/exports/..."
    }
  ]
}

Next steps