GET /v1/render/presets
Lists the style presets `style` can name (backgrounds, window frames, cursors, caption styles, click effects), with a preview image for each.

Authentication

Bearer Token (b3os_sk_ API key or b3os_pat_ token) API Key (cookie: __Host-b3os_session)

Query Parameters

kind string optional query
Only presets of this kind.

Responses

200 The presets.
application/json
object string REQUIRED
Enum: list
data object[] REQUIRED
Array of:
id string REQUIRED
A preset ID from `GET /v1/render/presets`, such as `midnight`, `browser-dark` or `mac`.
object string REQUIRED
Enum: preset
kind string REQUIRED
Enum: background, frame, cursor, captions, click_effect
name string REQUIRED
preview_url string (uri)
A preview image of the preset, a B3OS static asset: `https://beta.b3os.org/assets/presets/<preset>.<ext>` (B3OS's own media are never served from `usercontent.b3os.org`, which holds customer bytes only).
next_cursor string | null REQUIRED
400 The request failed validation (`invalid_request`, `invalid_url`).
401 Missing, malformed, expired or revoked credentials (`unauthorized`).
403 Authenticated but not allowed (`forbidden`, `egress_denied`).
429 A rate, concurrency or quota limit applies (`rate_limited`, `concurrency_limited`, `quota_exceeded`).
500 Something failed inside B3OS (`internal`). Retry with backoff.
503 The node or the product is not available right now (`node_unavailable`, `product_unavailable`, `capacity_unavailable`).
curl -X GET 'https://beta-api.b3os.org/v1/render/presets' \  -H 'Authorization: Bearer YOUR_API_TOKEN'
const response = await fetch('https://beta-api.b3os.org/v1/render/presets', {  method: 'GET',  headers: {      "Authorization": "Bearer YOUR_API_TOKEN"  }});const data = await response.json();console.log(data);
import requestsheaders = {    'Authorization': 'Bearer YOUR_API_TOKEN'}response = requests.get('https://beta-api.b3os.org/v1/render/presets', headers=headers)print(response.json())
200 Response
{  "object": "list",  "data": [    {      "id": "midnight",      "object": "preset",      "kind": "background",      "name": "Midnight",      "preview_url": "https://beta.b3os.org/assets/presets/midnight.webp"    },    {      "id": "browser-dark",      "object": "preset",      "kind": "frame",      "name": "Browser (dark)",      "preview_url": "https://beta.b3os.org/assets/presets/browser-dark.webp"    }  ],  "next_cursor": null}
Ask a question... ⌘I