Get started

Outshot’s API and MCP server

Give Claude Code, Codex or any AI agent a key, and it can run Outshot for one of your brands. Everything it can do, you can do in the app.

What your agent can do

See what’s waiting

The videos made for your brand from this week’s trends, ready for a decision, and every video kept, posted or skipped.

Change them

Rewrite the caption or the words on screen, swap a picture or clip, or make a video again.

Keep or pass

With auto-schedule on, a kept video takes your next open posting day; off, it waits with no day. With TikTok, Instagram or YouTube connected, it posts there on its day by itself.

Pick the day

Give a kept or skipped video a day, move it to another, or post it now. Say whether one whose time passed was posted by hand.

Make one from a trend

Pick a trend from the Library: a video is made from it and comes next.

Look after the brand

Your goal, tone, audience and themes, your posting days, time and time zone, auto-schedule, and your product demos.

Connecting TikTok, Instagram and YouTube, plans and payments, and making keys stay in the app, with you.

Quick start

  1. 1

    Make a key

    In Outshot, open API and make a key for your brand. Copy it: it’s shown once.

  2. 2

    Try it

    Ask for the videos waiting for you:

    Terminal
    curl https://api.outshot.ai/v1/videos \
      -H "Authorization: Bearer osk_your_key"
  3. 3

    Connect your agent

    Add Outshot to Claude Code, Codex or any MCP client, as below, or give it the command line and its skill.

Connect your agent

The MCP server is at https://mcp.outshot.ai/mcp. It takes your key in the Authorization header; there’s no sign-in window.

  1. 1

    Put the key in your shell

    In ~/.zshrc or ~/.bashrc rather than in a command, so it stays out of your shell history.

    ~/.zshrc
    export OUTSHOT_API_KEY=osk_your_key
  2. 2

    Add the server to your agent

    claude mcp add --transport http outshot https://mcp.outshot.ai/mcp \
      --header "Authorization: Bearer $OUTSHOT_API_KEY"
Agents that don’t speak MCP can use the API at https://api.outshot.ai/v1: the same operations, with the same names. See the API reference, or its full description at openapi.json.

Command line and skill

The outshot command runs every operation from a terminal, with the same names (list-videos, edit-video, …). Agents with a terminal, like Claude Code and Codex, use it well. Its skill teaches them how: what a change costs, following a remake until it’s ready, and asking you before keeping or posting anything.

  1. 1

    Install it

    It needs Node 22 or later. Or run any command without installing, with npx in front: npx outshot help.

    Terminal
    npm i -g outshot
  2. 2

    Sign in

    It asks for your key and keeps it where only you can read it. With OUTSHOT_API_KEY in your shell, it uses that instead.

    Terminal
    outshot login
  3. 3

    Try it

    Replies are JSON. help lists every command, its flags and what it costs.

    Terminal
    outshot list-videos
    outshot edit-video VIDEO_ID --caption "New caption"
    outshot help
  4. 4

    Add the skill to your agent

    /plugin marketplace add TangaApp/outshot-cli
    /plugin install outshot@outshot
Commands that keep or post a video run only with --yes. It’s on npm, and its code is on GitHub.

Keys and what they can do

A key works for one brand, and only for what you allowed when you made it:

PermissionWhat it allows
See videos and brandEvery key can read the brand, the videos (waiting, kept, posted and skipped), the Calendar, posting, the Library’s trends and credits.
Make changesEdits, remakes and skips videos, makes one from a trend, changes posting. Uses credits.
Post your videosApproves videos so they post to your TikTok, Instagram and YouTube on their day, or posts them right away.

When a video is kept with TikTok connected, it posts with the choices you made in Outshot (who can see it, comments, duets). An agent can’t change them. Instagram and YouTube take no choices: a Reel in your grid, a public Short with your “made for kids” answer. Each kept video lists its platforms, how each one stands; a video using AI-made images or footage has ai_label: true and posts with each platform’s AI label. A slideshow is the exception: TikTok doesn’t take the label on photo posts, so it posts without one.

Keep keys like passwords. Revoke one in the app and it stops working at once. A key can make up to 60 requests a minute.

Credits

Your agent uses the same credits you do. With a key that can make changes, the videos waiting for you stay topped up as in the app: when one is kept or passed on, a new one is made in its place, and that uses credits. A video made from a trend costs the same as a new video. A key that can only read never uses any.

