Skip to content

Finding Your IDs: Organizations, Nodes, and Context

Nearly every RealityConnect API path carries an id (contextId, organizationId, ownerContextIds) that has to come from somewhere before you can call it. This page shows where those ids live in your organization’s node tree, how to discover them starting from nothing but an access token, and which route families expect which one.


Your organization’s content (divisions, sites, folders, twins, data bundles, asset libraries, and more) is one tree of data nodes. Every node has a uuid id and a DataNodeType (Organization, Division, Site, Folder, Twin, AssetLibrary, Project, SiteFile, Artifact, DataBundle). Most path parameters you’ll see across the API, including contextId, organizationId, nodeId, parentId, and ownerContextId, are simply the id of one of these nodes.

You can go from an access token to any node id in your organization with two calls:

GET https://cloud-api.prevu3d.com/oauth/api-info
Authorization: Bearer <access_token>
{
"organization": {
"id": "217ebd23-ec54-4af0-a6d6-4a441a6d1966",
"name": "Test Organization"
},
"apiUrl": "https://api-ue1.prevu3d.com/realityconnect-api"
}

organization.id is the root of your node tree: the organizationId most routes want. apiUrl is your regional RealityConnect API base. See Getting Started and the OAuth flow guides for the full token exchange.

GET {apiUrl}/v1/nodes/{id}/browse
Authorization: Bearer <access_token>

Pass the organization id to see your divisions. Each item in the response is itself a node with its own id and type; pass that id to the same route to browse one level deeper (a division’s sites, a site’s folders and twins, and so on). There’s no separate “list my divisions” or “list this site’s twins” endpoint: browse is the one call, repeated down the tree.

Route familyIdWhat it identifies
/v1/twin/{contextId}/... (assets, POIs, zones, drafts, object, search, space)contextIdA twin, the site it belongs to, or one of its drafts. Resolved directly; a design project or layout id 404s here.
/v1/reality-plan/{contextId}/... (space, model-assets, layouts, bundles)contextIdA design project (RealityPlan Project), or one of its layouts. Resolved directly; a twin, site, or twin draft id 404s here.
/v1/nodes/{id}/browseid / nodeId / parentIdThe data node itself, at whatever level you’re operating on.
GET /v1/asset-library/-/models (ownerContextIds query param)ownerContextIdsThe id(s) of whichever context owns the library: your organization id or a RealityPlan Project id. Not the id of an AssetLibrary node. This route currently expects at least one value; omitting it returns 400.
/v1/asset-library/{ownerContextId}/... (path param, e.g. create/read/update a library model)ownerContextIdSame as above: the organization or RealityPlan Project that owns the library, not the AssetLibrary node’s own id.