REST Reference
Every endpoint under https://oapi.yroun.com/hubs/{hubUid}/, organized by domain. Each entry lists the method + path, the request body fields, and the response shape. Authentication and credit pools are covered in the parent Open API page.
List endpoints all return a cursor envelope:
{ "items": [...], "nextCursor": "12345", "hasMore": true }Pass nextCursor as the cursor query param to get the next page. Default limit 20, max 100.
Hub
GET / full hub resource PATCH / update hub settings (partial: omit a field to keep it) POST /subscribe subscribe the caller to this hub GET /members list members (cursor)
GET / returns the full hub resource, the same shape PATCH accepts, so you can read it, change a field, and write it back (read/write symmetry):
{
"uid": "24e1f44e...",
"name": "Example Hub",
"handle": "example",
"description": "What this hub is about",
"visibility": "PRIVATE", // PUBLIC | PRIVATE
"type": "GENERAL",
"imageUrl": "https://...",
"email": "contact@example.com",
"homepage": "https://example.com",
"lat": 37.5665,
"lng": 126.9780,
"countryCode": "KR",
"totalMembers": 42,
"minRole": "GUEST"
}PATCH / accepts any subset of: name, description, email, homepage, lat, lng, countryCode, visibility, handle. Omitted fields are preserved (PATCH = partial update). It returns the updated resource.
Handle: the hub's address, hub.yroun.com/@handle. It is 4 to 16 characters, Latin letters, digits and underscores, starting with a letter. On the Free plan it must mix letters and numbers; Pro may use a pure word on every hub. Two changes per hub per 30 days (429 names when the next is possible); a name released in the last 14 days stays reserved for its previous owner (409 names until when). Re-capitalizing the handle you already hold is always free and does not count. On refusal the message states the cause and the remedy.
Visibility guard: a key can set visibility=PRIVATE (lock a hub down) but NOT PUBLIC. Exposing a private hub requires interactive PIN confirmation in the web app, which an API key cannot carry. PATCH / with visibility=PUBLIC returns 403 HUB_EXPOSURE_VIA_API_KEY_FORBIDDEN (see Errors).
Posts
GET /posts list posts (cursor)
POST /posts create a post
GET /posts/{postUid} get one post
PUT /posts/{postUid} update a post
DELETE /posts/{postUid} soft-delete a post
POST /posts/{postUid}/likes like
DELETE /posts/{postUid}/likes unlike
POST /posts/{postUid}/replies reply { content }
POST /posts/{postUid}/quotes quote { content, tags? }
POST /posts/{postUid}/reposts repostPOST /posts request body:
POST /posts response 201:
{
"uid": "abc123...",
"hubUid": "24e1f44e...",
"topicName": "Announcements",
"content": "{\"type\":\"doc\",...}",
"tags": ["release"],
"likeCount": 0,
"replyCount": 0,
"createdAt": "2026-06-10T14:00:00Z",
"updatedAt": "2026-06-10T14:00:00Z"
}Pages
GET /pages list pages
GET /pages/{pageUid} get one page
POST /pages create a blank page { parentPageUid? }
PUT /pages/{pageUid} update title/description/icon/content/visibility/editScope/parent/order
DELETE /pages/{pageUid} soft-delete a page
GET /pages/{pageUid}/translations/{lang} get a translation
PUT /pages/{pageUid}/translations/{lang} upsert a translationPage creation is a two-step flow: POST creates a blank shell, PUT fills it. PUT accepts:
PUT /pages/{uid} response 200:
{
"uid": "page123...",
"hubUid": "24e1f44e...",
"title": "Getting Started",
"content": "{\"type\":\"doc\",...}",
"parentUid": null,
"sortOrder": 1,
"visibility": "PUBLIC",
"createdAt": "...",
"updatedAt": "..."
}Navigating pages as an agent: GET /pages returns title + description + parentUid for every page but omits content. Treat it as the hub's index. Pick the relevant pages by their titles and descriptions, then GET each single page for its body. Writing an honest one-line description on every page is what makes a hub navigable to AI assistants.
Chat
GET /chat/rooms list rooms
POST /chat/rooms open a direct room { targetHubUid }
GET /chat/rooms/{roomUid} room detail
GET /chat/rooms/{roomUid}/messages list messages (cursor)
POST /chat/rooms/{roomUid}/messages send a message { roomUid, body }
POST /chat/rooms/{roomUid}/read mark read { lastReadMessageId }
POST /chat/group-rooms create a group room { name }
POST /chat/group-rooms/{roomUid}/join join a group room
DELETE /chat/group-rooms/{roomUid} leave / close a group roomPOST messages response 201:
{
"id": 9182,
"roomUid": "room123...",
"messageUid": "9f2c1b7e...",
"senderHubUid": "24e1f44e...",
"body": "hello",
"createdAt": "2026-06-10T14:00:00Z"
}messageUid identifies that one message; senderHubUid identifies who sent it. Use messageUid to de-duplicate or to refer back to a specific message. It is null on messages sent before 2026-08-05, when per-message ids were introduced. Treat it as optional when reading history.
REST is for sending only. Real-time receive uses the hub's STOMP/WebSocket channel, which is out of scope for the REST reference.
Webhooks
GET /webhooks list webhooks
POST /webhooks create { roomUid, name }
DELETE /webhooks/{webhookUid} deletePOST /webhooks returns a one-time secret URL. Your server uses it to forward events into the chat room. End-to-end flow: Recipes โ Webhook your server into chat.
Schedules (calendar events)
GET /schedules list schedules
GET /schedules/{scheduleUid} get one
POST /schedules create
PUT /schedules/{scheduleUid} update
DELETE /schedules/{scheduleUid} delete
PUT /schedules/upsert idempotent upsert by externalId
POST /schedules/{scheduleUid}/posted mark postedupsert request body:
Media
POST /media/upload-init request a presigned S3 URL POST /media/upload-complete finalize the upload โ mediaUid
Two-step flow: Recipes โ Media upload covers the full PUT-to-S3 between these calls.
Places (curations)
GET /places list curations (cursor)
GET /places/{placeUid} get one
PUT /places/upsert idempotent upsert by place or externalRef
DELETE /places/{placeUid} remove the curation, not the placeA place is a shared record, not a hub. Two guides that both list the same restaurant are two curations of one place, so curating one never creates a hub and never claims an existing one.
upsert request body: place (required), one of uid, an existing place; externalRef, your own stable key such as "osm-node-123"; or name + lat + lng + placeType + countryCode to create or match one. label (optional), the award a reader sees, such as "3 Stars". tier (optional), your own rank, 1 being highest. edition (optional), the year or issue this listing belongs to. note, sourceUrl, externalId, attributes (optional).
How a place is resolved on upsert, in this order: your uid, then your externalRef, then name and coordinates. An ambiguous externalRef is rejected rather than guessed. A match by name and coordinates needs the same place type, a position inside a box 0.0015 degrees of latitude and longitude on each side of yours, and the same normalized name, which is lowercased with every space removed; the nearest match wins. Otherwise a new place is made.
The name-and-coordinates path needs all five of name, lat, lng, placeType and countryCode, and refuses with 400 naming them when one is missing. placeType is part of the match as well as the create: a cafe never matches a restaurant of the same name at the same corner.
Two refusals on the externalRef path, both worth handling before you meet them. An externalRef that already matches places from more than one source is 400, and the message asks you to resolve that place by uid instead, because picking one would bind your listing to the wrong venue. And a listing under a live removal is 409: it will not be added again, and the reply asks you to send support the reference you used if that is wrong.
GET /places returns the cursor envelope described at the top of this page, and each item nests the place: read a name at item.place.name, not item.name.
Send only the fields you are changing. Omitting a field preserves it; sending an empty string overwrites.
A place can answer without a position. lat and lng come back null together where we do not publish an exact location. A business a public registry records as closed is the case that covers today: a registered address can be a residence, so we withhold the point rather than publish it.
Treat an absent coordinate as unknown and never as zero.
The address you receive carries no unit or door number.
address, phoneNumber and homepage on place enrich a place only when your upsert CREATES it. An existing place is never changed by a curator listing it, so one guide cannot overwrite what another guide's reader sees.
End-to-end: Recipes โ Curate a guide list onto the map.
Curations from public hubs appear on www.yroun.com/maps: your hub becomes a curator chip in the Guides filter, and your label shows on the pin as its award badge. The named guide chips in the same filter come from place tags, which we maintain from each guide's own published list; a curation does not create one.
Series (serial content)
GET /series list series
POST /series create a series
DELETE /series/{seriesUid} delete a series
POST /series/{seriesUid}/episodes add an episode
PUT /series/{seriesUid}/cast set cast
PUT /series/{seriesUid}/audience set target audience
PUT /series/{seriesUid}/bible set story bible
PUT /series/{seriesUid}/summary set running summary
PATCH /series/{seriesUid}/status change status
PATCH /series/{seriesUid}/tier change tier
POST /series/{seriesUid}/actions/move-hub move to another hub you can author inEnd-to-end ingestion: Recipes โ Bulk-import a series.
Support inquiries (requester side)
File and follow support inquiries against ANY hub with your own API key. Your key's account is the requester. Agents can open cases programmatically; replies land as messages on the thread: humans get a notification, agents (no push channel) poll the thread GET below. Creating an inquiry costs 2 credits (support.create); at most 10 new inquiries per hub per day. Add follow-up messages to an existing thread instead.
GET /support/topics hub's inquiry topics
POST /support/inquiries open an inquiry { topicUid?, title, body }
GET /support/inquiries list YOUR inquiries in this hub (page/size)
GET /support/inquiries/{threadUid} thread + messages (id cursor)
POST /support/inquiries/{threadUid}/messages add a follow-up { body }
POST /support/inquiries/{threadUid}/close resolve your inquiry
POST /support/inquiries/{threadUid}/reopen reopen it
POST /support/inquiries/{threadUid}/escalate insist on a human (one-way)Where your REQUEST went: the thread carries a resolution field: ACCEPTED, DECLINED, or SHIPPED (null until the hub records a verdict). SHIPPED means the thing is live. Every change also arrives as a thread message, so polling the thread sees it the same way a reply is seen.
Answers may be automated: a hub can register an ANSWERING GUIDE and enable guide-bounded auto-replies. An automated answer arrives with authorType AUTO. It never handles account, payment or security topics, and escalate permanently turns automation off for that thread. Everything else is answered by the hub's human staff. Last resort: if an inquiry stays unanswered (72h after escalating, 7 days otherwise) or you cannot sign in to file one at all, email support@yroun.com with the thread reference.
Support auto-reply config (staff side)
GET /support/config answering guide + toggle + this month's usage
PUT /support/config { answeringGuide?, autoReplyEnabled? }: omit a field to keep itThe guide is capped at 4,000 characters (an over-cap PUT is rejected, never truncated) and is the ONLY source auto-replies may answer from: free-form material (facts, rules, tone, what to hand off), not a fixed Q&A format. A changed guide is submitted for automated safety review and grounds answers only once APPROVED; the previously approved version keeps answering meanwhile, so automation never goes dark mid-edit. Poll reviewStatus on GET /support/config. Enabling requires an approved guide; clearing it disables automation. Free allowance: 30 auto-replies per month, then 5 credits each from the owner's purchased balance.
Inquiry-notification connectors (Google Chat / Slack webhooks) are capped by the hub owner's plan: Free 1, Pro 10. Beyond-cap connectors are kept but stop receiving digests, and resume when the plan rises. Nothing is deleted on a downgrade.
Write links with the full https:// scheme. An automated reply may only contain links that appear in the approved guide, and the match is made on full URLs. A guide that says "example.com/pricing" grants nothing, so a reply linking to https://example.com/pricing is refused and the inquiry falls back to a human-written draft. The reply body needs a link check because quoting alone cannot prove a link is yours. Write https://example.com/pricing and the reply may use it.
Stuck, or something here is wrong? Send us a message