Saltar al contenido principal
POST
A token for real-time co-editing on Doconda's server: your backend asks for it, the editor connects with it (`collab.token`)

Autorizaciones

Authorization
string
header
requerido

Authorization: Bearer ak_eu_…, a key from the dashboard (API keys).

Cuerpo

application/json
room
string
requerido

Your id for the document: everyone with a token for the same room edits it together.

Required string length: 1 - 200
Pattern: ^[\w.:-]+$

Respuesta

Signed token for that room.

token
string
requerido

Give it to the editor (collab.token). It only lets the editor join this room, from one of the licence's domains, for 10 minutes; a connection already open stays open.

expires_at
string<date-time>
requerido
Pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$