Bizinga API and MCP
Post to every platform you have connected in Bizinga using your own software or AI assistant (Claude, ChatGPT and others), and read your results. Every Bizinga plan includes the API and MCP.
What can my AI agent do with Bizinga?
If you already use an AI assistant, you can connect it to Bizinga and talk to it in plain English. For example:
- “Write a post about our Friday brunch special for Facebook, Instagram and Google, and schedule it for Thursday at 9am.”
- “What sizes and lengths does TikTok want for a video?”
- “Which posts are waiting for my approval?”
- “Cancel the post about the closed parking lot.”
- “How did our posts do this month compared with last month, by platform and by location?”
- “Give me the share link for yesterday's video so I can text it to a customer.”
- “What's our Google rating, and which new reviews haven't been answered?”
- “Have Mercedes answer only our 4 and 5 star Google reviews, and keep answering comments.”
- “What did Mercedes reply to or remove in our comments this week?”
Your assistant can only reach the businesses and locations its key covers. It cannot publish on its own: posts it creates wait for a person to approve them in Bizinga Studio, unless you choose to let that key publish directly. Posts that would break a platform rule (for example a caption that is too long) are stopped with a clear explanation of what to fix.
To set it up, create a key in Settings → API, then follow Connect an AI assistant. It takes about two minutes.
Quick start
- In Bizinga Studio open Settings → API and click Create API key. Copy it now: it is shown once. Bizinga keeps only a fingerprint and the last four characters.
- Keep the key in an environment variable or secret store, never in source code or URLs:
export BIZINGA_API_KEY="svc_…"
- Make your first request. It shows what the key can do and which locations it covers:
curl https://app.bizinga.studio/api/v1/me \ -H "x-api-key: $BIZINGA_API_KEY"
- List your locations and their connected platforms:
curl https://app.bizinga.studio/api/v1/locations \ -H "x-api-key: $BIZINGA_API_KEY"
- Create your first post (it waits for approval in Studio):
curl -X POST https://app.bizinga.studio/api/v1/locations/LOCATION_ID/posts \ -H "x-api-key: $BIZINGA_API_KEY" -H "Content-Type: application/json" \ -H "Idempotency-Key: first-post-0001" \ -d '{"caption":"Fresh seasonal menu starts Friday.","networks":["facebook"]}'
Keys and authentication
Send the key on every request in the x-api-key header, or as Authorization: Bearer svc_…. Base URL: https://app.bizinga.studio/api/v1. Send Content-Type: application/json on POST.
| Key level | Works on |
|---|---|
| Business | Every location of one business, including locations added later. This is the key Settings → API creates. |
| Selected locations | Only the locations chosen when the key was made (Settings → API → Advanced). |
| Partner | Every business and location under an agency partner. |
| Admin | Every partner, business and location (Bizinga staff only). |
Each key also has permissions: read (lists, reports), media.write (upload media), draft.write (create, cancel, share), publish.execute (approve, only where the business delegated approval). Keys expire within a year. Rotate a key in Settings → API if it may have been exposed: the old key stops working immediately. A location or business outside the key's scope returns 403 with code location_out_of_scope or business_out_of_scope; one business's key can never see or change another business.
Coming later: “Sign in with Bizinga.” We plan to add OAuth so apps such as ChatGPT and claude.ai custom connectors can connect with a sign-in screen instead of a pasted key. Until then, use a key header as shown below.
Connect an AI assistant (MCP)
MCP server URL: https://app.bizinga.studio/mcp (Streamable HTTP, JSON responses). Authenticate with x-api-key: YOUR_KEY or Authorization: Bearer YOUR_KEY.
Claude Code
claude mcp add --transport http bizinga https://app.bizinga.studio/mcp \ --header "x-api-key: $BIZINGA_API_KEY"
Claude Desktop
Settings → Developer → Edit Config, add this, then restart Claude (needs Node.js for npx):
{
"mcpServers": {
"bizinga": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://app.bizinga.studio/mcp",
"--header", "x-api-key:${BIZINGA_API_KEY}"],
"env": { "BIZINGA_API_KEY": "YOUR_KEY" }
}
}
}
Cursor, VS Code, Windsurf and other MCP clients
Any client that supports remote (HTTP) MCP servers with custom headers works. Cursor (~/.cursor/mcp.json):
{
"mcpServers": {
"bizinga": {
"url": "https://app.bizinga.studio/mcp",
"headers": { "x-api-key": "YOUR_KEY" }
}
}
}
VS Code (.vscode/mcp.json):
{
"servers": {
"bizinga": {
"type": "http",
"url": "https://app.bizinga.studio/mcp",
"headers": { "x-api-key": "${input:bizinga-key}" }
}
},
"inputs": [{ "id": "bizinga-key", "type": "promptString", "description": "Bizinga API key", "password": true }]
}
Agents you build (Claude API, OpenAI Responses API, Agents SDKs)
Point the SDK's remote MCP tool at https://app.bizinga.studio/mcp and pass the key as the authorization token (sent as Authorization: Bearer) or as an x-api-key header. For example, OpenAI's Responses API:
"tools": [{
"type": "mcp",
"server_label": "bizinga",
"server_url": "https://app.bizinga.studio/mcp",
"headers": { "x-api-key": "YOUR_KEY" }
}]
ChatGPT and claude.ai custom connectors
Their connector screens sign in with OAuth and cannot send a key header yet. Use one of the options above until “Sign in with Bizinga” is available.
Tools
| Tool | What it does |
|---|---|
| get_scope | What the key can do and which locations it covers. Call first. |
| list_locations | Locations with their connected platforms. |
| list_channels | Connected platforms for one location. |
| get_connect_links | No-login links the owner opens to connect or reconnect social accounts, one per network. |
| get_platform_requirements | Caption, hashtag, size, shape and length rules per platform. |
| validate_post | Dry-run check with a fix for each problem. Saves nothing. |
| upload_media | Add a photo or video from a public https URL. |
| create_post | Create a post as a draft for review, or for a time. |
| schedule_post | Create a post for a specific time. |
| list_posts | Posts and their status, paginated. |
| get_post | One post with any quality-check warnings. |
| get_owner_messages | What the owner left for your agent (typed in Studio or told to Mercedes). |
| get_approval_link | A no-login link for a person to approve one post; send it to whoever approves. |
| revise_post | Send a new version of a post after the owner asked for changes. |
| reschedule_post | Move a post not yet sent to a new time. |
| cancel_post | Cancel (pass on) a post not yet sent. |
| approve_post | Approve a post this key made (only with direct publishing on). |
| request_changes | Send a post back with a note. |
| delete_post | Delete a draft. |
| get_share_link | Public share page link for a finished post. |
| list_tasks | Open to-dos for a location. |
| get_report | One location's results vs the previous period. |
| get_content_guide | Everything to write for a location in one call: business facts, next keyword and town, sizes and limits, copy, link and industry rules, reply rules. |
| get_inbox | What is new since a time: reviews, comments, posts needing approval, tasks. Poll it. |
| reply_to_review | Answer a Google review (checked against Mercedes' bar; dryRun to check only). |
| create_review_post | Make a thank-you video post for chosen 4–5 star reviews (held for the owner's approval). |
| list_comments | Recent comments on your posts, answered or not and by whom. |
| reply_to_comment | Reply to a comment (checked; dryRun to check only). |
| hide_comment | Hide spam or abuse where the network allows. |
| delete_comment | Delete spam or abuse where the network allows. |
| get_reviews | Google rating, review count and recent reviews (read daily), with whether each was answered. |
| get_reply_settings | Whether Mercedes answers comments, and which Google reviews she answers. |
| set_reply_settings | Turn comment answers on or off; choose reviews off, all or only 4–5 star. |
| get_comment_activity | What Mercedes answered, removed or left for you in comments, last 7 days. |
| get_business_report | All locations of a business, per platform and per location. |
Try: “Using Bizinga, what can my key do?”
How a fresh agent should work
get_scope → list_locations → get_content_guide → write → validate_post with locationId (each issue has a fix) → create_post or schedule_post. For replies, poll get_inbox, then get_reviews / list_comments with unanswered=true, check with dryRun, then send.
Prompts
The MCP server also offers ready-made workflows (prompts/list): plan_week, answer_reviews, answer_comments and weekly_check. Each takes a locationId.
Approval and quality checks
- Held for approval by default. Posts created through the API or MCP wait for a person to approve them in Bizinga Studio. Without
scheduleAtthe person also picks the time. - Auto-approve. If the location has auto-approve turned on, Studio approves checked posts about 24 hours (or the location's setting) before their time when nobody has acted. A location's first post always waits for a person.
- Direct publishing. The business can let one key publish directly at chosen locations (Settings → API → Advanced → Customer approval delegation). Then posts with
scheduleAt(orpublishNow) go out without approval, unless the post sends"approval":"required". - Check with your location. Send
locationIdtoPOST /validate(key needed) to add the location's industry rules and keyword checks.GET /locations/{locationId}/poststakesfromandto(ISO dates) for a calendar view. - Links go in the first comment. Never put a link in the post body. Put it in the caption as usual and Studio moves it to the first comment on Facebook, Instagram, LinkedIn, Threads, Bluesky and TikTok (the text says “Link in the first comment.”), keeps it in the YouTube description, makes it the Pinterest Pin link, uses the button on Google (
googleCta), and drops it on X.GET /specsshows each network'slinksrule andPOST /validatereturnslinkssaying where each one will go. - Links go in the first comment. Send
firstComment(orfirstCommentsper network) and it is posted as the first comment under the post on Facebook, Instagram, LinkedIn, Threads, TikTok and Bluesky. Networks without a first comment: Google takes the link on its button (googleCta), Pinterest as the Pin link and YouTube in the description, and X takes no links; afirstCommentsentry for one of them returns422 post_rules_failedwith where its link goes. - One post, one approval, the right sizes. A post covers all the networks you list and is approved once. Its media must be a size every one of them takes, or it is refused with
422 media_size_not_allowed: photos — Instagram and Threads 4:5 (1080×1350) or 1:1; Facebook 4:5, 1:1 or 1.91:1; LinkedIn 1:1, 4:5 or 1.91:1; X 16:9, 1:1 or 4:5; Pinterest 2:3 (1000×1500); Google 4:3 (1200×900); TikTok 9:16. Videos — Instagram, TikTok and Threads 9:16 (1080×1920); YouTube 9:16 or 16:9; Facebook 9:16, 16:9, 4:5 or 1:1; LinkedIn 16:9, 1:1 or 9:16; X 16:9, 9:16 or 1:1; Google 16:9 (1920×1080). Send networks that need another size (always Google) as their own post. Google text never has a phone number, email or @handle; add the Google button withgoogleCta({"type":"CALL"}uses the saved phone; BOOK, ORDER, SHOP, LEARN_MORE or SIGN_UP with a url) — otherwise422 post_rules_failed. - Quality checks. Every new post runs the same pre-publish checks Studio shows in review. A red check (a hard platform limit, such as a caption over the platform's length or too many Instagram hashtags, or Google Business video limits) returns
422 quality_check_failed, lists each failing check with a fix indetails.checks, and saves nothing. Yellow checks are returned asqualityChecks.warningsand do not block.
Endpoints
All paths are relative to https://app.bizinga.studio/api/v1. Each response is JSON. IDs are UUIDs.
Scope and locations
GET /me
What this key can do: level, permissions, covered locations, where direct publishing is on, and the rate limit.
curl https://app.bizinga.studio/api/v1/me -H "x-api-key: $BIZINGA_API_KEY"
{"keyId":"…","name":"API key","scope":{"type":"business","partnerId":"…","businessId":"BUSINESS_ID"},
"permissions":["read","media.write","draft.write","publish.execute"],"expiresAt":"2027-11-14T00:00:00.000Z",
"directPublishing":[],"locationCount":2,"locations":[{"id":"LOCATION_ID","name":"Main Street","businessId":"BUSINESS_ID","businessName":"Maple Cafe"}],
"rateLimit":{"requestsPerMinute":120}}
GET /locations
Locations with their connected platforms. Query: businessId, include=channels|none, limit (max 100), cursor.
{"locations":[{"id":"LOCATION_ID","name":"Main Street","businessId":"BUSINESS_ID","businessName":"Maple Cafe",
"channels":[{"id":"facebook:page","network":"facebook","name":"Maple Cafe","accountType":"page","formats":["text","photo","video"],"status":"connected"}]}],
"total":1,"nextCursor":null}
GET /locations/{locationId}
Name, business, time zone and whether direct publishing is on for this key.
{"id":"LOCATION_ID","name":"Main Street","businessId":"BUSINESS_ID","businessName":"Maple Cafe","timeZone":"America/Indiana/Indianapolis","directPublishing":false}
GET /locations/{locationId}/channels
Accounts that need the owner: needsAttention lists any platform whose sign-in expired or was revoked, or whose connection was never finished ({"network":"instagram","problem":"reconnect","fix":"…"}). Posts to it wait; the others still go. Call POST /connect-links for it and send the owner the no-login link. get_inbox shows the same in accounts.needReconnect, and the account.needs_reconnect callback fires once each time it happens. Bizinga does not text or email Connect (API + MCP) owners about it; your agent does.
Connected platforms for one location. Only these networks can be posted to.
{"locationId":"LOCATION_ID","channels":[{"id":"instagram","network":"instagram","name":"@maplecafe","accountType":"business","formats":["photo","video"],"status":"connected"}]}
GET /partners
Partners visible to partner and admin keys.
{"partners":[{"id":"PARTNER_ID","name":"Agency"}]}
GET /partners/{partnerId}/businesses
{"partnerId":"PARTNER_ID","businesses":[{"id":"BUSINESS_ID","name":"Maple Cafe","partnerId":"PARTNER_ID"}]}
GET /businesses/{businessId}/locations
{"businessId":"BUSINESS_ID","locations":[{"id":"LOCATION_ID","name":"Main Street","businessId":"BUSINESS_ID"}]}
GET /locations/{locationId}/tasks
Open to-dos for the location: posts to review, reconnects and similar.
{"locationId":"LOCATION_ID","tasks":[]}
Platform requirements
GET /specs
No key needed. Query: network (for example instagram), format (text, photo, video, document).
curl "https://app.bizinga.studio/api/v1/specs?network=instagram&format=photo"
{"version":"…","networks":[{"network":"instagram","name":"Instagram","formats":["video","photo"],
"caption":{"photo":{"maxBodyCodeUnits":2200,"clickableLinksAllowed":true}},"hashtags":{"max":5},
"media":{"photo":{"supported":true,"recommended":{"aspect":"4:5","width":1080,"height":1350},"limits":{…}}},
"rules":["Use 5 hashtags or fewer.","Photos: 320–1440 px wide, shape between 2:3 and 1.91:1.","Videos: at least 3 seconds."]}],
"notice":"These are the rules Studio checks before scheduling. …"}
POST /validate
No key needed. Dry run: returns each problem with a fix. Describe media by its measurements. Optional recipe adds industry rules (for example "real_estate_agent" for Fair Housing).
curl -X POST https://app.bizinga.studio/api/v1/validate -H "Content-Type: application/json" \
-d '{"networks":["google_business","instagram"],"caption":"Call 317-555-0100!",
"media":{"width":1080,"height":1920,"durationSeconds":20}}'
{"valid":false,"issues":[{"network":"google_business","code":"google_contact_info","field":"caption",
"message":"…","fix":"Remove the phone number … set googleCta to {\"type\":\"CALL\"}."}, …]}
Media
POST /locations/{locationId}/connect-links
Links the business owner opens to connect (or reconnect) social accounts: one per network, no Bizinga login needed, each works once and expires. Send them by text or email, then check GET /locations/{locationId}/channels. Needs draft.write.
{"networks":["instagram","google_business"]}
→ 201 {"locationId":"…","links":[{"network":"instagram","url":"https://app.bizinga.studio/connect#…","expiresAt":"…"}]}
POST /locations/{locationId}/media
Permission media.write. Send {"url":"https://…","rightsConfirmed":true} (public https link) or {"base64":"…","rightsConfirmed":true}. JPEG, PNG or MP4. rightsConfirmed means the business owns or may publish it.
{"assetId":"ASSET_ID","sha256":"…","kind":"photo","mime":"image/jpeg","bytes":183220,"width":1080,"height":1350,"durationSeconds":null}
Posts
POST /locations/{locationId}/posts
Permission draft.write. Creates one post, approved once, across the networks you list. Fields:
| Field | Meaning |
|---|---|
| caption | Required. Text used on every network unless captions overrides it. |
| captions | Per-network text, for example {"instagram":"…","x":"…"}. |
| networks | Networks to post to; must be connected (see GET /locations). Or channelIds for exact accounts. |
| media | {"url":"https://…","rightsConfirmed":true}, or {"assetId":"…","sha256":"…","rightsConfirmed":true} from POST /media. Omit for a text post. |
| scheduleAt | ISO 8601 time. Omit to leave the time to the reviewer (a draft for review). |
| sizes | Optional. Several sizes in one post with one approval: media goes to most networks and each entry {"networks":["google_business"],"media":{…}} gives other networks their own picture or video (Google 4:3, Pinterest 2:3, TikTok 9:16). The owner sees every size and approves once. Each size must fit its networks. |
| publishNow | true publishes within a few minutes, without approval. Needs direct publishing for this key. Do not send scheduleAt with it. |
| approval | "required": a person approves it in Bizinga Studio first (also when direct publishing is on). "skip": publish without approval at scheduleAt (needs direct publishing; otherwise 403 approval_not_delegated). Default: skip when direct publishing is on and a time is given, otherwise required. |
| googleCta | Google button: {"type":"BOOK|ORDER|SHOP|LEARN_MORE|SIGN_UP","url":"https://…"}, {"type":"CALL"}, or null. |
| youtubeAudience | general or children; required for YouTube. |
| title | Optional title (YouTube, Pinterest, LinkedIn articles). |
curl -X POST https://app.bizinga.studio/api/v1/locations/LOCATION_ID/posts \
-H "x-api-key: $BIZINGA_API_KEY" -H "Content-Type: application/json" \
-H "Idempotency-Key: menu-2026-12-01" \
-d '{
"caption": "Fresh seasonal menu starts Friday.",
"captions": {"instagram": "Fresh seasonal menu starts Friday. #brunch #local"},
"networks": ["facebook", "instagram", "google_business"],
"media": {"url": "https://example.com/menu.jpg", "rightsConfirmed": true},
"scheduleAt": "2026-12-01T15:00:00Z",
"googleCta": {"type": "LEARN_MORE", "url": "https://example.com/menu"}
}'
Response 201:
{"requestId":"…","held":true,"status":"pending_approval",
"message":"Saved and held for approval. A person approves it in Bizinga Studio, or the business can turn on direct publishing for this key.",
"autoApprove":{"enabled":false,"leadHours":null},
"qualityChecks":{"status":"warn","warnings":[{"id":"cta","label":"Call to action","status":"warn","detail":"…","fix":"…"}]},
"posts":[{"id":"POST_ID","status":"pending_approval","kind":"photo","caption":"Fresh seasonal menu starts Friday.",
"captions":{"instagram":"Fresh seasonal menu starts Friday. #brunch #local"},"networks":["instagram"],
"scheduledAt":"2026-12-01T15:00:00.000Z","createdVia":"api", …}, …]}
A red quality check returns 422:
{"code":"quality_check_failed","message":"Quality checks failed: Caption length — Too long for the platform: X 412/280 characters. Fix: Shorten the caption below the platform limit.",
"details":{"checks":[{"id":"caption_length","label":"Caption length","status":"fail","detail":"Too long for the platform: X 412/280 characters.","fix":"Shorten the caption below the platform limit."}]}}
GET /locations/{locationId}/posts
Newest first. Query: status (pending_approval, changes_requested, approved, scheduled, publishing, published, failed, cancelled, needs_attention), limit (max 200), cursor.
{"locationId":"LOCATION_ID","posts":[{"id":"POST_ID","status":"scheduled", …}],"total":31,"nextCursor":"eyJvIjo1MH0"}
GET /locations/{locationId}/posts/{postId}
One post, with any warning or failing quality checks.
{"id":"POST_ID","status":"pending_approval", …,"qualityChecks":{"status":"warn","checks":[…]}}
GET /locations/{locationId}/owner-messages
Permission read. What the owner left for your agent: changes, offers, hours, anything typed in Bizinga Studio or told to Mercedes. Optional since (ISO time) returns only newer ones. A message with postId is about that post, which is back with you as changes_requested. Callback event: owner.message. get_inbox shows the count.
POST /locations/{locationId}/posts/{postId}/approval-link
Permission draft.write. A no-login link for a person to approve one post this key created; send it by text or email to whoever approves. They see the post with every size and tap Approve, Pass or ask for changes (changes come back to you as changes_requested). Optional recipient (a name or email, shown as who approved) and expiresInDays (1–30, default 7). The link stops working once anyone acts or the post changes; ask for a new one any time. Errors: 409 approval_links_off (the business turns on Approve by email once), 409 post_not_awaiting_approval.
{"postId":"POST_ID","url":"https://…/review/…","expiresAt":"2026-12-12T15:00:00.000Z"}
POST /locations/{locationId}/posts/{postId}/revise
Permission draft.write. Sends a new version of a post this key created; takes the same fields as creating a post (networks and time default to the old post's). The new version is checked and approved like a new post, and the old one is retired (cancelled). Bizinga never remakes a post your agent sent: when the owner asks for changes the post shows changes_requested with their words in changeRequest, and a post.changes_requested callback is sent if one is set up. Errors: 403 revise_not_allowed (another key's post), 409 post_not_revisable (already sent).
POST /locations/{locationId}/posts/{postId}/reschedule
Send {"scheduleAt":"2026-12-09T15:00:00Z"}. Only posts this key created. A post waiting for approval keeps waiting at the new time. An approved post not yet sent goes back for approval at the new time. A post already handed to the network returns 409 post_not_reschedulable: move it in Bizinga Studio, which checks the delivery first.
POST /locations/{locationId}/posts/{postId}/cancel
Permission draft.write. Cancels (passes on) a post that is waiting for approval or scheduled in Studio and not yet handed to a network. Optional body {"reason":"…"}. Calling it again on a cancelled post returns the post. A post already sent to the network returns 409 post_not_cancellable; handle it in Studio.
{"id":"POST_ID","status":"cancelled", …}
POST /locations/{locationId}/posts/{postId}/pass
The same as /cancel, for review tools that say “pass”.
POST /locations/{locationId}/posts/{postId}/feedback
Permission draft.write. Sends the post back to draft with your note: {"message":"Please mention the Friday hours."}.
{"id":"POST_ID","status":"changes_requested","changeRequest":{"message":"Please mention the Friday hours.","at":"…"}, …}
POST /locations/{locationId}/posts/{postId}/approve
Permission publish.execute. Works only when the business turned on direct publishing for this key and location, and only for posts this key created with a future scheduleAt. Otherwise 403 approval_not_delegated.
{"id":"POST_ID","status":"scheduled", …}
DELETE /locations/{locationId}/posts/{postId}
Permission draft.write. Deletes a draft that has not been scheduled or sent.
{"id":"POST_ID","deleted":true}
Share links
GET /locations/{locationId}/posts/{postId}/share-link
The public share page for a post, if one exists. Owners text or email it to customers; the page shows only that post, its caption and the location's call, text and website buttons.
{"postId":"POST_ID","shareable":true,"url":"https://app.bizinga.studio/s/AbCdEfGhIjKlMnOpQrStUvWx","link":{"id":"…","views":12,"clicks":{"call":1,"text":0,"website":3}, …}}
POST /locations/{locationId}/posts/{postId}/share-link
Permission draft.write. Creates the link (or returns the existing one). Only approved, scheduled or published photo, video and text posts; otherwise 409 post_not_shareable.
{"postId":"POST_ID","shareable":true,"url":"https://app.bizinga.studio/s/AbCdEfGhIjKlMnOpQrStUvWx","link":{…}}
Reports
GET /locations/{locationId}/reports
One location. Query: period (7d, 30d, 90d, custom with start and end as YYYY-MM-DD), compare (previous or none). For 7d/30d/90d numbers are live: each metric (followers, views, reach, engagement, clicks) has a status (ok, partial, no_history, not_provided, failed), current, previous, change and percent.
curl "https://app.bizinga.studio/api/v1/locations/LOCATION_ID/reports?period=30d" -H "x-api-key: $BIZINGA_API_KEY"
{"locationId":"LOCATION_ID","source":"live","period":{…},
"totals":{"views":{"status":"ok","current":5400,"previous":4100, …}, …},
"networks":[{"locationId":"LOCATION_ID","network":"facebook","views":{"status":"ok","current":3000,"previous":2500, …}, …}],
"posts":[…],"summary":"…"}
A real 0 is 0. Missing numbers are unknown, not zero, and come with a reason.
GET /reports
Every location of one business, per platform and per location. Query: businessId (optional for business and location keys), plus the same period, start, end, compare.
{"businessId":"BUSINESS_ID","source":"live","period":{…},"totals":{…},
"networks":[{"locationId":"LOCATION_ID","locationName":"Main Street","network":"instagram","views":{…},"engagement":{…}}, …],
"posts":[…]}
Replies and reviews
Mercedes, the Bizinga assistant, answers comments on the business's posts and new Google reviews. These endpoints read and change that for one location.
GET /locations/{locationId}/reviews
Google reviews, read once a day. Current Google rating and count, dailyRead (lastReadAt, nextReadAt), and recent reviews newest first: reviewer first name only, stars, text, date, answered, the reply (by owner or mercedes) and Mercedes' status (waiting, sent, failed, unknown, gave_up, answered_elsewhere). Query: rating (1–5), answered (true/false), limit, cursor.
curl "https://app.bizinga.studio/api/v1/locations/LOCATION_ID/reviews?answered=false" -H "x-api-key: $BIZINGA_API_KEY"
{"locationId":"LOCATION_ID","google":{"connected":true,"rating":4.8,"count":132,"dailyRead":{"everyHours":24,"lastReadAt":"…","ok":true,"nextReadAt":"…"}},"replyMode":"all",
"reviews":[{"id":"upload_post:AbC123","author":"Dana","rating":5,"text":"Quick, friendly and the patio looks great.","createdAt":"…","answered":false,"reply":null,"mercedes":{"status":"waiting","meaning":"…"}}],"total":1,"nextCursor":null}
GET /locations/{locationId}/reply-settings
Whether Mercedes answers comments (comments.enabled, and the networks that covers) and which new Google reviews she answers (reviews.mode: off, all or high = only 4–5 star), how each is handled (how: auto posts automatically, ask = Ask me first, the owner approves each answer in Tasks) and waitingForYou (answers waiting for approval), each with a plain explanation.
{"locationId":"LOCATION_ID","canEdit":true,"comments":{"enabled":true,"networks":["facebook","instagram","youtube","linkedin","tiktok","threads","bluesky","x"],"explainer":"…"},
"reviews":{"mode":"all","label":"All reviews","networks":["google_business"],"googleConnected":true,"explainer":"…"},"summary":"I answer your comments, and I answer all your new Google reviews."}
POST /locations/{locationId}/reply-settings
Permission draft.write. Send any of comments (true/false), reviews (off, all, high), commentsHow and reviewsHow (auto or ask). Every change is audited. Unhappy (1–3 star) reviews always make a Task for the owner, whatever the setting.
curl -X POST https://app.bizinga.studio/api/v1/locations/LOCATION_ID/reply-settings -H "x-api-key: $BIZINGA_API_KEY" -H "Content-Type: application/json" -d '{"reviews":"high"}'
GET /locations/{locationId}/comment-activity
What Mercedes did with comments: counts for the last days (default 7, max 30) of replied, removed, hidden, left (for the owner), failed, and the recent actions with network, commenter first name, comment, and her reply or the reason.
{"locationId":"LOCATION_ID","enabled":true,"period":{"days":7,"since":"…"},"counts":{"replied":6,"removed":1,"hidden":0,"left":0,"failed":0,"unconfirmed":0},
"activity":[{"at":"…","action":"replied","network":"facebook","author":"Sam","comment":"Do you do gutter cleaning too?","category":"question","reply":"We do, Sam! …"}],"total":7,"nextCursor":null}
Two-way replies
Your agent can answer reviews and comments itself. Replies are checked against the same bar as Mercedes' answers and refused with the reason when they fall short. With publish.execute and direct publishing on for the key at that location (Settings → API → Customer approval delegation) a reply posts right away (201). Otherwise (draft.write is enough) it waits in the owner's Tasks exactly like Mercedes' “Ask me first” answers, marked as written by your agent: 202 {"status":"held_for_approval","taskId":"…","replaced":false}. Approving posts it once; Skip drops it. If Mercedes had a draft waiting for that review or comment, yours replaces it (replaced: true). Hiding and deleting are never held: they need direct publishing (403 reply_needs_approval otherwise). Whoever answers first wins: Mercedes never answers a review or comment your agent answered, and the other way round. There are no webhooks yet: poll GET /inbox.
GET /locations/{locationId}/content-guide
Everything needed to write for this location in one call: business facts (services, towns served, phone, website, main call to action, tone, brand rules, offers, words to avoid), keywords.next (the next keyword and town in the rotation) and the keyword rule, recentPosts to avoid repeating, each connected network's sizes, ratios, lengths, caption and hashtag limits and link rule, the copy rules Studio enforces (Google: no phone or email in the text, its own 1200×900 image, always a button; Instagram 5 hashtags; X no links), the industry rules (Fair Housing and others), and the review and comment reply rules. Query: network, format.
GET /locations/{locationId}/inbox
What is new since since (default 24 hours ago): new and unanswered reviews and comments, answers waiting for the owner's approval (waitingForApproval), posts waiting for approval or with change requests, failed posts, posts in the next 7 days and open tasks. Poll every 15 minutes or more.
{"reviews":{"new":1,"unanswered":1,"newUnanswered":[…]},"comments":{"new":2,"unanswered":1,"newUnanswered":[…]},"posts":{"pendingApproval":2,"changesRequested":0,"failed":0,"scheduledNext7Days":5},"tasks":{"open":3}}
POST /locations/{locationId}/reviews/{reviewId}/reply
Permission draft.write (held for approval) or publish.execute plus direct publishing (posts now); dryRun: true only needs read and says willBe sent or held_for_approval. Body: text, optional dryRun. Use the reviewer's first name and something specific they said; on 1–3 stars invite them to call or email (written out). Google is checked again right before sending.
{"reviewId":"upload_post:AbC123","status":"sent","by":"agent","text":"Thank you, Dana! …","state":"APPROVED"}
POST /locations/{locationId}/review-posts
Permission draft.write. A thank-you post for chosen 4–5 star reviews on file (any review, not only new ones): the same video Mercedes makes for a new review, a 9:16 Short for the feeds and X plus a 16:9 copy for Google when Google is connected (with nothing connected the Short waits in the Media Center). Body: one of reviewId (from GET /reviews), reviewIds (up to 5) or latest (the newest 1–5, optionally with source, for example google). Always 202 held_for_approval: each post comes to the owner's Tasks and approving schedules it. Once per review: a review that already has one comes back as exists. 1–3 star reviews are refused with the reason (422 review_not_eligible when none can be made).
{"status":"held_for_approval","posts":[{"reviewId":"upload_post:AbC123","by":"Dana","rating":5,"status":"queued","jobIds":["…","…"]}],"say":"I’m making a thank-you post for Dana’s review. It’ll be in your Tasks for approval."}
GET /locations/{locationId}/comments
Comments on posts from the last 14 days, newest first, first names only, with answered and by (mercedes or agent). Query: unanswered, since, network, limit, cursor. actions lists what each network allows.
POST /locations/{locationId}/comments/{commentId}/reply
Permission draft.write (held for approval) or publish.execute plus direct publishing (posts now); dryRun needs only read. Body: text, optional dryRun. No made-up prices, no links on X; X replies are capped per day.
POST /locations/{locationId}/comments/{commentId}/hide
Spam or abuse only, never a real complaint. Facebook, Instagram, YouTube, TikTok, Threads, Bluesky.
POST /locations/{locationId}/comments/{commentId}/delete
Spam or abuse only, never a real complaint. Facebook, Instagram, YouTube, LinkedIn.
Platform requirements at a glance
Always check GET /specs (or the MCP tool get_platform_requirements) for the current rules. Summary of what Studio recommends today:
| Network | Caption limit | Photo | Video | Notes |
|---|---|---|---|---|
| 63,206 | 4:5, 1080×1350 | 9:16, about 20–30 s | Text, photo, video. | |
| 2,200 | 4:5, 1080×1350 | 9:16, 3 s minimum | 5 hashtags or fewer. No text-only posts. | |
| tiktok | 2,200 (photo 4,000) | 9:16 JPEG, 1080×1920 | 9:16, 3 s minimum | Creator account may limit length further. |
| youtube | 5,000 | — | 9:16 Short | Video only. youtubeAudience required. |
| google_business | 1,500 | 4:3, 1200×900 | 16:9, 30 s or less, 720p+ | No phone numbers, emails or @handles in text; use googleCta. Never vertical video. |
| 3,000 | 1:1, 1200×1200 | 16:9, 3 s–30 min | Company pages report results. | |
| x | 280 | 16:9, 1600×900 | 16:9, 30 s or less | No links in the text. |
| threads | 500 bytes | 4:5, 1080×1350 | 9:16 | |
| 800 | 2:3, 1000×1500 | 9:16, 4 s minimum | Needs a saved board on the location. | |
| bluesky | 300 | 1:1, 1200×1200 | 9:16 |
Pagination and idempotency
Pagination. List endpoints return total and nextCursor. Pass nextCursor back as cursor to get the next page; null means you have everything. Set limit to change the page size.
Idempotency. Send an Idempotency-Key header (8–128 characters: letters, digits, . _ : -) on every POST and DELETE. Repeating a request with the same key and the same body returns the first result and never creates a duplicate. The same key with a different body returns 409. If a request fails partway, the key is marked for reconciliation: list the posts before trying again with a new key. MCP tools create_post and schedule_post accept an idempotencyKey argument.
Errors
Errors use normal HTTP status codes and the body {"code":"…","message":"…"}, plus details when there is more to say. Messages are written to be shown to a person.
| Status and code | Meaning |
|---|---|
| 400 invalid_request | A field is missing or malformed; the message names it. |
| 400 invalid_cursor | The cursor is not one we issued. Start again without it. |
| 401 unauthorized | Missing, invalid, expired or revoked key. |
| 403 forbidden | The key lacks the permission for this action. |
| 403 location_out_of_scope | The location is outside the key's businesses or locations. |
| 403 business_out_of_scope | The business is outside the key's scope. |
| 403 approval_not_delegated | Only a person in Studio can approve this post. |
| 404 not_found | The post or record does not exist in this location. |
| 404 route_not_found | No such endpoint. Check the method and path. |
| 409 conflict | The record changed, or the Idempotency-Key was reused with a different body. |
| 409 network_not_connected | A requested network is not connected on the location. |
| 409 post_not_cancellable | The post was already sent or handed to the network. |
| 409 post_not_shareable | Only approved, scheduled or published posts have share links. |
| 415 unsupported_media_type | Media must be JPEG, PNG or MP4. |
| 422 quality_check_failed | A red quality check failed; details.checks lists each with a fix. Nothing was saved. |
| 422 media_size_not_allowed | The photo or video is not a size every listed network takes. details.issues names each network, the sizes it takes and the fix (often: send that network, always Google, as its own post). Nothing was saved. |
| 422 post_rules_failed | The post breaks a platform rule: Google text with a phone number, email or @handle (use googleCta instead), more than 5 Instagram hashtags, YouTube without youtubeAudience, or a Google button without a valid url. details.issues lists each with a fix. Nothing was saved. |
| 403 reply_needs_approval | Hiding or deleting a comment needs direct publishing on for the key at the location. Nothing was removed. (Replies are held for approval instead.) |
| 409 already_answered | The review already has an answer. |
| 409 already_handled | The comment was already answered or removed. |
| 409 not_supported_on_network | The network does not allow that action (for example removing a comment on X). |
| 422 reply_quality | The reply failed a quality check; details.reason and details.fix say what to change. |
| 422 review_not_eligible | None of the chosen reviews can get a review post (1–3 stars, or no reviewer name); details.posts says why. |
| 409 review_post_held | The review post could not be started right now; details.posts says why. |
| 429 x_daily_cap | X replies are capped per day for each location. |
| 429 rate_limited | Too many requests. Wait Retry-After seconds. |
| 503 unavailable | Temporarily unavailable. Retry later. |
In MCP, a tool error comes back as a normal tool result with isError: true and the same {code, message} in structuredContent, so your assistant can read the fix and try again.
Rate limits
120 requests per minute per key, shared by REST and MCP. Every response carries X-RateLimit-Limit and X-RateLimit-Remaining. Over the limit you get 429 rate_limited with a Retry-After header in seconds. Media uploads are limited to 32 MB by URL; key use is logged for the business.
OpenAPI
The machine-readable contract (OpenAPI 3.1) is at /docs/openapi.json. Import it into Postman, Insomnia, or an agent framework that builds tools from OpenAPI.
Questions? Ask in Bizinga Studio, or reply to any Bizinga email.