Skip to content

Data model

{
"id": "script_...",
"object": "script",
"project_id": "project_...",
"title": "Pilot",
"subtitle": null,
"written_by": "Writer Name",
"logline": null,
"genre": null,
"created_at": "2026-06-24T10:00:00Z",
"last_edited_at": "2026-06-24T12:00:00Z",
"links": {}
}

latest_snapshot_id and snapshots are included by GET /scripts/{script_id}.

{
"id": "snapshot_...",
"object": "script_snapshot",
"description": null,
"revision_color": null,
"created_at": "2026-06-24T12:00:00Z",
"formats": ["json", "md"]
}
{
"object": "document",
"paragraphs": [
{
"id": "paragraph-id",
"object": "script_paragraph",
"kind": "action",
"text": "FADE IN:",
"marks": []
}
]
}

Paragraphs expose plain text plus character-range marks.

{
"text": "FADE IN:",
"marks": [
{ "start": 0, "end": 4, "type": "bold" },
{ "start": 5, "end": 8, "type": "link", "value": "https://example.com" }
]
}

start and end are zero-based offsets into text. Marks may overlap. Supported types are bold, italic, underline, strikethrough, upper-case, highlight, text-color, and link.

Paragraphs can include alternates, which use the same text and marks shape.