Documents
Create Document Editing Session
Creates a new editing session for the Embedded Editor. The response includes an E-Token, which is required to open the document.
🚧 Important: The Embedded Editor can only open documents that have a draft status.
Limitations
-
Single Active Session per User-Document Pair Only one editing session can be active at a time for a specific user and document. Creating a new session for the same user-document pair will automatically invalidate the previous one.
-
Weekly Session Cap A maximum of 250 editing sessions can be created for a single document per week. Any attempt to exceed this limit will result in a 403 Forbidden error.
post/public/v1/documents/{id}/editing-sessions
Path parameters
idstring required
Document ID
Request body
Example request
{
"email": "john.doe@pandadoc.com",
"lifetime": 3600
}Response
Document Editing Session created
Example response
{
"id": "ce9825e5-3210-4a8f-1230-f32b643295d2",
"email": "eric@pandadoc.com",
"expires_at": "2025-01-10T00:09:09.612651Z",
"key": "985b695b56eaaa571e9bb8e522afd5bd335c32d7",
"token": "985b695b56eaaa571e9bb8e522afd5bd335c32d7",
"document_id": "pSgK5XYZjyg3zXYZxsoUWg"
}