> 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.

# Insert a scripture queue item

POST https://api.bibleit.app/v1/lives/{live_id}/queue-items
Content-Type: application/json

**Required scopes:** `live.update`, `translation.read`.

These resources represent the existing scripture stack published to the Live, not a separate draft playlist. Items are one canonical verse in one translation. IDs are scoped by Live, opaque, stable through reorder/metadata changes/restart, and change when a deleted item is recreated. Presentation mode returns 409 for queue reads/writes. Requires current If-Match; missing:428, stale:412, invalid:422. Current service scopes, organization ownership/status/processing and persisted sequence are rechecked before saving. Stopped Lives return 409. Changes persist before audience publication, switch/retain Reader mode, show remaining verses and resume a paused Live; deleting the last item clears the display. Reads a single enabled/installed verse under the organization library boundary. Inserts before an existing item ID or appends. Duplicate canonical verse/translation returns 409 queue_item_exists. At 100 items insertion returns 409 queue_full. A new item returns 201 with Location. Also accepts finite personal bearer tokens for resources owned by the caller’s personal account. Personal tokens cannot operate organization Lives, use collaborators’/children’s authority, or publish presentations. Current personal token scopes and user permissions are rechecked after waits. Registered delegated OAuth access tokens are accepted within these personal boundaries; /me and account metadata additionally require identity.read. 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): Shared Live sequence validator. Any relevant metadata, display, playback or workspace change invalidates it.
- `Location` (201): Relative URL of the created queue item.

Reference: https://docs.bibleit.dev/api-reference/lives/create-live-queue-item

## 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.
- `Authorization` header (bearer token, required) — Personal bearer credential issued through existing account settings or browser-approved CLI flow. Must be active, finite, unexpired, unrevoked, within any rotation overlap, and bound to an active personal membership/user/account. Explicit scopes intersect current user permissions; empty existing personal scopes inherit current user authority. Not an OAuth grant or service token. Browser cookies are ignored.
- `Authorization` header (bearer token, required) — Registered public-client OAuth for personal-account resources only. Exact registered HTTPS or fixed-port literal loopback redirect; S256 required; explicit consent. No organization/presentation authority. identity.read is required for /me and account metadata. Scope intersection with current user authority; no empty-scope inheritance.

## Request

### Path parameters

- `live_id` (string, required)

### Headers

- `If-Match` (string, required) — Shared Live sequence validator. Any relevant metadata, display, playback or workspace change invalidates it. Missing:428; stale:412; malformed, weak, wildcard or list:422.
- `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 CreateLiveQueueItem.

- `reference` (CreateLiveQueueItemReference, required)
- `before_item_id` (string, optional, nullable) — Insert before this item ID. Omit or use null to append. Unknown anchor returns 404.

## Response

### 201

Successful operation

- `id` (string, required) — Opaque stable queue item ID. Preserved through reordering, metadata edits and restart; removing/recreating a verse yields a new ID.
- `position` (integer, required) — Zero-based position in the entire current queue, not the current page.
- `verse` (DisplayVerse, required)

## 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

### CreateLiveQueueItemReference

- `translation` (string, required)
- `book_id` (integer, required)
- `chapter` (integer, required)
- `verse` (integer, required)

### DisplayVerse

- `book_id` (integer, required)
- `book` (string, required)
- `chapter` (integer, required)
- `verse` (integer, required)
- `text` (string, required)
- `translation` (string, required)
- `rights` (TranslationRights, required)
- `attribution` (string, required)

### TranslationRights

- `edition` (string, required)
- `rights_status` (string, required)
- `source_url` (string, required)
- `attribution` (string, required)
- `license_id` (string, optional)
- `license_url` (string, optional)
- `copyright` (string, optional)
- `change_notice` (string, optional)

## Examples

**Request**

```json
{
  "reference": {
    "translation": "web",
    "book_id": 1,
    "chapter": 1,
    "verse": 1
  }
}
```

**Response**

```json
{
  "id": "string",
  "position": 1,
  "verse": {
    "book_id": 1,
    "book": "string",
    "chapter": 1,
    "verse": 1,
    "text": "string",
    "translation": "string",
    "rights": {
      "edition": "string",
      "rights_status": "string",
      "source_url": "string",
      "attribution": "string",
      "license_id": "string",
      "license_url": "string",
      "copyright": "string",
      "change_notice": "string"
    },
    "attribution": "string"
  }
}
```

**SDK Code**

```python
import requests

url = "https://api.bibleit.app/v1/lives/live_id/queue-items"

payload = { "reference": {
        "translation": "web",
        "book_id": 1,
        "chapter": 1,
        "verse": 1
    } }
headers = {
    "Idempotency-Key": "integration-7c642889-60eb-47ed-a16c-13e290e3f054",
    "If-Match": "If-Match",
    "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/lives/live_id/queue-items"

	payload := strings.NewReader("{\n  \"reference\": {\n    \"translation\": \"web\",\n    \"book_id\": 1,\n    \"chapter\": 1,\n    \"verse\": 1\n  }\n}")

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

	req.Header.Add("Idempotency-Key", "integration-7c642889-60eb-47ed-a16c-13e290e3f054")
	req.Header.Add("If-Match", "If-Match")
	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))

}
```