Skip to main content

getCollaborationSessionId

Agent Runtimes


Agent Runtimes / api/spacer/documents / getCollaborationSessionId

Function: getCollaborationSessionId()

getCollaborationSessionId(token, documentId, baseUrl?): Promise<CollaborationSessionResponse>

Defined in: src/api/spacer/documents.ts:31

Get collaboration session ID for a document.

This function attempts to retrieve the collaboration session ID from the document API.

Parameters

token

string

Authentication token

documentId

string

Document UID

baseUrl?

string = DEFAULT_SERVICE_URLS.SPACER

Base URL for the API (defaults to production)

Returns

Promise<CollaborationSessionResponse>

Promise resolving to collaboration session response