Superpills API

Post and read your views from your own code

  • A REST API with the same 8 tools your AI gets.
  • One key from Settings › Developers. No OAuth app to build.
  • A one-file command-line tool that only needs Node.js.

Updated October 2026 · Included in Pro, Max and the 7-day trial.

A focused lime-green pill lying in front of a small tower of pastel building blocks, with a coiled cable.
Sent 3 photos to @yourbrand's TikTok inboxPOST /api/v1/tiktok-drafts · 200

How it works

From your terminal to your TikTok inbox.

One command sends three slides. TikTok's notification arrives, you open the draft, add a sound and post it.

How do I start?

Make a key in Superpills, try one request, then use the API or the command line. It takes a few minutes.

  1. 1

    Make your key

    In Superpills, open Settings › Developers and click Create API key. It's shown once: Superpills keeps only a fingerprint of it.

    Start free
  2. 2

    Try one request

    List your accounts. Put your key where it says spk_….

    curl https://superpills.app/api/v1/channels -H "Authorization: Bearer spk_…"
  3. 3

    Or use the command line

    Download one file and log in once. It needs Node.js 18 or newer and nothing else.

    curl -o superpills.mjs https://superpills.app/cli/superpills.mjs

Which endpoints are there?

8, under https://superpills.app/api/v1/, one for each tool your AI gets. Every request carries your key as "Authorization: Bearer spk_…", and every answer is JSON.

Endpoints

GET /channelsYour brands and their connected accounts.
GET /views?days=7&channel=@handleNew views per day and per account, up to 365 days back.
GET /top-posts?days=30&limit=10The posts with the most views.
POST /tiktok-draftsSends 1 to 35 photos to a TikTok inbox as a draft.
GET /draft-status?channel=@handle&publish_id=…Whether a draft reached TikTok.
POST /scheduleSchedules text, photos or one video on up to 30 accounts. It waits for your OK.
GET /posts?days=30What's scheduled, and how the last 7 days' posts went.
POST /cancel-postDeletes a post that hasn't gone out.

What does a request look like?

Three examples with curl. Pictures can be https links or data URIs; Superpills converts them for each network.

Send a TikTok carousel as a draft

curl https://superpills.app/api/v1/tiktok-drafts \
  -H "Authorization: Bearer $SUPERPILLS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "channel": "@yourbrand",
    "images": ["https://example.com/1.png", "https://example.com/2.png", "https://example.com/3.png"],
    "caption": "Three things we launched this week #launch",
    "cover_index": 0
  }'

Schedule a post that waits for your OK

curl https://superpills.app/api/v1/schedule \
  -H "Authorization: Bearer $SUPERPILLS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "channels": ["@yourbrand"],
    "caption": "Our new menu is here",
    "images": ["https://example.com/menu.jpg"],
    "publish_at": "2026-10-20T18:00:00-05:00"
  }'

Read last week's views

curl "https://superpills.app/api/v1/views?days=7" \
  -H "Authorization: Bearer $SUPERPILLS_API_KEY"

How do I use the command line?

Download it, log in with your key, and ask. The key is saved in your home folder, or read from SUPERPILLS_API_KEY. Add --json to any command for the raw answer.

Install and log in

curl -o superpills.mjs https://superpills.app/cli/superpills.mjs
node superpills.mjs login

Read your views and best posts

node superpills.mjs views --days 7
node superpills.mjs top --days 30 --limit 5

Send a carousel to TikTok as a draft

node superpills.mjs draft --channel @yourbrand --caption "We launch today" slide1.png slide2.png slide3.png

What does the API answer when something's wrong?

JSON with an "error" that says what to fix, and one of these codes.

Errors

400Something in the request is wrong, like a missing field or too many photos.
401The key is missing, wrong or replaced.
402Your plan or trial ended.
404There's no endpoint with that name.
405Wrong method: use GET or POST as the list says.

API or MCP: which one should I use?

Use MCP when an AI does the work: Claude, ChatGPT or Cursor add one address and sign in. Use the API when your own code does: a script, a scheduled job, n8n or Make. Both run the same tools with the same limits.

Questions

Does the API cost extra?

No. It comes with Pro ($19 a month) and Max ($49), and works during the 7-day trial.

Do posts I schedule through the API go out on their own?

No. Like the ones your AI schedules, they wait for your OK in the Superpills calendar. TikTok photos and videos land in the inbox as drafts.

Can I build an app that posts for other people?

Not yet. A key reaches only your own brands and accounts.

What if my key leaks?

Replace it in Settings › Developers. The old one stops working right away.

Can I use it from n8n, Make or Zapier?

Yes. Any tool that can send an HTTP request with a header works: add your key as "Authorization: Bearer spk_…".

Keep going

Your code posts. You approve.

7 days free. Connect your AI in a minute.