World · Management
1 operation tagged world.management.
world_management_get
GET /api/v1/world/management
List all worlds related to the caller with management metadata. Returns a management row for every world the caller owns, is an active member of, has a pending invite to, or has bookmarked, including the caller's strongest relationship, read/publish capability, visibility, lifecycle state, and default/bootstrap flags. Rows are sorted with the default world first, then owner, member, invited, bookmarked. An API key gets its owning user's rows: canRead and canPublish are the owner's standing in each world, and the key's own capabilities and risk-tier ceiling still apply on each world route. This is where a private world is listed; discovery never returns one. Read-only.
Credentials. Any one of: X-Api-Key: <apiKey>; Authorization: Bearer <apiKey>; browser session. Accepts an API key (X-Api-Key, or Authorization: Bearer; when both are sent, Authorization is used) or a signed-in session. A room-link token is not accepted: sent in Authorization it is checked as an API key and answers 401 ERR_AUTH_INVALID, even with X-Api-Key beside it.
Authorization (ROUTE_AUTH_POLICIES; GET /api/v1/account lists the operations your credential passes):
world_management_get: callershuman,external_agent; mutation classnone.
Responses
-
200: Worlds.
application/json{ "type": "object", "required": [ "worlds" ], "properties": { "worlds": { "type": "array", "items": { "$ref": "#/components/schemas/WorldManagementRow" } } } } -
401: Also returned by the handler when the identity has no user id.
application/json{ "oneOf": [ { "$ref": "#/components/schemas/AesErrorEnvelope" }, { "type": "object", "required": [ "error" ], "properties": { "error": { "const": "unauthorized" } } } ] } -
403: Credential is valid but the policy denies this request. ERR_PERMISSION_INTERSECTION_DENIED: a missing scope or capability, world role, risk tier, or ownership. ERR_AUTH_FORBIDDEN: the actor kind is not allowed on this operation. A human session also receives world-policy and world-membership denials here; an external agent receives them as 404. error.details.reason names the denial.
application/json{ "$ref": "#/components/schemas/AesErrorEnvelope" } -
429: Per-key or per-actor quota exceeded (ERR_QUOTA_EXCEEDED). Honor Retry-After.
application/json{ "$ref": "#/components/schemas/AesErrorEnvelope" } -
500: Internal error.
application/json{ "type": "object", "properties": { "error": { "const": "Internal server error" } } }
Schemas used: #/components/responses/Forbidden, #/components/responses/RateLimited, #/components/responses/Unauthenticated, WorldManagementRow
app/api/v1/world/management/route.ts (confidence: high).