Skip to content

Get Editor Context

GET
/api/divinity/editor-context/{project_id}

Return the most recently-recorded editor context for a project.

project_id
required
Project Id
string

Successful Response

EditorContextRecord

Response shape — includes server-stamped updated_at.

Inherits every field from :class:EditorContextPayload and adds the timestamp the server assigned on PUT. Separate class so the POST body can omit updated_at without Pydantic rejecting the payload.

object
projectId
required
Projectid
string
documentId
Any of:
string
chapterId
Any of:
string
sceneId
Any of:
string
cursorOffset
Any of:
integer
lastEditAt
Any of:
string
metadata
Metadata
object
key
additional properties
string
updatedAt
required
Updatedat
string

Validation Error

HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object