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.
Quick start
- 1
Make a key
In Outshot, open API and make a key for your brand. Copy it: it’s shown once.
- 2
Try it
Ask for the videos waiting for you:
Terminalcurl https://api.outshot.ai/v1/videos \ -H "Authorization: Bearer osk_your_key" - 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
Put the key in your shell
In
~/.zshrcor~/.bashrcrather than in a command, so it stays out of your shell history.~/.zshrcexport OUTSHOT_API_KEY=osk_your_key - 2
Add the server to your agent
claude mcp add --transport http outshot https://mcp.outshot.ai/mcp \ --header "Authorization: Bearer $OUTSHOT_API_KEY"
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
Install it
It needs Node 22 or later. Or run any command without installing, with
npxin front:npx outshot help.Terminalnpm i -g outshot - 2
Sign in
It asks for your key and keeps it where only you can read it. With
OUTSHOT_API_KEYin your shell, it uses that instead.Terminaloutshot login - 3
Try it
Replies are JSON.
helplists every command, its flags and what it costs.Terminaloutshot list-videos outshot edit-video VIDEO_ID --caption "New caption" outshot help - 4
Add the skill to your agent
/plugin marketplace add TangaApp/outshot-cli /plugin install outshot@outshot
Keys and what they can do
A key works for one brand, and only for what you allowed when you made it:
| Permission | What it allows |
|---|---|
| See videos and brand | Every key can read the brand, the videos (waiting, kept, posted and skipped), the Calendar, posting, the Library’s trends and credits. |
| Make changes | Edits, remakes and skips videos, makes one from a trend, changes posting. Uses credits. |
| Post your videos | Approves 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.
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.
| What | Credits |
|---|---|
| A new video | 5 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 kind | 4 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 track | 2 credits |
| Change the words on screen | 1 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 hashtags | Free |
| Take out a closing reaction | 1 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.
curl https://api.outshot.ai/v1/videos/VIDEO_ID \
-H "Authorization: Bearer $OUTSHOT_API_KEY"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).
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
Give it a day
place_videowith aday(YYYY-MM-DD), or none for the next open posting day. One video a day: a day already taken answers409 day_takenwith the other video’s id; when this video has a day of its own,swap: truetrades days with it. - 2
Or post it now
post_video_nowsends it within seconds to every platform the brand posts to. One of them must be connected in the app. - 3
When a platform turns it down
A platform mark with
can_retry: true(Instagram or YouTube) is sent again withretry_platform. One withneeds_answer: truestopped midway: ask whether it’s there, thenanswer_missedwith thatplatform. - 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, thenanswer_missedwithposted. Nothing else can be done with it before.
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
Ask for an upload address
create_demo_uploadwith the file’s name. It answers with anupload.url. - 2
Send the file
Send the file’s bytes there with
PUTand itsContent-Type.Terminalcurl -X PUT "UPLOAD_URL" \ -H "Content-Type: video/mp4" \ --data-binary @demo.mp4 - 3
Finish
complete_demo_upload. The demo is made ready in the background;list_demosshows when.
When something is refused
A refusal always has the same shape, with words you can show a person:
{
"error": {
"code": "out_of_credits",
"message": "You're out of credits. …",
"balance": 3,
"needed": 8
}
}| Status | Code | What it means |
|---|---|---|
| 401 | invalid_api_key | The key is wrong or revoked. |
| 402 | out_of_credits | Not enough credits. The answer says how many you have and need. |
| 403 | insufficient_scope | The key isn’t allowed to do that. |
| 404 | not_found | No such video or demo for this brand. |
| 409 | conflict | The video is being changed or posted right now. Try again shortly. |
| 409 | day_taken | That day already has a video. The answer gives its id; swap, or pick another day. |
| 409 | posting_paused | Posting is held until the plan or credits cover this social account. |
| 422 | invalid_request | Something in the request isn’t right. The answer lists what. |
| 429 | rate_limited | Too many requests. Wait the seconds in Retry-After. |
| 503 | unavailable | Outshot couldn’t check something just now. Try again in a moment. |