WhatCredits
A new video5 credits
A new Demo video (with your product demo, or your website)5 credits
A new talking head (an AI presenter)25 credits
A new Creator video (a person to camera, with glass captions, stickers and panels)25 credits
Make a video again, or make it as another kind4 credits
A talking head’s new take (new words, a new host, a new version, or made as one)15 credits
A Creator video’s new take (new words, another person or setup, a new version, or made as one)15 credits
Change the spoken words (a new voice-over)2 credits
Swap a picture, clip, section, background or track2 credits
Change the words on screen1 credit
Change how a video looks (captions, emoji, graphics, sound, a talking head’s layout, a Creator video’s focus moments, stickers, cards and panels)1 credit
Change the caption or hashtagsFree
Take out a closing reaction1 credit

Videos take a few minutes

A change that makes a video again (new words, a swap, a new look, a remake, another kind) answers at once with "queued": true and the video’s state being_changed. Ask for the video every few seconds with get_video until its state is ready.

Follow a change
curl https://api.outshot.ai/v1/videos/VIDEO_ID \
  -H "Authorization: Bearer $OUTSHOT_API_KEY"
Most changes are ready in about a minute. A Narrated video or a Website tour takes a minute or two, and a talking head’s new take about five minutes.

The brand’s week

list_videos gives the brand’s week (its own Monday to Monday): videos kept against its goal, and its mode. When the week’s goal is reached, or its share of the plan’s credits is used, card is goal or budget and no new videos are made until it’s answered with answer_deck_week: keep, stop, automate (next week’s videos are made by themselves) or keep_going (past this week’s credits). get_weekly_batch and update_weekly_batch read and set the weekly batch; update_video_settings sets the mix of formats and how often videos mention the brand (mention_brand).

Each video uses credits whether it’s kept or skipped. Ask the founder before turning the weekly batch on: it makes videos by itself.

Giving videos a day

list_content lists every video kept, posted or skipped, each in a group: ready (no day yet), scheduled, posted or skipped (kept 30 days, until deletes_on). Days and times are the brand’s own, in its time zone (get_posting).

  1. 1

    Give it a day

    place_video with a day (YYYY-MM-DD), or none for the next open posting day. One video a day: a day already taken answers 409 day_taken with the other video’s id; when this video has a day of its own, swap: true trades days with it.

  2. 2

    Or post it now

    post_video_now sends it within seconds to every platform the brand posts to. One of them must be connected in the app.

  3. 3

    When a platform turns it down

    A platform mark with can_retry: true (Instagram or YouTube) is sent again with retry_platform. One with needs_answer: true stopped midway: ask whether it’s there, then answer_missed with that platform.

  4. 4

    When its time passed

    A video that didn’t post by itself on its day, or whose send stopped midway, has missed: true. Only a person knows whether it’s on TikTok: ask, then answer_missed with posted. Nothing else can be done with it before.

With auto-schedule off (update_posting), kept videos wait in ready until they’re given a day.

Adding a product demo

A product demo is a 5 to 20 second screen recording (MP4, MOV or WebM). Demo videos show it.

  1. 1

    Ask for an upload address

    create_demo_upload with the file’s name. It answers with an upload.url.

  2. 2

    Send the file

    Send the file’s bytes there with PUT and its Content-Type.

    Terminal
    curl -X PUT "UPLOAD_URL" \
      -H "Content-Type: video/mp4" \
      --data-binary @demo.mp4
  3. 3

    Finish

    complete_demo_upload. The demo is made ready in the background; list_demos shows when.

When something is refused

A refusal always has the same shape, with words you can show a person:

Refusal
{
  "error": {
    "code": "out_of_credits",
    "message": "You're out of credits. …",
    "balance": 3,
    "needed": 8
  }
}
StatusCodeWhat it means
401invalid_api_keyThe key is wrong or revoked.
402out_of_creditsNot enough credits. The answer says how many you have and need.
403insufficient_scopeThe key isn’t allowed to do that.
404not_foundNo such video or demo for this brand.
409conflictThe video is being changed or posted right now. Try again shortly.
409day_takenThat day already has a video. The answer gives its id; swap, or pick another day.
409posting_pausedPosting is held until the plan or credits cover this social account.
422invalid_requestSomething in the request isn’t right. The answer lists what.
429rate_limitedToo many requests. Wait the seconds in Retry-After.
503unavailableOutshot couldn’t check something just now. Try again in a moment.
Over MCP, the same refusal comes back as a failed tool call that starts with the code.
Stuck, or built something with the API? Ask in our Discord, or write to rygel@notifications.outshot.ai.
NextAPI reference