Skip to main content

Team Endpoint Reference

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

Members, invitations, pending approvals, roles and permissions, custom roles, groups, access change proposals and document visibility rules. A credential acts as the person who created it (or the OAuth user) and never exceeds them: nobody changes their own role or permissions, and a change may grant only permissions that person holds.

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

PUT/v1/team/members/{userId}/access-until

Required scope: team:write

Path parameters

userId*string (uuid)

Request body (application/json)

access_until*string (date-time) | null

curl

curl -X PUT 'https://api.talonic.com/v1/team/members/3fa85f64-5717-4562-b3fc-2c963f66afa6/access-until' \
  -H "Authorization: Bearer $TALONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "access_until": "2026-01-15T09:30:00Z"
}'

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/team/members/3fa85f64-5717-4562-b3fc-2c963f66afa6/access-until", {
  method: 'PUT',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "access_until": "2026-01-15T09:30:00Z"
  }),
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 200 — Make a membership temporary: done.

{
  "user_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "access_until": "2026-01-15T09:30:00Z"
}
  • 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.
  • 429 — Daily rate limit exceeded.