For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
  • Introduction
    • Getting Started
    • Authentication
  • Guide
    • Common Code Patterns
    • Metrics
    • Glossary of Metrics
  • Data
  • Deal Management
  • AI
  • User
    • POSTClient Access Token
  • Liveblocks
    • POSTGet Liveblocks Token
  • user_file
    • GETList User Files
    • POSTUpload User File
    • POSTNotify Submission
    • GETDownload User File
    • DELDelete User File
LogoLogo
Liveblocks

Get Liveblocks Token

POST
/api/v1/auth/get-liveblocks-token
POST
/api/v1/auth/get-liveblocks-token
$curl -X POST https://app.termina.ai/api/v1/auth/get-liveblocks-token \
> -H "Authorization: Bearer <token>" \
> -H "Content-Type: application/json" \
> -d '{
> "room_ids": [
> "termina-dev:v1:group:1:deal:2",
> "termina-dev:v1:group:1:deal:3"
> ]
>}'
1{
2 "token": "string"
3}
Get a Liveblocks access token for one or more rooms. This endpoint accepts a list of room_ids and returns a Liveblocks access token for the authenticated user. Each room_id must follow the pattern: {environment}:v1:group:{group_id}:deal:{deal_id} If an empty list is provided, issues a general Liveblocks user token with no room-specific permissions. If any room is inaccessible, the entire request fails (all-or-nothing). Returns: LiveblocksAccessResponse: Contains the Liveblocks access token Raises: HTTPException: 422 if any room_id pattern is invalid HTTPException: 404 if any room is not accessible to the user
Was this page helpful?
Previous

List User Files

Next
Built with

Get a Liveblocks access token for one or more rooms.

This endpoint accepts a list of room_ids and returns a Liveblocks access token for the authenticated user. Each room_id must follow the pattern: {environment}:v1:group:{group_id}:deal:{deal_id}

If an empty list is provided, issues a general Liveblocks user token with no room-specific permissions. If any room is inaccessible, the entire request fails (all-or-nothing).

Returns: LiveblocksAccessResponse: Contains the Liveblocks access token

Raises: HTTPException: 422 if any room_id pattern is invalid HTTPException: 404 if any room is not accessible to the user

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

This endpoint expects an object.
room_idslist of stringsRequired
List of Liveblocks room IDs to authorize access to. Empty list issues a general user token. All rooms must be accessible or the request will fail.

Response

Successful Response
tokenstring

Errors

422
Unprocessable Entity Error