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

# Rotate a one-time audience secret

PUT https://api.bibleit.app/v1/lives/{live_id}/audience-secret
Content-Type: application/json

Replace the owned Live's audience secret with a newly generated secret, disclosed only in this response with sequence and `ETag`. Send `{}` as JSON. An unprotected Live returns 409 `not_protected`; the previous secret no longer authenticates new audience access. Requires the current Live `ETag` in `If-Match` (428 if missing, 412 if stale). This does not rotate an API service token. `Idempotency-Key` is unsupported; never automatically replay an ambiguous rotation.

**Required scopes:** `live.update`. Scopes intersect current authority; browser cookies never authenticate REST.

Reference: https://docs.bibleit.dev/api-reference/live-controls/rotate-live-audience-secret

## Authentication

- `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) — 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) — 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) — Current strong Live ETag. Missing:428; stale:412. No automatic retry.

## Response

### 200

Successful operation

- `live_id` (string, required)
- `sequence` (integer, required)
- `protected` (boolean, required)
- `secret` (string, optional)

## Examples

**Request**

```json
{}
```

**Response**

```json
{
  "live_id": "string",
  "sequence": 1,
  "protected": true,
  "secret": "string"
}
```

**SDK Code**

```python
import requests

url = "https://api.bibleit.app/v1/lives/live_id/audience-secret"

payload = {}
headers = {
    "If-Match": "If-Match",
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.put(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/audience-secret"

	payload := strings.NewReader("{}")

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

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

}
```