API reference

Decks

The governed document. A deck owns its artifact versions, its share state, and its lifecycle status (draft → in review → published → archived). State transitions are field updates — publish a deck by setting `status`, not by calling a verb.

Related guides: Import a deck · Sharing & permissions

Attributes

  • idstringrequired
  • objectstringrequired
  • titlestringrequired
  • statusstringrequired
  • current_artifactstring | nullrequired
  • share_modestringrequired
  • external_idstring | nullrequired
  • folderstring | nullrequired
  • livemodebooleanrequired
  • metadataobjectrequired

    Arbitrary key/value map; merge-on-write (§6).

  • trashed_attimestamprequired
  • created_attimestamprequired
  • updated_attimestamprequired

List decks

GET/v1/decks

Lists decks in the active org, newest first. Filter by `status`; paginate with `cursor`.

Requires an API key (bearer), scoped to the active org.

Query parameters

  • limitintegeroptionaldefault 201–100
  • cursorstringoptional
  • orderstringoptionaldefault "created_at.desc"

    Possible values: created_at.desc, created_at.asc

  • statusstringoptional
  • trashedstringoptional

    List the trash instead of active decks.

    Possible values: true, false

  • folderstringoptional

    Filter to a folder id, or `root` for unfiled decks.

Returns

  • 200A page of decks.

Failures use the standard error envelope with a closed set of codes.

Create or upsert a deck

POST/v1/decks

Creates a deck. If `external_id` is provided and already exists in the org, the existing deck is updated instead (200); otherwise a new deck is created (201).

Requires an API key (bearer), scoped to the active org. Supports idempotency keys.

Body parameters

  • titlestringoptionalmax 300 chars
  • statusstringoptional
  • share_modestringoptional
  • external_idstringoptionalmax 200 chars
  • metadataobjectoptional

    Arbitrary key/value map; merge-on-write (§6).

Returns

  • 200The upserted (already-existing) deck.
  • 201The newly created deck.

Failures use the standard error envelope with a closed set of codes.

Retrieve a deck

GET/v1/decks/{id}

Fetches a deck by Renza id or by `external_id` within the active org.

Requires an API key (bearer), scoped to the active org.

Path parameters

  • idstringrequired

Returns

  • 200The deck.

Failures use the standard error envelope with a closed set of codes.

Update a deck

PATCH/v1/decks/{id}

Partial update — only provided fields change. `metadata` merges (key→value sets, key→null deletes, {} clears all). State transitions are field updates (no verb routes).

Requires an API key (bearer), scoped to the active org. Supports idempotency keys.

Path parameters

  • idstringrequired

Body parameters

  • titlestringoptionalmax 300 chars
  • statusstringoptional
  • share_modestringoptional
  • folderstring | nulloptional

    Move to a folder, or null for the root.

  • current_artifactstringoptional

    Roll the deck back to one of its own prior artifact versions.

  • metadataobjectoptional

    Arbitrary key/value map; merge-on-write (§6).

  • trashedbooleanoptional

    Set false to restore a trashed deck.

Returns

  • 200The updated deck.

Failures use the standard error envelope with a closed set of codes.

Trash or permanently delete a deck

DELETE/v1/decks/{id}

Moves the deck to the trash (soft delete; restore with `PATCH { trashed: false }`). Pass `?permanent=true` to permanently delete an already-trashed deck and its stored content (irreversible).

Requires an API key (bearer), scoped to the active org. Supports idempotency keys.

Path parameters

  • idstringrequired

Query parameters

  • permanentstringoptional

    Possible values: true, false

Returns

  • 200The trashed deck, or a deletion confirmation when `?permanent=true`.

Failures use the standard error envelope with a closed set of codes.

List a deck's viewers

GET/v1/decks/{id}/views

Who opened this deck through its share links (Renza Pro). Link-mode shares return named viewers (names are self-reported); public-mode shares return aggregate counts only. Views are deduplicated per viewer within a 30-minute window.

Requires an API key (bearer), scoped to the active org.

Path parameters

  • idstringrequired

Returns

  • 200The deck's viewers.

Failures use the standard error envelope with a closed set of codes.