Skip to main content

Access & sharing Endpoint Reference

Reference for 1 Access & sharing endpoint of the Talonic API: parameters, request body, curl and Node.js examples, response and errors.

Who holds each source, access requests to the holder, and sharing documents or whole sources you hold with members, groups or everyone in the workspace. Always as the credential's person.

Every request needs an API key in the Authorization: Bearer header. Examples read the key from the TALONIC_API_KEY environment variable.

POST/v1/governance/shares/workspace

Required scope: access:write

Request body (application/json)

scope_idstringAn access scope (8-4-4-4-12 hex; version digits are arbitrary).
source_connection_idstring (uuid)
open*boolean

curl

curl -X POST 'https://api.talonic.com/v1/governance/shares/workspace' \
  -H "Authorization: Bearer $TALONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "scope_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "source_connection_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "open": true
}'

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/governance/shares/workspace", {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "scope_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "source_connection_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "open": true
  }),
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 200 — The scope, with `open_to_workspace`.

{}
  • 400 — The request is invalid.
  • 401 — Missing or invalid API key.
  • 403 — The API key does not have the required scope.
  • 404 — The requested resource was not found.
  • 409 — The request conflicts with the current resource state.
  • 429 — Daily rate limit exceeded.