FOR DEVELOPERS

Product video & payments, as an API.

The same engine behind ProductSafi, exposed as a clean REST API. Generate marketing videos and mint Paystack-backed pay links from your own platform — embed the whole sell-with-video loop for the businesses you serve.

Create a pay link
curl https://productsafi.com/api/v1/links \
  -H "X-API-Key: $PRODUCTSAFI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "title": "Shea Body Butter",
    "amountType": "fixed",
    "fixedAmount": 1200,
    "currency": "KES"
  }'
Response
{
  "success": true,
  "link": {
    "id": "lnk_8f2a...",
    "slug": "shea-body-butter",
    "url": "https://productsafi.com/pay/shea-body-butter",
    "amountType": "fixed",
    "fixedAmount": 1200,
    "currency": "KES"
  }
}

What you can build

Video generation

POST a product and get back a rendered MP4 — script, visuals and voiceover — via an async job + completion webhook.

Pay links + checkout

Mint Paystack-backed pay links programmatically. M-Pesa STK and card, hosted pay page + QR, settlement to the merchant's bank.

Webhooks

Signed events on job completion and payment status so your system reacts in real time. Register/rotate your endpoint via the API.

QUICKSTART

Authenticate, then call.

Every /api/v1 request takes an X-API-Key header (the public pay pages and the Paystack webhook are the exceptions). Keys are provisioned per client — sign up or talk to us to get one for your platform.

  • 1. Get an API key for your client.
  • 2. Create a pay link or a video job.
  • 3. Register a webhook to react to completion + payments.
Generate a video
curl https://productsafi.com/api/v1/generate \
  -H "X-API-Key: $PRODUCTSAFI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "productName": "Shea Body Butter",
    "price": 1200,
    "images": ["https://cdn.example.com/shea.jpg"]
  }'
# → { "jobId": "job_...", "status": "queued" }
# Poll GET /api/v1/status/:jobId, or register a webhook for completion.

Core endpoints

A REST API over JSON. Full machine-readable reference at /docs.

Full reference →
POST /api/v1/generate
GET /api/v1/status/:jobId
GET /api/v1/usage
POST /api/v1/links
GET /api/v1/links
PATCH /api/v1/links/:id
POST /api/v1/webhooks/register
GET /api/v1/links/by-slug/:slug

Build it into your platform.

Provision a key and ship your first integration in minutes. Pay-as-you-go — KES 300 per video, 4% per sale.