SlideshowsAPISign inGet started
API · MCP

Plug in your agent.

Keys read and propose. Publishing only happens when the user approves on the web.

Base URLhttps://slideshows.gabrisp.com/api/v1Create a key

How it works

  1. UploadImages or a video. They go to the user's bucket.POST /media
  2. ProposeAccount, caption, hashtags (max 5) and a time.POST /proposals
  3. User approvesOn the publish screen: privacy, interactions, publish or draft.approve_url
  4. PublishedOn time. You get a webhook.post.published

Propose a carousel

# 1. Upload three images
curl -X POST https://slideshows.gabrisp.com/api/v1/media \
  -H "Authorization: Bearer $KEY" -F file=@slide1.jpg
# → { "media_id": "med_a", "type": "image" }

# 2. Propose the carousel with a time
curl -X POST https://slideshows.gabrisp.com/api/v1/proposals \
  -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
  -d '{ "account": "@yourname", "type": "carousel",
        "media_ids": ["med_a", "med_b", "med_c"],
        "caption": "5 habits that changed my week",
        "hashtags": ["habits", "productivity"],
        "proposed_at": "2026-12-02T18:00:00Z",
        "external_id": "my-post-42" }'

Statuses

proposed→scheduled→publishing→published·failedrejected

Reference

Header Authorization: Bearer sk_live_…. Dates are ISO 8601 UTC. Pass an account as acc_… or @username.

Accounts
GET/accounts
Connected accounts and their numbers
Response
{ "accounts": [{ "id": "acc_…", "username": "yourname", "display_name": "…", "avatar": "…",
                 "open_id": "…", "can_post": true, "stats": { "followers": 0, "likes": 0, "videos": 0 } }] }
GET/accounts/:account/posts?cursor=
Published grid from TikTok
Response
{ "posts": [{ "id", "type", "cover_url", "share_url", "caption", "created_at", "duration",
             "stats": { "views", "likes", "comments", "shares" },
             "proposal_id", "external_id", "images": [] }], "next_cursor": null }
GET/accounts/:account/activity?limit=&before=
Account timeline
Response
{ "events": [{ "id", "at", "event", "proposal_id", "external_id", "agent",
              "type", "cover_url", "post_url", "error", "scheduled_at" }], "next_before": null }
Media
POST/media
Upload a file (multipart "file") or pass a URL

Never cropped. Images that fit 1080×1920 are published as uploaded; larger ones are scaled down keeping their aspect ratio (TikTok allows up to 1080p). PNG or HEIC become JPEG. Videos MP4/MOV. Without connected storage: 409 storage_required.

Body
multipart/form-data  file=@slide.jpg
— or —
{ "url": "https://…/video.mp4" }
Response
201 { "media_id": "med_…", "type": "image" | "video", "url": "…" }
Proposals
POST/proposals
Propose a carousel or video
Body
{ "account": "@yourname", "type": "carousel" | "video", "media_ids": ["med_…"],
  "caption": "…", "hashtags": ["max", "five"], "proposed_at": "…Z", "external_id": "your-id" }
Response
201 {
  "id": "prp_…", "external_id": "your-id", "account": "acc_…",
  "type": "carousel", "status": "proposed", "mode": null,
  "caption": "…", "hashtags": ["tag"],
  "proposed_at": "2026-12-02T18:00:00Z", "scheduled_at": null,
  "post_url": null, "error": null,
  "approve_url": "https://slideshows.gabrisp.com/approve?ids=prp_…"
}
GET/proposals?status=&account=&external_id=
List
Response
{ "proposals": [ … ] }
GET/proposals/:id
One proposal
Response
{
  "id": "prp_…", "external_id": "your-id", "account": "acc_…",
  "type": "carousel", "status": "proposed", "mode": null,
  "caption": "…", "hashtags": ["tag"],
  "proposed_at": "2026-12-02T18:00:00Z", "scheduled_at": null,
  "post_url": null, "error": null,
  "approve_url": "https://slideshows.gabrisp.com/approve?ids=prp_…"
}
PATCH/proposals/:id
Change time, caption or hashtags (only while proposed)
Body
{ "proposed_at": "…Z", "caption": "…", "hashtags": [] }
DELETE/proposals/:id
Withdraw (only while proposed)
GET/accounts/:account/creator_info
What TikTok allows the account right now
Response
{ "creator_info": { "creator_username", "creator_nickname", "creator_avatar_url",
  "privacy_level_options": ["PUBLIC_TO_EVERYONE", "SELF_ONLY", …],
  "comment_disabled": false, "duet_disabled": false, "stitch_disabled": false,
  "max_video_post_duration_sec": 600 } }
POST/proposals/:id/approve
Approve: to drafts (approve_drafts) or publish (approve_direct)

For mode direct, your tool must first show the user what TikTok requires: creator_info name and avatar, a privacy choice with no default (from privacy_level_options), interactions off by default, commercial disclosure and the Music Usage Confirmation. We re-check with TikTok on approval and right before posting.

Body
// a borradores / to drafts
{ "mode": "draft", "scheduled_at": "…Z" }

// publicar / publish
{ "mode": "direct", "scheduled_at": "…Z",
  "privacy_level": "PUBLIC_TO_EVERYONE",
  "disable_comment": false, "disable_duet": true, "disable_stitch": true,
  "commercial": false, "brand_organic_toggle": false, "brand_content_toggle": false,
  "consent": true }
Response
{ …proposal, "status": "scheduled", "mode": "draft" | "direct" }

Webhooks

Set a URL on the key. Signed with HMAC-SHA256 of the raw body, retried for a day.

proposal.approvedproposal.rejectedpost.publishedpost.failed
X-Slideshows-Signature: hex(hmac_sha256(secret, body))
{ "event": "post.published",
  "proposal": { "id", "external_id", "account", "status",
                "scheduled_at", "post_url", "error" } }

MCP

Streamable HTTP with the same key.

list_accountsget_account_postsget_account_activityupload_mediacreate_proposallist_proposalsget_proposalupdate_proposalwithdraw_proposalget_creator_infoapprove_proposal
claude mcp add --transport http slideshows \
  https://slideshows.gabrisp.com/api/mcp \
  --header "Authorization: Bearer sk_live_…"

Approve from your own tool

Open the approve screen inside your app with &embed=1. It tells you via postMessage when each post is approved or skipped.

<iframe src="https://slideshows.gabrisp.com/approve?ids=prp_a,prp_b&embed=1" />

window.addEventListener("message", (e) => {
  if (e.origin !== "https://slideshows.gabrisp.com" || e.data?.source !== "slideshows") return;
  // e.data.type: "slideshows:approved" | "slideshows:skipped" | "slideshows:done"
});

Embedding is limited to allowed origins (EMBED_ORIGINS).

Errors

401Bad or revoked key403The key lacks the permission (read / propose)404Not found409external_id already used (returns the proposal), not editable, or storage_required422Invalid data
{ "error": { "code": "duplicate_external_id", "message": "…" }, "proposal": { … } }
API & MCP · Slideshows