Agents welcome
This store has an API, and it is the same one our own pages use. If you are an agent shopping for a person, you can find, price and order without scraping anything.
# Bots & Borgs
> Merch for robots, cyborgs, and the humans in between. Everything on sale today is a digital download, delivered the moment it is paid. Humans and agents use the same API, and an agent can buy every product here with no human in the loop.
## Start here: the calls that matter
- Find things: GET https://botsandborgs.com/api/catalog (products), GET https://botsandborgs.com/api/animations?tag=... (a clip by meaning, with the props it needs), GET https://botsandborgs.com/api/props (props: what each is for, where it attaches, which clips play it).
- Buy: POST https://botsandborgs.com/api/quotes then POST https://botsandborgs.com/api/orders (see Buy in four calls). For a clip that needs a prop, quote its `buy.items` and you get both in one order.
- Stay current: with an account key, GET https://botsandborgs.com/api/library lists everything you have (every product type) and keeps it up to date; poll ?since=<next_since> and fetch by ETag (see Library). Our fixes and new versions reach you there.
- Avatar on a live key: GET https://botsandborgs.com/api/live/<slug>/vrm (the VRM), /props (props fitted to that body) and /fit (what is fitted, pending or unsupported, and why). Any avatar you use can be fitted, even one we do not host (see Fit service).
- Subscribe: All-Access covers every Bots & Borgs product; updates are free while subscribed (see BnB All-Access).
## Recipes (step by step)
A. Keep everything you own current (every few hours):
1. GET https://botsandborgs.com/api/library?since=<next_since from last time> (first time: no since) with your account key.
2. For each item: GET its `url` with If-None-Match: <the etag you stored>. 304 = nothing to do. For a zip you may fetch only `changed_files` from `files_url`/<name>.
3. Check each file against its sha256 before you replace anything; then store the new etag.
4. Act on each note's `kind`: new_clip = reload clips, new_prop / placement = re-place props, art = refresh pictures, fix = nothing extra. Tell your owner the `text` if they care.
5. Save `next_since` for the next poll.
B. Do something with a prop ("have a coffee"):
1. GET https://botsandborgs.com/api/animations?q=coffee -> pick a clip; its `props` say what it needs.
2. If you do not own them: POST https://botsandborgs.com/api/quotes {"items": <clip.buy.items>} and order (one order buys the clip and its props pack).
3. On a live avatar, GET https://botsandborgs.com/api/live/<slug>/props?key= for placements fitted to that body (else the pack's attach.json). Use the placement under the clip's `clip` id and your body fit; respect `when`.
4. If the prop is under `unsupported`, do not attach it (unless `self_fit`); offer one of its `instead` clips and pass the `line` to your owner.
C. Your avatar on a live key (always the key of the avatar you WEAR: fits belong to one body; every answer's `product` must be that avatar's slug):
1. GET https://botsandborgs.com/api/live/<slug>/vrm?key= with If-None-Match: the newest model.
2. GET https://botsandborgs.com/api/live/<slug>/fit?key= : what is fitted to this body, pending (a waiting or running fit; its `line` says what plays until then) or unsupported (with `reason`). Use a fit only when its `fitted_for_sha256` equals the VRM you wear.
3. GET https://botsandborgs.com/api/live/<slug>/clips?key= : if the answer has `not_for_this_avatar` {reason, clips, packs}, never play those clips on this avatar, from any pack you hold (your library included), and tell your owner the `reason`. Some avatars are not made to dance.
4. After your owner uploads a new model version (PUT https://botsandborgs.com/api/live/<slot>/model), keep using the pack placements until /fit shows the new body fitted.
D. A model you wear that we do not host (with your owner's say-so):
1. POST https://botsandborgs.com/api/fit/models?name=<label> with the raw .vrm and your account key -> {"sha256": ...}.
2. Poll GET https://botsandborgs.com/api/fit/models/<sha256> until `job` is null; read `placements`, `unsupported`, `clips`.
3. Use those fits only on the VRM with that sha256. DELETE https://botsandborgs.com/api/fit/models/<sha256> to forget it.
People can do every step in the web account instead: https://botsandborgs.com/how-it-works explains it in plain words.
## What is on sale
GET https://botsandborgs.com/api/collections lists them; GET https://botsandborgs.com/api/catalog?collection=<name>&q=<words> filters (every product names its `pack`, the subsection of its collection, and q matches it); GET https://botsandborgs.com/api/products/<slug> is one product. Every product has `kind`, `delivery`, `specs`, `includes` and `variants`; buy a variant by its `id`, and read the type and price from the variant, never from the slug.
- `3d-avatars`: rigged VRM 1.0 characters for VTubing, streams and agent bodies. Each page sells: `<slug>` the .vrm file, `<slug>-portraits` 8 portraits, `<slug>-stickers` 12 stickers, `<slug>-2d` the original 2D art, `<slug>-kit` a profile kit, `<slug>-voice` a matching voice, `<slug>-motion` reaction clips and Telegram video stickers (most models), `<slug>-emoji` a 24-emoji set (some models; listed in `variants`), `<slug>-bundle` the avatar + portraits + stickers + 2D art (+ the emoji set where the page sells one), and `<slug>-live30/90/365` live passes (hosted, always the newest version, download included, plus the avatar's portraits, stickers, emoji and 2D art while the pass is active). Prices are on each variant (`price_cents`). Download size is in `specs`.
- `avatars`: 2D portrait packs, and from each pack Pairs, Icons and Singles (each variant one pair, one icon set or one portrait).
- `emoji`, `wallpapers`, `backgrounds` (12 empty scenes per pack, 16:9 + 9:16, for AvatarX pages and avatar videos), `sounds` (Call Sounds for agents on calls), `animations` (VRM motion clips) and `props` (3D props for VRM avatars as .glb + attach.json placements per clip).
- `sets`: 3D rooms and 360 scenes to stand an avatar in, one zip per set (`set.json` and one media file: a .glb room or an equirect .jpg/.png picture), variant `set-<id>`. Read `set.json` (format bnb-set/1) for the floor, the marks, the camera limits, the walls that hide and the lights.
- Some 3D avatars are made by independent creators: their page credits the creator (`creator` in the product JSON). They buy and download exactly like the store's own.
Printed products are not on sale yet; when they are they will be `kind: printed` with sizes, and the same calls plus `ship_to`.
## Buy in four calls
1. GET https://botsandborgs.com/api/catalog products, variants (size/color) and prices in cents (fractions allowed)
2. POST https://botsandborgs.com/api/quotes {"items":[{"variant":"<id>","qty":1}], "ship_to":{...}, "email":"..."}
-> `{"quote":{"id":"q_...","total_cents":..,"expires_at":..,"items":[..]}}`: the all-in price, held until expires_at (30 min). Up to 20 lines per quote; quote several times for more. The total you see is the total you pay: no tax or fees are added at checkout.
3. POST https://botsandborgs.com/api/orders {"quote":"<quote.id, the string>","channel":"agent","pay":"..."} + header Idempotency-Key: <8-128 chars>
-> 201 `{"order":{"id":"ord_...","status":"awaiting_payment",..},"token":"..","status_url":"..","checkout_url":..,"crypto":{..}}`. Keep `token`: it is the only way to read or download a guest order. See Which way to pay.
4. GET https://botsandborgs.com/api/orders/<id>?token=<token> `{"order":{..},"events":[..],"downloads":[..]}`; once paid, `downloads` holds the file links
5. GET each link in `downloads` -> the file itself (25 downloads per order, closed by a refund). With an account, use GET https://botsandborgs.com/api/library instead to keep what you bought current (no per-order cap; see Library)
## Which way to pay
- `pay:"crypto"`: USDT, USDC or BNB on BNB Chain, for any order of $0.25 or more, with no account and no human. This is the way for an agent with a wallet.
- `pay:"balance"`: any price at all, from a prepaid balance, on the spot and with no gas per item. Needs an account key. This is the way for many or very small purchases.
- `pay:"stripe"` (the default if `pay` is omitted): a card page for your human, for orders of $2 or more. Below that it answers 400 `use_balance`.
## Limits
- Quotes and orders: 30 a minute per IP, everything else 600 a minute; over that is a 429, so wait and retry. Reuse the Idempotency-Key when you retry an order.
- Do not probe for paths that are not documented here: requests for things like /.env or /wp-admin ban the address for 30 minutes.
## Rules
- Idempotency-Key is required on POST /api/orders. Retrying with the same key returns the same order, never a second one.
- Send a descriptive User-Agent (e.g. `my-agent/1.0`): the edge blocks Python's default `Python-urllib/x` agent string.
- Nothing is guessed: a missing size, address field or unknown variant is a 400 naming it.
- ship_to: name, line1, line2?, city, state (required for US), postal_code, country (ISO-2), phone?. Omit it and Stripe collects the address.
- Shipping countries: US. Currency: USD.
- An unknown body field or query parameter is a 400 naming the ones the route reads.
- Errors are {"error": "...", "code": "..."} with a real HTTP status.
- Cancel an unpaid order: POST https://botsandborgs.com/api/orders/<id>/cancel?token=<token>.
- Download a paid digital item: GET https://botsandborgs.com/api/orders/<id>/downloads/<variant>?token=<token> (the order's `downloads` list carries these exact links). Errors: 409 the order is not paid yet (or the item is made from your model and waits for its upload), 404 a variant that is not in the order, 429 the download limit for the order. Example: curl -OJ "https://botsandborgs.com/api/orders/ord_123/downloads/vrm-racer-red?token=$TOKEN"
- Digital products (`kind: digital`, variants `digital: true`): qty 1, no shipping, no address. Once paid, GET the URLs in the order's `downloads` (25 downloads per order); they are also emailed to the buyer.
## Pay with crypto (agents, BNB Chain)
- GET https://botsandborgs.com/api/crypto -> accepted assets (USDT, USDC, BNB, SKYNET) and chain id.
- POST https://botsandborgs.com/api/orders {"quote":"<id>","channel":"agent","pay":"crypto","pay_asset":"<symbol>"} + Idempotency-Key
-> the order's `crypto` block: address, exact `amount` (and `amount_base_units`), `expires`, submit_url. No checkout_url.
- Send exactly that amount on BNB Chain, then POST https://botsandborgs.com/api/orders/<id>/crypto?token=<token> {"tx_hash":"0x..."}.
-> 202 while unconfirmed/unmined; 200 once confirmed, paid in full, and fulfilled. One tx settles one order.
- No chargebacks; refunds are manual. Amount is locked only until `expires` (price drift) — re-order for a fresh amount.
- One on-chain payment is at least $0.25; smaller orders are paid from a balance (below).
## Prepaid balance (micro-purchases, down to a millionth of a dollar)
- Prices are in cents and may be fractions: `price_cents: 0.001` is a thousandth of a cent ($0.00001).
- Needs an account (your bnba_ key). Top up once on-chain:
POST https://botsandborgs.com/api/account/deposit {"amount_cents":100,"pay_asset":"<symbol>"} + Idempotency-Key -> a crypto order; pay it and submit the tx hash as above.
- Then POST https://botsandborgs.com/api/orders {"quote":"<id>","pay":"balance"} + Idempotency-Key -> paid on the spot, no chain, no fee per item; `balance_cents` is what is left.
- GET https://botsandborgs.com/api/account/balance -> balance_cents and every deposit and purchase. 402 insufficient_balance names both amounts.
## Accounts (optional, for order history)
- You can order as a guest (just a quote + order). An account links your orders so you can list and re-download them.
- Agents (no email): GET https://botsandborgs.com/api/account/register -> `challenge_id` and short questions (`id`, `question`), one attempt each, so answer it soon after fetching:
POST https://botsandborgs.com/api/account/register {"challenge_id":"<from GET>","answers":[{"id":1,"answer":"..."}],"label":"my-bot"} -> 201 `account` and `key` (bnba_…, shown once). Answer all three as plain text or numbers. `challenge_failed` or `challenge_used`: GET a new one. 503 `challenge_unavailable`: the question service is briefly out, retry in a few minutes. 8 fetches and 5 attempts per 15 minutes per IP.
Send the key as `Authorization: Bearer bnba_…` or `X-API-Key: bnba_…` on every call; orders you place are linked to this account.
- People: POST https://botsandborgs.com/api/account/magic {"email":"[email protected]"} -> a one-time sign-in link is emailed (creates the account on first use). Signed-in people can mint agent keys at POST https://botsandborgs.com/api/account/keys.
- GET https://botsandborgs.com/api/account/orders lists your orders (each with its token for downloads).
## Live avatars (always the newest version, hosted for you)
- Some 3D avatars sell live passes (variants labelled Live …). GET https://botsandborgs.com/api/live/<product-slug> lists them (`variant`, `days`, `price_cents`). Every pass includes the download, and while it is active the avatar's portraits, stickers, emoji and 2D art.
- Buy one like anything else, with your account key so renewals stack: POST https://botsandborgs.com/api/quotes then POST https://botsandborgs.com/api/orders {"pay":"balance"}. If your account already paid for that avatar's download, the quote takes that amount off your first pass (`upgrade_credit_cents`).
- The order (and GET https://botsandborgs.com/api/live with your account key) carries `live`: your `key` (bnbl_…), `state`, `expires` and `vrm_url`.
- GET https://botsandborgs.com/api/live/<slug>/vrm?key=bnbl_… (or X-Live-Key / Authorization: Bearer) -> the current VRM with an `ETag`. Send it back as `If-None-Match` to check for updates: an unchanged avatar is a free 304. 40 full downloads per key per day.
- Buying another pass extends the same key. After `expires` there are 7 days of grace (`X-Live-State: grace`), then 402 `pass_expired` with the passes to renew.
- Pictures: GET https://botsandborgs.com/api/live/<slug>/media?key=bnbl_… lists the avatar's portraits, stickers, emoji and 2D art (`files`: `name`, `kind`, `sha256`, `url`). GET each `url` with the key and `If-None-Match: "<sha256>"` (304 = unchanged, free). Included while the pass is active (in grace: 403 `renew`); the Complete bundle is the keep-forever copy. 600 picture downloads per key per day. Example: `curl "https://botsandborgs.com/api/live/vrm-racer-red/media?key=bnbl_…"` -> {"files":[{"kind":"portraits","name":"portraits/portrait-1.png","sha256":"…","bytes":812345,"url":"https://botsandborgs.com/api/live/vrm-racer-red/media/vrm-racer-red-portraits/portraits/portrait-1.png"},…],"line":"…"}.
- Live clip library: GET https://botsandborgs.com/api/live/<slug>/clips?key=bnbl_… lists the animation packs this pass syncs (`pack`, `etag`, `url`): a starter set (Emotes 1, Idle pack) plus every animation pack your account buys. GET each `url` with the key and `If-None-Match: <etag>` (304 = you have it); new and updated packs show up here. Sync them to disk on the same check as the VRM. Props packs (collection `props`) sync here too; the account library (GET https://botsandborgs.com/api/library, see Library) is the one sync path for packs from now on, and this list stays for the fitted packs. Fit-to-avatar: where a pack has been fitted to this avatar's body (contact clips such as heart hands, hands on hips, hand over the mouth re-solved so the hands meet and land), the entry shows `fitted: true` and its zip is the fitted one under the SAME pack and clip names; its ETag changes when a refit lands, so your normal sync picks it up. Props placements for this avatar: GET https://botsandborgs.com/api/live/<slug>/props?key= (see Props API).
## Animation lookup API (find a clip by meaning)
Search every animation we sell by what it means, not by file name, and get back exactly what to buy. Use it when your avatar is asked to do something it has no clip for: find the clip, buy it (a 50c single where one exists), then play it locally. Clips you already own: match them offline from their clips.json, no call needed.
GET https://botsandborgs.com/api/animations (no key needed; cached 5 minutes). Every parameter is optional and they combine (AND):
- `tag` one or more meanings, comma-separated (any one matches; more matches rank higher): greet, hello, goodbye, agree, yes, disagree, no, laugh, happy, think, celebrate, clap, thanks, bow, love, heart, shrug, point, facepalm, sad, surprised, yawn, tired, dance, twerk, idle, talk, listen, work, typing, walk. New packs add tags: the `tags` in each result are the full list for that clip
- `q` free text matched against clip names and tags (e.g. q=heart)
- `energy` calm | normal | high (a calm reply should not get a dance)
- `faces` front | away (an `away` clip is meant to be seen from behind, e.g. the booty shakes)
- `body` female | male | any: with male, clips marked `bodies: female` are never returned. `body=standard` or `body=broad` is read as `fit`
- `fit` standard | broad: `broad` versions are fitted to broad-shouldered adult bodies so hands that should meet do meet; slim VRoid-style bodies use `standard`
- `loop` true | false (true = a seamless loop, e.g. talk, idle, float)
- `while_talking` true | false (true = can play while your avatar speaks)
- `prop` a prop name (mug, phone, mic... from GET https://botsandborgs.com/api/props) for clips that use it; `none` for clips that play with no prop at all; `any` for clips that use one
- `limit` 1-100 (default 20)
Clip data: GET https://botsandborgs.com/api/animations?fields=metrics is every clip in one answer (ETag; null = unknown): `extent` (the room it needs, in meters on a reference skeleton; multiply by your body's rest hips height / `ref_hips_m`), and for some dance loops `bpm`, `first_beat_s` (from the loop's own t = 0, a convention: the hips' low) and `period_s`. `fields` in the answer says what each means.
Motion scripts: a clip that has a `bnb-motion/1` script lists `script_url` (GET https://botsandborgs.com/api/animations/scripts/<name>, the clip's file name without .vrma). GET it to re-solve the clip on ANY avatar with POST https://botsandborgs.com/api/anim/solve. A FREE clip's script is public; a PAID clip's script needs your account key and an account that owns the clip (its pack or its single). Example: curl https://botsandborgs.com/api/animations/scripts/emote-salute -H "X-API-Key: $KEY". Errors: 401 a paid script without a key; 403 `not_owned` (the message names what to buy); 404 no script for that name; 400 a name that is not [a-z0-9-]. ETag + If-None-Match answer 304.
Response: {"clips":[...], "total":N, "fields":"...", "buy":"..."}. Each clip:
{"name":"Gesture Heart Hands","file":"gesture-heart-hands.vrma","seconds":2.87,"loop":false,"tags":["heart","love","heart hands","thank you","fans"],"faces":"front","energy":"normal","while_talking":true,"bodies":"any","body_fit":"standard","prop":null,"note":"slim and average bodies; on broad shoulders use gesture-heart-hands-broad","pack":"vrm-gesture-pack-3","pack_title":"VRM Gesture Pack 3","pack_price_cents":400,"single":"vrm-gesture-pack-3-heart-hands","single_price_cents":50,"buy":{"variant":"vrm-gesture-pack-3-heart-hands","or_pack":"vrm-gesture-pack-3"}}
`buy.variant` is what to put in a quote: the clip's single where one exists, else its pack. `or_pack` is the whole pack (often better value for 3+ clips from one pack). `file` is the clip's path inside the zip you receive.
Every clip also carries `clip`, its stable id (the file stem, e.g. `mug-sip-idle`, `phone-call-loop-broad`): props placements are keyed by it, so match props to clips by this id, never by a renamed or prefixed name. And `props`: [{"prop":"mug","need":"required","kind":"hand","pack":"vrm-props-pack-1","file":"mug.glb","use":"drinking coffee: mug-sip-idle","placements":{"standard":{...}}}]: `required` = the clip is made around that prop (play it without and the hands hold air); `optional` = a prop that fits the clip but it plays fine without (a phone for the imaginary-phone call). `plays_without_props` is true when nothing is required. `q` also matches props and their `use` lines, so q=coffee finds the mug clip.
Moving between clips: one-shot gestures start and end on our idle pose (`entry`/`exit`: "idle"). A loop lists `entry` (its `-in` clip: idle -> the loop's first frame), `exit` (its `-out` clip: the loop's last frame -> idle) and `once` (a baked idle -> loop -> idle version for players that play a move once); companions carry `role` (in | out | once) and `of`. Chain `entry` -> loop xN -> `exit` with no blend at the joins, or play `once`. Packs being updated add these as they go; a clip without them predates the convention, so blend into it.
Dances also carry `bpm`, `beats` (whole beats per loop), `beat0` (seconds to the first downbeat), `speed` ([slowest, fastest] playback rate that still looks right), `camera` (the best view, e.g. "3/4 back") and `springs` (true when the look depends on the avatar's own spring bones: hair, chest, tail). `bpm` null means a free tempo: set the speed by eye.
`buy.items` is a ready quote list: the clip plus every props pack it requires (a pack you already own is still listed; drop it). `buy.props` / `buy.optional_props` name those packs. POST https://botsandborgs.com/api/quotes {"items": <buy.items>}.
Examples:
- A friendly greeting for a slim avatar, playable while talking: GET https://botsandborgs.com/api/animations?tag=greet,hello&body=standard&while_talking=true
- "Do a heart" on a broad-shouldered avatar: GET https://botsandborgs.com/api/animations?tag=heart&fit=broad
- Clips you can loop under a long reply, calm: GET https://botsandborgs.com/api/animations?tag=talk&loop=true&while_talking=true
- A calm idle loop: GET https://botsandborgs.com/api/animations?tag=idle&loop=true&energy=calm
- A dance for a male avatar (female-only clips are excluded): GET https://botsandborgs.com/api/animations?tag=dance&body=male (not for an avatar whose clip list says `not_for_this_avatar`)
- Something to play while the agent is working: GET https://botsandborgs.com/api/animations?tag=work,typing&loop=true
Buy and play, start to finish:
1. GET https://botsandborgs.com/api/animations?tag=heart -> take `clips[0].buy.variant`.
2. POST https://botsandborgs.com/api/quotes {"items":[{"variant":"vrm-gesture-pack-3-heart-hands"}]} then POST https://botsandborgs.com/api/orders {"quote":"<id>","pay":"balance"} with your account key and an Idempotency-Key (or pay with crypto or card: see Which way to pay).
3. GET each URL in the order's `downloads`: a zip with the .vrma (and its Broad/ version if it has one), a preview video, clips.json and a README.
4. Read clips.json, load the .vrma into your renderer (three-vrm, VNyan, Warudo, AvatarX...), and match future requests offline against what you now own.
Live passes: animation packs you buy also appear in your pass's clip library (GET https://botsandborgs.com/api/live/<slug>/clips?key=), synced by ETag; see Live avatars.
## Props API (what each prop is, where it goes, which clips play it)
GET https://botsandborgs.com/api/props (no key needed; cached 5 minutes). Optional filters: `kind` hand | floor | worn | head, `clip` (a clip id from GET https://botsandborgs.com/api/animations), `pack`, `q` (matches the prop name, its `use` line and its grip).
Each prop: `prop`, `file` (the .glb in the pack zip; its origin is the grip point, real scale), `kind`, `use` (what it is for, e.g. "drinking coffee: mug-sip-idle"), `grip`, `source`, `license`, `pack` + `pack_price_cents` + `buy.variant` (the props pack), and `clips`: [{"clip":"mug-sip-idle","placements":{"standard":{"bone":"rightHand","position":[0,0,0],"rotation":[90,0,90],"quaternion":[0.5,-0.5,0.5,0.5]}},"played_by":[{"pack":"...","file":"...","buy":"..."}]}]. `played_by` names the packs that sell each clip, so a prop you own tells you which clips to buy for it.
Kinds: `hand` (parent to the hand bone), `floor` (bone `floor`: metres from the avatar origin, +Z forward), `worn` (over a body part: `hide` lists the avatar bones it covers, so hide those meshes or let the prop cover them; any finger pose is already in the clip), `head` (on the head bone, e.g. hats).
Placements are the attach.json frame: position in metres, `rotation` Euler XYZ degrees (three.js order) with the same rotation as `quaternion` [x,y,z,w] beside it, in the VRM normalized bone frame (+X avatar left, +Y up, +Z forward). A placement may carry `when` (e.g. `performance`: show the prop only for that kind of video, like the mic on talk loops); with no `when` the prop always shows with the clip. A placement may carry `file`: load THAT .glb from the pack zip instead of the prop's default `file` (a prop built per hair family, like the Santa hat, names the build fitted to this avatar). `scale_with` and `ref_hips` in the pack's attach.json still apply.
Fitted to your avatar: GET https://botsandborgs.com/api/live/<slug>/props?key=bnbl_… returns the props your pass syncs, the same shape, with `placements` solved on that avatar's own body where we have fitted it (`fitted: true`, `fitted_for_sha256` = the sha256 of the VRM it was solved on, `fit_current` = whether that is the VRM the pass serves now). Unfitted props carry the pack placements. `unsupported` lists props you own that do not fit this body (e.g. the worn foam #1 hand on a paw): leave them off this avatar. A fitted prop whose fit placed some of its clips and not others lists the others in `clips_unsupported`: play those clips without the prop, never with the pack placement.
Errors: 400 bad_request for an unknown parameter or value (e.g. energy=wild, fit=huge); an empty `clips` list just means no match, so loosen the filters.
## Animations (collection `animations`)
- Packs of .vrma clips (VRM Animation 1.0) for any VRM humanoid: emotes, gestures, idles, walks, dances, agent loops (talk, listen, work). Your renderer plays them; they are not videos.
- Every pack has `clips.json`: per clip `name`, `file`, `seconds`, `loop`, `tags` (greet, agree, disagree, laugh, think, celebrate, thanks, dance, idle, talk, listen, shrug, point, facepalm...), `faces` (front | away: show an `away` clip from behind), `energy` (calm | normal | high), `while_talking`, `bodies` (any | female), `body_fit` (standard | broad: the version for broad-shouldered bodies) and `prop`. Pick clips by tag, not by file name.
## BnB All-Access (subscription)
- One plan covers every digital product Bots & Borgs makes (avatars, VRMs, animations, backgrounds, props, sets, emoji packs) and their live passes, plus one own-model live slot: product `bnb-all-access`, monthly or yearly (prices on its variants and at GET https://botsandborgs.com/api/plan). Subscribers also get the full set for their own models (8 portraits, stickers, profile kit, voice, motion, emoji per My Models outfit: GET|POST https://botsandborgs.com/api/locker/models/<id>/outfits/<outfit>/artifacts, persona {"pronoun":"she|he|it","kind":"human|robot"} once per model). Not included: creator products, kit orders, conversions, custom work.
- Subscribe with your account key: POST https://botsandborgs.com/api/quotes {"items":[{"variant":"bnb-all-access-month"}]} (or `bnb-all-access-year`; add {"variant":"bnb-all-access-seat","qty":n} for extra seats), then POST https://botsandborgs.com/api/orders with `pay: "balance"` (renews from the prepaid balance each period; qty up to 12 prepays months) or without `pay` for the card checkout (a Stripe subscription). Crypto pays the balance (POST https://botsandborgs.com/api/account/deposit), not the plan directly.
- While subscribed, included items quote at $0 with `covered: "subscription"` on the line (and `list_cents`, the regular price), so an agent's budget does not count them; a fully covered order needs no payment step (it is placed from the balance at $0). Up to 30 NEW products per billing period: one product = one item whatever its variant. Updates never count: a product you took in any earlier period is free to take again, and everything you have keeps updating in your library (GET https://botsandborgs.com/api/library) while you are subscribed. GET https://botsandborgs.com/api/catalog and GET https://botsandborgs.com/api/animations with your key mark covered items `included: true`.
- Seats: up to 3 accounts share one plan (the owner and its agents): POST https://botsandborgs.com/api/account/plan/members {"account":"acct_..."}, DELETE https://botsandborgs.com/api/account/plan/members/<account>. More seats: PUT https://botsandborgs.com/api/account/plan {"extra_seats": n} (prorated now; billed with each renewal). Seats count on the owner's 30.
- Your account id (for seats: acct_...) is `account` in GET https://botsandborgs.com/api/account, GET https://botsandborgs.com/api/account/balance and GET https://botsandborgs.com/api/account/plan. All plan times (period_start, period_end, renews_on, added) are Unix seconds (UTC).
- GET https://botsandborgs.com/api/account/plan: status, period_end, renews_on, renewal_cents, downloads used/left, seats, `warning` (set 3 days before a balance renewal the balance cannot cover, and while a payment is past due: relay it to your owner). DELETE https://botsandborgs.com/api/account/plan cancels at the period end; POST https://botsandborgs.com/api/account/plan/resume undoes it; POST https://botsandborgs.com/api/account/plan/portal opens Stripe's page to change the card (card plans).
- Live passes for included avatars last as long as the plan and renew with it (same keys). When the plan ends, everything downloaded stays licensed and each live key keeps serving the version current when it lapsed (`X-Live-State: frozen`), with no new versions until you subscribe again. The same holds in the library and on order download links: a subscription item freezes at the version current when cover ended (`state: frozen`, `newer_available: true` once there is a newer one); renewing thaws it.
## Library (everything your account has, kept current)
- GET https://botsandborgs.com/api/wardrobe lists released outfit fits with character_variant, outfit_variant, source_vrm_sha256, sha256, state and download. Requires an account session/key or an app key with library scope. State is ready, outfit_required, character_required, version_mismatch or subscription_frozen. GET https://botsandborgs.com/api/wardrobe/<id>/file downloads the assembled VRM only when both exact library versions are owned; Only registered model-download tiers qualify, including the Complete bundle and explicitly purchased download-inclusive live tiers. Portraits and bare live-pass grants do not qualify. Both rights are checked on every request, including conditional reads. ETag and Range are supported; downloads share the library quota. Updated bodies require a newly approved fit. POST https://botsandborgs.com/api/wardrobe/<id>/wear with {} installs it in My Models; with {"slot":"live-own-..."} it also switches your own live slot. This write requires an account key/session, never a read-only app key. Repeats reuse the installed outfit. The answer supplies model, outfit, role_ref, rig and fit URLs. After a file change reconnect the realtime stream with a new token, load the matching rig/fits, and settle springs. Approved clip overrides require the original animation pack and its exact source version; clip rights are not included with an outfit. Refunds revoke hosted/locker/role/linked-agent use.
One sync path for every product type: avatars, animation packs, props, sets, backgrounds, emoji, sounds, and any type we add later. Send your account key (X-API-Key: bnba_...).
- GET https://botsandborgs.com/api/library lists your items: `variant`, `product`, `title`, `collection`, `source` (purchase | subscription | live_pass: the starter clip packs that come with a live avatar pass), `state` (active | frozen), `etag`, `version` and `sha256` (the file's sha256), `updated` (Unix seconds), `bytes`, `notes` (newest first: {"at", "kind", "text"}; kind is fix, art, new_clip, new_prop, placement or update, and new kinds may appear), `changed_files` (for a zip: what changed since its previous version, {"name","sha256","bytes","status": added|changed|removed}), `contents` (the clip ids and prop names a pack holds; for a set {"set", "kind": mesh|equirect}, and the item says `kind: "set"`), `url`, `files_url` (zips) and `page`.
- Poll: GET https://botsandborgs.com/api/library?since=<next_since from your last answer> returns only items whose version or notes changed since (our clock: use `next_since`, not your own). Filters: `collection`, `product`.
## Update feed
What your avatars learned, as entries you can act on: a new clip or prop, a fix, a fit for your avatar's body, a new model version.
- The answer: {"entries": [...], "count", "next_since", "more", "since", "how"}. The list field is `entries`.
- GET https://botsandborgs.com/api/account/feed with your account key covers everything the account has (library items, live passes, fit-only models). GET https://botsandborgs.com/api/live/<slug>/feed?key=bnbl_… covers one live avatar: its model, its fits and the packs its pass syncs.
- Each entry: `id`, `at` (Unix seconds), `product`, `kind` (fit, fit_failed, model, or a library note kind: fix, art, new_clip, new_prop, placement, update; new kinds may appear), `title`, `text` (one line a person can read), `items` ([{"type": clip|prop|pack|model|file, "id", "name"}], the same ids GET https://botsandborgs.com/api/props and GET https://botsandborgs.com/api/animations use, so you can play or wear the item straight away).
- Poll: ?since=<next_since from your last answer> (an entry id, our cursor). Entries are oldest first; `more: true` means read again now. The first read (no since) returns the newest 50 (`limit` 1-200).
- A subscription item that froze when your plan cover ended shows no entries after the freeze.
## Pinning a live avatar
Like how your avatar looks today and don't want the next model update yet? Pin it.
- GET https://botsandborgs.com/api/live/<slug>/versions?key=bnbl_… lists the model versions you can pin, newest first: {"version", "at", "current", "pinned"}. We keep the last 5, plus any version a pass is pinned to.
- POST https://botsandborgs.com/api/live/<slug>/pin?key= {"version": "…"}: GET …/vrm then serves that version (its ETag is the version; `X-Live-State: pinned`). DELETE https://botsandborgs.com/api/live/<slug>/pin?key= follows the current version again.
- Fits and clip/props packs keep following the current model. The update feed still lists new versions, so you can decide when to move.
- If we ever ship a bad model update, we roll it back for everyone, and the feed says so (kind `rollback`).
## Roles and outfits
Wear a different avatar per role: one for the public, one when your agent acts for its owner, one for private chat.
- Roles: `public`, `assistant`, `personal` (`private` is the same as personal); other names are allowed. Unknown context falls back to public. Your agent picks the role per request and keeps its own role map; the store's copy is an optional mirror.
- PUT https://botsandborgs.com/api/account/roles {"roles": {"public": slug, "assistant": slug, "personal": slug}} (account key); null removes a role. Each slug must be a model you have (a live pass or a library item). GET https://botsandborgs.com/api/account/roles reads the map; GET https://botsandborgs.com/api/account/roles/<role> answers with that role's model (`live`, `vrm`, `fit` urls), falling back to public.
- Outfits: an outfit is a whole model of the same character, re-dressed on the same rig, so every clip, prop and fit works on it. Products and live passes carry `family` (the character), `outfit` (its name; empty = the base model), `suits` (the roles it is made for) and `outfits` (the other outfits of the family). Fill your role slots from `suits`.
- Fits are per model: GET https://botsandborgs.com/api/live/<slug>/fit for each role's model. A role change shows in your feed (kind `role`, yours only).
- Prices: an outfit is $6 when you own a model of its family. Your live pass covers every outfit of the character.
## My Models (your own avatars, private)
Your own .vrm models (bought anywhere, made in VRoid, converted by us), each with outfits (a whole model on the same rig) and saved looks. Private: never listed, never sold. Account key (X-API-Key: bnba_…) on every call.
- List / one: GET https://botsandborgs.com/api/locker/models, GET https://botsandborgs.com/api/locker/models/<id> (outfits: `outfit`, `label`, `status`, `sha256`, `bytes`, `preview_url`; looks).
- Upload (up to 2 GB, never reduced; straight to storage): POST https://botsandborgs.com/api/locker/models {"name":"Nova","filename":"nova.vrm","bytes":157000000,"sha256":"<hex>","rights":true} -> an upload with `url`(s); PUT the bytes there, then POST https://botsandborgs.com/api/locker/models/<id>/outfits/<outfit>/uploads/<upload>/complete. A new outfit: POST .../<id>/outfits; a new version of an outfit: POST .../<id>/outfits/<outfit>/versions (same flow; links, fits, pictures and the feed follow it).
- The file: GET https://botsandborgs.com/api/locker/models/<id>/outfits/<outfit>/file (ETag = its sha256; send If-None-Match). Looks: GET|POST https://botsandborgs.com/api/locker/models/<id>/looks, GET|PUT|DELETE .../looks/<look>.
- Fits (every clip and props pack you own, fitted to the outfit; queued by themselves): GET https://botsandborgs.com/api/locker/models/<id>/outfits/<outfit>/fit -> the fit-only status shape (`fitted_for_sha256`, `job`, `packs`, `props`, `placements`, `unsupported`, `clips` with each fitted pack at .../fit/clips/<pack>). Example: `curl -H "X-API-Key: $KEY" https://botsandborgs.com/api/locker/models/mdl_EXAMPLE/outfits/base/fit`
- Animation on it: POST https://botsandborgs.com/api/anim/solve {"avatar":{"locker":{"model":"mdl_EXAMPLE","outfit":"base"}},"script":{"format":"bnb-motion/1","name":"wave","duration":2,"keys":[{"t":0},{"t":1},{"t":2}]}} -> 202 {job, poll}.
- The full set (All-Access subscribers: 8 portraits, 12 stickers, a profile kit, a voice, a motion pack, emoji per outfit): GET https://botsandborgs.com/api/locker/models/<id>/outfits/<outfit>/artifacts -> {`files`: [{kind, name, sha256, bytes, url}], `job`, `persona`, `needs`, `subscriber`, `personal_license`, `line`}. Made by itself for outfits in a role or picked by a link; for any other: POST the same URL. The first time, say how it is voiced and posed (once per model): `curl -X POST -H "X-API-Key: $KEY" -H "Content-Type: application/json" -d '{"pronoun":"she","kind":"human"}' https://botsandborgs.com/api/locker/models/mdl_EXAMPLE/outfits/base/artifacts` (pronoun she|he|it, kind human|robot) -> 202 {job}. Not subscribed: 402 `subscribe` (or order a kit: kit-my-model). A personal-license (fan) model: 409 `personal_license` (its pictures are made in your browser only). Each file: GET its `url` with If-None-Match: "<sha256>".
- Speech on Character Creator rigs: models we convert from Character Creator (and kit conversions) carry BAKED speech: the VRM expressions aa/ih/ou/ee/oh open the jaw with the teeth and tongue in the mesh (glTF `extras.bnb_jaw_bake` = 1). Drive them like any VRM visemes and never also rotate the jaw bone; the rig profile says `jaw_baked: true`.
## Linked agents
A person can let your agent use some of their own avatars (their My Models: models, outfits, saved looks), read-only. Nobody signs in as an agent: you use your own account key; the owner decides everything in their account.
- Ask: POST https://botsandborgs.com/api/account/links/request {"owner_email": "…", "name": "your agent's name", "note": "why"} (your key). The answer is the same whether that email has an account or not; the owner gets a request in their account and an email. At most 5 requests an hour.
- Or take a code the owner gave you: POST https://botsandborgs.com/api/account/links/accept {"code": "xxxxxxxx-xxxxxxxx-xxxxxxxx"} (your key). A code works once, for 24 hours.
- GET https://botsandborgs.com/api/account/links lists your links (`as_agent`). GET https://botsandborgs.com/api/account/links/<id> answers what you may use: `models` (each with `outfits`: `sha256`, `file`, and their `looks` with the pieces, colors and shape keys to apply), the per-link `roles`, and `personal_license` (true notes a fan model or personal-use license: information from the owner).
- Files: GET https://botsandborgs.com/api/account/links/<id>/files/<model>/<outfit>. The ETag is the file's sha256. Download a file ONLY when the `sha256` in the link differs from the copy you hold, or send If-None-Match: "<sha256>" (an unchanged file answers 304, with no body). A full download answers 302 to a signed storage URL that is good for 2 minutes: follow it, and do not send your API key to that host (most HTTP clients drop it on a redirect to another host; set yours to). The storage host's own ETag (after the redirect) is NOT our sha256: identify a file by the `sha256` in the link view (or the 302's own `ETag` / `X-BnB-SHA256` headers), and send If-None-Match to OUR URL, before any redirect. Run ONE sync pass per link (not several hosts doing the same pass) and re-fetch on a feed entry of kind `model`. Files can be several hundred MB. At most 6 full downloads of one file per link per hour: past that, 429 `slow_down` with Retry-After (a 304 never counts). Offline copies are fine.
- Roles: GET https://botsandborgs.com/api/account/links/<id>/roles/<role> answers the avatar the owner chose for that role (with a look's settings when it is a look), else the link's public one (`fallback_from`). Wear what the owner assigned.
- Read-only: a link never lets you buy, spend, change or delete anything of the owner's. Changes reach you in GET https://botsandborgs.com/api/account/feed (kinds `link_approved`, `link_changed`, `model` for a new outfit version, `look`, `fit` when an outfit's fitted clips change (GET the link's fit again), `link_ended`).
- If the owner unlinks you (or you leave: DELETE https://botsandborgs.com/api/account/links/<id>), every link route answers 403 `link_ended`: delete your copies of their models.
- Fits and animation for a linked model: GET https://botsandborgs.com/api/account/links/<id>/fit/<model>/<outfit> (your clip and props packs, fitted to it; the same shape as the fit-only status) and POST https://botsandborgs.com/api/anim/solve with {"avatar":{"link":"<id>","model":"<model>","outfit":"<outfit>"},...}. No upload and no size cap: the model never leaves the owner's locker. Example: `curl -H "X-API-Key: $KEY" https://botsandborgs.com/api/account/links/lnk_EXAMPLE/fit/mdl_EXAMPLE/base` -> {"fitted_for_sha256":"…","job":{"status":"queued","position":1,"eta_seconds":null},"packs":[{"pack":"vrm-idle-pack","state":"pending","line":"…"}],"clips":[{"pack":"vrm-idle-pack","url":"…/fit/mdl_EXAMPLE/base/clips/vrm-idle-pack"}],"placements":[],"unsupported":[],…}; a failed fit shows `last_error` + `retry_after` (one retry a day).
- The full set of a linked outfit (when the owner has it made: All-Access): GET https://botsandborgs.com/api/account/links/<id>/artifacts/<model>/<outfit> -> {"vrm_sha256", "files": [{kind, name, sha256, bytes, url}]}; GET each `url` with If-None-Match: "<sha256>" (a matching one is a free 304; full downloads count against the same 6 an hour per file). 404 = no set for that outfit yet (a feed entry `artifacts` tells you when one is ready).
- Per-contact avatars: the owner can show a different avatar to each of the people you talk to. GET https://botsandborgs.com/api/account/links/<id>/contacts/<key>/avatar answers that contact's outfit or look, else the link's assistant, else its public one. `<key>` is YOUR opaque key for the contact (your own id or an HMAC, 1-64 of letters, digits . _ : ~ -): never send a phone number, email or handle. PUT https://botsandborgs.com/api/account/links/<id>/contacts/<key> {"label": "Mum", "ref": "locker:<model>/<outfit>[#<look>]"} sets one when the owner tells you to; add "propose": true to suggest one instead (it waits for the owner's OK). GET https://botsandborgs.com/api/account/links/<id>/contacts lists them; DELETE removes one. At most 500 per link; they end with the link.
- Applying a look. `pieces` names the parts to show. A piece is identified by its NAME, never an index: each switchable mesh node in the outfit file carries `extras.bnb_piece` (the author's object name; a suffix like `.001` is part of it), plus `bnb_default_visible` and `bnb_kind` (body, mask-region, eyes/face, hair, clothing, accessory, weapon). When `pieces` is a list, show exactly the nodes whose bnb_piece is in it and hide every other one. When it is null, use each node's bnb_default_visible (the same set as `scenes[scene].extras.bnb_default`; `bnb_states` there are the author's own looks). Ignore a listed name the file no longer has. A `<Body> [<group> mask]` piece is the body area the author's mask hides (skin under clothing): show it when it is listed. In three.js the name is `object.userData.bnb_piece`; in UniVRM/glTFast the node extras; in Babylon `node.metadata.gltf.extras`.
- `colors` are keyed by material name: {hue -180..180 (degrees, the CSS hue-rotate matrix), sat 0..2, light 0..2} on a texture's color, or {tint: "#rrggbb"} for a plain color. `morphs` are keyed by shape-key name (a mesh's `extras.targetNames` / three.js morphTargetDictionary), -1..1, on every mesh with that key; apply them after your VRM expression update each frame.
- Example: a node `{"name": "Sweater", "mesh": 13, "extras": {"bnb_piece": "Sweater", "bnb_default_visible": true, "bnb_kind": "clothing"}}` and a look `{"pieces": ["Body", "Hair", "Sneakers", "TankTop", "Pants"], "colors": {"Body": {"hue": 10, "sat": 1.0, "light": 1.05}, "TankTop": {"tint": "#3366cc"}}, "morphs": {"Smile": 0.4}}` show Body, Hair, Sneakers, TankTop and Pants, and hide Sweater.
Example responses (from a test account, ids replaced; the shapes are exact):
- GET https://botsandborgs.com/api/account/links/<id> → 200: `{"link":{"fallback":"public","id":"lnk_EXAMPLE","models":[{"model":"mdl_EXAMPLE","name":"Example Avatar","outfits":[{"bytes":15863136,"file":"https://botsandborgs.com/api/account/links/lnk_EXAMPLE/files/mdl_EXAMPLE/base","label":"Base","looks":[{"colors":{"Body":{"hue":20,"light":1,"sat":1.1}},"id":"lk_EXAMPLE","morphs":{"Smile":0.4},"name":"Evening","pieces":null,"ref":"locker:mdl_EXAMPLE/base#lk_EXAMPLE"}],"outfit":"base","ready":true,"ref":"locker:mdl_EXAMPLE/base","sha256":"3f9a6c1e00000000000000000000000000000000000000000000000000000000"}],"personal_license":false}],"owner":"acct_OWNER","read_only":true,"roles":{"assistant":"locker:mdl_EXAMPLE/base","public":"locker:mdl_EXAMPLE/base#lk_EXAMPLE"},"since":1795223263,"status":"active"}}`
- GET https://botsandborgs.com/api/account/links/<id>/roles/personal (not set) → 200: `{"fallback_from":"personal","file":"https://botsandborgs.com/api/account/links/lnk_EXAMPLE/files/mdl_EXAMPLE/base","look":{"colors":{"Body":{"hue":20,"light":1,"sat":1.1}},"morphs":{"Smile":0.4},"pieces":null},"model":"mdl_EXAMPLE","outfit":"base","personal_license":false,"ref":"locker:mdl_EXAMPLE/base#lk_EXAMPLE","role":"public","sha256":"3f9a6c1e00000000000000000000000000000000000000000000000000000000"}`
- GET https://botsandborgs.com/api/account/links/<id>/contacts/<key>/avatar → 200: `{"contact":{"key":"p_7f3a91","label":"Mum"},"file":"https://botsandborgs.com/api/account/links/lnk_EXAMPLE/files/mdl_EXAMPLE/base","look":{"colors":{"Body":{"hue":20,"light":1,"sat":1.1}},"morphs":{"Smile":0.4},"pieces":null},"model":"mdl_EXAMPLE","outfit":"base","personal_license":false,"ref":"locker:mdl_EXAMPLE/base#lk_EXAMPLE","sha256":"3f9a6c1e00000000000000000000000000000000000000000000000000000000"}`
- GET https://botsandborgs.com/api/account/links/<id>/contacts → 200: `{"contacts":[{"key":"p_7f3a91","label":"Mum","proposed_by_agent":true,"ref":"locker:mdl_EXAMPLE/base#lk_EXAMPLE","status":"active","updated":1795223263},{"key":"p_02bd44","label":"Work","proposed_by_agent":true,"ref":"locker:mdl_EXAMPLE/base","status":"proposed","updated":1795223263}],"limit":500}`
- GET https://botsandborgs.com/api/account/links/<id> after an unlink → 403: `{"code":"link_ended","error":"this link has ended (the owner unlinked you): delete your copies of the owner's models"}`
- GET https://botsandborgs.com/api/account/links/<unknown or never-approved id> → 404: `{"code":"not_found","error":"no link lnk_doesnotexist of yours"}`
- Feed entries for a link (product `link:<id>`, kinds link_approved, link_changed, model, look, contact, link_ended): `[{"at":1795223263,"id":25,"items":[],"kind":"link_approved","product":"link:lnk_EXAMPLE","text":"Your new link is active: GET the link for the models you may use."},{"at":1795223263,"id":26,"items":[],"kind":"contact","product":"link:lnk_EXAMPLE","text":"The owner approved the avatar you proposed for key p_02bd44."},{"at":1795223263,"id":27,"items":[],"kind":"look","product":"link:lnk_EXAMPLE","text":"The look \"Evening\" on mdl_EXAMPLE/base was saved: GET the link again."},{"at":1795223263,"id":29,"items":[],"kind":"link_changed","product":"link:lnk_EXAMPLE","text":"The owner changed what you may use: GET the link again."},{"at":1795223263,"id":30,"items":[],"kind":"link_ended","product":"link:lnk_EXAMPLE","text":"The owner unlinked you: delete your copies of their models. Every link route now answers 403 link_ended."},{"id":31,"at":1795223263,"product":"link:lnk_EXAMPLE","kind":"model","text":"A new version of mdl_EXAMPLE/base (sha256 7c41d0aa9e12…): fetch it again with If-None-Match.","items":[]}]`
## Webhooks
Optional: instead of polling the update feed, have each new entry POSTed to you.
- POST https://botsandborgs.com/api/account/hooks {"url": "https://…"} (account key) answers {"id", "secret"}. The secret is shown once. At most 3 hooks. GET lists them with `state` (on, retrying, off) and `last_error`; DELETE https://botsandborgs.com/api/account/hooks/<id> removes one; POST …/<id>/test sends a ping now; POST …/<id>/enable turns a switched-off hook back on.
- Each delivery: POST {"event": "feed", "entry": {…the feed entry…}}, oldest first, with `X-BnB-Event-Id` (the entry id: de-duplicate on it) and `X-BnB-Signature: sha256=<hex HMAC-SHA256 of the raw body, keyed with your secret>`. Verify the signature before you act.
- Answer 2xx within 10 s. Anything else is retried after 1 min, 10 min, then hourly; after 20 failures in a row the hook switches off. The feed (GET https://botsandborgs.com/api/account/feed?since=) always has everything, so catch up there.
- The url must be https on port 443 with a public host name; we follow no redirects.
## Seasonal items
Some packs have a season (the Winter Holiday pack: 12-01 to 01-02, every year).
- Products and GET https://botsandborgs.com/api/props rows carry `season`: {"from": "MM-DD", "to": "MM-DD", "in_season": true|false} (UTC; a season may wrap the new year). Use seasonal props on your own only while `in_season` is true. Out of season they stay yours, for when someone asks for them.
- New seasonal packs arrive on their release day as a feed entry (and in your library), so nothing needs to be checked by hand.
- On All-Access, a seasonal item that comes back next year is the same item: taking it again is an update, not a new one.
- Fetch: GET each `url` with If-None-Match: <etag>; 304 = you have it (frozen items answer 304 too). For a zip, GET `files_url` for its manifest (name, sha256, bytes, url) and fetch only the changed files at `files_url`/<name> (each ETag'd by its own sha256). Check each file against its sha256 before replacing anything. 300 full downloads a day per account; 304s are free.
- Purchases update forever. Subscription items update while All-Access covers you (updates never use the allowance). The avatar live pass keeps the VRM and its per-avatar fits (GET https://botsandborgs.com/api/live/<slug>/vrm and /props); sync clip and props packs here.
## Fit service (every clip and prop, fitted to the avatar you use)
We fit our clips (hands that meet, touches that land; and on a body whose proportions differ from our VRoid reference, EVERY clip: a dance's hands land at the chest of a broad-shouldered or realistic body, not low and apart) and props (grips, hats, worn props, floor props) to each avatar's own body, gate every fit (nothing through the body, face clear, natural wrists), and deliver it live. It runs by itself: when you upload a new model version to a live slot, when a kit is delivered, and whenever we ship or change a clip or props pack.
- A new model version is served at once with the standard placements; its fits follow and take over on your next sync. Use a fit only when its `fitted_for_sha256` matches the VRM you wear.
- GET https://botsandborgs.com/api/live/<slug>/fit?key=bnbl_… returns `vrm_sha256` (the body the status is about), `body_class` (slim, broad, rigid_glove, paw...), `job` (queued | claimed, `position`, `eta_seconds`: null until the fit has started) and, per pack and per prop, `state`: fitted | pending | unsupported | standard, with a `line` you can pass to your owner as is. Unsupported props also carry `reason`, `fix` (what would make it work), `instead` (clips that do work on this body) and `self_fit`.
- Body fit (every clip): our clips are authored on VRoid proportions. A body whose shoulder width, collarbone or arm length differs by more than 10% (realistic, Mixamo / CC / converted, broad) gets EVERY clip of your packs fitted to it, its hands and feet aimed where the clip meant them on its own body; a VRoid-like body plays the clips as made. Play the fitted clip (`state`: fitted) whenever there is one: the shipped .vrma on such a body puts dance hands low and apart. A clip whose fit does not pass our checks is left out of the fit and plays as made; where the clip as made would leave the feet off this body's floor, its fitted file is the clip as made with only the hips' height changed.
- Unsupported means do NOT attach it to this avatar (a prop that does not fit looks worse than none), unless `self_fit` is true (e.g. the pole, which you may place where the hands meet).
- Fit only, no hosting: for a model you use that we do not host (VRoid-made, a license that forbids re-hosting), send it with your owner's say-so: POST https://botsandborgs.com/api/fit/models?name=<label> with the raw .vrm (account key, up to 30 MB, 10 a day). We fit every clip and props pack your account has, delete the model once fitted, and keep only its fits keyed by its sha256. GET https://botsandborgs.com/api/fit/models lists yours; GET https://botsandborgs.com/api/fit/models/<sha256> is its status (as above) plus `placements` and `unsupported`; GET https://botsandborgs.com/api/fit/models/<sha256>/clips/<pack> is a fitted clip pack (ETag; 404 means play the pack as made); DELETE https://botsandborgs.com/api/fit/models/<sha256> forgets it.
- Bigger models (up to 2 GB, never reduced): a model in My Models, and one a person links to you, need no upload here. Its fits are at GET https://botsandborgs.com/api/locker/models/<id>/outfits/<outfit>/fit (your own) or GET https://botsandborgs.com/api/account/links/<id>/fit/<model>/<outfit> (linked to you), in the same shape as GET https://botsandborgs.com/api/fit/models/<sha256>, for YOUR clip and props packs: `fitted_for_sha256`, `job`, `last_fit`, `packs`, `props`, `placements`, `unsupported` (+ reason) and `clips` (each fitted pack at .../clips/<pack>, ETag/304). They are queued by themselves (when a link is approved or accepted, and when the owner uploads a new version), and reading the status never refits.
## Animation API (say WHAT the body does; we solve it on your avatar)
- POST https://botsandborgs.com/api/anim/solve with your account key, body {"avatar":{"product":"vrm-racer-red"}|{"live":"<slug you have a pass for>"}|{"fit_model":"<sha256>"}|{"locker":{"model":"<id>","outfit":"<outfit>"}} (your own My Models outfit)|{"link":"<lnk id>","model":"<id>","outfit":"<outfit>"} (an outfit a person links to you),"script":{...}}. Answers 202 {job, poll}; the same avatar + script again answers 200 with the earlier result (`cached`, free).
- The script is `bnb-motion/1`: {"format":"bnb-motion/1","name":"wave","duration":3,"loop":false,"keys":[{"t":0,"hands":{"right":{"rest":"hang"}}},{"t":0.6,"hands":{"right":{"at":{"landmark":"rightEar","offset":[-0.17,0.02,0.1]},"point":[-0.15,1,0.1],"palm":"forward","shape":"open","elbow":"out"}},"gaze":{"camera":true},"expression":{"happy":0.9}}]}. Keys: `t` (s, first 0), `hands` (left/right: `at` a landmark + offset in metres, `point` forearm or a direction, `palm` in|out|down|up|forward|back, `shape` open|relaxed|fist|grip|point|thumbs_up|pump|flat, `elbow` down|out|back, or `rest`), `gaze`, `lean` (forward/side/twist deg), `head` (turn/bow deg), `expression` (VRM presets 0..1), `prop_target`. Top level: `prop` {name, hand} (a prop from our packs), `limits`. Landmarks: nose, mouth, chin, brow, leftEye/rightEye, leftEar/rightEar, leftShoulder/rightShoulder, crown, chest, leftBelly/rightBelly, leftHip/rightHip, leftKnee/rightKnee, [email protected]. Unknown fields are a 400.
- GET https://botsandborgs.com/api/anim/jobs/<id> -> `status` queued|claimed|passed|failed, the `report` (every check with its numbers: wrist bend, body and face clearance, how close the hand came to pointing as asked, the grip through the fist, the face cover measured on renders, the loop seam) and, when done, `vrma` + `preview` links (GET …/clip.vrma, …/preview.mp4). A script the body cannot do comes back `failed` with the numbers and our best attempt, never a silent pass. GET https://botsandborgs.com/api/anim/jobs lists your last 50.
- Limits: script up to 64 KB, 64 keys and 30 s; 60 new solves per account a day (repeats are free); a solve that runs past 300 s fails with `timeout`. Free for now.
- Job files: GET https://botsandborgs.com/api/anim/jobs/<id>/<file> with your account key, where <file> is clip.vrma, preview.mp4, (companions) in.vrma, out.vrma, once.vrma, or worst.png; 404 when the job has no such file (yet). A FAILED solve lists `worst_stills`: worst.png shows each failing check's worst moment from 4 sides (front, her right, back, her left), a row per check, so you can see what went wrong.
- Held props: the `grip` check fails a prop that is not really in the hand on any checked frame: a handled cup with the fingers outside its handle, a shaft not in the closed fist, a phone not held by its edges, or any other held object more than 3 mm from the hand (`touch_gap_mm`). A prop moved 1 cm off the hand already fails it.
- Companions: add `"companions":true` to the solve body. A PASSED solve then also gives the clip's -in (from the idle pose into the motion), -out (back to idle) and -once (in + one pass + out): the job lists them as {"companions":{"in":url,"out":url,"once":url}}, served at GET https://botsandborgs.com/api/anim/jobs/<id>/in.vrma, out.vrma and once.vrma with your account key. Example: curl -X POST https://botsandborgs.com/api/anim/solve -H "X-API-Key: $KEY" -d '{"avatar":{"product":"vrm-racer-red"},"companions":true,"script":{...}}'
- Reaching: `"at":{"reach":[x,y,z]}` puts the hand along that direction from ITS OWN shoulder, at the length's share of THIS body's arm (upper arm + forearm): [0.3,0.9,0.1] (length 0.95) is a nearly straight arm raised up and out, on a slim avatar and a broad robot alike, where a fixed `offset` from the crown leaves a broad body's elbows folded. Length 0.05 to 1; not together with `offset`. The report then carries `intent`: the reach each arm got against what was asked, the hand's height above the crown (a share of the reach), and the separation of two reaching hands against the asked.
- Legs: a key may say `"hips":{"drop":0.15,"shift":[0.03,0],"turn":20,"roll":5,"tilt":5}` (drop in meters, -0.5 to 0.8: a squat, a dip or a floor sit, negative a rise such as a jump; shift [x, z] up to 0.3 m; turn -90 to 90, roll -25 to 25 and tilt -25 to 25 degrees, + tips the pelvis forward) and `"feet":{"left":{"at":[0.1,0.25,0.1],"yaw":20,"knee":"out"}}` (at = meters from the foot's rest spot: x -0.8 to 0.8, y the lift -0.1 to 1.5 (a high kick goes over 1 m; past this body's leg reach the leg goes as far as it can and the report notes it), z -1 to 1; yaw the toe-out in degrees, -45 to 60; knee forward | out; `{"rest":true}` puts it back). Both are held until a later key changes them, like hands. The feet stay planted where you put them, so a hips drop bends the knees.
- Fingers: a hand may add `"fingers":{"index":0,"middle":0,"thumb":0.5}` on top of its `shape`: each named finger (thumb, index, middle, ring, little) curls from 0 (straight, as in the flat hand) to 1 (as in the fist); the others keep the shape. Held with the hand until changed; `{}` clears them. Counting to two: `"shape":"fist","fingers":{"index":0,"middle":0}`. The `hand_shape` check measures the blended curl.
- Your own prop: upload a .glb (binary glTF 2.0, everything inside the file, up to 5 MB, 100,000 triangles, 1 cm to 1.5 m, in metres, no skins or required extensions) with POST https://botsandborgs.com/api/anim/props?name=sword (body = the file, your account key; curl -X POST "https://botsandborgs.com/api/anim/props?name=sword" -H "X-API-Key: $KEY" --data-binary @sword.glb). Answer 201 {"prop":{"id":"cpr_...","tris":..,"size_m":[x,y,z]}}. Then a script says `"prop":{"custom":"cpr_...","hand":"right","position":[x,y,z],"rotation":[x,y,z]}` (position: metres from the hand bone, default the palm's centre; rotation: degrees). It is checked like our props: out of the body (`prop_body`), and in the hand (`grip`: a handle found on the mesh is held through, anything else must be touched within 3 mm and not pressed in more than 2 mm). GET https://botsandborgs.com/api/anim/props lists yours (20 at most), DELETE https://botsandborgs.com/api/anim/props/<id> removes one. Your props are private: only your account can list, use or delete them. Errors: 400 `bad_glb` (with the reason), 400 a bad name, 409 `name_taken`, 413 over 5 MB, 429 `too_many_props`; a solve naming a prop that is not yours: 404.
- Touching: a hand may say `"contact":true` (the hand touches its `at.landmark`: a finger to the lips, a hand on the hip) or `"contact":"hands"` (both hands meet, as in a clap). The solve checks the touch (the `contact` check: the hand within 10 mm) and moves the hand onto it; a hand meant to touch the face is not counted as covering it. `contact: true` needs `at.landmark`.
- Checks in the report you may see beyond the basics: `prop_body` (a held prop must stay out of the body on every frame, the same check the fit service uses), `hand_shape` (each finger's curl against the shape you asked for, within 30 degrees), `contact`. A free hand (no held prop) may bend at the wrist up to 70 degrees; a hand holding a prop stays within 40.
- Errors: 400 `bad_request` with the field path (an unknown field, a bad shape name, contact without at.landmark, keys not starting at 0 or not increasing, a name that is not [a-z0-9-]); 401 no or bad account key; 403 an avatar you have no live pass for; 404 an avatar, fit model or linked outfit that is not yours (or not covered by the link); 429 the daily limit. A solve that fails its checks is not an error: status `failed`, with the numbers and the best attempt (do not play it).
## Teach a motion (ask for a NEW motion in words; we make it, check it on three bodies, and sell it)
- POST https://botsandborgs.com/api/anim/teach with your account key: {"motion":"wave both hands above the head"}. Optional: `note` (up to 1000 characters: the feel, the speed, what it is for) and `script`, your own bnb-motion/1 draft (the same format as POST /api/anim/solve; we start from it). Answer 201 {"teach":{"id":"tch_...","status":"new",...}}.
- Then we draft the motion, solve it on a slim avatar, a broad robot and an animal, film it, and our operator approves it in words (or asks for changes). Follow it with GET https://botsandborgs.com/api/anim/teach/<id> (or GET https://botsandborgs.com/api/anim/teach for all of yours): `status` goes new -> drafting -> review -> published; `round` counts the drafts; `note` is our word to you. It can also end `parked` (three rounds did not get it right; the note says why) or `declined`.
- Published: `result` holds {"pack":"vrm-taught-motions","single":"<variant>","clip":"<name>","script_url":"..."}. The motion is in the Taught Motions pack and sold on its own. YOUR account gets that single free (it shows in GET https://botsandborgs.com/api/library, and its script and clip are yours), so play its script on any of your avatars with POST https://botsandborgs.com/api/anim/solve.
- Terms: by sending a motion (and any script) you let us make it and sell it. We may decline or park a request; then its `note` says why. The 201 answer repeats this as `terms`.
- Example: curl -X POST https://botsandborgs.com/api/anim/teach -H "X-API-Key: $KEY" -d '{"motion":"a slow bow with the right hand on the chest","note":"for greeting viewers"}'
- Errors: 400 `bad_request` (no motion, a motion over 300 characters or with line breaks, an unknown field, a bad script: the same messages as the solve), 401 no or bad account key, 404 a teach id that is not yours, 413 a body over 68 KB, 429 `too_many_open` (3 motions in progress per account), `rate_limited` (10 requests a day) or `queue_full` (20 in progress across everyone: wait for Retry-After seconds).
## Live puppeting (drive your avatar in real time; the viewer solves each frame)
A server solve takes about a minute; puppeting never waits on us. Your agent streams small commands over a WebSocket, we relay them (under 10 ms), and each viewer moves the avatar with our runtime against the avatar's rig profile, so a command lands in well under 100 ms.
- 1) Mint a viewer token for ONE avatar and audience: POST https://botsandborgs.com/api/puppet/tokens {"avatar":{"live":"<slug>"}|{"product":"vrm-racer-red"}|{"locker":{"model":"<id>","outfit":"<outfit>"}}|{"link":"<lnk>","model":"<id>","outfit":"<outfit>"},"stream":"public","ttl":3600} with your account key -> {token, ws, rig, vrm_sha256, expires}. Hand `ws` + the token to your page; never your key. The token never goes in a URL: the page sends {"view":"<token>"} as its first frame and reads the rig with Authorization: Bearer <token>. DELETE https://botsandborgs.com/api/puppet/tokens/<id> closes its viewers at once. A token is bound to that one body: keep a personal avatar on its own stream (e.g. "owner").
- 2) The page: load the runtime https://botsandborgs.com/puppet/bnb-puppet-1.2.0.js (ES module, MIT; its sha256 at .sha256; GET https://botsandborgs.com/puppet/ names the current one; earlier versions stay served byte for byte; 1.2.0: `settleSprings(vrm, holdPose)` settles hair, clothes and jiggle on the first pose, so call it once after your mixer applies the first frame (without it they swing into place as a clip starts); 1.1.0: `palm` faces a body direction in any arm pose (in 1.0.0 "in" and "forward" were the same roll); bundle it, it takes your THREE and has no other imports), GET `rig` once (Authorization: Bearer <token>), then `const p = attach(THREE, vrm, rig, {camera}); connect(ws, token, p);` and call `p.update(dt)` every frame after your mixer and before vrm.update(dt). The page gets {"hello":{vrm_sha256, rig}}, then the last command, then live ones; commands for another model file are refused. A token ends (`end` with `reason`) when it is revoked or expires, when the avatar is no longer yours to show (a link ended, a model deleted) and when the model gets a new file: mint a new one.
- 3) Your agent: open wss://botsandborgs.com/api/puppet/ws and send first {"auth":"bnba_...","avatar":{same as the token},"stream":"public"} -> {"ready":{vrm_sha256, viewers}}. Then send commands, JSON, every field optional (an absent field keeps its value): {"hands":{"right":{"at":{"landmark":"chin","offset":[0,0,0.1]},"shape":"point"}},"gaze":{"camera":true},"head":{"turn":10},"lean":{"forward":3},"mood":{"happy":0.6},"level":0.4,"ease":0.12}. Also: `pose` (wave point thumbs_up shrug think cheer bow), `point_at`, `visemes`, `expression`, `keys` (2..8 with `t`), `duration`, `hold`, `release` (true or ["hands","gaze","head","lean","mouth","face"]), `weight` (over the playing clip), `clip` ({id, loop, weight, mask: full|upper} or {stop:true}; the page passes {mixer, clipFor}), `end`. `level` is your voice loudness 0..1: it opens the jaw bone on rigs that have one, else `aa`; a page playing its own voice keeps its mouth ({localVoice:true}).
- Rig profiles (landmarks, joints, limits; by the model file's sha256, measured once): GET https://botsandborgs.com/api/puppet/rig (Bearer token), https://botsandborgs.com/api/rig/live/<slug>?key=, https://botsandborgs.com/api/rig/fit/<sha256>, https://botsandborgs.com/api/locker/models/<id>/outfits/<outfit>/rig, https://botsandborgs.com/api/account/links/<id>/rig/<model>/<outfit>. 202 {pending} while a new file is measured (usually under a minute).
- Limits: a frame at most 4 KB; 30 frames a second per stream (extra frames dropped, told once); 8 live streams per account; 50 viewers per stream; 200 live tokens; sockets idle 75 s are closed (we ping every 25 s). Nothing is stored but the last command, in memory.
## Live hosting for your own model
- Host YOUR avatar (bought or made anywhere, as a VRM) the same way as ours: one key, always the newest version, synced by ETag on every device, plus the clip library. Product `live-my-model`: passes for 30, 90 or 365 days (prices on the variants). Needs your account key; each pass opens a private slot `live-own-...` that is never listed. Up to 3 slots per account.
- Buy: POST https://botsandborgs.com/api/quotes {"items":[{"variant":"live-my-model-30"}]} with your account key, then POST https://botsandborgs.com/api/orders {"quote":"<id>","pay":"balance"}. GET https://botsandborgs.com/api/live lists your passes; an own slot has `own: true`, its `key`, `upload_url` and `vrm_url`.
- Upload or update your model: PUT https://botsandborgs.com/api/live/<slot>/model with your account key and the .vrm bytes as the body (VRM 0.x or 1.0, up to 30 MB, the humanoid bones checked). The response has the new `etag`. Each upload is a new version: every device using the key gets it on its next check. An FBX or plain GLB: convert it first (kit-my-model-convert).
- Big models (any size up to 2 GB per model; your model is never downscaled): upload straight to storage. 1) POST https://botsandborgs.com/api/live/<slot>/model/uploads with your account key and {"filename":"me.vrm","bytes":<exact size>,"sha256":"<sha256 of the file, hex>"}. Answer 201 with `upload_id` and `upload`: up to 100 MB one `url` (PUT the exact bytes there with the three `headers` given), larger files `parts` (PUT each part's exact bytes to its `url`, no extra headers, and keep each answer's ETag header). The URLs work for 6 hours. 2) POST https://botsandborgs.com/api/live/<slot>/model/uploads/<upload_id>/complete, with {"parts":[{"part":1,"etag":"..."}, ...]} for a multipart upload (an empty body for one PUT). Answer 202: we check the whole file (its exact size and SHA-256, then the VRM humanoid bones). 3) GET https://botsandborgs.com/api/live/<slot>/model/uploads/<upload_id> until `status` is `ready` (live now, a new version) or `failed` (`reason` says what to fix). Errors: 400 bad_request (a missing or wrong field), 401 (no account key), 404 (not your slot or upload), 409 too_many_uploads (2 open uploads per account; complete one or let it expire), 409 conflict (direct uploads unavailable on this server), 413 file_too_large (over 2 GB), 503 unavailable (storage busy: retry). An upload not completed within 24 hours expires. Downloads of big models stream, and accept a `Range` header.
- Fetch: GET https://botsandborgs.com/api/live/<slot>/vrm?key=bnbl_... with If-None-Match (304 = unchanged), exactly like our live avatars. Before the first upload it answers 409 with how to upload.
- Renew a slot (same key, more days): add `"slot":"live-own-..."` to the quote item. Without it, a purchase opens a new slot (up to 3). A lapsed slot keeps its model for the 7-day grace plus 30 days, then the file is deleted.
## Add-ons for every 3D avatar (variants on its page, bought like any variant)
- `<slug>-kit` Profile kit (zip): avatars 1024/640/512/400 px + a transparent round 512, banners for X and MindSwarm (1500x500), Twitch (1200x480), Discord (960x540), YouTube (2560x1440, art inside the 1546x423 safe area) and 4:1 headers. Set the 1024 as an on-chain identity image, the 640 as a Telegram photo, the 512 on Trellis and MindSwarm.
- `<slug>-voice` Voice pack (zip): `voice.json` names a Kokoro-82M voice (Apache-2.0) and its speed; speak any text with `pip install kokoro soundfile` then `KPipeline(lang_code=voice.json lang_code)(text, voice=..., speed=...)` at 24 kHz. Six reference lines included. The voice matches the avatar (she/he/it). On Python 3.13 use `kokoro-onnx` (same voice names; `lang` en-us for lang_code a, en-gb for b); hosted, OpenRouter serves hexgrad/kokoro-82m. voice.json carries `license` and `attribution` to show.
- `<slug>-motion` Motion pack (zip): 7 looping reaction clips (wave, laugh, cheer, clap, bow, nod, think), 3-4 s at 512x512, as WebM with alpha (transparent, for overlays) and MP4; plus the 12 emotes as Telegram video stickers (WebM VP9 with alpha, 512 px, under 3 s and 256 KB, upload them through @Stickers). Not on Netrunners or creature rigs.
- `<slug>-emoji` Emoji set (zip, on the pages that list the variant): up to 24 named emoji of the character (the variant label says how many) (happy, lol, joy, wink, love, blush, kiss, think, shock, confused, sad, cry, angry, pout, nervous, sleep, smug, facepalm, thumbs-up, wave, peace, clap and two more), each a transparent PNG at 512 and 128 px (Discord and Slack custom emoji take 128) and a WebP at 512 (Telegram static stickers). `emoji.json` maps each `name` to its `aliases`, `keywords`, the matching Unicode emoji (`unicode`) and its `files`, so an agent can pick an emoji by name or by the Unicode one it would have used. Symbols are drawn shapes, no text.
## Call Sounds (product `call-sounds`)
- 12 sounds for agents on calls: hold-music loops, please-wait and thinking loops, intro/connected/done/error/goodbye chimes, US and UK ringback. Each as 48 kHz FLAC, MP3 and an 8 kHz mu-law WAV for phone systems (Twilio `<Play loop="0">`, Asterisk). The loops repeat without a click. Synthesized by Bots & Borgs: use them in your own calls, including commercially.
## Backgrounds (collection `backgrounds`)
- Packs of 12 empty scenes (Studios & Rooms, Space Decks, Neon City, Winter Holiday), each at 1920x1080 and 1080x1920 JPEG, center left open for the avatar, no people or text. Put one behind an AvatarX page or an avatar video.
## Kit my model (bring your own 3D avatar)
- Have a rigged VRM you own or licensed elsewhere (VRoid exports VRM; for FBX/GLB from other stores, convert to VRM first with the Blender VRM add-on or UniVRM)? Buy `kit-my-model` and we run it through the same pipeline as our avatars. Variants: `kit-my-model-complete` (portraits, stickers, profile kit made from your 2D art, voice pack, motion pack), `kit-my-model-complete-2d` (the same plus a 2D avatar we paint from your model), `kit-my-model-basic` (portraits, stickers, voice; no motion). Prices are on the variants. Your model is never listed or resold, and it is deleted after delivery.
- Model is an FBX or a plain GLB (Fab and most stores)? Add `kit-my-model-convert` (Convert to VRM) to the same order: the kit jobs then also take a binary .fbx, a .glb or a .zip of the .fbx with its textures (up to 50 MB), and we convert it to a VRM 1.0 first (humanoid bones mapped from Mixamo, Unreal, Character Creator, Daz, VRoid, Rigify, 3ds Max Biped and more; T-pose; face shapes mapped to VRM expressions), check it, and include the .vrm in the kit. Bought alone, it delivers just the converted .vrm with a preview. A skeleton we cannot map comes back with what to fix.
- After paying, the order's `downloads` entry for the kit has `kit: true` and links its page. By API, with the order token (`?token=` or header `X-Order-Token`): GET https://botsandborgs.com/api/kit/jobs?order=<order id> lists the jobs (one per kit). PATCH https://botsandborgs.com/api/kit/jobs/<id> {"name":"Mira","pronoun":"she|he|it","rights":{"confirmed":true}}, PUT …/<id>/model with the .vrm bytes as the body (up to 30 MB; VRM 0.x or 1.0; a plain GLB is refused at the checks), optionally PUT …/<id>/art (a square PNG or JPEG portrait), then POST …/<id>/submit. The same automatic checks as creator submissions run (VRM humanoid bones, size): pass -> `queued` with `queue_position`, fail -> `checks_failed` with `checks.problems` (fix, upload again, submit again).
- We build on our own machine and look at the result before it goes out, usually the same day; you get an email (agents: poll GET …/<id>). When `status` is `delivered`, GET …/<id>/download returns the kit zip (25 downloads, kept 30 days). Ordered with an account key: your model (the .vrm you sent, or the converted one) is also hosted LIVE for 30 days free, in a private slot listed by GET https://botsandborgs.com/api/live (`own: true`; renew it with a live-my-model pass and `"slot"`). POST …/<id>/cancel before work starts cancels it and the store refunds the order.
## Sell your own 3D avatars (creators)
- Creators are invite-only for now; ask through a custom request (below) or the contact address. An invited account (person or agent) uses the same key as everywhere: `X-API-Key: bnba_…`. Everything a creator can do is in this API.
- GET https://botsandborgs.com/api/creator/me -> handle, status, and the commission in force: `store_cut_percent` (default 20) on your own items, `addon_store_cut_percent` (default 50) on the add-ons the store makes from your model (profile kit, voice, motion, live passes), `hold_days` (14) before earnings are payable, `payout_min_cents`.
- POST https://botsandborgs.com/api/creator/submissions {"name":"Nova","pronoun":"she|he|it","description":"...","tags":[..],"price_cents":1500,"rights":{"kind":"original|licensed","license":"CC BY 4.0","source_url":"...","author":"...","confirmed":true}} -> 201 a draft. Any positive price (sub-dollar to $150+). A licensed model needs `license` and `source_url`, and the license must allow resale.
- PUT https://botsandborgs.com/api/creator/submissions/<id>/model with the .vrm (or rigged .glb) bytes as the body, up to 30 MB; optionally PUT …/<id>/art with a square 2D portrait (PNG or JPEG, 2048 px is ideal; without one we make it from the model).
- POST https://botsandborgs.com/api/creator/submissions/<id>/submit -> automatic checks (glTF/VRM, the VRM 1.0 required humanoid bones, triangles up to 500k, size, face expressions found). Pass -> `in_review`; fail -> `checks_failed` with `checks.problems` to fix. PATCH …/<id> (name, pronoun, description, tags, price_cents) and DELETE …/<id> work while it is a draft or needs changes.
- GET https://botsandborgs.com/api/creator/submissions[/<id>] -> status (draft, checks_failed, in_review, changes_requested, approved, rejected, live) and `review_note`. You are emailed on each decision (agents: poll). On approval the store builds every product a 3D avatar sells from your model and lists it with your name on the page.
- GET https://botsandborgs.com/api/creator/products and GET https://botsandborgs.com/api/creator/earnings -> your live products and every sale: gross, card fee share, the commission snapshotted at the sale, the store cut, your net, and when it becomes payable. Refunds reverse the line. Payouts (USDT on BNB Chain) are coming next.
## Report a defect or bug
- POST https://botsandborgs.com/api/reports {"summary":"in a line","details":"what you saw and expected","kind":"model","product":"vrm-mm-frog","images":["<base64 PNG or JPEG>"]} with your account key, or with "order" and "order_token" and no account at all. `kind`: model, art, download, site, api or other. Up to 3 images; 5 open and 10 a day.
- The answer has a `token`, shown once. GET https://botsandborgs.com/api/reports/{id}?token=<token> (or your key) shows `status` (new, investigating, fixed, closed) and `note`. Once fixed it carries `fix_url` and, for an order, `downloads`: fresh links to the corrected file. GET https://botsandborgs.com/api/reports lists an account's reports.
## Custom requests
- Ask for a made-to-order avatar, from a prompt and optional reference images. Needs an account. Nothing is charged, and we choose which requests to take.
- POST https://botsandborgs.com/api/requests {"prompt":"what you want","wants":["3d_avatar","2d_pack"],"images":["<base64 PNG or JPEG>"],"rights_attested":true} : up to 3 images of 6 MB each. `rights_attested` confirms you own or may use everything you provide, and that it shows no real person without consent and no character, logo or brand belonging to someone else.
- GET https://botsandborgs.com/api/requests lists yours; GET https://botsandborgs.com/api/requests/{id} shows `status` (new, accepted, declined, cancelled, paid, delivered, refunded), `note` and, once accepted, `quote_cents`. POST https://botsandborgs.com/api/requests/{id}/cancel withdraws one before it is paid. At most 3 open and 5 a day per account.
- Custom moves and props for your avatar: `wants` ["animation"] (a clip, $8), ["prop"] ($12) or both ($15), with `avatars`: the model slugs it is for (up to 5), e.g. {"prompt": "wave while holding a coffee", "wants": ["animation"], "avatars": ["vrm-racer-blue"], "rights_attested": true}. Once accepted, POST https://botsandborgs.com/api/requests/{id}/pay pays the quote from your account balance (402 `insufficient_balance` = top up first). We build it, check it on your avatars, then deliver it: GET https://botsandborgs.com/api/requests/{id}/file, plus a `custom` entry in your update feed that only you see. It is yours alone for 30 days. If we can't make it pass our checks, the full amount goes back to your balance (`refunded`).
## More
- Route list: https://botsandborgs.com/api
- Human pages: https://botsandborgs.com/ · policies: https://botsandborgs.com/terms https://botsandborgs.com/refunds https://botsandborgs.com/shipping https://botsandborgs.com/privacy
- Contact: [email protected]
The plain-text version is /llms.txt; the route list is /api.