Sharing API
Reference for the 3 Sharing operations in the Intuidy API.
Responses are JSON. A successful response is { "success": true, "data": …, "meta": … }, and each operation below documents its data. Errors use the error envelope described in Errors, pagination and limits.
| Operation | Method and path | Authorization |
|---|---|---|
| Read who a resource is shared with | GET /shares/{type}/{id} | dashboards:read, or workflows:read, or notebooks:read, or agents:read, or integrations:read |
| Change who a resource is shared with | PUT /shares/{type}/{id} | dashboards:write, or workflows:write, or notebooks:write, or agents:write |
| List who a resource can be shared with | GET /shares/{type}/{id}/directory | dashboards:read, or workflows:read, or notebooks:read, or agents:read, or integrations:read |
Read who a resource is shared with
GET /shares/{type}/{id}
Who a dashboard, workflow, notebook, agent (an agent team is an agent) or skill is shared with. Someone who may change its sharing — the owner or an administrator; for a skill, its owner while their role may share skills, or a skill manager — gets the company audience, the audienceOptions, the levels a grant can carry and every target. Anyone else who can see the resource gets only their own access (myGrant). A cross-company grant whose owner's company has left the organization is kept and reported with live: false and an inactiveReason; it is live again if the company returns. Scope: the read scope of the resource's family — dashboards:read, workflows:read, notebooks:read, agents:read for agents and skills, or integrations:read for a connection (levels use and manage; audience company or restricted).
Authorization: scope dashboards:read, or workflows:read, or notebooks:read, or agents:read, or integrations:read (any one).
Each item also needs its own type’s scope:
| Type | Scope |
|---|---|
| agent | agents:read |
| connection | integrations:read |
| dashboard | dashboards:read |
| notebook | notebooks:read |
| skill | agents:read |
| workflow | workflows:read |
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
type | "dashboard" or "workflow" or "notebook" or "agent" or "skill" or "connection" | Yes | The resource type; an agent team is an agent; connection (a company connection, integrations:read) is readable here and changed only in the web app |
id | integer | Yes | — |
Response 200 OK
data is Share:
| Field | Type | Description |
|---|---|---|
resource | object | — |
resource.type | "dashboard" or "workflow" or "notebook" or "agent" or "skill" or "connection" | — |
resource.id | integer | — |
resource.title | string | — |
resource.ownerUserId | integer | — |
resource.ownerClientId | integer | — |
resource.modified | string (date-time) | A notebook's last-saved time (notebooks only) |
resource.modifiedBefore | string (date-time) | PUT on a notebook that changed its audience: the saved time the write replaced, so an editor can keep its own baseline |
canChange | boolean | — |
narrowingLevels | boolean | false when a per-person view grant cannot narrow access — a dashboard or workflow already open to the whole company — so only edit is meaningful for same-company targets |
audience | string | The company audience — one of audienceOptions |
audienceOptions | array of string | — |
levels | array of "view" or "edit" or "use" or "manage" | view, edit — or, for a connection, use, manage |
crossCompanyLevels | array of "view" or "edit" or "use" or "manage" | The only level a cross-company target can hold (view; use for a connection) |
targets | array of object | — |
targets[].kind | "user" or "role" or "company" | — |
targets[].id | integer | — |
targets[].clientId | integer | The target's company |
targets[].level | "view" or "edit" or "use" or "manage" | — |
targets[].label | string | — |
targets[].email | string | — |
targets[].companyName | string | — |
targets[].crossCompany | boolean | — |
targets[].live | boolean | false when the two companies are no longer in one organization |
targets[].inactiveReason | string | — |
targets[].grantedBy | integer | — |
targets[].grantedAt | string (date-time) | — |
ownerCompanyName | string | — |
crossCompanyEnabled | boolean | Whether the caller's role in the owning company may share beyond it: any of share_in_other_companies, share_whole_other_companies, share_org_roles or share_organization |
myGrant | object | The caller's own grant, when they cannot change sharing |
myGrant.level | "view" or "edit" or "use" or "manage" | — |
myGrant.via | string | — |
skippedTeamMembers | array of integer | PUT on an agent team: member agents the caller may not share |
Errors 400 (INVALID_TYPE, INVALID_INPUT), 403 (INSUFFICIENT_SCOPE), 404 (NOT_FOUND, USER_NOT_FOUND). See Errors, pagination and limits.
Example request
curl -X GET "https://vantage.intuidy.com/api/v1/shares/<type>/<id>" \
-H "Authorization: Bearer $INTUIDY_API_KEY"Change who a resource is shared with
PUT /shares/{type}/{id}
Sets the company audience, organizationWide (everyone in every company of the organization can open it at the view level; never a connection) and/or the list of targets. targets REPLACES the whole list: send every target to keep, [] to remove them all, or leave it out to keep the list unchanged. A target is a person (user), a role (a company role, or an organization-level role wherever its holders sit), or everyone at a company of the organization (company, id = that company's id — the owner's own or another), at level view (the default) or edit. What the key owner may share with is decided by the sharing keys of their role in the owning company (share_in_company, share_whole_company, share_in_other_companies, share_whole_other_companies, share_org_roles, share_organization; share_grant_edit to hand out edit) — the directory endpoint answers allowed. An edit grant acts as view for someone whose role may not edit that kind of resource; across companies a grantee edits only while a role of theirs reaches the owning company. Only the owner, an administrator of the owning company, or someone whose roles alone already give full access (dashboards, workflows and notebooks) can change sharing (skills: the owner while their role may share skills, or a skill manager); a grant never confers delete or re-share. Sharing an agent team also adds its targets to the member agents the caller may share (skippedTeamMembers lists the rest). Connections are not shared through this endpoint. A change to a dashboard's sharing is announced once on that board's event stream as details; sharing is not part of any content_hash, and an agent's modified does not move. Scope: the write scope of the resource's family — dashboards:write, workflows:write, notebooks:write, or agents:write for agents and skills.
Authorization: scope dashboards:write, or workflows:write, or notebooks:write, or agents:write (any one). Who may use a connection is changed in Settings → Integrations, never with an API key.
Each item also needs its own type’s scope:
| Type | Scope |
|---|---|
| agent | agents:write |
| dashboard | dashboards:write |
| notebook | notebooks:write |
| skill | agents:write |
| workflow | workflows:write |
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
type | "dashboard" or "workflow" or "notebook" or "agent" or "skill" | Yes | The resource type; an agent team is an agent |
id | integer | Yes | — |
Header parameters
| Name | Type | Required | Description |
|---|---|---|---|
X-Write-Origin | string | No | Optional. An id for the page or client process that makes this board write, 8 to 64 characters of A-Z a-z 0-9 _ -; anything else is ignored. It is echoed to every viewer of the board as by.origin on the dashboard.saved event (GET /dashboards/{dashboardId}/events), so a client that reads that stream can skip the reload its own write caused. It is a client claim, never an authority check: it grants and refuses nothing. |
Request body (application/json)
| Field | Type | Required | Description |
|---|---|---|---|
audience | string | No | The company audience, one of the resource's audienceOptions — dashboard and agent: none | company; workflow: company (the default) | restricted; notebook: none | view | edit; skill: private | view | edit |
organizationWide | boolean | No | true: everyone in every company of the organization can open it (view); false: no longer. Leave it out to keep it as it is. Never a connection. |
targets | array of object | No | The COMPLETE list of targets; it replaces the current one |
targets[].kind | "user" or "role" or "company" | Yes | — |
targets[].id | integer | Yes | User id, role id, or (for company) a company id of the organization |
targets[].level | "view" or "edit" | No | Default view; edit needs the share_grant_edit key |
Response 200 OK
data is Share:
| Field | Type | Description |
|---|---|---|
resource | object | — |
resource.type | "dashboard" or "workflow" or "notebook" or "agent" or "skill" or "connection" | — |
resource.id | integer | — |
resource.title | string | — |
resource.ownerUserId | integer | — |
resource.ownerClientId | integer | — |
resource.modified | string (date-time) | A notebook's last-saved time (notebooks only) |
resource.modifiedBefore | string (date-time) | PUT on a notebook that changed its audience: the saved time the write replaced, so an editor can keep its own baseline |
canChange | boolean | — |
narrowingLevels | boolean | false when a per-person view grant cannot narrow access — a dashboard or workflow already open to the whole company — so only edit is meaningful for same-company targets |
audience | string | The company audience — one of audienceOptions |
audienceOptions | array of string | — |
levels | array of "view" or "edit" or "use" or "manage" | view, edit — or, for a connection, use, manage |
crossCompanyLevels | array of "view" or "edit" or "use" or "manage" | The only level a cross-company target can hold (view; use for a connection) |
targets | array of object | — |
targets[].kind | "user" or "role" or "company" | — |
targets[].id | integer | — |
targets[].clientId | integer | The target's company |
targets[].level | "view" or "edit" or "use" or "manage" | — |
targets[].label | string | — |
targets[].email | string | — |
targets[].companyName | string | — |
targets[].crossCompany | boolean | — |
targets[].live | boolean | false when the two companies are no longer in one organization |
targets[].inactiveReason | string | — |
targets[].grantedBy | integer | — |
targets[].grantedAt | string (date-time) | — |
ownerCompanyName | string | — |
crossCompanyEnabled | boolean | Whether the caller's role in the owning company may share beyond it: any of share_in_other_companies, share_whole_other_companies, share_org_roles or share_organization |
myGrant | object | The caller's own grant, when they cannot change sharing |
myGrant.level | "view" or "edit" or "use" or "manage" | — |
myGrant.via | string | — |
skippedTeamMembers | array of integer | PUT on an agent team: member agents the caller may not share |
Errors 400 (INVALID_TYPE, INVALID_BODY, INVALID_INPUT), 403 (INSUFFICIENT_SCOPE), 404 (NOT_FOUND, USER_NOT_FOUND), 422 (INVALID_SHARE). See Errors, pagination and limits.
Example request
curl -X PUT "https://vantage.intuidy.com/api/v1/shares/<type>/<id>" \
-H "Authorization: Bearer $INTUIDY_API_KEY" \
-H "Content-Type: application/json" \
-d '{"audience":"<audience>"}'List who a resource can be shared with
GET /shares/{type}/{id}/directory
As far as the key owner's role allows (allowed, decided by its sharing keys in the owning company): the people and roles of the owner's company; companies — every other company of the organization with its people and roles; wholeCompanies — other companies that may be named whole; organizationRoles — organization-level roles. Never anyone outside the organization. Only for someone who may change the resource's sharing. Scope: the read scope of the resource's family (agents:read for agents and skills).
Authorization: scope dashboards:read, or workflows:read, or notebooks:read, or agents:read, or integrations:read (any one).
Each item also needs its own type’s scope:
| Type | Scope |
|---|---|
| agent | agents:read |
| connection | integrations:read |
| dashboard | dashboards:read |
| notebook | notebooks:read |
| skill | agents:read |
| workflow | workflows:read |
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
type | "dashboard" or "workflow" or "notebook" or "agent" or "skill" or "connection" | Yes | The resource type; an agent team is an agent; connection (a company connection, integrations:read) is readable here and changed only in the web app |
id | integer | Yes | — |
Response 200 OK
data fields:
| Field | Type | Description |
|---|---|---|
ownerCompany | object | — |
ownerCompany.id | integer | — |
ownerCompany.name | string | — |
people | array of ShareCandidate | — |
roles | array of ShareCandidate | — |
companies | array of object | — |
companies[].id | integer | — |
companies[].name | string | — |
companies[].roles | array of ShareCandidate | — |
companies[].people | array of ShareCandidate | — |
Errors 400 (INVALID_TYPE, INVALID_INPUT), 403 (INSUFFICIENT_SCOPE), 404 (NOT_FOUND, USER_NOT_FOUND). See Errors, pagination and limits.
Example request
curl -X GET "https://vantage.intuidy.com/api/v1/shares/<type>/<id>/directory" \
-H "Authorization: Bearer $INTUIDY_API_KEY"Objects
Share
A resource's sharing. For someone who cannot change it, only resource, canChange: false and myGrant (their own access) are meaningful and targets is empty. Content (dashboard, workflow, notebook, agent, skill) carries the levels view and edit; a company connection carries use and manage, with audience company or restricted.
| Field | Type | Description |
|---|---|---|
resource | object | — |
resource.type | "dashboard" or "workflow" or "notebook" or "agent" or "skill" or "connection" | — |
resource.id | integer | — |
resource.title | string | — |
resource.ownerUserId | integer | — |
resource.ownerClientId | integer | — |
resource.modified | string (date-time) | A notebook's last-saved time (notebooks only) |
resource.modifiedBefore | string (date-time) | PUT on a notebook that changed its audience: the saved time the write replaced, so an editor can keep its own baseline |
canChange | boolean | — |
narrowingLevels | boolean | false when a per-person view grant cannot narrow access — a dashboard or workflow already open to the whole company — so only edit is meaningful for same-company targets |
audience | string | The company audience — one of audienceOptions |
audienceOptions | array of string | — |
levels | array of "view" or "edit" or "use" or "manage" | view, edit — or, for a connection, use, manage |
crossCompanyLevels | array of "view" or "edit" or "use" or "manage" | The only level a cross-company target can hold (view; use for a connection) |
targets | array of object | — |
targets[].kind | "user" or "role" or "company" | — |
targets[].id | integer | — |
targets[].clientId | integer | The target's company |
targets[].level | "view" or "edit" or "use" or "manage" | — |
targets[].label | string | — |
targets[].email | string | — |
targets[].companyName | string | — |
targets[].crossCompany | boolean | — |
targets[].live | boolean | false when the two companies are no longer in one organization |
targets[].inactiveReason | string | — |
targets[].grantedBy | integer | — |
targets[].grantedAt | string (date-time) | — |
ownerCompanyName | string | — |
crossCompanyEnabled | boolean | Whether the caller's role in the owning company may share beyond it: any of share_in_other_companies, share_whole_other_companies, share_org_roles or share_organization |
myGrant | object | The caller's own grant, when they cannot change sharing |
myGrant.level | "view" or "edit" or "use" or "manage" | — |
myGrant.via | string | — |
skippedTeamMembers | array of integer | PUT on an agent team: member agents the caller may not share |
ShareCandidate
A person or role that can be picked as a share target
| Field | Type | Description |
|---|---|---|
kind | "user" or "role" | — |
id | integer | — |
clientId | integer | — |
label | string | — |
email | string | — |
description | string | — |
viaRoles | array of string | Another company's person: the roles they hold |