createLexical
Agent Runtimes / api/spacer/lexicals / createLexical
Function: createLexical()
createLexical(
token,data,baseUrl?):Promise<CreateLexicalResponse>
Defined in: src/api/spacer/lexicals.ts:34
Create a new lexical document.
Parameters
token
string
Authentication token
data
Document creation configuration
baseUrl?
string = DEFAULT_SERVICE_URLS.SPACER
Base URL for the API (defaults to production)
Returns
Promise<CreateLexicalResponse>
Promise resolving to the created document response