Shared Content
Shared Content lets a project make some of its documents and collections readable by other projects in the same account — and by people or applications that are not members of the sharing project. A recipient sees only what was explicitly shared with them; they never gain access to the rest of the project.
Use it to publish a curated set of documents to the whole organization, give a partner team read access to a reference collection, or let an agent in one project retrieve knowledge that lives in another.
Sharing is read-only and stays within a single account. A shared document is never copied — it stays in its owner project, and readers see the live version.
How it works
Two independent things combine to make content visible across projects:
- What is shared — the owner project marks documents and collections as shared.
- Who can read it — the owner project grants specific people or API keys read access to its shared content.
Neither alone is enough: content is only visible to a recipient who has a grant, and a grant only ever exposes content that was actually shared.
Marking what is shared
Sharing is driven by a single field, shared_root, on a document or collection:
shared_root: true— an explicit share. That document, or that collection (and everything inside it), becomes part of the project's shared surface.- Items inside a shared collection inherit sharing automatically. Vertesia tracks this with an internal
sharedflag that it keeps in sync as collection membership changes — you only mark the root (the collection, or a top-level document) and the rest is propagated for you.
A reader can see an item when it is either an explicit root (shared_root) or inherited from a shared collection.
In the console, use the Share action on a document or collection. Programmatically, set shared_root with a normal update — see the Developer reference.
Granting cross-project access
Marking content as shared does not, by itself, reveal it to anyone. The owner project decides who may read its shared content by granting access to:
- a user who belongs to the account but works in a different project, or
- an API key used by an application or agent in another project.
The grant is a Shared Content Reader access-control entry, scoped to the owner project. It is an ABAC grant, so it can be broad (all shared content) or narrowed with conditions.
A Shared Content Reader is not a member of the owner project. They can read the content that project has shared, and nothing else — not its other documents, not its configuration, not its runs.
Because both controls live on the owner project, its admins stay in charge: they choose what to share (shared_root) and who can read it (the grant), and can revoke either at any time.
Using shared content
People and applications reach shared content the same way they reach their own — search and retrieval automatically span the current project plus every project that shares content with them.
In the console
The Shared Content view has three tabs:
- Browse — walk the shared collections and documents of each project that shares with you.
- Search — full-text and semantic search across your own content and all shared content at once; each result shows which project it came from. An Only shared toggle restricts the search to other projects' shared content.
- Manage — for content admins of the owner project: review everything the project is sharing, and unshare items.
Search behaviour
Cross-project search is a union: by default it returns matches from your current project and from every project sharing with you, each result tagged with its owner project. It supports the same full-text, semantic (vector), and hybrid queries as regular content search.
Because embedding models can differ between projects, semantic (vector) search runs only across projects that use the same embedding model as yours; full-text always spans everything. Every response reports its coverage — which projects were searched, and which were left out of the semantic pass — so results are never silently narrowed.
Developer reference
Shared content is served by the read-only /api/v1/content namespace and the client.store.content SDK topic. These endpoints resolve content across the caller's current project and the projects that share with them, and are read-only (no create, update, or delete).
The /api/v1/content endpoints are account-internal and are not part of the public OpenAPI reference. Use the SDK, or the routes documented below.
Search shared content
POST /api/v1/content/search takes the same payload as object search and returns hits stamped with their owner project, plus coverage.
Search across shared content
curl --location --request POST \
'https://api.vertesia.io/api/v1/content/search' \
--header 'Authorization: Bearer <YOUR_JWT_TOKEN>' \
--header 'Content-Type: application/json' \
--data '{ "query": { "full_text": "quarterly report", "vector": { "text": "financial analysis" } }, "limit": 20 }'
| Parameter | In | Description |
|---|---|---|
| body | ComplexSearchPayload | Same shape as object search: query.full_text, query.vector, filters, facets, limit, offset. |
onlyShared | query | true to exclude your current project and search only shared content. |
The response is an object — not a bare array, which is how a client tells it apart from single-project search:
{
"results": [
{ "id": "<objectId>", "name": "Q3 Report", "projectId": "<ownerProjectId>", "score": 4.2 }
],
"facets": { "total": 1 },
"coverage": {
"mode": "hybrid",
"searched": ["<currentProjectId>", "<ownerProjectId>"],
"vectorIncompatible": []
}
}
coverage.mode is "text" or "hybrid"; coverage.searched lists the projects actually queried; coverage.vectorIncompatible lists any reachable projects dropped from the semantic pass because their embedding model differs from yours.
Resolve a document by id
When you have an id but don't know which project it lives in, GET /api/v1/content/resolve/{id} checks your current project first, then the shared projects, and returns the entity with its owner project.
Resolve content by id
curl --location --request GET \
'https://api.vertesia.io/api/v1/content/resolve/<objectId>' \
--header 'Authorization: Bearer <YOUR_JWT_TOKEN>'
Browse what others share
List sharing projects and browse their shared roots
// Projects that share content with you
const projects = await client.store.content.listSharedProjects(); // [{ id, name }]
// Root shared collections / objects of one project
const collections = await client.store.content.sharedCollections(projectId);
const objects = await client.store.content.sharedObjects(projectId, undefined, { limit: 50 });
// Drill into a shared collection, or read a shared object
const detail = await client.store.content.getShared(projectId, id);
Render a shared document's content
GET /api/v1/content/shared/{projectId}/{id}/renditions/{format} returns signed URLs for a shared object's rendered file — the image or document view, read from the owner project's storage. Image formats are jpeg, png, webp; document formats are pdf, docx. This is read-only: it serves renditions the owner project has already produced and never generates one cross-project, so it returns 404 when no rendition of that format exists yet.
Get a rendition of a shared document
curl --location --request GET \
'https://api.vertesia.io/api/v1/content/shared/<ownerProjectId>/<objectId>/renditions/jpeg?max_hw=1596' \
--header 'Authorization: Bearer <YOUR_JWT_TOKEN>'
| Parameter | In | Description |
|---|---|---|
projectId | path | The owner project (from a search hit's projectId, resolve, or a browse listing). Must be shared with you. |
id | path | The shared object's id. |
format | path | jpeg | png | webp | pdf | docx. Must be valid for the object's content type. |
max_hw | query | Image only: max width/height in pixels (default 1596). Ignored for pdf/docx. |
{
"status": "found",
"renditions": ["https://storage.googleapis.com/...signed-url..."]
}
Returns 400 if the format isn't valid for the content type, and 404 if the project isn't shared with you, the document isn't accessible, or no rendition of that format has been generated.
Share and unshare (owner project)
Sharing is a normal content update from the owner project — set shared_root on the object or collection:
Share a document or collection
await client.store.objects.update('<objectId>', { shared_root: true }); // share a document
await client.store.collections.update('<collectionId>', { shared_root: true }); // share a collection (and its members)
Content admins can review and unshare a project's shared roots with GET /api/v1/content/managed (client.store.content.managed()).
Agent tools
Two opt-in builtin tools give agents the same reach:
search_shared_content— cross-project full-text / semantic / hybrid search; each hit carries itsproject_id, and the result includescoverage.fetch_shared_content— fetch a document or collection by id across the current and shared projects (accepts an optionalproject_idhint from a search result).
Next Steps
- Content Security — how document and collection grants work
- Attribute-Based Access Control — scoping grants with conditions
- Search Configuration — the search payload and engine shared with cross-project search