BIRD Link pairing
For AI agents and tools. BIRD Link connects a tool to a user's account in BIRD, so the tool can do what that user can do in BIRD's menus. This includes managing models, creating and editing worlds, viewing analytics and more. To get a BIRD Link code for the user you are helping:
- Open https://bird.games/link/start (a plain GET: no key, no body, no headers). It answers with a code such as
BIRD-7Q4-KM2and a token URL. - Show the user the code and tell them: open BIRD on Roblox → your profile → 🔗 → enter this code.
- Open the token URL it gave you (
https://bird.games/link/token?device_code=…). If it says “not approved yet”, open it again every 5 seconds, or once the user says they entered the code. When the user has approved, it shows an access token and a refresh token. - Use the token: send the header
Authorization: Bearer <access_token>, for exampleGET https://bird.games/api/v1/me, which returns the user's id and username.
Open /link/start once per pairing: every visit makes a new code. A code expires after 10 minutes. Add ?format=json to either URL to get JSON instead of text. If your fetch tool caches pages, add &n=2, &n=3… to the token URL each time.
Users: only enter a code that a tool you trust showed you. You can see and unlink your linked tools on the same 🔗 page in BIRD.
The same flow with POST
For HTTP clients (this is the OAuth 2.0 Device Authorization Grant shape, RFC 8628). Bodies are JSON; no API key is needed.
curl -X POST https://bird.games/api/v1/pair/start
# → {"device_code":"bird_dc_…","user_code":"BIRD-7Q4-KM2","expires_in":600,"interval":5,…}
curl -X POST https://bird.games/api/v1/pair/token \
-H 'Content-Type: application/json' -d '{"device_code":"bird_dc_…"}'
# → 400 authorization_pending until the user approves, then
# {"access_token":"bird_at_…","refresh_token":"bird_rt_…","token_type":"Bearer","expires_in":3600,…}
curl https://bird.games/api/v1/me -H 'Authorization: Bearer bird_at_…'
curl -X POST https://bird.games/api/v1/token/refresh \
-H 'Content-Type: application/json' -d '{"refresh_token":"bird_rt_…"}'
Poll pair/token no faster than interval seconds (polling faster returns slow_down and a longer interval). Other answers: expired_token (start again), access_denied (the user declined), invalid_grant (unknown or already used). Every response, including every error, has a next field that says what to do now.
Tokens
- The access token lasts 1 hour. Refresh it with
POST /api/v1/token/refresh, which returns a new access token and a new refresh token. - Each refresh token works once. Reusing an old one revokes the whole link, so a leaked token shows up.
- A refresh token expires after 30 days without use. The user can unlink a tool at any time in game; it stops working on its next request.
What a linked tool can do
A linked tool may do what its user can already do in BIRD's in-game menus, and nothing more. It is not a data export.
Read (all GET, with the bearer token; under https://bird.games/api/v1):
/me: user id, username, connection id./me/models,/me/worlds,/me/scenes: the user's own content, private included, with why anything is hidden in each game./models/:id,/models/:id/config,/worlds/:id: a public model or world, or the user's own (owners also get a world's layout)./content/model/:id/analyticsand/content/world/:id/analyticswith?range=week|month|all: the daily numbers the in-game analytics page shows./me/payout/latest: the user's latest weekly Robux payout as the game shows it./catalog/modelsand/catalog/worldswith?rail=popular|newest|search&q=: the public catalog. Search is a plain case-insensitive substring match of the wholeqagainst title, description and creator name (no word splitting or fuzzy matching), most popular first. Model rows includesize([x, y, z] studs at scale 1, or null if no game has loaded the model yet).
Change (only the user's own content):
- Publish or hide a model or world:
POST /models/:id/visibility,POST /worlds/:id/visibilitywith{"private": false}or{"private": true}. Publishing needs the user to be in the BIRD Community group on Roblox, as in game; a world also needs a real title and thumbnail. - Title and description:
PATCH /models/:id,PATCH /worlds/:idwith{"title": "...", "description": "..."}. A live BIRD server runs them through Roblox's text filter first (a few seconds), and the filtered text is what gets saved. If no server can filter in time the answer isfilter_unavailableand nothing is saved: try again in a minute. - Make a model from a Roblox asset:
POST /modelswith{"assetId": 123}. The asset must be a Model you uploaded under your own Roblox account (not a group), free on the Creator Store. The new model is private; its title and description come from the asset. - Model settings:
PUT /models/:id/configwithinsertMode,targetGameId,allowInScenes. - Build in a world, live: the user opens the world in edit mode in BIRD Worlds and stays there, and the tool works in their editor while they watch.
GET /worlds/:id/edit/statelists every placed model (instanceId, position, rotation in degrees, size in studs) and where the user stands;GET /worlds/:id/edit/scan?x=&z=&size=&resolution=is a top-down height map;GET /worlds/:id/edit/screenshot?from=x,y,z&lookAt=x,y,z(orfocus=instanceId, or nothing for the user's view) returns a PNG picture of the world, with the placed models visible in it (instanceId, title, share of the picture, pixel box, distance) in theX-Bird-Modelsheader, or everything as JSON withformat=json;POST /worlds/:id/editwith{"ops": [...]}runs up to 50 editor operations in order:{"op":"add","modelId":1,"position":[x,y,z],"rotation":[rx,ry,rz]}(position = where the model's base goes: give the surface's y, e.g. the ground height fromedit/scan; an add stacks on any model already under it),move(instanceId,position,rotation),scale,lock,remove,undo,save.edit_server_not_openmeans the user isn't in the world's editor in game yet:POST /worlds/:id/edit/openbrings them there from anywhere in BIRD Worlds.POST /worlds/:id/edit/testruns the world in Test mode (scripts on, the user plays it in game; owner only, up to 400 models),GET /worlds/:id/edit/test?since=reads what happened while it runs (script errors per model, models removed or respawned, player deaths and tools received, and per model which parts moved or changed), andDELETE /worlds/:id/edit/teststops it; edits wait until it stops.POST /worldscreates a new private world and brings them into it.GET /me/presencesays whether the user is in BIRD Worlds right now; errors about the editor include the sameuserobject and ajoinlink (roblox://) that opens the game. World edit permission:PUT /worlds/:id/edit-permission. Thumbnail:PUT /worlds/:id/thumbnailwith a Roblox Image or Decal id (publishing a world withPOST /worlds/:id/visibilityneeds a title and a non-default thumbnail). - Delete a model or world:
DELETE /models/:id,DELETE /worlds/:id.
Can't: write any other text players can see (names, memos); edit scenes; see anyone else's private content, payouts, moderation details or purchases.
Limits: 120 reads and 30 changes a minute per link. A user can have 10 linked tools.
About BIRD
BIRD is a game on Roblox where you play as a bird. Most of what is in it is made by its community: players build models and worlds, and creators are paid Robux every week from the game's revenue. Play BIRD on Roblox · bird.games · Create for BIRD · llms.txt