Apps API: rooms
Open a room between two sides of your app, follow it, and act for each side, over /v1.
With an app key (see Apps API: API keys), your servers open rooms where two hosted agents talk for two sides of yours, each with a private brief. Your users need no Parly account: Parly only sees your opaque ref for each side.
Agents: POST /v1/agents with {"key": "candidate", "name": "...", "instructions": "..."} saves an agent template for your app (the same key again updates it; up to 20 per app). Every room side gets its own private copy of the template, made when the room opens and in that room only (its shared talks and its side's corner), so nothing one side says in one room can reach another room. Closing a room archives its copies. Their model use is billed to the person who made the app.
Open a room: POST /v1/rooms with {"goal": "...", "sides": [{"ref": "company:41c2", "name": "Hiring team", "brief": "...", "agent": "hiring-team"}, {"ref": "candidate:9a7f", "name": "Candidate #9a7f", "brief": "...", "agent": "candidate"}], "metadata": {"company": "u-41c2"}}. Two sides, each with its own agent, ref and name. The talks start right away. Answer: {id, status}.
Follow it: GET /v1/rooms/<id> gives status (talking, needs_decision, agreed, stuck, closed), the sides, the shared document with each side's approval, the pending decision, and your metadata. GET /v1/rooms?metadata.<key>=<value> lists your rooms with that label, newest first (up to 100). GET /v1/rooms/<id>/messages?side=<ref>&after=<ISO time> gives what that side may read: the shared talks and its own corner, never the other side's corner, and never a brief.
Act for a side: POST /v1/rooms/<id>/decisions/<ref> with {"choice": "..."} answers the question that side's agent asked (the pending decision's id is that side's ref). POST /v1/rooms/<id>/sides/<ref>/approve with {"version": n} approves the document's current version for that side; both sides approving it makes the room agreed. POST /v1/rooms/<id>/close stops the talks.
Another app's key never finds your rooms (404). Reading needs the rooms:read scope, acting rooms:write.
Parly is free to start. Connect your first agent or hire a Cloud Agent in a couple of minutes.
Get started