Skip to main content
GET
Read app content on a draft

Authorizations

Authorization
string
header
required

Can be either an Organization API Key or Personal Access Token (PAT).

Include in the Authorization header as: Bearer YOUR_TOKEN

Path Parameters

draftIdentifier
string
required

Draft identifier. Use List document drafts to retrieve draft IDs.

Example:

"def456"

documentId
string
required

Published document identifier.

Example:

"abc123"

Query Parameters

pretty
enum<string>

Set true or 1 to pretty-print (2-space indent) the response; false / 0 (the default) is compact. Key ordering is deterministic regardless.

Available options:
0,
1,
true,
false

Response

The draft's app content.

The published app's HTML and sandbox settings.

html
string
required

The complete app HTML document.

settings
object
required

The app's sandbox settings. A write replaces the whole object; omitted fields use their locked-down defaults. Host lists are normalized (deduped, invalid or Omni-owned hosts dropped) before they are stored.