Projects

Create a project around a script that belongs to no project.

Wraps the script in a new project named after it, so its Series Bible, seasons, videos and publishing become reachable — the same path the Writers Lab uses. Pass exactly one of scriptId (the script id, or the id in its Writers Lab URL) or scriptUploadId. Idempotent by the script: a script already in a project returns that project with created: false. Once in a project, the script's Writers Lab pages open on the project Overview until its Series Bible is complete; workspacePath is that Overview. Costs no credits. Requires Idempotency-Key for safe retries.

post/story-projects/from-script

Request

  • Base URL: https://docs.sleeperhit.studio/api/v1
  • URL: https://docs.sleeperhit.studio/api/v1/story-projects/from-script
  • Auth: HTTP bearer

Headers

Idempotency-Keystring required

Customer-generated stable identifier for safe retries of idempotent POST requests.

Request body

scriptIdstring

The script id, or the script id shown in its Writers Lab URL.

scriptUploadIdstring

Any version (script upload) of the script.

Response

The project that now holds the script.

scriptIdstring required

The wrapped script.

createdboolean required

True when this call made a new project; false when the script was already in one, or rejoined the live project that already wrapped it.

workspacePathstring required

The project Overview in the Writers Lab, relative to the site origin.

Changes

No recorded changes to this operation across all 2 revisions of this API.