> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.bibleit.dev/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.bibleit.dev/_mcp/server.

# Create an organization presentation

POST https://api.bibleit.app/v1/organizations/{organization_id}/presentations
Content-Type: application/json

**Required scopes:** `presentation.create`.

Creates an empty version-1 presentation at saved revision 0 with the supplied name. Enforces existing organization deck allocation quotas; quota exhaustion returns 409. Service tokens create organization-owned decks without a human creator or member seat. Returns the document and strong ETag even if the creator scope does not include presentation.get. Does not publish to a Live. Optional Idempotency-Key atomically records a successful creation for 24-hour replay; current authorization is rechecked. Changed payload or original If-Match returns 409 idempotency_conflict. Replay precedes stale-version and quota evaluation.

**Response headers:**

- `ETag` (201): Strong validator covering presentation ID, organization, revision and rights-normalized document. Browser/editor saves and changed effective rights notices invalidate it.
- `Location` (201): Relative presentation resource URL.

Reference: https://docs.bibleit.dev/api-reference/organizations/presentations/create-presentation

## Authentication

- `Authorization` header (bearer token, required) — Organization-owned service token. Issue the initial token in organization credential settings. Scopes are documented per operation via x-required-scopes; they are not OAuth scopes.

## Request

### Path parameters

- `organization_id` (string, required) — Immutable organization UUID bound to the service token.

### Headers

- `Idempotency-Key` (string, optional) — Optional case-sensitive retry key, retained 24 hours from successful commit. Scoped to credential principal (stable service-token ID; personal bt_ credential; delegated OAuth grant), account and concrete method/path. Payload, If-Match, query string and Content-Type must match. JSON object key order is ignored; queue reference casing/defaults are normalized; raw upload/import bytes are hashed. Replays retain original success body, Location and ETag with a fresh X-Request-Id, after current authority/ownership/processing/library checks. Same scope/key with changed input:409 idempotency_conflict. Concurrent requests serialize; a contended retry lock can return 409 idempotency_in_progress; bounded database waits can return 503. Errors are not recorded. After expiry, a key is treated as new; original resource/job lifetime is unchanged. No key means no retry guarantee.

### Body (application/json)

This endpoint expects a CreatePresentation.

- `name` (string, required) — UTF-8 text, at most 200 bytes; NUL is rejected.

## Response

### 201

Successful operation

- `id` (string, required)
- `organization_id` (string, required)
- `revision` (integer, required)
- `document` (PresentationDocument, required) — Version-1 document, at most 2,000,000 encoded JSON bytes. Slide IDs are unique across the deck, element IDs within each slide. Omitted slide background is preserved as omitted. Save retains caller slide/element IDs; no automatic publishing. Existing same-workspace ready media references are checked by the domain; upload and portable import endpoints provide ready media. Uploading alone never modifies the saved document.

## Errors

### 401 Unauthorized Error

Error response. 400 malformed JSON; 401 invalid/expired/revoked token; 403 denied scope or domain policy; 404 unknown/foreign resource; 405 unsupported method; 409 quota/conflict or stopped Live; 412 stale state validator; 428 missing If-Match; 413 body too large; 415 unsupported media type; 422 invalid fields; 429 admission budget exhausted; 503 unavailable dependency.

- `type` (any, required)
- `title` (string, required)
- `status` (integer, required)
- `code` (string, required)
- `request_id` (string, required)

### 403 Forbidden Error

Error response. 400 malformed JSON; 401 invalid/expired/revoked token; 403 denied scope or domain policy; 404 unknown/foreign resource; 405 unsupported method; 409 quota/conflict or stopped Live; 412 stale state validator; 428 missing If-Match; 413 body too large; 415 unsupported media type; 422 invalid fields; 429 admission budget exhausted; 503 unavailable dependency.

- `type` (any, required)
- `title` (string, required)
- `status` (integer, required)
- `code` (string, required)
- `request_id` (string, required)

### 404 Not Found Error

Error response. 400 malformed JSON; 401 invalid/expired/revoked token; 403 denied scope or domain policy; 404 unknown/foreign resource; 405 unsupported method; 409 quota/conflict or stopped Live; 412 stale state validator; 428 missing If-Match; 413 body too large; 415 unsupported media type; 422 invalid fields; 429 admission budget exhausted; 503 unavailable dependency.

- `type` (any, required)
- `title` (string, required)
- `status` (integer, required)
- `code` (string, required)
- `request_id` (string, required)

### 409 Conflict Error

Domain conflict, changed idempotency input (idempotency_conflict), or concurrent retry lock contention (idempotency_in_progress).

- `type` (any, required)
- `title` (string, required)
- `status` (integer, required)
- `code` (string, required)
- `request_id` (string, required)

### 422 Unprocessable Entity Error

Invalid input or invalid_idempotency_key.

- `type` (any, required)
- `title` (string, required)
- `status` (integer, required)
- `code` (string, required)
- `request_id` (string, required)

### 429 Too Many Requests Error

Error response. 400 malformed JSON; 401 invalid/expired/revoked token; 403 denied scope or domain policy; 404 unknown/foreign resource; 405 unsupported method; 409 quota/conflict or stopped Live; 412 stale state validator; 428 missing If-Match; 413 body too large; 415 unsupported media type; 422 invalid fields; 429 admission budget exhausted; 503 unavailable dependency.

- `type` (any, required)
- `title` (string, required)
- `status` (integer, required)
- `code` (string, required)
- `request_id` (string, required)

### 503 Service Unavailable Error

