Developers
Studio from your code, or from your AI assistant.
A small REST API and a remote MCP server over the same workspace. List the drafts waiting for review, approve or reject them, and schedule the ones you like. Both use the same API key.
Authentication
Create a key in Studio under Settings, API & MCP (workspace owners and admins). It starts with stu_, is shown once, and can be revoked at any time. Send it as a bearer token. A key works only in the workspace it was created in, and stops working if its creator leaves the workspace.
curl "https://studio.bobwork.ai/api/v1/content?status=draft" \
-H "Authorization: Bearer stu_YOUR_KEY"Endpoints
Base URL https://studio.bobwork.ai/api/v1. JSON in, JSON out, snake_case fields, ISO 8601 dates. The machine-readable description is at /api/v1/openapi.json.
| Method | Path | What it does |
|---|---|---|
| GET | /me | Workspace, plan and credits left this month |
| GET | /brands | List brands |
| GET | /brands/{id} | One brand with its message: positioning, audience, promise, pillars, CTA |
| GET | /content | List content. Query: status, brand_id, limit (max 100), cursor |
| GET | /content/{id} | One piece with media, caption and schedule |
| POST | /content | Add your own video or images from public https URLs (mp4/mov/webm up to 300 MB, jpeg, png). Creates an approved piece |
| POST | /uploads | Get a direct-upload grant for a file on your computer (any size). The bytes go straight to storage; pass the returned media_url to POST /content |
| POST | /content/generate | Generate a draft image piece. Spends credits |
| POST | /content/{id}/approve | Approve a draft. Idempotent |
| POST | /content/{id}/reject | Reject a piece, optional reason. Idempotent |
| POST | /content/{id}/schedule | Post publicly at a time on chosen platforms. YouTube needs a youtube object: privacy and made_for_kids |
| GET | /channels | Per brand, per platform connection status |
| GET | /schedule | Scheduled and posted slots. Query: from, to, limit |
| POST | /reels/templates | Render the free template reels as drafts |
| GET | /comments | Inbox comments. Query: status (pending, held, sent, skipped), limit |
| POST | /comments/{id}/{action} | action is send, skip or redraft |
Examples
Find drafts, approve one, schedule it.
GET /api/v1/content?status=draft&limit=2
{
"content": [{
"id": "7c1e…", "brand_id": "b2f0…", "brand_name": "Acme",
"type": "image", "type_label": "Image card", "status": "draft",
"title": "Three signs your menu is too long",
"caption": "…", "hashtags": ["acme"],
"media": ["https://…/final.png"], "thumb": "https://…/final.png",
"reject_reason": null, "approved_at": null,
"created_at": "2026-10-26T08:12:00.000Z", "schedule": []
}],
"next_cursor": null
}POST /api/v1/content/7c1e…/schedule
{ "platforms": ["fb", "ig"], "at": "2026-11-02T09:00:00Z" }
{
"content": { "id": "7c1e…", "status": "scheduled", … },
"post_at": "2026-11-02T09:00:00.000Z",
"results": {
"fb": { "status": "scheduled", "slot_id": "…", "url": null, "sandbox": false, "note": null },
"ig": { "status": "unavailable", "note": "Waiting on platform approval. …", … }
}
}POST /api/v1/content/generate
{ "brand_id": "b2f0…", "type": "image", "prompt": "A tip about weekday lunch" }
{ "content": { … "status": "draft" … }, "credits": { "used": 10, "left": 190 } }Scheduling posts publicly at the time you give. Platforms that are not connected for the brand come back as unavailable; connections still in sandbox are flagged and do not post publicly. Errors always look like {"error":{"code":"not_found","message":"…"}} with the matching HTTP status.
Upload a file from your computer
Files go straight to storage, so there is no size limit from us. Ask for a grant, PUT the file, then create the piece from the returned media_url. Up to 100 MB one PUT is enough:
G=$(curl -s -X POST https://studio.bobwork.ai/api/v1/uploads \
-H "Authorization: Bearer stu_YOUR_KEY" -H "Content-Type: application/json" \
-d '{"filename":"clip.mp4","content_type":"video/mp4","size_bytes":52428800}')
# upload.url + upload.headers come back in $G; send the file as the raw body
curl -X PUT "$(echo $G | jq -r .upload.url)" \
-H "authorization: $(echo $G | jq -r .upload.headers.authorization)" \
-H "x-api-version: 12" -H "x-content-type: video/mp4" \
-H "x-add-random-suffix: 0" -H "x-vercel-blob-access: public" \
--data-binary @clip.mp4
curl -X POST https://studio.bobwork.ai/api/v1/content -H "Authorization: Bearer stu_YOUR_KEY" -H "Content-Type: application/json" \
-d "{\"brand_id\":\"b2f0…\",\"type\":\"reel\",\"title\":\"My clip\",\"media_url\":\"$(echo $G | jq -r .media_url)\"}"Over 100 MB (use_multipart: true): the response carries a multipart recipe. POST to create_url with header x-mpu-action: create to get uploadId and key; POST each part of at least 5 MB (the last may be smaller) with x-mpu-action: upload, x-mpu-upload-id, x-mpu-key (URL-encoded) and x-mpu-part-number to get its etag; then POST x-mpu-action: complete with the JSON list [{"partNumber":1,"etag":"…"}, …]. Every request also carries the same authorization and x-api-version headers (see multipart.headers). The grant is valid for 2 hours.
Connect an AI assistant (MCP)
The MCP server lives at https://studio.bobwork.ai/api/mcp (Streamable HTTP, stateless) and takes the same bearer key. Tools: get_workspace, list_brands, get_brand, list_content, get_content, generate_content, create_upload, create_content, approve_content, reject_content, schedule_content, list_channels, list_schedule, make_template_reels, list_comments, act_on_comment.
# Claude Code
claude mcp add --transport http studio https://studio.bobwork.ai/api/mcp --header "Authorization: Bearer stu_YOUR_KEY"// Cursor: .cursor/mcp.json
{
"mcpServers": {
"studio": {
"url": "https://studio.bobwork.ai/api/mcp",
"headers": { "Authorization": "Bearer stu_YOUR_KEY" }
}
}
}// Claude Desktop: claude_desktop_config.json
{
"mcpServers": {
"studio": {
"command": "npx",
"args": ["mcp-remote", "https://studio.bobwork.ai/api/mcp", "--header", "Authorization: Bearer stu_YOUR_KEY"]
}
}
}Limits and credits
120 requests a minute per key. Over the limit you get HTTP 429 with a Retry-After header. Listing, approving, rejecting and scheduling are free. Generating an image card costs 10 credits, a UGC photo 4 and a carousel 21, charged only when the render succeeds; template reels are free. Check GET /me for your balance first. See pricing for plans.