Create Template

Create a new Liveblocks template room.

Room ID is auto-generated with format: {env}:v1:global:template:{uuid4} Requires super user permissions.

Authentication

AuthorizationBearer

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

Request

This endpoint expects an object.
metadatamap from strings to any or nullOptional

Room metadata as key-value pairs (max 50 entries, keys max 40 chars, values max 256 chars)

Response

Successful Response
template_idstring
The unique identifier for the template
created_atstringformat: "date-time"
Timestamp when the template was created
metadatamap from strings to any or null

Template metadata as key-value pairs

last_connection_atstring or nullformat: "date-time"
Timestamp of the last connection to the template

Errors