Error response. 400 malformed JSON; 401 invalid/expired/revoked token; 403 denied scope or domain policy; 404 unknown/foreign resource; 405 unsupported method; 409 quota/conflict or stopped Live; 412 stale state validator; 428 missing If-Match; 413 body too large; 415 unsupported media type; 422 invalid fields; 429 admission budget exhausted; 503 unavailable dependency.

- `type` (any, required)
- `title` (string, required)
- `status` (integer, required)
- `code` (string, required)
- `request_id` (string, required)

## Types

### PresentationDocument

Version-1 document, at most 2,000,000 encoded JSON bytes. Slide IDs are unique across the deck, element IDs within each slide. Omitted slide background is preserved as omitted. Save retains caller slide/element IDs; no automatic publishing. Existing same-workspace ready media references are checked by the domain; upload and portable import endpoints provide ready media. Uploading alone never modifies the saved document.

- `version` (integer, required)
- `name` (string, required) — UTF-8 text, at most 200 bytes; NUL is rejected.
- `slides` (list of PresentationSlide, required)

### PresentationSlide

- `id` (string, required)
- `elements` (list of PresentationElement, required)
- `background` (string, optional)

### PresentationElement

- `type`: `text` (text)
  - `height` (integer, required)
  - `id` (string, required)
  - `text` (string, required) — UTF-8 text, at most 20000 bytes; NUL is rejected.
  - `width` (integer, required)
  - `x` (integer, required)
  - `y` (integer, required)
  - `rotation` (integer, optional)
  - `style` (PresentationElementStyle, optional)
- `type`: `verse` (verse)
  - `attribution` (string, required) — UTF-8 text, at most 2000 bytes; NUL is rejected.
  - `edition` (string, required) — UTF-8 text, at most 2000 bytes; NUL is rejected.
  - `height` (integer, required)
  - `id` (string, required)
  - `reference` (string, required) — UTF-8 text, at most 200 bytes; NUL is rejected.
  - `text` (string, required) — UTF-8 text, at most 20000 bytes; NUL is rejected.
  - `translation` (string, required) — UTF-8 text, at most 200 bytes; NUL is rejected.
  - `width` (integer, required)
  - `x` (integer, required)
  - `y` (integer, required)
  - `rotation` (integer, optional)
  - `style` (PresentationElementStyle, optional)
- `type`: `shape` (shape)
  - `height` (integer, required)
  - `id` (string, required)
  - `shape` (enum, required)
    - Allowed values: `rectangle`, `rounded_rectangle`, `ellipse`, `triangle`, `diamond`, `arrow`, `line`, `line_arrow`, `elbow_connector`, `curved_connector`
  - `width` (integer, required)
  - `x` (integer, required)
  - `y` (integer, required)
  - `rotation` (integer, optional)
  - `style` (PresentationElementStyle, optional)
- `type`: `image` (image)
  - `alt` (string, required) — UTF-8 text, at most 1000 bytes; NUL is rejected.
  - `asset` (string, required)
  - `fit` (enum, required)
    - Allowed values: `contain`, `cover`
  - `height` (integer, required)
  - `id` (string, required)
  - `width` (integer, required)
  - `x` (integer, required)
  - `y` (integer, required)
  - `rotation` (integer, optional)
  - `style` (PresentationElementStyle, optional)
- `type`: `video` (video)
  - `asset` (string, required)
  - `fit` (enum, required)
    - Allowed values: `contain`, `cover`
  - `height` (integer, required)
  - `id` (string, required)
  - `width` (integer, required)
  - `x` (integer, required)
  - `y` (integer, required)
  - `loop` (boolean, optional)
  - `muted` (boolean, optional)
  - `poster` (string, optional)
  - `rotation` (integer, optional)
  - `style` (PresentationElementStyle, optional)
- `type`: `youtube` (youtube)
  - `height` (integer, required)
  - `id` (string, required)
  - `video_id` (string, required)
  - `width` (integer, required)
  - `x` (integer, required)
  - `y` (integer, required)
  - `rotation` (integer, optional)
  - `style` (PresentationElementStyle, optional)

### PresentationElementStyle

- `font_size` (double, optional)
- `font_family` (enum, optional)
  - Allowed values: `sans`, `serif`, `mono`
- `color` (string, optional)
- `bold` (boolean, optional)
- `italic` (boolean, optional)
- `align` (enum, optional)
  - Allowed values: `left`, `center`, `right`
- `line_height` (double, optional)
- `fill` (string, optional)
- `stroke` (string, optional)
- `stroke_width` (double, optional)
- `stroke_style` (enum, optional)
  - Allowed values: `solid`, `dashed`, `dotted`
- `opacity` (double, optional)

## Examples

**Request**

```json
{
  "name": "Sunday"
}
```

**Response**

```json
{
  "id": "string",
  "organization_id": "string",
  "revision": 1,
  "document": {
    "version": 1,
    "name": "Sunday",
    "slides": [
      {
        "id": "opening",
        "elements": [
          {
            "height": 560,
            "id": "heading",
            "text": "Welcome",
            "type": null,
            "width": 1120,
            "x": 80,
            "y": 80
          }
        ],
        "background": "#ffffff"
      }
    ]
  }
}
```

**SDK Code**

```python
import requests

url = "https://api.bibleit.app/v1/organizations/organization_id/presentations"

payload = { "name": "Sunday" }
headers = {
    "Idempotency-Key": "integration-7c642889-60eb-47ed-a16c-13e290e3f054",
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```go
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.bibleit.app/v1/organizations/organization_id/presentations"

	payload := strings.NewReader("{\n  \"name\": \"Sunday\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Idempotency-Key", "integration-7c642889-60eb-47ed-a16c-13e290e3f054")
	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```