# Besday API: full documentation > Besday (besday.com) is a marketplace for short vertical UGC videos. Brands pick a creator, send a brief and pay in credits (1 credit = US$1); the creator films the video and delivers it on Besday. There are two kinds of creator: real creators, who film on their own schedule and set their own prices, and AI creators, which Besday produces and delivers in 1 day. The Besday API is a REST API at https://besday.com/api/v1 that lets a brand do from its own software what it does on besday.com: browse creators and prices, create and pay for video orders from its credit balance, message creators, download delivered videos, approve them or ask for changes, and receive signed webhooks when an order changes. This file contains every page of https://besday.com/docs in Markdown. The OpenAPI 3.1 file is at https://besday.com/api/v1/openapi.json. --- # Besday API documentation > Besday API docs: order UGC videos from real and AI creators with a REST API. Keys, quickstart, endpoints, webhooks, errors and OpenAPI spec. Source: https://besday.com/docs · Updated 2026-12-03 · OpenAPI: https://besday.com/api/v1/openapi.json The Besday API is a REST API at https://besday.com/api/v1 that lets a brand do from its own software what it does on besday.com: browse creators and prices, create and pay for video orders from its credit balance, message creators, download delivered videos, approve them or ask for changes, and receive signed webhooks when an order changes. ## What is Besday? Besday (besday.com) is a marketplace for short vertical UGC videos. Brands pick a creator, send a brief and pay in credits (1 credit = US$1); the creator films the video and delivers it on Besday. There are two kinds of creator: real creators, who film on their own schedule and set their own prices, and AI creators, which Besday produces and delivers in 1 day. ## What can you do with the Besday API? - **Find creators**: search the marketplace by kind (real or AI), delivery time, price, language and style, with every price and add-on. - **Order videos**: create an order with a structured brief (goal, platforms, hooks, must-say lines, call to action). Besday prices it. - **Pay from credits**: pay orders from your brand’s credit balance in one call. - **Track every order**: read its status and timeline, or get a signed webhook the moment it changes. - **Talk to creators**: read and send messages in each order’s thread. - **Get the videos**: list delivered versions and download the files (byte ranges supported). - **Review**: approve a delivery, or ask for changes with a revision request. ## Quickstart in three calls Create an API key in **Besday → Settings → API keys** (owner or admin), then: Find a creator, order a video, pay for it: ```bash export BESDAY_API_KEY="bsd_live_…" # 1. Find real creators who deliver within 3 days curl "https://besday.com/api/v1/creators?kind=real&delivery=3d&limit=5" -H "Authorization: Bearer $BESDAY_API_KEY" # 2. Create the order (unpaid) with your brief curl -X POST "https://besday.com/api/v1/orders" -H "Authorization: Bearer $BESDAY_API_KEY" \ -H "Content-Type: application/json" -H "Idempotency-Key: $(uuidgen)" \ -d '{"creator":"maya-w","duration_seconds":30,"product_url":"https://yourbrand.com/p/serum","brief":{"goal":"sales","platforms":["tiktok"]}}' # 3. Pay it from your credits curl -X POST "https://besday.com/api/v1/orders/prj_…/pay" -H "Authorization: Bearer $BESDAY_API_KEY" -H "Idempotency-Key: $(uuidgen)" ``` The [quickstart](https://besday.com/docs/api/quickstart) walks through the whole flow, through to downloading the delivered video. ## API at a glance | | | |---|---| | Base URL | `https://besday.com/api/v1` | | Format | JSON over HTTPS, snake_case fields, an `object` field on every object | | Authentication | `Authorization: Bearer bsd_live_…` ([Authentication](https://besday.com/docs/api/authentication)) | | Money | Credits, as `*_credits` numbers. 1 credit = US$1 | | Versioning | `/v1` in the path; current version `2026-12-03` (header `Besday-Api-Version`) | | Rate limit | 120 requests a minute per key, 30 of them writes ([Rate limits](https://besday.com/docs/api/rate-limits)) | | Retries | `Idempotency-Key` on every POST ([Idempotency](https://besday.com/docs/api/idempotency)) | | Events | Signed webhooks with retries ([Webhooks](https://besday.com/docs/api/webhooks)) | | Machine-readable | [OpenAPI 3.1](https://besday.com/api/v1/openapi.json) · [llms.txt](https://besday.com/llms.txt) · [llms-full.txt](https://besday.com/llms-full.txt) | ## All endpoints | Method | Path | What it does | |---|---|---| | `GET` | [`/v1/me`](https://besday.com/docs/api/account#me-get) | Retrieve the account | | `GET` | [`/v1/credits`](https://besday.com/docs/api/credits#credits-get) | Retrieve the credit balance | | `GET` | [`/v1/creators`](https://besday.com/docs/api/creators#creators-list) | List creators | | `GET` | [`/v1/creators/{slug}`](https://besday.com/docs/api/creators#creators-get) | Retrieve a creator | | `POST` | [`/v1/orders`](https://besday.com/docs/api/orders#orders-create) | Create an order | | `POST` | [`/v1/orders/{id}/pay`](https://besday.com/docs/api/orders#orders-pay) | Pay for an order | | `GET` | [`/v1/orders`](https://besday.com/docs/api/orders#orders-list) | List orders | | `GET` | [`/v1/orders/{id}`](https://besday.com/docs/api/orders#orders-get) | Retrieve an order | | `DELETE` | [`/v1/orders/{id}`](https://besday.com/docs/api/orders#orders-delete) | Delete an unpaid order | | `POST` | [`/v1/orders/{id}/approve`](https://besday.com/docs/api/orders#orders-approve) | Approve a delivery | | `POST` | [`/v1/orders/{id}/revisions`](https://besday.com/docs/api/orders#orders-revision) | Request a revision | | `GET` | [`/v1/orders/{id}/messages`](https://besday.com/docs/api/messages#messages-list) | List messages | | `POST` | [`/v1/orders/{id}/messages`](https://besday.com/docs/api/messages#messages-create) | Send a message | | `GET` | [`/v1/orders/{id}/deliveries`](https://besday.com/docs/api/deliveries#deliveries-list) | List deliveries | | `GET` | [`/v1/orders/{id}/deliveries/files/{file_id}`](https://besday.com/docs/api/deliveries#deliveries-file) | Download a file | | `POST` | [`/v1/webhook_endpoints`](https://besday.com/docs/api/webhook-endpoints#webhooks-create) | Create a webhook endpoint | | `GET` | [`/v1/webhook_endpoints`](https://besday.com/docs/api/webhook-endpoints#webhooks-list) | List webhook endpoints | | `DELETE` | [`/v1/webhook_endpoints/{id}`](https://besday.com/docs/api/webhook-endpoints#webhooks-delete) | Delete a webhook endpoint | | `POST` | [`/v1/webhook_endpoints/{id}/test`](https://besday.com/docs/api/webhook-endpoints#webhooks-test) | Send a test event | ## Frequently asked questions ### Does Besday have an API? Yes. The Besday API is a REST API at https://besday.com/api/v1. Brands use it to find creators, order and pay for UGC videos, message creators, download deliveries and get webhooks. ### How do I get a Besday API key? Sign in to besday.com as the brand’s owner or an admin, open Settings → API keys, and create a key. It is shown once. A brand can have 10 active keys. ### How much does the Besday API cost? The API is free to use. You pay only for the videos you order, from your credit balance (1 credit = US$1), at the same prices as on besday.com. ### How do I pay for orders through the API? Buy credits on besday.com (packs of 100, 250, 500, 1000, 2500 credits, or any amount from 25 to 10,000), then call POST /v1/orders/{id}/pay. If the balance is short, the API answers 402 with how many credits are missing. ### What is the difference between real and AI creators? Real creators are people with their own Besday account who film on their own schedule and set their own prices; they accept each order and can receive a physical product. AI creators are produced by Besday, sell at a fixed price table and deliver in 1 day. ### How do I know when a video is ready? Subscribe a webhook endpoint to `order.delivered`, or poll GET /v1/orders/{id} and watch for status `delivered`. Then list the deliveries and download the files. ### Is there an OpenAPI specification? Yes, OpenAPI 3.1 at https://besday.com/api/v1/openapi.json. It is generated from the same registry as these pages. ### Can I use the API from a browser? No. Keys act for your whole brand, so keep them on your server. The API sends no CORS headers. --- # Quickstart: order your first video > Order a UGC video with the Besday API in 7 steps: create a key, find a creator, create an order, pay from credits, track it, download and approve. Source: https://besday.com/docs/api/quickstart · Updated 2026-12-03 · OpenAPI: https://besday.com/api/v1/openapi.json This guide takes one order from start to finish with plain HTTP calls. Every step is a single request; the examples use cURL, and each reference page has the same call in Node.js and Python. ## Before you start - A Besday brand account (sign up at [besday.com/brands/join](https://besday.com/brands/join)) with a verified email. - Credits on the account. Buy them at **Credits** on besday.com; 1 credit = US$1. - An API key with **Read and write** access (Settings → API keys; owner or admin). 1. **Save your API key.** Copy the key when you create it (it is shown once) and keep it in an environment variable on your server: `export BESDAY_API_KEY="bsd_live_…"`. Check it with `GET /v1/me`. 2. **Find a creator.** Call `GET /v1/creators` with filters such as `kind=real`, `delivery=3d` or `price=under-100`. Each creator lists `prices` per video length, `add_ons`, `delivery_days` and whether it is `accepting_orders`. 3. **Create the order.** Call `POST /v1/orders` with the creator’s `slug`, a `duration_seconds` the creator sells, your `product_url` and a `brief`. You get back an order in status `draft` with its `price_credits`. 4. **Pay from your credits.** Call `POST /v1/orders/{id}/pay`. A real creator now has 48 hours to accept (`awaiting_acceptance`); an AI creator starts at once (`active`). A short balance answers 402 `insufficient_credits`. 5. **Track progress.** Register a webhook (`POST /v1/webhook_endpoints`) for `order.delivered`, or poll `GET /v1/orders/{id}`. Use `POST /v1/orders/{id}/messages` to talk to the creator. 6. **Review and download.** When the order is `delivered`, call `GET /v1/orders/{id}/deliveries`. Watch `preview_url`; on a real creator’s order, originals unlock after approval. 7. **Approve or ask for changes.** Call `POST /v1/orders/{id}/approve` to complete the order, or `POST /v1/orders/{id}/revisions` with what to change (2 rounds included). Without either, the order is approved automatically 5 days after delivery. ## Step 1: check your key ### Retrieve the account `GET /api/v1/me` Check a key: returns the brand, the key’s scope, the team member it acts as, and the credit balance. - Scope: `read` - Returns: 200 `account` cURL: ```bash curl "https://besday.com/api/v1/me" \ -H "Authorization: Bearer $BESDAY_API_KEY" ``` Node.js: ```javascript const res = await fetch("https://besday.com/api/v1/me", { headers: { Authorization: `Bearer ${process.env.BESDAY_API_KEY}`, }, }); const data = await res.json(); if (!res.ok) throw new Error(`${data.error.code}: ${data.error.message}`); ``` Python: ```python import os, uuid, requests res = requests.get( "https://besday.com/api/v1/me", headers={ "Authorization": f"Bearer {os.environ['BESDAY_API_KEY']}", }, timeout=30, ) res.raise_for_status() print(res.json()) ``` Response (200): ```json { "object": "account", "brand": { "id": "ba_2d61f0", "name": "Glow Lab", "website": "https://glowlab.example" }, "api_key": { "id": "key_8b2e44c1", "scope": "read_write" }, "acting_as": { "user_id": "usr_51c9aa", "email": "ops@glowlab.example", "role": "admin" }, "credits": { "balance_credits": 500, "spending_paused": false } } ``` Errors: `api_key_missing`, `api_key_invalid`, `rate_limited`. ## Step 2: find a creator ### List creators `GET /api/v1/creators` Search the marketplace with the same filters and sorts as besday.com. Returns creators with prices, add-ons and delivery time. - Scope: `read` - Returns: 200 a list of `creator` objects Query parameters: | Name | Type | Required | Description | |---|---|---|---| | `kind` | string | no | Real creators or AI creators. Omit for both. One of: `real`, `ai`. | | `search` | string | no | Free text over name, headline and bio (up to 120 characters). | | `delivery` | string | no | Delivers within 1, 3 or 7 days. One of: `1d`, `3d`, `7d`. | | `price` | string | no | Starting price band in credits. One of: `under-100`, `100-250`, `250-plus`. | | `language` | string | no | Speaks this language on camera. One of: `english`, `spanish`, `french`, `german`, `japanese`, `hindi`. | | `gender` | string | no | Creator gender. One of: `female`, `male`, `non-binary`. | | `age` | string | no | Age range. One of: `18-24`, `25-34`, `35-44`, `45-plus`. | | `specialty` | string | no | Content lane, e.g. `beauty-skincare`. Repeatable (any of). | | `trait` | string | no | Style trait, e.g. `high-energy`. Repeatable (all of). | | `platform` | string | no | Posts on this platform. One of: `tiktok`, `instagram`, `youtube`. | | `state` | string | no | US state code, e.g. `CA` (real creators). | | `available` | string | no | `1`: only creators taking orders now. One of: `1`. | | `sort` | string | no | Order of results. Default `featured`. One of: `featured`, `portfolio`, `rating`, `newest`, `price_low`, `price_high`. | | `limit` | integer | no | Page size, 1–100. Default 20. | | `cursor` | string | no | The `next_cursor` of the previous page. | cURL: ```bash curl "https://besday.com/api/v1/creators?kind=real&delivery=3d&limit=10" \ -H "Authorization: Bearer $BESDAY_API_KEY" ``` Node.js: ```javascript const res = await fetch("https://besday.com/api/v1/creators?kind=real&delivery=3d&limit=10", { headers: { Authorization: `Bearer ${process.env.BESDAY_API_KEY}`, }, }); const data = await res.json(); if (!res.ok) throw new Error(`${data.error.code}: ${data.error.message}`); ``` Python: ```python import os, uuid, requests res = requests.get( "https://besday.com/api/v1/creators?kind=real&delivery=3d&limit=10", headers={ "Authorization": f"Bearer {os.environ['BESDAY_API_KEY']}", }, timeout=30, ) res.raise_for_status() print(res.json()) ``` Response (200): ```json { "object": "list", "data": [ { "object": "creator", "id": "cr_7f3a9c21", "slug": "maya-w", "name": "Maya W.", "kind": "real", "headline": "Unhurried product demos that sound like a friend’s recommendation", "bio": "I film honest, warm product videos in natural light.", "specialty": "beauty-skincare", "traits": [ "warm-conversational" ], "languages": [ "english", "spanish" ], "gender": "female", "age_bracket": "25-34", "availability": "available", "away_until": null, "accepting_orders": true, "delivery_days": 3, "from_price_credits": 99, "prices": [ { "duration_seconds": 15, "price_credits": 99 }, { "duration_seconds": 30, "price_credits": 149 }, { "duration_seconds": 60, "price_credits": 249 } ], "custom_lengths": null, "add_ons": [ { "kind": "raw_footage", "price_credits": 49 }, { "kind": "extra_hooks", "price_credits": 25 }, { "kind": "captions", "price_credits": 19 } ], "max_quantity": 10, "portfolio_count": 6, "has_intro_reel": true, "image_url": "https://besday.com/api/creators/photo/cr_7f3a9c21/portrait.webp", "profile_url": "https://besday.com/app/brands/creators/maya-w" } ], "has_more": true, "next_cursor": "bzoyMA" } ``` Errors: `parameter_invalid`. Note: Unknown filter values are ignored, like on the website. ## Step 3: create the order ### Create an order `POST /api/v1/orders` Creates an unpaid order (status `draft`) with your brief. Besday computes the price from the creator’s prices; pay it with POST /v1/orders/{id}/pay. - Scope: `read_write` - Returns: 201 `order` - Supports `Idempotency-Key` Body parameters (JSON): | Name | Type | Required | Description | |---|---|---|---| | `creator` | string | yes | The creator’s `id` or `slug`. | | `duration_seconds` | integer | yes | Video length. One of 15, 30, 45, 60, 90, 120, 180 (the creator’s `prices` list what they sell); AI creators also take 195–600 in 15-second steps. | | `aspect_ratio` | string | no | Vertical video. Default `9:16`. One of: `9:16`. | | `quantity` | integer | no | Videos of the same brief, 1–10 (real creators). Default 1. | | `add_ons` | object[] | no | Real creators: `[{ "kind": "captions", "quantity": 1 }]`. Kinds: `raw_footage`, `extra_hooks`, `captions`, `rush`. `extra_hooks` takes quantity 1–5; `rush` halves the delivery time. | | `product_url` | string | no | The product page (http or https). | | `brief` | object | no | Structured brief, every field optional: `goal` (`awareness`, `sales`, `app_installs`, `other`), `goal_other`, `platforms` (`tiktok`, `instagram_reels`, `youtube_shorts`, `paid_ads`, `other`), `audience`, `key_messages[]`, `hooks[]`, `must_say`, `must_avoid`, `call_to_action`, `script`, `reference_links[]` (https), `anything_else`. | | `note` | string | no | Free-text brief (up to 1,000 characters), instead of `brief`. | | `requires_shipping` | boolean | no | Real creators: you will ship a physical product. The creator’s clock starts when it arrives. | cURL: ```bash curl -X POST "https://besday.com/api/v1/orders" \ -H "Authorization: Bearer $BESDAY_API_KEY" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "creator": "maya-w", "duration_seconds": 30, "add_ons": [ { "kind": "captions", "quantity": 1 } ], "product_url": "https://yourbrand.com/products/vitamin-c-serum", "requires_shipping": true, "brief": { "goal": "sales", "platforms": [ "tiktok", "instagram_reels" ], "audience": "Women 25–40 with sensitive skin", "key_messages": [ "Fragrance-free", "Visible glow in 2 weeks" ], "hooks": [ "I stopped wearing foundation because of this" ], "must_say": "Use code MAYA15", "must_avoid": "Medical claims", "call_to_action": "Tap the link to try it" } }' ``` Node.js: ```javascript const res = await fetch("https://besday.com/api/v1/orders", { method: "POST", headers: { Authorization: `Bearer ${process.env.BESDAY_API_KEY}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json", }, body: JSON.stringify({ "creator": "maya-w", "duration_seconds": 30, "add_ons": [ { "kind": "captions", "quantity": 1 } ], "product_url": "https://yourbrand.com/products/vitamin-c-serum", "requires_shipping": true, "brief": { "goal": "sales", "platforms": [ "tiktok", "instagram_reels" ], "audience": "Women 25–40 with sensitive skin", "key_messages": [ "Fragrance-free", "Visible glow in 2 weeks" ], "hooks": [ "I stopped wearing foundation because of this" ], "must_say": "Use code MAYA15", "must_avoid": "Medical claims", "call_to_action": "Tap the link to try it" } }), }); const data = await res.json(); if (!res.ok) throw new Error(`${data.error.code}: ${data.error.message}`); ``` Python: ```python import os, uuid, requests res = requests.post( "https://besday.com/api/v1/orders", headers={ "Authorization": f"Bearer {os.environ['BESDAY_API_KEY']}", "Idempotency-Key": str(uuid.uuid4()), }, json={ "creator": "maya-w", "duration_seconds": 30, "add_ons": [ { "kind": "captions", "quantity": 1 } ], "product_url": "https://yourbrand.com/products/vitamin-c-serum", "requires_shipping": True, "brief": { "goal": "sales", "platforms": [ "tiktok", "instagram_reels" ], "audience": "Women 25–40 with sensitive skin", "key_messages": [ "Fragrance-free", "Visible glow in 2 weeks" ], "hooks": [ "I stopped wearing foundation because of this" ], "must_say": "Use code MAYA15", "must_avoid": "Medical claims", "call_to_action": "Tap the link to try it" } }, timeout=30, ) res.raise_for_status() print(res.json()) ``` Response (201): ```json { "object": "order", "id": "prj_01HZX8Q4V2", "status": "draft", "creator": { "id": "cr_7f3a9c21", "slug": "maya-w", "name": "Maya W.", "kind": "real" }, "duration_seconds": 30, "aspect_ratio": "9:16", "quantity": 1, "add_ons": [ { "kind": "captions", "quantity": 1, "unit_price_credits": 19 } ], "price_credits": 168, "product_url": "https://yourbrand.com/products/vitamin-c-serum", "brief": { "goal": "sales", "goal_other": null, "platforms": [ "tiktok", "instagram_reels" ], "audience": "Women 25–40 with sensitive skin", "key_messages": [ "Fragrance-free", "Visible glow in 2 weeks" ], "hooks": [ "I stopped wearing foundation because of this" ], "must_say": "Use code MAYA15", "must_avoid": "Medical claims", "call_to_action": "Tap the link to try it", "script": null, "reference_links": [], "anything_else": null }, "note": null, "requires_shipping": true, "delivery_days": 3, "campaign_id": null, "paid_at": null, "accept_by": null, "accepted_at": null, "delivery_due_at": null, "delivered_at": null, "approved_at": null, "cancelled_at": null, "cancellation_reason": null, "created_at": "2026-12-03T17:02:11.000Z", "updated_at": "2026-12-03T17:02:11.000Z", "dashboard_url": "https://besday.com/app/brands/projects/prj_01HZX8Q4V2" } ``` Errors: `parameter_invalid`, `creator_unavailable`, `insufficient_scope`, `idempotency_key_reused`. Note: Accepted fields: `creator`, `duration_seconds`, `aspect_ratio`, `quantity`, `add_ons`, `product_url`, `brief`, `note`, `requires_shipping`. Any other field is refused (422), so a typo never goes unnoticed. ## Step 4: pay from your credits ### Pay for an order `POST /api/v1/orders/{id}/pay` Pays the order from your credits. A real creator then has 48 hours to accept; an AI creator starts at once. - Scope: `read_write` - Returns: 200 `order` - Supports `Idempotency-Key` Path parameters: | Name | Type | Required | Description | |---|---|---|---| | `id` | string | yes | The order id. | cURL: ```bash curl -X POST "https://besday.com/api/v1/orders/prj_01HZX8Q4V2/pay" \ -H "Authorization: Bearer $BESDAY_API_KEY" \ -H "Idempotency-Key: $(uuidgen)" ``` Node.js: ```javascript const res = await fetch("https://besday.com/api/v1/orders/prj_01HZX8Q4V2/pay", { method: "POST", headers: { Authorization: `Bearer ${process.env.BESDAY_API_KEY}`, "Idempotency-Key": crypto.randomUUID(), }, }); const data = await res.json(); if (!res.ok) throw new Error(`${data.error.code}: ${data.error.message}`); ``` Python: ```python import os, uuid, requests res = requests.post( "https://besday.com/api/v1/orders/prj_01HZX8Q4V2/pay", headers={ "Authorization": f"Bearer {os.environ['BESDAY_API_KEY']}", "Idempotency-Key": str(uuid.uuid4()), }, timeout=30, ) res.raise_for_status() print(res.json()) ``` Response (200): ```json { "object": "order", "id": "prj_01HZX8Q4V2", "status": "awaiting_acceptance", "creator": { "id": "cr_7f3a9c21", "slug": "maya-w", "name": "Maya W.", "kind": "real" }, "duration_seconds": 30, "aspect_ratio": "9:16", "quantity": 1, "add_ons": [ { "kind": "captions", "quantity": 1, "unit_price_credits": 19 } ], "price_credits": 168, "product_url": "https://yourbrand.com/products/vitamin-c-serum", "brief": { "goal": "sales", "goal_other": null, "platforms": [ "tiktok", "instagram_reels" ], "audience": "Women 25–40 with sensitive skin", "key_messages": [ "Fragrance-free", "Visible glow in 2 weeks" ], "hooks": [ "I stopped wearing foundation because of this" ], "must_say": "Use code MAYA15", "must_avoid": "Medical claims", "call_to_action": "Tap the link to try it", "script": null, "reference_links": [], "anything_else": null }, "note": null, "requires_shipping": true, "delivery_days": 3, "campaign_id": null, "paid_at": "2026-12-03T17:03:40.000Z", "accept_by": "2026-12-05T17:03:40.000Z", "accepted_at": null, "delivery_due_at": null, "delivered_at": null, "approved_at": null, "cancelled_at": null, "cancellation_reason": null, "created_at": "2026-12-03T17:02:11.000Z", "updated_at": "2026-12-04T15:00:00.000Z", "dashboard_url": "https://besday.com/app/brands/projects/prj_01HZX8Q4V2", "payment": { "spent_credits": 168, "balance_after_credits": 332 } } ``` Errors: `insufficient_credits`, `already_paid`, `email_unverified`, `member_limit`, `credits_blocked`, `creator_unavailable`, `order_state`, `not_found`. Note: On 402 `insufficient_credits` the error also carries `price_credits`, `balance_credits`, `shortfall_credits`, `suggested_top_up_credits` and `buy_credits_url`. ## Step 5: get told when it is delivered ### Create a webhook endpoint `POST /api/v1/webhook_endpoints` Registers an https URL for order events. The answer includes the signing secret, once. - Scope: `read_write` - Returns: 201 `webhook_endpoint` - Supports `Idempotency-Key` Body parameters (JSON): | Name | Type | Required | Description | |---|---|---|---| | `url` | string | yes | https URL on port 443 that resolves to public addresses. | | `events` | string[] | no | Event types to send, or `["*"]` (default) for all: `order.paid`, `order.awaiting_acceptance`, `order.awaiting_product`, `order.in_production`, `order.delivered`, `order.revision_requested`, `order.disputed`, `order.completed`, `order.cancelled`. | | `description` | string | no | Your label, up to 200 characters. | cURL: ```bash curl -X POST "https://besday.com/api/v1/webhook_endpoints" \ -H "Authorization: Bearer $BESDAY_API_KEY" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "url": "https://yourapp.com/webhooks/besday", "events": [ "order.delivered", "order.completed", "order.cancelled" ], "description": "Production" }' ``` Node.js: ```javascript const res = await fetch("https://besday.com/api/v1/webhook_endpoints", { method: "POST", headers: { Authorization: `Bearer ${process.env.BESDAY_API_KEY}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json", }, body: JSON.stringify({ "url": "https://yourapp.com/webhooks/besday", "events": [ "order.delivered", "order.completed", "order.cancelled" ], "description": "Production" }), }); const data = await res.json(); if (!res.ok) throw new Error(`${data.error.code}: ${data.error.message}`); ``` Python: ```python import os, uuid, requests res = requests.post( "https://besday.com/api/v1/webhook_endpoints", headers={ "Authorization": f"Bearer {os.environ['BESDAY_API_KEY']}", "Idempotency-Key": str(uuid.uuid4()), }, json={ "url": "https://yourapp.com/webhooks/besday", "events": [ "order.delivered", "order.completed", "order.cancelled" ], "description": "Production" }, timeout=30, ) res.raise_for_status() print(res.json()) ``` Response (201): ```json { "object": "webhook_endpoint", "id": "we_3f9d0c8e", "url": "https://yourapp.com/webhooks/besday", "description": "Production", "events": [ "order.delivered", "order.completed", "order.cancelled" ], "created_at": "2026-12-03T17:20:00.000Z", "secret": "whsec_Wq3m…(shown once)" } ``` Errors: `parameter_invalid`, `url_not_allowed`, `limit_reached`. ## Step 6: list and download the delivery ### List deliveries `GET /api/v1/orders/{id}/deliveries` Every delivered version of the order and its files, with preview and download links. - Scope: `read` - Returns: 200 a list of `delivery` objects Path parameters: | Name | Type | Required | Description | |---|---|---|---| | `id` | string | yes | The order id. | cURL: ```bash curl "https://besday.com/api/v1/orders/prj_01HZX8Q4V2/deliveries" \ -H "Authorization: Bearer $BESDAY_API_KEY" ``` Node.js: ```javascript const res = await fetch("https://besday.com/api/v1/orders/prj_01HZX8Q4V2/deliveries", { headers: { Authorization: `Bearer ${process.env.BESDAY_API_KEY}`, }, }); const data = await res.json(); if (!res.ok) throw new Error(`${data.error.code}: ${data.error.message}`); ``` Python: ```python import os, uuid, requests res = requests.get( "https://besday.com/api/v1/orders/prj_01HZX8Q4V2/deliveries", headers={ "Authorization": f"Bearer {os.environ['BESDAY_API_KEY']}", }, timeout=30, ) res.raise_for_status() print(res.json()) ``` Response (200): ```json { "object": "list", "originals_unlocked": false, "locked_reason": "Downloads unlock when you approve. Until then you watch a watermarked preview, which keeps the creator’s work safe while you review it.", "data": [ { "object": "delivery", "id": "dv_91aa2f", "order_id": "prj_01HZX8Q4V2", "version": 1, "status": "delivered", "delivered_at": "2026-12-06T18:40:00.000Z", "created_at": "2026-12-06T18:02:00.000Z", "files": [ { "object": "delivery_file", "id": "df_4c7e10", "slot": "Main video", "file_name": "maya-serum-v1.mp4", "media": "video", "mime_type": "video/mp4", "size_bytes": 48211904, "duration_seconds": 31.2, "width": 1080, "height": 1920, "preview_url": "https://besday.com/api/v1/orders/prj_01HZX8Q4V2/deliveries/files/df_4c7e10?variant=preview", "download_url": null } ] } ], "has_more": false, "next_cursor": null } ``` Errors: `not_found`. Note: On a real creator’s order, originals unlock when you approve; until then `download_url` is null and `preview_url` serves a watermarked preview. AI creators’ files download at once. ## Step 7: approve ### Approve a delivery `POST /api/v1/orders/{id}/approve` Approves the delivered video. The order completes, its licence is issued, and a real creator’s original files unlock. Safe to call twice. - Scope: `read_write` - Returns: 200 `order` - Supports `Idempotency-Key` Path parameters: | Name | Type | Required | Description | |---|---|---|---| | `id` | string | yes | The order id. | cURL: ```bash curl -X POST "https://besday.com/api/v1/orders/prj_01HZX8Q4V2/approve" \ -H "Authorization: Bearer $BESDAY_API_KEY" \ -H "Idempotency-Key: $(uuidgen)" ``` Node.js: ```javascript const res = await fetch("https://besday.com/api/v1/orders/prj_01HZX8Q4V2/approve", { method: "POST", headers: { Authorization: `Bearer ${process.env.BESDAY_API_KEY}`, "Idempotency-Key": crypto.randomUUID(), }, }); const data = await res.json(); if (!res.ok) throw new Error(`${data.error.code}: ${data.error.message}`); ``` Python: ```python import os, uuid, requests res = requests.post( "https://besday.com/api/v1/orders/prj_01HZX8Q4V2/approve", headers={ "Authorization": f"Bearer {os.environ['BESDAY_API_KEY']}", "Idempotency-Key": str(uuid.uuid4()), }, timeout=30, ) res.raise_for_status() print(res.json()) ``` Response (200): ```json { "object": "order", "id": "prj_01HZX8Q4V2", "status": "completed", "creator": { "id": "cr_7f3a9c21", "slug": "maya-w", "name": "Maya W.", "kind": "real" }, "duration_seconds": 30, "aspect_ratio": "9:16", "quantity": 1, "add_ons": [ { "kind": "captions", "quantity": 1, "unit_price_credits": 19 } ], "price_credits": 168, "product_url": "https://yourbrand.com/products/vitamin-c-serum", "brief": { "goal": "sales", "goal_other": null, "platforms": [ "tiktok", "instagram_reels" ], "audience": "Women 25–40 with sensitive skin", "key_messages": [ "Fragrance-free", "Visible glow in 2 weeks" ], "hooks": [ "I stopped wearing foundation because of this" ], "must_say": "Use code MAYA15", "must_avoid": "Medical claims", "call_to_action": "Tap the link to try it", "script": null, "reference_links": [], "anything_else": null }, "note": null, "requires_shipping": true, "delivery_days": 3, "campaign_id": null, "paid_at": "2026-12-03T17:03:40.000Z", "accept_by": "2026-12-05T17:03:40.000Z", "accepted_at": "2026-12-03T19:12:00.000Z", "delivery_due_at": "2026-12-07T15:00:00.000Z", "delivered_at": "2026-12-06T18:40:00.000Z", "approved_at": "2026-12-07T09:15:00.000Z", "cancelled_at": null, "cancellation_reason": null, "created_at": "2026-12-03T17:02:11.000Z", "updated_at": "2026-12-04T15:00:00.000Z", "dashboard_url": "https://besday.com/app/brands/projects/prj_01HZX8Q4V2" } ``` Errors: `order_state`, `not_found`. ## Next steps - Read the [order lifecycle](https://besday.com/docs/api/order-lifecycle) to handle every status. - Verify webhook signatures: [Webhooks](https://besday.com/docs/api/webhooks). - Make retries safe with [idempotency keys](https://besday.com/docs/api/idempotency). --- # Authentication > Authenticate to the Besday API with a bearer API key: how to create, scope, store, rotate and revoke keys, and what each auth error means. Source: https://besday.com/docs/api/authentication · Updated 2026-12-03 · OpenAPI: https://besday.com/api/v1/openapi.json Every request carries an API key in the `Authorization` header as a bearer token. There is no OAuth flow and no key in the URL. ```http GET /api/v1/me HTTP/1.1 Host: besday.com Authorization: Bearer bsd_live_8xQ2… ``` ## Create an API key 1. Sign in to besday.com as the brand’s **owner** or an **admin**. 2. Open **Settings → API keys** and choose **New API key**. 3. Name it after what will use it (for example “Shopify sync”) and pick its access: **Read and write** or **Read only**. 4. Copy the key. It is shown once; Besday stores only a keyed hash of it. ## Key format Keys look like `bsd_live_` followed by 43 characters (32 random bytes, base64url). Settings shows only the first and last characters afterwards. ## Scopes | Scope | Can | Cannot | |---|---|---| | `read` | Every GET: account, credits, creators, orders, messages, deliveries, webhooks | Anything that changes data (403 `insufficient_scope`) | | `read_write` | Everything in this API | Buy credits or manage keys and the team (those stay on besday.com) | ## Who a key acts as A key acts as the team member who created it, with that member’s current role. If they leave the team, their account is deleted, or the brand is suspended, every key they made stops working at once (401). Monthly spending limits the owner set for a member apply to their keys too. ## Keep keys safe - Keep keys on your server, in an environment variable or a secrets manager. Never in a browser, a mobile app or a repository. - Use one key per system, so you can revoke one without touching the others. - A brand can have 10 active keys. To rotate, create the new key, deploy it, then revoke the old one. - Revoking (Settings → API keys → Revoke) takes effect on the next request. ## Authentication errors | Status | Code | Meaning | |---|---|---| | 401 | `api_key_missing` | No `Authorization: Bearer` header was sent. | | 401 | `api_key_invalid` | The key is malformed, unknown or revoked, or its team member, brand or account is no longer active. | | 403 | `insufficient_scope` | A `read` key tried to change something. Create a `read_write` key. | | 403 | `email_unverified` | The key’s team member has not verified their email address, which Besday requires before paying. | --- # Errors > Every Besday API error code with its HTTP status and meaning, the JSON error envelope, and which errors are safe to retry. Source: https://besday.com/docs/api/errors · Updated 2026-12-03 · OpenAPI: https://besday.com/api/v1/openapi.json Errors use conventional HTTP status codes and one JSON shape. Branch on `error.type` for behaviour (retry or not) and on `error.code` for the exact reason; show `error.message` to people. ### The error object Every error answer has this shape, with the matching HTTP status. | Field | Type | Description | |---|---|---| | `error.type` | string | Broad class: decides whether to retry. | | `error.code` | string | Specific reason. Stable; see [Errors](https://besday.com/docs/api/errors). | | `error.message` | string | A sentence for a person. | | `error.param` | string | The parameter at fault, when there is one. | | `error.request_id` | string | Quote it to support. Also in the `X-Request-Id` header. | Example: ```json { "error": { "type": "invalid_request_error", "code": "parameter_invalid", "message": "Choose a supported video length.", "param": "duration_seconds", "request_id": "2f0c3e5a-7c1d-4a8e-9b6f-0d2e4c6a8b10" } } ``` ## Error types | Type | Status | What to do | |---|---|---| | `authentication_error` | 401 | The API key is missing, malformed, revoked, or no longer allowed to act for the brand. | | `permission_error` | 403 | The key is valid but may not do this (a read-only key writing, an unverified email paying, a spending limit). | | `not_found_error` | 404 | The object does not exist or does not belong to your brand. | | `invalid_request_error` | 400 | The request is malformed, a parameter is invalid, or the object is in a state that does not allow the action (400, 409, 413 or 422). | | `payment_error` | 402 | The brand does not have enough credits for this order. | | `rate_limit_error` | 429 | Too many requests with this key. Wait for the number of seconds in Retry-After. | | `api_error` | 500 | Something went wrong on Besday’s side. Safe to retry with the same Idempotency-Key. | ## Error codes | Code | Status | Meaning | |---|---|---| | `api_key_missing` | 401 | No `Authorization: Bearer` header was sent. | | `api_key_invalid` | 401 | The key is malformed, unknown or revoked, or its team member, brand or account is no longer active. | | `insufficient_scope` | 403 | A `read` key tried to change something. Create a `read_write` key. | | `email_unverified` | 403 | The key’s team member has not verified their email address, which Besday requires before paying. | | `member_limit` | 403 | Paying would pass the monthly spending limit the brand owner set for this team member. | | `credits_blocked` | 423 | Spending is paused on this brand’s credits. Contact Besday support. | | `not_found` | 404 | No such object for your brand. | | `route_not_found` | 404 | No such endpoint. Check the method and path against the reference. | | `invalid_json` | 400 | The body is not valid JSON. | | `parameter_invalid` | 422 | A parameter is missing or invalid; `param` names it. | | `order_state` | 409 | The order is not in a status that allows this action. | | `already_paid` | 409 | The order is already paid. | | `creator_unavailable` | 409 | The creator is not taking new orders right now. | | `download_locked` | 403 | Originals of a real creator’s order unlock when you approve the delivery; the watermarked preview is available before. | | `idempotency_key_reused` | 409 | This Idempotency-Key was already used with a different request. | | `idempotency_in_progress` | 409 | A request with this Idempotency-Key is still being processed. Retry in a second. | | `limit_reached` | 409 | The brand already has the most objects of this kind allowed (for example 5 webhook endpoints). | | `url_not_allowed` | 422 | A webhook URL must be https on port 443 and resolve only to public internet addresses. | | `insufficient_credits` | 402 | The order costs more credits than the brand has. The error carries the shortfall and a link to buy credits. | | `rate_limited` | 429 | Too many requests. Retry after the seconds in the Retry-After header. | | `internal_error` | 500 | An unexpected error. It was logged with the request id. | ## Which errors to retry - **Retry** `429` after `Retry-After` seconds, and `500`/`503` with exponential backoff, always with the same `Idempotency-Key`. - **Do not retry** `400`, `401`, `403`, `404`, `409` or `422` unchanged: fix the request first. - **402** `insufficient_credits`: buy credits (the error has `buy_credits_url` and `shortfall_credits`), then pay again. ## Validation errors A 422 names the first bad parameter in `param` and lists every problem in `errors`: ```json { "error": { "type": "invalid_request_error", "code": "parameter_invalid", "message": "Choose a supported video length.", "param": "duration_seconds", "errors": [ { "param": "duration_seconds", "message": "Choose a supported video length." }, { "param": "product_url", "message": "Enter a valid link, like https://yourbrand.com/product" } ], "request_id": "2f0c3e5a-7c1d-4a8e-9b6f-0d2e4c6a8b10" } } ``` --- # Rate limits > Besday API rate limits: 120 requests and 30 writes per minute per key, the RateLimit headers, and how to back off on 429. Source: https://besday.com/docs/api/rate-limits · Updated 2026-12-03 · OpenAPI: https://besday.com/api/v1/openapi.json Each API key may make 120 requests a minute, of which 30 may change data (POST and DELETE). Past that, the API answers 429 `rate_limited`. ## Rate limit headers | Header | Meaning | |---|---| | `RateLimit-Limit` | Requests allowed in the current window for this kind of request. | | `RateLimit-Remaining` | Requests left in the window. | | `RateLimit-Reset` | Seconds until the window resets. | | `Retry-After` | On 429 only: seconds to wait before retrying. | ## Other limits - Messages: 60 an hour per brand, shared with the website’s message box. - API keys: 10 active per brand. Webhook endpoints: 5 per brand. - Request bodies: up to 64 KB of JSON. - List pages: `limit` up to 100. ## Back off on 429 Node.js: ```javascript async function besday(path, init = {}, tries = 5) { for (let i = 0; i < tries; i++) { const res = await fetch(`https://besday.com/api/v1${path}`, { ...init, headers: { Authorization: `Bearer ${process.env.BESDAY_API_KEY}`, ...init.headers }, }); if (res.status !== 429 && res.status < 500) return res; const wait = Number(res.headers.get("retry-after")) || 2 ** i; await new Promise((r) => setTimeout(r, wait * 1000)); } throw new Error("Besday API unavailable"); } ``` --- # Pagination > How Besday API list endpoints paginate with limit and an opaque next_cursor, with a loop that fetches every page. Source: https://besday.com/docs/api/pagination · Updated 2026-12-03 · OpenAPI: https://besday.com/api/v1/openapi.json List endpoints return a list object. Pass `limit` (1–100, default 20) and, for the next page, the `next_cursor` you received as `cursor`. ```json { "object": "list", "data": [ "…" ], "has_more": true, "next_cursor": "bzoyMA" } ``` ## Fetch every page Python: ```python import os, requests def all_orders(): cursor = None while True: params = {"limit": 100, **({"cursor": cursor} if cursor else {})} page = requests.get("https://besday.com/api/v1/orders", params=params, headers={"Authorization": f"Bearer {os.environ['BESDAY_API_KEY']}"}, timeout=30).json() yield from page["data"] if not page["has_more"]: return cursor = page["next_cursor"] ``` > Cursors are opaque: pass them back exactly as received. Lists are ordered newest first (orders) or as on the marketplace (creators). --- # Idempotency > Retry Besday API POST requests safely with an Idempotency-Key header: how keys are matched, replayed and expire after 24 hours. Source: https://besday.com/docs/api/idempotency · Updated 2026-12-03 · OpenAPI: https://besday.com/api/v1/openapi.json Send an `Idempotency-Key` header with every POST. If the network drops and you retry with the same key, Besday returns the first answer instead of creating a second order or paying twice. ```bash curl -X POST "https://besday.com/api/v1/orders/prj_…/pay" \ -H "Authorization: Bearer $BESDAY_API_KEY" \ -H "Idempotency-Key: 7d0e3b0a-1c55-4d2b-9a43-2f7c3f1b9e10" ``` ## How it works - A key is 1–255 visible ASCII characters; a UUID per logical operation is ideal. - Keys are remembered per brand for 24 hours. - A retry with the same key and the same body gets the stored status and body, plus the header `Idempotent-Replayed: true`. - The same key with a different method, path or body is refused: 409 `idempotency_key_reused`. - While the first request is still running, a retry gets 409 `idempotency_in_progress`; retry a second later. - Server errors (5xx) are not stored, so a retry with the same key runs again. > Paying is also protected without the header: an order can only be paid once (409 `already_paid`). Approving is naturally idempotent. --- # Webhooks > Get signed Besday webhooks when orders are paid, delivered, completed or cancelled. Event types, payload, HMAC-SHA256 signature check and retry schedule. Source: https://besday.com/docs/api/webhooks · Updated 2026-12-03 · OpenAPI: https://besday.com/api/v1/openapi.json Webhooks tell your server when an order changes, so you do not have to poll. Besday sends an HTTPS POST with a JSON event, signed with your endpoint’s secret. ## Set up an endpoint 1. Expose an https URL on your server (port 443) that accepts POST and answers 2xx within 10 seconds. 2. Register it with `POST /v1/webhook_endpoints` and store the `secret` it returns (shown once). 3. Send a test event with `POST /v1/webhook_endpoints/{id}/test` and check that your server verifies it. ## Event types | Event | Sent when | |---|---| | `order.paid` | The order was paid (from credits, or by card for older orders). Sent together with the status event that follows. | | `order.awaiting_acceptance` | A real creator has the order and must accept it (they have 48 hours). | | `order.awaiting_product` | The creator accepted and is waiting for the product you ship to them. | | `order.in_production` | The creator is making the video (status `active`). | | `order.delivered` | A version of the video was delivered. Review it, then approve or ask for changes. | | `order.revision_requested` | You asked for changes; the creator is working on them. | | `order.disputed` | A dispute was opened on the order; Besday support is reviewing it. | | `order.completed` | The order is complete: approved by you, or automatically after the review window. | | `order.cancelled` | The order was cancelled (declined, expired, or cancelled with a refund to credits). | | `ping` | A test event sent by POST /v1/webhook_endpoints/{id}/test. | ## Payload `data.object` is the order as it was when the event happened, in the same shape as `GET /v1/orders/{id}`; `data.previous_status` is the status before. ```json { "id": "evt_0c1d2e3f4a5b6c7d", "object": "event", "type": "order.delivered", "api_version": "2026-12-03", "created_at": "2026-12-06T18:40:00.000Z", "data": { "object": { "object": "order", "id": "prj_01HZX8Q4V2", "status": "delivered", "creator": { "id": "cr_7f3a9c21", "slug": "maya-w", "name": "Maya W.", "kind": "real" }, "duration_seconds": 30, "aspect_ratio": "9:16", "quantity": 1, "add_ons": [ { "kind": "captions", "quantity": 1, "unit_price_credits": 19 } ], "price_credits": 168, "product_url": "https://yourbrand.com/products/vitamin-c-serum", "brief": { "goal": "sales", "goal_other": null, "platforms": [ "tiktok", "instagram_reels" ], "audience": "Women 25–40 with sensitive skin", "key_messages": [ "Fragrance-free", "Visible glow in 2 weeks" ], "hooks": [ "I stopped wearing foundation because of this" ], "must_say": "Use code MAYA15", "must_avoid": "Medical claims", "call_to_action": "Tap the link to try it", "script": null, "reference_links": [], "anything_else": null }, "note": null, "requires_shipping": true, "delivery_days": 3, "campaign_id": null, "paid_at": "2026-12-03T17:03:40.000Z", "accept_by": "2026-12-05T17:03:40.000Z", "accepted_at": "2026-12-03T19:12:00.000Z", "delivery_due_at": "2026-12-07T15:00:00.000Z", "delivered_at": "2026-12-06T18:40:00.000Z", "approved_at": null, "cancelled_at": null, "cancellation_reason": null, "created_at": "2026-12-03T17:02:11.000Z", "updated_at": "2026-12-04T15:00:00.000Z", "dashboard_url": "https://besday.com/app/brands/projects/prj_01HZX8Q4V2" }, "previous_status": "active" } } ``` ## Request headers | Header | Value | |---|---| | `Besday-Signature` | `t=,v1=` | | `Besday-Event-Id` | The event id (`evt_…`), the same on every retry. | | `Besday-Event-Type` | The event type. | | `Content-Type` | `application/json` | | `User-Agent` | `Besday-Webhooks/1.0` | ## Verify the signature Compute HMAC-SHA256 of `.` with your endpoint secret, compare it in constant time with `v1`, and reject timestamps more than 5 minutes old. Use the raw body bytes, before any JSON parsing. Node.js: ```javascript import crypto from "node:crypto"; import express from "express"; const app = express(); app.post("/webhooks/besday", express.raw({ type: "application/json" }), (req, res) => { const header = req.get("Besday-Signature") ?? ""; const { t, v1 } = Object.fromEntries(header.split(",").map((p) => p.split("="))); const expected = crypto.createHmac("sha256", process.env.BESDAY_WEBHOOK_SECRET) .update(`${t}.${req.body}`).digest("hex"); const fresh = Math.abs(Date.now() / 1000 - Number(t)) < 300; const ok = fresh && v1 && v1.length === expected.length && crypto.timingSafeEqual(Buffer.from(v1), Buffer.from(expected)); if (!ok) return res.status(400).send("bad signature"); const event = JSON.parse(req.body); // Deliveries are at least once: skip event.id values you have seen. console.log(event.type, event.data.object.id); res.sendStatus(200); }); ``` Python: ```python import hashlib, hmac, os, time from flask import Flask, request, abort app = Flask(__name__) @app.post("/webhooks/besday") def besday_webhook(): parts = dict(p.split("=", 1) for p in request.headers.get("Besday-Signature", "").split(",")) t, v1 = parts.get("t", "0"), parts.get("v1", "") expected = hmac.new(os.environ["BESDAY_WEBHOOK_SECRET"].encode(), f"{t}.".encode() + request.get_data(), hashlib.sha256).hexdigest() if abs(time.time() - int(t)) > 300 or not hmac.compare_digest(expected, v1): abort(400) event = request.get_json() print(event["type"], event["data"]["object"]["id"]) return "", 200 ``` ## Retries and ordering - A delivery that does not get a 2xx within 10 seconds is retried after 1 min, 5 min, 30 min, 2 h, 6 h, 12 h, 24 h: 8 tries in all, then it is marked failed. - Delivery is at least once: deduplicate on the event `id`. - Events can arrive out of order; compare `data.object.updated_at`, or fetch the order to read its current status. - Redirects are not followed. The URL must resolve to public internet addresses. - Events are written in the same database transaction as the status change, so you never get an event for a change that did not happen. ## Endpoints ### Create a webhook endpoint `POST /api/v1/webhook_endpoints` Registers an https URL for order events. The answer includes the signing secret, once. - Scope: `read_write` - Returns: 201 `webhook_endpoint` - Supports `Idempotency-Key` Body parameters (JSON): | Name | Type | Required | Description | |---|---|---|---| | `url` | string | yes | https URL on port 443 that resolves to public addresses. | | `events` | string[] | no | Event types to send, or `["*"]` (default) for all: `order.paid`, `order.awaiting_acceptance`, `order.awaiting_product`, `order.in_production`, `order.delivered`, `order.revision_requested`, `order.disputed`, `order.completed`, `order.cancelled`. | | `description` | string | no | Your label, up to 200 characters. | cURL: ```bash curl -X POST "https://besday.com/api/v1/webhook_endpoints" \ -H "Authorization: Bearer $BESDAY_API_KEY" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "url": "https://yourapp.com/webhooks/besday", "events": [ "order.delivered", "order.completed", "order.cancelled" ], "description": "Production" }' ``` Node.js: ```javascript const res = await fetch("https://besday.com/api/v1/webhook_endpoints", { method: "POST", headers: { Authorization: `Bearer ${process.env.BESDAY_API_KEY}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json", }, body: JSON.stringify({ "url": "https://yourapp.com/webhooks/besday", "events": [ "order.delivered", "order.completed", "order.cancelled" ], "description": "Production" }), }); const data = await res.json(); if (!res.ok) throw new Error(`${data.error.code}: ${data.error.message}`); ``` Python: ```python import os, uuid, requests res = requests.post( "https://besday.com/api/v1/webhook_endpoints", headers={ "Authorization": f"Bearer {os.environ['BESDAY_API_KEY']}", "Idempotency-Key": str(uuid.uuid4()), }, json={ "url": "https://yourapp.com/webhooks/besday", "events": [ "order.delivered", "order.completed", "order.cancelled" ], "description": "Production" }, timeout=30, ) res.raise_for_status() print(res.json()) ``` Response (201): ```json { "object": "webhook_endpoint", "id": "we_3f9d0c8e", "url": "https://yourapp.com/webhooks/besday", "description": "Production", "events": [ "order.delivered", "order.completed", "order.cancelled" ], "created_at": "2026-12-03T17:20:00.000Z", "secret": "whsec_Wq3m…(shown once)" } ``` Errors: `parameter_invalid`, `url_not_allowed`, `limit_reached`. ### List webhook endpoints `GET /api/v1/webhook_endpoints` Your brand’s webhook endpoints (secrets are never shown again). - Scope: `read` - Returns: 200 a list of `webhook_endpoint` objects cURL: ```bash curl "https://besday.com/api/v1/webhook_endpoints" \ -H "Authorization: Bearer $BESDAY_API_KEY" ``` Node.js: ```javascript const res = await fetch("https://besday.com/api/v1/webhook_endpoints", { headers: { Authorization: `Bearer ${process.env.BESDAY_API_KEY}`, }, }); const data = await res.json(); if (!res.ok) throw new Error(`${data.error.code}: ${data.error.message}`); ``` Python: ```python import os, uuid, requests res = requests.get( "https://besday.com/api/v1/webhook_endpoints", headers={ "Authorization": f"Bearer {os.environ['BESDAY_API_KEY']}", }, timeout=30, ) res.raise_for_status() print(res.json()) ``` Response (200): ```json { "object": "list", "data": [ { "object": "webhook_endpoint", "id": "we_3f9d0c8e", "url": "https://yourapp.com/webhooks/besday", "description": "Production", "events": [ "order.delivered", "order.completed", "order.cancelled" ], "created_at": "2026-12-03T17:20:00.000Z" } ], "has_more": false, "next_cursor": null } ``` ### Send a test event `POST /api/v1/webhook_endpoints/{id}/test` Sends a signed `ping` event now and reports what your endpoint answered. - Scope: `read_write` - Returns: 200 `webhook_test` Path parameters: | Name | Type | Required | Description | |---|---|---|---| | `id` | string | yes | The endpoint id. | cURL: ```bash curl -X POST "https://besday.com/api/v1/webhook_endpoints/we_3f9d0c8e/test" \ -H "Authorization: Bearer $BESDAY_API_KEY" ``` Node.js: ```javascript const res = await fetch("https://besday.com/api/v1/webhook_endpoints/we_3f9d0c8e/test", { method: "POST", headers: { Authorization: `Bearer ${process.env.BESDAY_API_KEY}`, }, }); const data = await res.json(); if (!res.ok) throw new Error(`${data.error.code}: ${data.error.message}`); ``` Python: ```python import os, uuid, requests res = requests.post( "https://besday.com/api/v1/webhook_endpoints/we_3f9d0c8e/test", headers={ "Authorization": f"Bearer {os.environ['BESDAY_API_KEY']}", }, timeout=30, ) res.raise_for_status() print(res.json()) ``` Response (200): ```json { "object": "webhook_test", "endpoint_id": "we_3f9d0c8e", "event_id": "evt_77aa01", "delivered": true, "status_code": 200, "error": null } ``` Errors: `not_found`. ### Delete a webhook endpoint `DELETE /api/v1/webhook_endpoints/{id}` Stops sending events to the endpoint. Pending deliveries to it are dropped. - Scope: `read_write` - Returns: 200 `deleted` Path parameters: | Name | Type | Required | Description | |---|---|---|---| | `id` | string | yes | The endpoint id. | cURL: ```bash curl -X DELETE "https://besday.com/api/v1/webhook_endpoints/we_3f9d0c8e" \ -H "Authorization: Bearer $BESDAY_API_KEY" ``` Node.js: ```javascript const res = await fetch("https://besday.com/api/v1/webhook_endpoints/we_3f9d0c8e", { method: "DELETE", headers: { Authorization: `Bearer ${process.env.BESDAY_API_KEY}`, }, }); const data = await res.json(); if (!res.ok) throw new Error(`${data.error.code}: ${data.error.message}`); ``` Python: ```python import os, uuid, requests res = requests.delete( "https://besday.com/api/v1/webhook_endpoints/we_3f9d0c8e", headers={ "Authorization": f"Bearer {os.environ['BESDAY_API_KEY']}", }, timeout=30, ) res.raise_for_status() print(res.json()) ``` Response (200): ```json { "object": "webhook_endpoint", "id": "we_3f9d0c8e", "deleted": true } ``` Errors: `not_found`. --- # Order lifecycle > Every Besday order status from draft to completed, what moves an order between them, what you can do in each, and which webhook fires. Source: https://besday.com/docs/api/order-lifecycle · Updated 2026-12-03 · OpenAPI: https://besday.com/api/v1/openapi.json An order moves through a fixed set of statuses. The `status` field always holds one of the ten below, and each change sends a webhook. ## Real creator: the usual path 1. `draft`: you create the order. 2. `awaiting_acceptance`: you pay; the creator has 48 hours to accept. 3. `awaiting_product`: only when you ship a product. 4. `active`: the creator films. 5. `delivered`: you review. 6. `completed`: you approve (or 5 days pass). ## AI creator: the usual path 1. `draft`: you create the order. 2. `active`: you pay; production starts at once. 3. `delivered`: within 1 day. 4. `completed`: you approve (or 5 days pass). ## All statuses | Status | Meaning | Your move | Webhook | |---|---|---|---| | `draft` | Created, not paid yet. Pay it, or delete it. | POST /orders/{id}/pay · DELETE /orders/{id} | — | | `awaiting_payment` | A card checkout was opened on besday.com and is not finished. | Pay with credits instead, or wait | — | | `awaiting_acceptance` | Paid. A real creator has 48 hours to accept or decline. | Wait | `order.paid`, `order.awaiting_acceptance` | | `awaiting_product` | Accepted; the creator waits for the product you ship. Their clock starts when it arrives. | Ship the product | `order.awaiting_product` | | `active` | The creator is making the video. `delivery_due_at` says when it is due. | Message the creator | `order.in_production` | | `delivered` | A version is delivered. Review it. | Approve, or request a revision | `order.delivered` | | `revision_requested` | You asked for changes; the new version is due 48 hours later. | Wait | `order.revision_requested` | | `disputed` | A dispute is open; Besday support decides it. | Reply to support | `order.disputed` | | `completed` | Approved by you, or automatically 5 days after delivery. Final files and licence are yours. | Download the originals | `order.completed` | | `cancelled` | Declined, expired, or cancelled. Paid credits go back to your balance under the cancellation rules. | — | `order.cancelled` | ## Timing rules - A real creator accepts or declines within 48 hours of payment; an order not accepted in time is cancelled and the credits come back. - A real creator’s delivery time (`delivery_days`) counts from acceptance, or from the product arriving when you ship one. - AI creators deliver in 1 day. - 2 revision rounds are included; each new version is due 48 hours after the request. - A delivery you do not approve or question is approved automatically 5 days after it arrives. --- # Creators > Besday Creators API: search real and AI UGC creators by delivery time, price, language and style, and read prices, add-ons and ratings. Source: https://besday.com/docs/api/creators · Updated 2026-12-03 · OpenAPI: https://besday.com/api/v1/openapi.json Creators are the people (and AI creators) who make videos on Besday. Listing and retrieving them is how you find who to order from and what it costs. ## The creator object A video creator on the Besday marketplace: a real person with their own account (`kind: "real"`), or an AI creator Besday makes videos with (`kind: "ai"`). Prices are in credits (1 credit = US$1). | Field | Type | Description | |---|---|---| | `object` | string | Always `creator`. One of: `creator`. | | `id` | string | Unique id. Use it (or `slug`) as `creator` when creating an order. | | `slug` | string | URL name, as in besday.com/app/brands/creators/{slug}. | | `name` | string | Display name. | | `kind` | string | `real`: a person filming on their own phone and schedule. `ai`: an AI creator Besday produces, delivered in 1 day. One of: `real`, `ai`. | | `headline` | string or null | One line on what the creator is good at. | | `bio` | string or null | Longer description in the creator’s words. | | `specialty` | string or null | Main content lane, e.g. `beauty-skincare`. | | `traits` | string[] | Style and delivery traits, e.g. `warm-conversational`. | | `languages` | string[] | Languages the creator speaks on camera. | | `gender` | string | As the creator describes themselves. One of: `female`, `male`, `non-binary`. | | `age_bracket` | string | Age range. One of: `18-24`, `25-34`, `35-44`, `45-plus`. | | `availability` | string | Whether the creator is taking work now. One of: `available`, `away`, `full`, `paused`. | | `away_until` | string or null | Last day away (YYYY-MM-DD) while `availability` is `away`. | | `accepting_orders` | boolean | True when an order can be placed now. | | `delivery_days` | integer | Days to deliver: counted from acceptance (or from the product arriving) for a real creator; 1 for an AI creator. | | `from_price_credits` | number or null | Lowest price you can order at, in credits. | | `prices` | object[] | Price per video length: `{ duration_seconds, price_credits }`. | | `custom_lengths` | object or null | AI creators only: custom lengths from 195 to 600 seconds in 15-second steps. | | `add_ons` | object[] | Extras a real creator offers: `{ kind, price_credits }`, kind one of `raw_footage`, `extra_hooks`, `captions`, `rush`. | | `max_quantity` | integer | Most videos one order can ask for (10 for a real creator, 1 for an AI creator). | | `portfolio_count` | integer | Published sample videos. | | `has_intro_reel` | boolean | Whether the creator has an introduction video. | | `image_url` | string or null | Portrait image URL. | | `profile_url` | string | Public profile page on besday.com. | | `rating` | object or null | Retrieve only: `{ average, count, completed_orders }` from verified brand reviews, or null with no reviews yet. | Example: ```json { "object": "creator", "id": "cr_7f3a9c21", "slug": "maya-w", "name": "Maya W.", "kind": "real", "headline": "Unhurried product demos that sound like a friend’s recommendation", "bio": "I film honest, warm product videos in natural light.", "specialty": "beauty-skincare", "traits": [ "warm-conversational" ], "languages": [ "english", "spanish" ], "gender": "female", "age_bracket": "25-34", "availability": "available", "away_until": null, "accepting_orders": true, "delivery_days": 3, "from_price_credits": 99, "prices": [ { "duration_seconds": 15, "price_credits": 99 }, { "duration_seconds": 30, "price_credits": 149 }, { "duration_seconds": 60, "price_credits": 249 } ], "custom_lengths": null, "add_ons": [ { "kind": "raw_footage", "price_credits": 49 }, { "kind": "extra_hooks", "price_credits": 25 }, { "kind": "captions", "price_credits": 19 } ], "max_quantity": 10, "portfolio_count": 6, "has_intro_reel": true, "image_url": "https://besday.com/api/creators/photo/cr_7f3a9c21/portrait.webp", "profile_url": "https://besday.com/app/brands/creators/maya-w", "rating": { "average": 4.9, "count": 18, "completed_orders": 23 } } ``` ## List creators `GET /api/v1/creators` Search the marketplace with the same filters and sorts as besday.com. Returns creators with prices, add-ons and delivery time. - Scope: `read` - Returns: 200 a list of `creator` objects Query parameters: | Name | Type | Required | Description | |---|---|---|---| | `kind` | string | no | Real creators or AI creators. Omit for both. One of: `real`, `ai`. | | `search` | string | no | Free text over name, headline and bio (up to 120 characters). | | `delivery` | string | no | Delivers within 1, 3 or 7 days. One of: `1d`, `3d`, `7d`. | | `price` | string | no | Starting price band in credits. One of: `under-100`, `100-250`, `250-plus`. | | `language` | string | no | Speaks this language on camera. One of: `english`, `spanish`, `french`, `german`, `japanese`, `hindi`. | | `gender` | string | no | Creator gender. One of: `female`, `male`, `non-binary`. | | `age` | string | no | Age range. One of: `18-24`, `25-34`, `35-44`, `45-plus`. | | `specialty` | string | no | Content lane, e.g. `beauty-skincare`. Repeatable (any of). | | `trait` | string | no | Style trait, e.g. `high-energy`. Repeatable (all of). | | `platform` | string | no | Posts on this platform. One of: `tiktok`, `instagram`, `youtube`. | | `state` | string | no | US state code, e.g. `CA` (real creators). | | `available` | string | no | `1`: only creators taking orders now. One of: `1`. | | `sort` | string | no | Order of results. Default `featured`. One of: `featured`, `portfolio`, `rating`, `newest`, `price_low`, `price_high`. | | `limit` | integer | no | Page size, 1–100. Default 20. | | `cursor` | string | no | The `next_cursor` of the previous page. | cURL: ```bash curl "https://besday.com/api/v1/creators?kind=real&delivery=3d&limit=10" \ -H "Authorization: Bearer $BESDAY_API_KEY" ``` Node.js: ```javascript const res = await fetch("https://besday.com/api/v1/creators?kind=real&delivery=3d&limit=10", { headers: { Authorization: `Bearer ${process.env.BESDAY_API_KEY}`, }, }); const data = await res.json(); if (!res.ok) throw new Error(`${data.error.code}: ${data.error.message}`); ``` Python: ```python import os, uuid, requests res = requests.get( "https://besday.com/api/v1/creators?kind=real&delivery=3d&limit=10", headers={ "Authorization": f"Bearer {os.environ['BESDAY_API_KEY']}", }, timeout=30, ) res.raise_for_status() print(res.json()) ``` Response (200): ```json { "object": "list", "data": [ { "object": "creator", "id": "cr_7f3a9c21", "slug": "maya-w", "name": "Maya W.", "kind": "real", "headline": "Unhurried product demos that sound like a friend’s recommendation", "bio": "I film honest, warm product videos in natural light.", "specialty": "beauty-skincare", "traits": [ "warm-conversational" ], "languages": [ "english", "spanish" ], "gender": "female", "age_bracket": "25-34", "availability": "available", "away_until": null, "accepting_orders": true, "delivery_days": 3, "from_price_credits": 99, "prices": [ { "duration_seconds": 15, "price_credits": 99 }, { "duration_seconds": 30, "price_credits": 149 }, { "duration_seconds": 60, "price_credits": 249 } ], "custom_lengths": null, "add_ons": [ { "kind": "raw_footage", "price_credits": 49 }, { "kind": "extra_hooks", "price_credits": 25 }, { "kind": "captions", "price_credits": 19 } ], "max_quantity": 10, "portfolio_count": 6, "has_intro_reel": true, "image_url": "https://besday.com/api/creators/photo/cr_7f3a9c21/portrait.webp", "profile_url": "https://besday.com/app/brands/creators/maya-w" } ], "has_more": true, "next_cursor": "bzoyMA" } ``` Errors: `parameter_invalid`. Note: Unknown filter values are ignored, like on the website. ## Retrieve a creator `GET /api/v1/creators/{slug}` One creator by slug, with prices, add-ons, delivery time and verified rating. - Scope: `read` - Returns: 200 `creator` Path parameters: | Name | Type | Required | Description | |---|---|---|---| | `slug` | string | yes | The creator’s slug, e.g. `maya-w`. | cURL: ```bash curl "https://besday.com/api/v1/creators/maya-w" \ -H "Authorization: Bearer $BESDAY_API_KEY" ``` Node.js: ```javascript const res = await fetch("https://besday.com/api/v1/creators/maya-w", { headers: { Authorization: `Bearer ${process.env.BESDAY_API_KEY}`, }, }); const data = await res.json(); if (!res.ok) throw new Error(`${data.error.code}: ${data.error.message}`); ``` Python: ```python import os, uuid, requests res = requests.get( "https://besday.com/api/v1/creators/maya-w", headers={ "Authorization": f"Bearer {os.environ['BESDAY_API_KEY']}", }, timeout=30, ) res.raise_for_status() print(res.json()) ``` Response (200): ```json { "object": "creator", "id": "cr_7f3a9c21", "slug": "maya-w", "name": "Maya W.", "kind": "real", "headline": "Unhurried product demos that sound like a friend’s recommendation", "bio": "I film honest, warm product videos in natural light.", "specialty": "beauty-skincare", "traits": [ "warm-conversational" ], "languages": [ "english", "spanish" ], "gender": "female", "age_bracket": "25-34", "availability": "available", "away_until": null, "accepting_orders": true, "delivery_days": 3, "from_price_credits": 99, "prices": [ { "duration_seconds": 15, "price_credits": 99 }, { "duration_seconds": 30, "price_credits": 149 }, { "duration_seconds": 60, "price_credits": 249 } ], "custom_lengths": null, "add_ons": [ { "kind": "raw_footage", "price_credits": 49 }, { "kind": "extra_hooks", "price_credits": 25 }, { "kind": "captions", "price_credits": 19 } ], "max_quantity": 10, "portfolio_count": 6, "has_intro_reel": true, "image_url": "https://besday.com/api/creators/photo/cr_7f3a9c21/portrait.webp", "profile_url": "https://besday.com/app/brands/creators/maya-w", "rating": { "average": 4.9, "count": 18, "completed_orders": 23 } } ``` Errors: `not_found`. ## AI creator prices AI creators sell at one platform price table (real creators set their own): | Length | Price | |---|---| | 15 sec | 69 credits | | 30 sec | 129 credits | | 45 sec | 179 credits | | 60 sec | 229 credits | | 90 sec | 329 credits | | 2 min | 429 credits | | 3 min | 599 credits | --- # Orders > Besday Orders API: create a UGC video order with a brief, pay it from credits, list and retrieve orders, approve deliveries and request revisions. Source: https://besday.com/docs/api/orders · Updated 2026-12-03 · OpenAPI: https://besday.com/api/v1/openapi.json An order is one brief to one creator. Create it unpaid, pay it from credits, then follow it through the [order lifecycle](https://besday.com/docs/api/order-lifecycle). ## The order object One order for a video (or up to 10 of the same video for a real creator) from one creator. Created unpaid (`draft`), then paid from credits. | Field | Type | Description | |---|---|---| | `object` | string | Always `order`. One of: `order`. | | `id` | string | Unique id. | | `status` | string | Where the order is. See [the order lifecycle](https://besday.com/docs/api/order-lifecycle). One of: `draft`, `awaiting_payment`, `awaiting_acceptance`, `awaiting_product`, `active`, `delivered`, `revision_requested`, `disputed`, `completed`, `cancelled`. | | `creator` | object | `{ id, slug, name, kind }` of the creator making it. | | `duration_seconds` | integer | Video length. | | `aspect_ratio` | string | Always `9:16` (vertical) for new orders. | | `quantity` | integer | Number of videos. | | `add_ons` | object[] | `{ kind, quantity, unit_price_credits }` for each add-on ordered. | | `price_credits` | number | Total price in credits, computed by Besday (never sent by you). | | `product_url` | string or null | The product page the video is about. | | `brief` | object or null | The structured brief (see Create an order). | | `note` | string or null | Free-text brief. | | `requires_shipping` | boolean | True when you ship a physical product to the creator. | | `delivery_days` | integer or null | Days the creator has once the clock starts. | | `campaign_id` | string or null | Set when the order came from a campaign. | | `paid_at` | string or null | ISO 8601 timestamp (UTC) | | `accept_by` | string or null | Real creators: deadline to accept. ISO 8601 timestamp (UTC) | | `accepted_at` | string or null | ISO 8601 timestamp (UTC) | | `delivery_due_at` | string or null | When the video is due. ISO 8601 timestamp (UTC) | | `delivered_at` | string or null | ISO 8601 timestamp (UTC) | | `approved_at` | string or null | ISO 8601 timestamp (UTC) | | `cancelled_at` | string or null | ISO 8601 timestamp (UTC) | | `cancellation_reason` | string or null | Why it was cancelled. | | `created_at` | string | ISO 8601 timestamp (UTC) | | `updated_at` | string | ISO 8601 timestamp (UTC) | | `dashboard_url` | string | The order on besday.com, for people. | Example: ```json { "object": "order", "id": "prj_01HZX8Q4V2", "status": "active", "creator": { "id": "cr_7f3a9c21", "slug": "maya-w", "name": "Maya W.", "kind": "real" }, "duration_seconds": 30, "aspect_ratio": "9:16", "quantity": 1, "add_ons": [ { "kind": "captions", "quantity": 1, "unit_price_credits": 19 } ], "price_credits": 168, "product_url": "https://yourbrand.com/products/vitamin-c-serum", "brief": { "goal": "sales", "goal_other": null, "platforms": [ "tiktok", "instagram_reels" ], "audience": "Women 25–40 with sensitive skin", "key_messages": [ "Fragrance-free", "Visible glow in 2 weeks" ], "hooks": [ "I stopped wearing foundation because of this" ], "must_say": "Use code MAYA15", "must_avoid": "Medical claims", "call_to_action": "Tap the link to try it", "script": null, "reference_links": [], "anything_else": null }, "note": null, "requires_shipping": true, "delivery_days": 3, "campaign_id": null, "paid_at": "2026-12-03T17:03:40.000Z", "accept_by": "2026-12-05T17:03:40.000Z", "accepted_at": "2026-12-03T19:12:00.000Z", "delivery_due_at": "2026-12-07T15:00:00.000Z", "delivered_at": null, "approved_at": null, "cancelled_at": null, "cancellation_reason": null, "created_at": "2026-12-03T17:02:11.000Z", "updated_at": "2026-12-04T15:00:00.000Z", "dashboard_url": "https://besday.com/app/brands/projects/prj_01HZX8Q4V2" } ``` ## Create an order `POST /api/v1/orders` Creates an unpaid order (status `draft`) with your brief. Besday computes the price from the creator’s prices; pay it with POST /v1/orders/{id}/pay. - Scope: `read_write` - Returns: 201 `order` - Supports `Idempotency-Key` Body parameters (JSON): | Name | Type | Required | Description | |---|---|---|---| | `creator` | string | yes | The creator’s `id` or `slug`. | | `duration_seconds` | integer | yes | Video length. One of 15, 30, 45, 60, 90, 120, 180 (the creator’s `prices` list what they sell); AI creators also take 195–600 in 15-second steps. | | `aspect_ratio` | string | no | Vertical video. Default `9:16`. One of: `9:16`. | | `quantity` | integer | no | Videos of the same brief, 1–10 (real creators). Default 1. | | `add_ons` | object[] | no | Real creators: `[{ "kind": "captions", "quantity": 1 }]`. Kinds: `raw_footage`, `extra_hooks`, `captions`, `rush`. `extra_hooks` takes quantity 1–5; `rush` halves the delivery time. | | `product_url` | string | no | The product page (http or https). | | `brief` | object | no | Structured brief, every field optional: `goal` (`awareness`, `sales`, `app_installs`, `other`), `goal_other`, `platforms` (`tiktok`, `instagram_reels`, `youtube_shorts`, `paid_ads`, `other`), `audience`, `key_messages[]`, `hooks[]`, `must_say`, `must_avoid`, `call_to_action`, `script`, `reference_links[]` (https), `anything_else`. | | `note` | string | no | Free-text brief (up to 1,000 characters), instead of `brief`. | | `requires_shipping` | boolean | no | Real creators: you will ship a physical product. The creator’s clock starts when it arrives. | cURL: ```bash curl -X POST "https://besday.com/api/v1/orders" \ -H "Authorization: Bearer $BESDAY_API_KEY" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "creator": "maya-w", "duration_seconds": 30, "add_ons": [ { "kind": "captions", "quantity": 1 } ], "product_url": "https://yourbrand.com/products/vitamin-c-serum", "requires_shipping": true, "brief": { "goal": "sales", "platforms": [ "tiktok", "instagram_reels" ], "audience": "Women 25–40 with sensitive skin", "key_messages": [ "Fragrance-free", "Visible glow in 2 weeks" ], "hooks": [ "I stopped wearing foundation because of this" ], "must_say": "Use code MAYA15", "must_avoid": "Medical claims", "call_to_action": "Tap the link to try it" } }' ``` Node.js: ```javascript const res = await fetch("https://besday.com/api/v1/orders", { method: "POST", headers: { Authorization: `Bearer ${process.env.BESDAY_API_KEY}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json", }, body: JSON.stringify({ "creator": "maya-w", "duration_seconds": 30, "add_ons": [ { "kind": "captions", "quantity": 1 } ], "product_url": "https://yourbrand.com/products/vitamin-c-serum", "requires_shipping": true, "brief": { "goal": "sales", "platforms": [ "tiktok", "instagram_reels" ], "audience": "Women 25–40 with sensitive skin", "key_messages": [ "Fragrance-free", "Visible glow in 2 weeks" ], "hooks": [ "I stopped wearing foundation because of this" ], "must_say": "Use code MAYA15", "must_avoid": "Medical claims", "call_to_action": "Tap the link to try it" } }), }); const data = await res.json(); if (!res.ok) throw new Error(`${data.error.code}: ${data.error.message}`); ``` Python: ```python import os, uuid, requests res = requests.post( "https://besday.com/api/v1/orders", headers={ "Authorization": f"Bearer {os.environ['BESDAY_API_KEY']}", "Idempotency-Key": str(uuid.uuid4()), }, json={ "creator": "maya-w", "duration_seconds": 30, "add_ons": [ { "kind": "captions", "quantity": 1 } ], "product_url": "https://yourbrand.com/products/vitamin-c-serum", "requires_shipping": True, "brief": { "goal": "sales", "platforms": [ "tiktok", "instagram_reels" ], "audience": "Women 25–40 with sensitive skin", "key_messages": [ "Fragrance-free", "Visible glow in 2 weeks" ], "hooks": [ "I stopped wearing foundation because of this" ], "must_say": "Use code MAYA15", "must_avoid": "Medical claims", "call_to_action": "Tap the link to try it" } }, timeout=30, ) res.raise_for_status() print(res.json()) ``` Response (201): ```json { "object": "order", "id": "prj_01HZX8Q4V2", "status": "draft", "creator": { "id": "cr_7f3a9c21", "slug": "maya-w", "name": "Maya W.", "kind": "real" }, "duration_seconds": 30, "aspect_ratio": "9:16", "quantity": 1, "add_ons": [ { "kind": "captions", "quantity": 1, "unit_price_credits": 19 } ], "price_credits": 168, "product_url": "https://yourbrand.com/products/vitamin-c-serum", "brief": { "goal": "sales", "goal_other": null, "platforms": [ "tiktok", "instagram_reels" ], "audience": "Women 25–40 with sensitive skin", "key_messages": [ "Fragrance-free", "Visible glow in 2 weeks" ], "hooks": [ "I stopped wearing foundation because of this" ], "must_say": "Use code MAYA15", "must_avoid": "Medical claims", "call_to_action": "Tap the link to try it", "script": null, "reference_links": [], "anything_else": null }, "note": null, "requires_shipping": true, "delivery_days": 3, "campaign_id": null, "paid_at": null, "accept_by": null, "accepted_at": null, "delivery_due_at": null, "delivered_at": null, "approved_at": null, "cancelled_at": null, "cancellation_reason": null, "created_at": "2026-12-03T17:02:11.000Z", "updated_at": "2026-12-03T17:02:11.000Z", "dashboard_url": "https://besday.com/app/brands/projects/prj_01HZX8Q4V2" } ``` Errors: `parameter_invalid`, `creator_unavailable`, `insufficient_scope`, `idempotency_key_reused`. Note: Accepted fields: `creator`, `duration_seconds`, `aspect_ratio`, `quantity`, `add_ons`, `product_url`, `brief`, `note`, `requires_shipping`. Any other field is refused (422), so a typo never goes unnoticed. ## Pay for an order `POST /api/v1/orders/{id}/pay` Pays the order from your credits. A real creator then has 48 hours to accept; an AI creator starts at once. - Scope: `read_write` - Returns: 200 `order` - Supports `Idempotency-Key` Path parameters: | Name | Type | Required | Description | |---|---|---|---| | `id` | string | yes | The order id. | cURL: ```bash curl -X POST "https://besday.com/api/v1/orders/prj_01HZX8Q4V2/pay" \ -H "Authorization: Bearer $BESDAY_API_KEY" \ -H "Idempotency-Key: $(uuidgen)" ``` Node.js: ```javascript const res = await fetch("https://besday.com/api/v1/orders/prj_01HZX8Q4V2/pay", { method: "POST", headers: { Authorization: `Bearer ${process.env.BESDAY_API_KEY}`, "Idempotency-Key": crypto.randomUUID(), }, }); const data = await res.json(); if (!res.ok) throw new Error(`${data.error.code}: ${data.error.message}`); ``` Python: ```python import os, uuid, requests res = requests.post( "https://besday.com/api/v1/orders/prj_01HZX8Q4V2/pay", headers={ "Authorization": f"Bearer {os.environ['BESDAY_API_KEY']}", "Idempotency-Key": str(uuid.uuid4()), }, timeout=30, ) res.raise_for_status() print(res.json()) ``` Response (200): ```json { "object": "order", "id": "prj_01HZX8Q4V2", "status": "awaiting_acceptance", "creator": { "id": "cr_7f3a9c21", "slug": "maya-w", "name": "Maya W.", "kind": "real" }, "duration_seconds": 30, "aspect_ratio": "9:16", "quantity": 1, "add_ons": [ { "kind": "captions", "quantity": 1, "unit_price_credits": 19 } ], "price_credits": 168, "product_url": "https://yourbrand.com/products/vitamin-c-serum", "brief": { "goal": "sales", "goal_other": null, "platforms": [ "tiktok", "instagram_reels" ], "audience": "Women 25–40 with sensitive skin", "key_messages": [ "Fragrance-free", "Visible glow in 2 weeks" ], "hooks": [ "I stopped wearing foundation because of this" ], "must_say": "Use code MAYA15", "must_avoid": "Medical claims", "call_to_action": "Tap the link to try it", "script": null, "reference_links": [], "anything_else": null }, "note": null, "requires_shipping": true, "delivery_days": 3, "campaign_id": null, "paid_at": "2026-12-03T17:03:40.000Z", "accept_by": "2026-12-05T17:03:40.000Z", "accepted_at": null, "delivery_due_at": null, "delivered_at": null, "approved_at": null, "cancelled_at": null, "cancellation_reason": null, "created_at": "2026-12-03T17:02:11.000Z", "updated_at": "2026-12-04T15:00:00.000Z", "dashboard_url": "https://besday.com/app/brands/projects/prj_01HZX8Q4V2", "payment": { "spent_credits": 168, "balance_after_credits": 332 } } ``` Errors: `insufficient_credits`, `already_paid`, `email_unverified`, `member_limit`, `credits_blocked`, `creator_unavailable`, `order_state`, `not_found`. Note: On 402 `insufficient_credits` the error also carries `price_credits`, `balance_credits`, `shortfall_credits`, `suggested_top_up_credits` and `buy_credits_url`. ## List orders `GET /api/v1/orders` Your brand’s orders, newest first, paid and unpaid. - Scope: `read` - Returns: 200 a list of `order` objects Query parameters: | Name | Type | Required | Description | |---|---|---|---| | `status` | string | no | Only orders in this status. One of: `draft`, `awaiting_payment`, `awaiting_acceptance`, `awaiting_product`, `active`, `delivered`, `revision_requested`, `disputed`, `completed`, `cancelled`. | | `limit` | integer | no | Page size, 1–100. Default 20. | | `cursor` | string | no | The `next_cursor` of the previous page. | cURL: ```bash curl "https://besday.com/api/v1/orders?status=delivered" \ -H "Authorization: Bearer $BESDAY_API_KEY" ``` Node.js: ```javascript const res = await fetch("https://besday.com/api/v1/orders?status=delivered", { headers: { Authorization: `Bearer ${process.env.BESDAY_API_KEY}`, }, }); const data = await res.json(); if (!res.ok) throw new Error(`${data.error.code}: ${data.error.message}`); ``` Python: ```python import os, uuid, requests res = requests.get( "https://besday.com/api/v1/orders?status=delivered", headers={ "Authorization": f"Bearer {os.environ['BESDAY_API_KEY']}", }, timeout=30, ) res.raise_for_status() print(res.json()) ``` Response (200): ```json { "object": "list", "data": [ { "object": "order", "id": "prj_01HZX8Q4V2", "status": "active", "creator": { "id": "cr_7f3a9c21", "slug": "maya-w", "name": "Maya W.", "kind": "real" }, "duration_seconds": 30, "aspect_ratio": "9:16", "quantity": 1, "add_ons": [ { "kind": "captions", "quantity": 1, "unit_price_credits": 19 } ], "price_credits": 168, "product_url": "https://yourbrand.com/products/vitamin-c-serum", "brief": { "goal": "sales", "goal_other": null, "platforms": [ "tiktok", "instagram_reels" ], "audience": "Women 25–40 with sensitive skin", "key_messages": [ "Fragrance-free", "Visible glow in 2 weeks" ], "hooks": [ "I stopped wearing foundation because of this" ], "must_say": "Use code MAYA15", "must_avoid": "Medical claims", "call_to_action": "Tap the link to try it", "script": null, "reference_links": [], "anything_else": null }, "note": null, "requires_shipping": true, "delivery_days": 3, "campaign_id": null, "paid_at": "2026-12-03T17:03:40.000Z", "accept_by": "2026-12-05T17:03:40.000Z", "accepted_at": "2026-12-03T19:12:00.000Z", "delivery_due_at": "2026-12-07T15:00:00.000Z", "delivered_at": null, "approved_at": null, "cancelled_at": null, "cancellation_reason": null, "created_at": "2026-12-03T17:02:11.000Z", "updated_at": "2026-12-04T15:00:00.000Z", "dashboard_url": "https://besday.com/app/brands/projects/prj_01HZX8Q4V2" } ], "has_more": false, "next_cursor": null } ``` Errors: `parameter_invalid`. ## Retrieve an order `GET /api/v1/orders/{id}` One order with its status, price, brief and timeline. - Scope: `read` - Returns: 200 `order` Path parameters: | Name | Type | Required | Description | |---|---|---|---| | `id` | string | yes | The order id. | cURL: ```bash curl "https://besday.com/api/v1/orders/prj_01HZX8Q4V2" \ -H "Authorization: Bearer $BESDAY_API_KEY" ``` Node.js: ```javascript const res = await fetch("https://besday.com/api/v1/orders/prj_01HZX8Q4V2", { headers: { Authorization: `Bearer ${process.env.BESDAY_API_KEY}`, }, }); const data = await res.json(); if (!res.ok) throw new Error(`${data.error.code}: ${data.error.message}`); ``` Python: ```python import os, uuid, requests res = requests.get( "https://besday.com/api/v1/orders/prj_01HZX8Q4V2", headers={ "Authorization": f"Bearer {os.environ['BESDAY_API_KEY']}", }, timeout=30, ) res.raise_for_status() print(res.json()) ``` Response (200): ```json { "object": "order", "id": "prj_01HZX8Q4V2", "status": "active", "creator": { "id": "cr_7f3a9c21", "slug": "maya-w", "name": "Maya W.", "kind": "real" }, "duration_seconds": 30, "aspect_ratio": "9:16", "quantity": 1, "add_ons": [ { "kind": "captions", "quantity": 1, "unit_price_credits": 19 } ], "price_credits": 168, "product_url": "https://yourbrand.com/products/vitamin-c-serum", "brief": { "goal": "sales", "goal_other": null, "platforms": [ "tiktok", "instagram_reels" ], "audience": "Women 25–40 with sensitive skin", "key_messages": [ "Fragrance-free", "Visible glow in 2 weeks" ], "hooks": [ "I stopped wearing foundation because of this" ], "must_say": "Use code MAYA15", "must_avoid": "Medical claims", "call_to_action": "Tap the link to try it", "script": null, "reference_links": [], "anything_else": null }, "note": null, "requires_shipping": true, "delivery_days": 3, "campaign_id": null, "paid_at": "2026-12-03T17:03:40.000Z", "accept_by": "2026-12-05T17:03:40.000Z", "accepted_at": "2026-12-03T19:12:00.000Z", "delivery_due_at": "2026-12-07T15:00:00.000Z", "delivered_at": null, "approved_at": null, "cancelled_at": null, "cancellation_reason": null, "created_at": "2026-12-03T17:02:11.000Z", "updated_at": "2026-12-04T15:00:00.000Z", "dashboard_url": "https://besday.com/app/brands/projects/prj_01HZX8Q4V2" } ``` Errors: `not_found`. ## Delete an unpaid order `DELETE /api/v1/orders/{id}` Deletes an order that was never paid. Paid orders cannot be deleted; message the creator or contact support to cancel one. - Scope: `read_write` - Returns: 200 `deleted` Path parameters: | Name | Type | Required | Description | |---|---|---|---| | `id` | string | yes | The order id. | cURL: ```bash curl -X DELETE "https://besday.com/api/v1/orders/prj_01HZX8Q4V2" \ -H "Authorization: Bearer $BESDAY_API_KEY" ``` Node.js: ```javascript const res = await fetch("https://besday.com/api/v1/orders/prj_01HZX8Q4V2", { method: "DELETE", headers: { Authorization: `Bearer ${process.env.BESDAY_API_KEY}`, }, }); const data = await res.json(); if (!res.ok) throw new Error(`${data.error.code}: ${data.error.message}`); ``` Python: ```python import os, uuid, requests res = requests.delete( "https://besday.com/api/v1/orders/prj_01HZX8Q4V2", headers={ "Authorization": f"Bearer {os.environ['BESDAY_API_KEY']}", }, timeout=30, ) res.raise_for_status() print(res.json()) ``` Response (200): ```json { "object": "order", "id": "prj_01HZX8Q4V2", "deleted": true } ``` Errors: `not_found`, `order_state`. ## Approve a delivery `POST /api/v1/orders/{id}/approve` Approves the delivered video. The order completes, its licence is issued, and a real creator’s original files unlock. Safe to call twice. - Scope: `read_write` - Returns: 200 `order` - Supports `Idempotency-Key` Path parameters: | Name | Type | Required | Description | |---|---|---|---| | `id` | string | yes | The order id. | cURL: ```bash curl -X POST "https://besday.com/api/v1/orders/prj_01HZX8Q4V2/approve" \ -H "Authorization: Bearer $BESDAY_API_KEY" \ -H "Idempotency-Key: $(uuidgen)" ``` Node.js: ```javascript const res = await fetch("https://besday.com/api/v1/orders/prj_01HZX8Q4V2/approve", { method: "POST", headers: { Authorization: `Bearer ${process.env.BESDAY_API_KEY}`, "Idempotency-Key": crypto.randomUUID(), }, }); const data = await res.json(); if (!res.ok) throw new Error(`${data.error.code}: ${data.error.message}`); ``` Python: ```python import os, uuid, requests res = requests.post( "https://besday.com/api/v1/orders/prj_01HZX8Q4V2/approve", headers={ "Authorization": f"Bearer {os.environ['BESDAY_API_KEY']}", "Idempotency-Key": str(uuid.uuid4()), }, timeout=30, ) res.raise_for_status() print(res.json()) ``` Response (200): ```json { "object": "order", "id": "prj_01HZX8Q4V2", "status": "completed", "creator": { "id": "cr_7f3a9c21", "slug": "maya-w", "name": "Maya W.", "kind": "real" }, "duration_seconds": 30, "aspect_ratio": "9:16", "quantity": 1, "add_ons": [ { "kind": "captions", "quantity": 1, "unit_price_credits": 19 } ], "price_credits": 168, "product_url": "https://yourbrand.com/products/vitamin-c-serum", "brief": { "goal": "sales", "goal_other": null, "platforms": [ "tiktok", "instagram_reels" ], "audience": "Women 25–40 with sensitive skin", "key_messages": [ "Fragrance-free", "Visible glow in 2 weeks" ], "hooks": [ "I stopped wearing foundation because of this" ], "must_say": "Use code MAYA15", "must_avoid": "Medical claims", "call_to_action": "Tap the link to try it", "script": null, "reference_links": [], "anything_else": null }, "note": null, "requires_shipping": true, "delivery_days": 3, "campaign_id": null, "paid_at": "2026-12-03T17:03:40.000Z", "accept_by": "2026-12-05T17:03:40.000Z", "accepted_at": "2026-12-03T19:12:00.000Z", "delivery_due_at": "2026-12-07T15:00:00.000Z", "delivered_at": "2026-12-06T18:40:00.000Z", "approved_at": "2026-12-07T09:15:00.000Z", "cancelled_at": null, "cancellation_reason": null, "created_at": "2026-12-03T17:02:11.000Z", "updated_at": "2026-12-04T15:00:00.000Z", "dashboard_url": "https://besday.com/app/brands/projects/prj_01HZX8Q4V2" } ``` Errors: `order_state`, `not_found`. ## Request a revision `POST /api/v1/orders/{id}/revisions` Asks the creator for changes to a delivered video. Two revision rounds are included; the new version is due 48 hours later. - Scope: `read_write` - Returns: 201 `revision_request` - Supports `Idempotency-Key` Path parameters: | Name | Type | Required | Description | |---|---|---|---| | `id` | string | yes | The order id. | Body parameters (JSON): | Name | Type | Required | Description | |---|---|---|---| | `body` | string | yes | What should change, in plain words. | cURL: ```bash curl -X POST "https://besday.com/api/v1/orders/prj_01HZX8Q4V2/revisions" \ -H "Authorization: Bearer $BESDAY_API_KEY" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "body": "Please open with the product in hand and say the discount code twice." }' ``` Node.js: ```javascript const res = await fetch("https://besday.com/api/v1/orders/prj_01HZX8Q4V2/revisions", { method: "POST", headers: { Authorization: `Bearer ${process.env.BESDAY_API_KEY}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json", }, body: JSON.stringify({ "body": "Please open with the product in hand and say the discount code twice." }), }); const data = await res.json(); if (!res.ok) throw new Error(`${data.error.code}: ${data.error.message}`); ``` Python: ```python import os, uuid, requests res = requests.post( "https://besday.com/api/v1/orders/prj_01HZX8Q4V2/revisions", headers={ "Authorization": f"Bearer {os.environ['BESDAY_API_KEY']}", "Idempotency-Key": str(uuid.uuid4()), }, json={ "body": "Please open with the product in hand and say the discount code twice." }, timeout=30, ) res.raise_for_status() print(res.json()) ``` Response (201): ```json { "object": "revision_request", "id": "rev_2a7c19", "order_id": "prj_01HZX8Q4V2", "revisions_remaining": 1 } ``` Errors: `parameter_invalid`, `order_state`, `limit_reached`, `not_found`. --- # Messages > Besday Messages API: read an order’s message thread and send messages to the creator from your own system. Source: https://besday.com/docs/api/messages · Updated 2026-12-03 · OpenAPI: https://besday.com/api/v1/openapi.json Each paid order has one thread between your brand and the creator. Messages sent here show on besday.com too. ## The message object One message in an order’s thread between your brand and the creator. Contact details (emails, phone numbers, handles) are hidden automatically. | Field | Type | Description | |---|---|---| | `object` | string | Always `message`. One of: `message`. | | `id` | string | Unique id. | | `order_id` | string | The order. | | `from` | string | Who wrote it. One of: `brand`, `creator`, `besday`. | | `body` | string | The text, as delivered. | | `created_at` | string | ISO 8601 timestamp (UTC) | | `read_at` | string or null | When the other side read it. ISO 8601 timestamp (UTC) | Example: ```json { "object": "message", "id": "msg_5b1c0e", "order_id": "prj_01HZX8Q4V2", "from": "creator", "body": "Got the serum today! Filming tomorrow morning in natural light.", "created_at": "2026-12-05T21:14:00.000Z", "read_at": null } ``` ## List messages `GET /api/v1/orders/{id}/messages` The order’s message thread with the creator, oldest first. - Scope: `read` - Returns: 200 a list of `message` objects Path parameters: | Name | Type | Required | Description | |---|---|---|---| | `id` | string | yes | The order id. | cURL: ```bash curl "https://besday.com/api/v1/orders/prj_01HZX8Q4V2/messages" \ -H "Authorization: Bearer $BESDAY_API_KEY" ``` Node.js: ```javascript const res = await fetch("https://besday.com/api/v1/orders/prj_01HZX8Q4V2/messages", { headers: { Authorization: `Bearer ${process.env.BESDAY_API_KEY}`, }, }); const data = await res.json(); if (!res.ok) throw new Error(`${data.error.code}: ${data.error.message}`); ``` Python: ```python import os, uuid, requests res = requests.get( "https://besday.com/api/v1/orders/prj_01HZX8Q4V2/messages", headers={ "Authorization": f"Bearer {os.environ['BESDAY_API_KEY']}", }, timeout=30, ) res.raise_for_status() print(res.json()) ``` Response (200): ```json { "object": "list", "data": [ { "object": "message", "id": "msg_5b1c0e", "order_id": "prj_01HZX8Q4V2", "from": "creator", "body": "Got the serum today! Filming tomorrow morning in natural light.", "created_at": "2026-12-05T21:14:00.000Z", "read_at": null } ], "has_more": false, "next_cursor": null } ``` Errors: `not_found`. ## Send a message `POST /api/v1/orders/{id}/messages` Writes to the creator in the order’s thread. Messages open once the order is paid. Contact details are hidden automatically. - Scope: `read_write` - Returns: 201 `message` - Supports `Idempotency-Key` Path parameters: | Name | Type | Required | Description | |---|---|---|---| | `id` | string | yes | The order id. | Body parameters (JSON): | Name | Type | Required | Description | |---|---|---|---| | `body` | string | yes | The message text. | cURL: ```bash curl -X POST "https://besday.com/api/v1/orders/prj_01HZX8Q4V2/messages" \ -H "Authorization: Bearer $BESDAY_API_KEY" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "body": "The serum ships today. Tracking is in your Besday inbox." }' ``` Node.js: ```javascript const res = await fetch("https://besday.com/api/v1/orders/prj_01HZX8Q4V2/messages", { method: "POST", headers: { Authorization: `Bearer ${process.env.BESDAY_API_KEY}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json", }, body: JSON.stringify({ "body": "The serum ships today. Tracking is in your Besday inbox." }), }); const data = await res.json(); if (!res.ok) throw new Error(`${data.error.code}: ${data.error.message}`); ``` Python: ```python import os, uuid, requests res = requests.post( "https://besday.com/api/v1/orders/prj_01HZX8Q4V2/messages", headers={ "Authorization": f"Bearer {os.environ['BESDAY_API_KEY']}", "Idempotency-Key": str(uuid.uuid4()), }, json={ "body": "The serum ships today. Tracking is in your Besday inbox." }, timeout=30, ) res.raise_for_status() print(res.json()) ``` Response (201): ```json { "object": "message", "id": "msg_5b1c0f", "order_id": "prj_01HZX8Q4V2", "from": "brand", "body": "The serum ships today. Tracking is in your Besday inbox.", "created_at": "2026-12-05T21:14:00.000Z", "read_at": null, "contact_details_hidden": false } ``` Errors: `parameter_invalid`, `order_state`, `rate_limited`, `not_found`. --- # Deliveries > Besday Deliveries API: list every delivered version of an order and download the video files, previews and originals, with byte ranges. Source: https://besday.com/docs/api/deliveries · Updated 2026-12-03 · OpenAPI: https://besday.com/api/v1/openapi.json A delivery is one version of the finished video with its files. The first delivery is version 1; each revision adds a version. ## The delivery object One delivered version of an order’s video, with its files (main video, extra hooks, raw footage, captions, thumbnails). A revision adds a new version. | Field | Type | Description | |---|---|---| | `object` | string | Always `delivery`. One of: `delivery`. | | `id` | string | Unique id. | | `order_id` | string | The order. | | `version` | integer | 1 for the first delivery, 2 after the first revision, and so on. | | `status` | string | The version’s state. | | `delivered_at` | string or null | ISO 8601 timestamp (UTC) | | `created_at` | string | ISO 8601 timestamp (UTC) | | `files` | object[] | The files: `{ id, slot, file_name, media, mime_type, size_bytes, duration_seconds, width, height, preview_url, download_url }`. `download_url` is null while downloads are locked. | Example: ```json { "object": "delivery", "id": "dv_91aa2f", "order_id": "prj_01HZX8Q4V2", "version": 1, "status": "delivered", "delivered_at": "2026-12-06T18:40:00.000Z", "created_at": "2026-12-06T18:02:00.000Z", "files": [ { "object": "delivery_file", "id": "df_4c7e10", "slot": "Main video", "file_name": "maya-serum-v1.mp4", "media": "video", "mime_type": "video/mp4", "size_bytes": 48211904, "duration_seconds": 31.2, "width": 1080, "height": 1920, "preview_url": "https://besday.com/api/v1/orders/prj_01HZX8Q4V2/deliveries/files/df_4c7e10?variant=preview", "download_url": null } ] } ``` ## List deliveries `GET /api/v1/orders/{id}/deliveries` Every delivered version of the order and its files, with preview and download links. - Scope: `read` - Returns: 200 a list of `delivery` objects Path parameters: | Name | Type | Required | Description | |---|---|---|---| | `id` | string | yes | The order id. | cURL: ```bash curl "https://besday.com/api/v1/orders/prj_01HZX8Q4V2/deliveries" \ -H "Authorization: Bearer $BESDAY_API_KEY" ``` Node.js: ```javascript const res = await fetch("https://besday.com/api/v1/orders/prj_01HZX8Q4V2/deliveries", { headers: { Authorization: `Bearer ${process.env.BESDAY_API_KEY}`, }, }); const data = await res.json(); if (!res.ok) throw new Error(`${data.error.code}: ${data.error.message}`); ``` Python: ```python import os, uuid, requests res = requests.get( "https://besday.com/api/v1/orders/prj_01HZX8Q4V2/deliveries", headers={ "Authorization": f"Bearer {os.environ['BESDAY_API_KEY']}", }, timeout=30, ) res.raise_for_status() print(res.json()) ``` Response (200): ```json { "object": "list", "originals_unlocked": false, "locked_reason": "Downloads unlock when you approve. Until then you watch a watermarked preview, which keeps the creator’s work safe while you review it.", "data": [ { "object": "delivery", "id": "dv_91aa2f", "order_id": "prj_01HZX8Q4V2", "version": 1, "status": "delivered", "delivered_at": "2026-12-06T18:40:00.000Z", "created_at": "2026-12-06T18:02:00.000Z", "files": [ { "object": "delivery_file", "id": "df_4c7e10", "slot": "Main video", "file_name": "maya-serum-v1.mp4", "media": "video", "mime_type": "video/mp4", "size_bytes": 48211904, "duration_seconds": 31.2, "width": 1080, "height": 1920, "preview_url": "https://besday.com/api/v1/orders/prj_01HZX8Q4V2/deliveries/files/df_4c7e10?variant=preview", "download_url": null } ] } ], "has_more": false, "next_cursor": null } ``` Errors: `not_found`. Note: On a real creator’s order, originals unlock when you approve; until then `download_url` is null and `preview_url` serves a watermarked preview. AI creators’ files download at once. ## Download a file `GET /api/v1/orders/{id}/deliveries/files/{file_id}` The file’s bytes (supports HTTP Range). Add `?variant=preview` for the watermarked preview. - Scope: `read` - Returns: 200 the file’s bytes Path parameters: | Name | Type | Required | Description | |---|---|---|---| | `id` | string | yes | The order id. | | `file_id` | string | yes | A file id from List deliveries. | Query parameters: | Name | Type | Required | Description | |---|---|---|---| | `variant` | string | no | Serve the watermarked preview instead of the original. One of: `preview`. | cURL: ```bash curl -L -o video.mp4 "https://besday.com/api/v1/orders/prj_01HZX8Q4V2/deliveries/files/df_4c7e10" \ -H "Authorization: Bearer $BESDAY_API_KEY" ``` Node.js: ```javascript const res = await fetch("https://besday.com/api/v1/orders/prj_01HZX8Q4V2/deliveries/files/df_4c7e10", { headers: { Authorization: `Bearer ${process.env.BESDAY_API_KEY}`, }, }); const bytes = Buffer.from(await res.arrayBuffer()); ``` Python: ```python import os, uuid, requests res = requests.get( "https://besday.com/api/v1/orders/prj_01HZX8Q4V2/deliveries/files/df_4c7e10", headers={ "Authorization": f"Bearer {os.environ['BESDAY_API_KEY']}", }, timeout=30, ) res.raise_for_status() open("video.mp4", "wb").write(res.content) ``` Errors: `download_locked`, `not_found`. --- # Credits > Besday Credits API: read your brand’s credit balance. Orders are paid from credits; 1 credit = US$1. Source: https://besday.com/docs/api/credits · Updated 2026-12-03 · OpenAPI: https://besday.com/api/v1/openapi.json Orders are paid from your brand’s credits. 1 credit = US$1; credits never expire. ## The credit balance object Your brand’s credits. Orders are paid from credits; 1 credit = US$1. Credits are bought on besday.com by the owner or an admin. | Field | Type | Description | |---|---|---| | `object` | string | Always `credit_balance`. One of: `credit_balance`. | | `balance_credits` | number | Credits available to spend. | | `currency` | string | Always `credits`. One of: `credits`. | | `credit_value_usd` | number | Always 1. | | `spending_paused` | boolean | True when Besday paused spending (for example during a payment dispute). | | `can_buy` | boolean | Whether the key’s team member may buy credits (owner and admins). | | `buy_credits_url` | string | Where a person buys credits. | Example: ```json { "object": "credit_balance", "balance_credits": 500, "currency": "credits", "credit_value_usd": 1, "spending_paused": false, "can_buy": true, "buy_credits_url": "https://besday.com/app/brands/credits" } ``` ## Retrieve the credit balance `GET /api/v1/credits` Returns the brand’s credit balance. Orders are paid from it; 1 credit = US$1. - Scope: `read` - Returns: 200 `credit_balance` cURL: ```bash curl "https://besday.com/api/v1/credits" \ -H "Authorization: Bearer $BESDAY_API_KEY" ``` Node.js: ```javascript const res = await fetch("https://besday.com/api/v1/credits", { headers: { Authorization: `Bearer ${process.env.BESDAY_API_KEY}`, }, }); const data = await res.json(); if (!res.ok) throw new Error(`${data.error.code}: ${data.error.message}`); ``` Python: ```python import os, uuid, requests res = requests.get( "https://besday.com/api/v1/credits", headers={ "Authorization": f"Bearer {os.environ['BESDAY_API_KEY']}", }, timeout=30, ) res.raise_for_status() print(res.json()) ``` Response (200): ```json { "object": "credit_balance", "balance_credits": 500, "currency": "credits", "credit_value_usd": 1, "spending_paused": false, "can_buy": true, "buy_credits_url": "https://besday.com/app/brands/credits" } ``` Errors: `api_key_invalid`. ## Buying credits Credits are bought on besday.com by the brand’s owner or an admin: packs of 100, 250, 500, 1000, 2500 credits, or any amount from 25 to 10,000. Refunds of cancelled orders come back as credits. --- # Account > Besday Account API: check which brand, scope and team member an API key acts as, and the current credit balance. Source: https://besday.com/docs/api/account · Updated 2026-12-03 · OpenAPI: https://besday.com/api/v1/openapi.json Use the account endpoint to confirm a key works and see who it acts as. ## The account object Who the API key acts for: the brand, the key, and the team member who created it. | Field | Type | Description | |---|---|---| | `object` | string | Always `account`. One of: `account`. | | `brand` | object | `{ id, name, website }`. | | `api_key` | object | `{ id, scope }` of the key used. | | `acting_as` | object | `{ user_id, email, role }`: the team member the key acts as, with their current role. | | `credits` | object | `{ balance_credits, spending_paused }`. | Example: ```json { "object": "account", "brand": { "id": "ba_2d61f0", "name": "Glow Lab", "website": "https://glowlab.example" }, "api_key": { "id": "key_8b2e44c1", "scope": "read_write" }, "acting_as": { "user_id": "usr_51c9aa", "email": "ops@glowlab.example", "role": "admin" }, "credits": { "balance_credits": 500, "spending_paused": false } } ``` ## Retrieve the account `GET /api/v1/me` Check a key: returns the brand, the key’s scope, the team member it acts as, and the credit balance. - Scope: `read` - Returns: 200 `account` cURL: ```bash curl "https://besday.com/api/v1/me" \ -H "Authorization: Bearer $BESDAY_API_KEY" ``` Node.js: ```javascript const res = await fetch("https://besday.com/api/v1/me", { headers: { Authorization: `Bearer ${process.env.BESDAY_API_KEY}`, }, }); const data = await res.json(); if (!res.ok) throw new Error(`${data.error.code}: ${data.error.message}`); ``` Python: ```python import os, uuid, requests res = requests.get( "https://besday.com/api/v1/me", headers={ "Authorization": f"Bearer {os.environ['BESDAY_API_KEY']}", }, timeout=30, ) res.raise_for_status() print(res.json()) ``` Response (200): ```json { "object": "account", "brand": { "id": "ba_2d61f0", "name": "Glow Lab", "website": "https://glowlab.example" }, "api_key": { "id": "key_8b2e44c1", "scope": "read_write" }, "acting_as": { "user_id": "usr_51c9aa", "email": "ops@glowlab.example", "role": "admin" }, "credits": { "balance_credits": 500, "spending_paused": false } } ``` Errors: `api_key_missing`, `api_key_invalid`, `rate_limited`. --- # Webhook endpoints > Besday webhook endpoints API: register, list, test and delete the https URLs that receive signed order events. Source: https://besday.com/docs/api/webhook-endpoints · Updated 2026-12-03 · OpenAPI: https://besday.com/api/v1/openapi.json Webhook endpoints receive [signed events](https://besday.com/docs/api/webhooks) when your orders change. ## The webhook endpoint object A URL on your server that Besday POSTs signed events to when your orders change. | Field | Type | Description | |---|---|---| | `object` | string | Always `webhook_endpoint`. One of: `webhook_endpoint`. | | `id` | string | Unique id. | | `url` | string | https URL that receives events. | | `description` | string or null | Your label. | | `events` | string[] | Event types sent there, or `["*"]` for all. | | `secret` | string | Create only: the `whsec_…` signing secret. Shown once. | | `created_at` | string | ISO 8601 timestamp (UTC) | Example: ```json { "object": "webhook_endpoint", "id": "we_3f9d0c8e", "url": "https://yourapp.com/webhooks/besday", "description": "Production", "events": [ "order.delivered", "order.completed", "order.cancelled" ], "created_at": "2026-12-03T17:20:00.000Z" } ``` ## Create a webhook endpoint `POST /api/v1/webhook_endpoints` Registers an https URL for order events. The answer includes the signing secret, once. - Scope: `read_write` - Returns: 201 `webhook_endpoint` - Supports `Idempotency-Key` Body parameters (JSON): | Name | Type | Required | Description | |---|---|---|---| | `url` | string | yes | https URL on port 443 that resolves to public addresses. | | `events` | string[] | no | Event types to send, or `["*"]` (default) for all: `order.paid`, `order.awaiting_acceptance`, `order.awaiting_product`, `order.in_production`, `order.delivered`, `order.revision_requested`, `order.disputed`, `order.completed`, `order.cancelled`. | | `description` | string | no | Your label, up to 200 characters. | cURL: ```bash curl -X POST "https://besday.com/api/v1/webhook_endpoints" \ -H "Authorization: Bearer $BESDAY_API_KEY" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "url": "https://yourapp.com/webhooks/besday", "events": [ "order.delivered", "order.completed", "order.cancelled" ], "description": "Production" }' ``` Node.js: ```javascript const res = await fetch("https://besday.com/api/v1/webhook_endpoints", { method: "POST", headers: { Authorization: `Bearer ${process.env.BESDAY_API_KEY}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json", }, body: JSON.stringify({ "url": "https://yourapp.com/webhooks/besday", "events": [ "order.delivered", "order.completed", "order.cancelled" ], "description": "Production" }), }); const data = await res.json(); if (!res.ok) throw new Error(`${data.error.code}: ${data.error.message}`); ``` Python: ```python import os, uuid, requests res = requests.post( "https://besday.com/api/v1/webhook_endpoints", headers={ "Authorization": f"Bearer {os.environ['BESDAY_API_KEY']}", "Idempotency-Key": str(uuid.uuid4()), }, json={ "url": "https://yourapp.com/webhooks/besday", "events": [ "order.delivered", "order.completed", "order.cancelled" ], "description": "Production" }, timeout=30, ) res.raise_for_status() print(res.json()) ``` Response (201): ```json { "object": "webhook_endpoint", "id": "we_3f9d0c8e", "url": "https://yourapp.com/webhooks/besday", "description": "Production", "events": [ "order.delivered", "order.completed", "order.cancelled" ], "created_at": "2026-12-03T17:20:00.000Z", "secret": "whsec_Wq3m…(shown once)" } ``` Errors: `parameter_invalid`, `url_not_allowed`, `limit_reached`. ## List webhook endpoints `GET /api/v1/webhook_endpoints` Your brand’s webhook endpoints (secrets are never shown again). - Scope: `read` - Returns: 200 a list of `webhook_endpoint` objects cURL: ```bash curl "https://besday.com/api/v1/webhook_endpoints" \ -H "Authorization: Bearer $BESDAY_API_KEY" ``` Node.js: ```javascript const res = await fetch("https://besday.com/api/v1/webhook_endpoints", { headers: { Authorization: `Bearer ${process.env.BESDAY_API_KEY}`, }, }); const data = await res.json(); if (!res.ok) throw new Error(`${data.error.code}: ${data.error.message}`); ``` Python: ```python import os, uuid, requests res = requests.get( "https://besday.com/api/v1/webhook_endpoints", headers={ "Authorization": f"Bearer {os.environ['BESDAY_API_KEY']}", }, timeout=30, ) res.raise_for_status() print(res.json()) ``` Response (200): ```json { "object": "list", "data": [ { "object": "webhook_endpoint", "id": "we_3f9d0c8e", "url": "https://yourapp.com/webhooks/besday", "description": "Production", "events": [ "order.delivered", "order.completed", "order.cancelled" ], "created_at": "2026-12-03T17:20:00.000Z" } ], "has_more": false, "next_cursor": null } ``` ## Delete a webhook endpoint `DELETE /api/v1/webhook_endpoints/{id}` Stops sending events to the endpoint. Pending deliveries to it are dropped. - Scope: `read_write` - Returns: 200 `deleted` Path parameters: | Name | Type | Required | Description | |---|---|---|---| | `id` | string | yes | The endpoint id. | cURL: ```bash curl -X DELETE "https://besday.com/api/v1/webhook_endpoints/we_3f9d0c8e" \ -H "Authorization: Bearer $BESDAY_API_KEY" ``` Node.js: ```javascript const res = await fetch("https://besday.com/api/v1/webhook_endpoints/we_3f9d0c8e", { method: "DELETE", headers: { Authorization: `Bearer ${process.env.BESDAY_API_KEY}`, }, }); const data = await res.json(); if (!res.ok) throw new Error(`${data.error.code}: ${data.error.message}`); ``` Python: ```python import os, uuid, requests res = requests.delete( "https://besday.com/api/v1/webhook_endpoints/we_3f9d0c8e", headers={ "Authorization": f"Bearer {os.environ['BESDAY_API_KEY']}", }, timeout=30, ) res.raise_for_status() print(res.json()) ``` Response (200): ```json { "object": "webhook_endpoint", "id": "we_3f9d0c8e", "deleted": true } ``` Errors: `not_found`. ## Send a test event `POST /api/v1/webhook_endpoints/{id}/test` Sends a signed `ping` event now and reports what your endpoint answered. - Scope: `read_write` - Returns: 200 `webhook_test` Path parameters: | Name | Type | Required | Description | |---|---|---|---| | `id` | string | yes | The endpoint id. | cURL: ```bash curl -X POST "https://besday.com/api/v1/webhook_endpoints/we_3f9d0c8e/test" \ -H "Authorization: Bearer $BESDAY_API_KEY" ``` Node.js: ```javascript const res = await fetch("https://besday.com/api/v1/webhook_endpoints/we_3f9d0c8e/test", { method: "POST", headers: { Authorization: `Bearer ${process.env.BESDAY_API_KEY}`, }, }); const data = await res.json(); if (!res.ok) throw new Error(`${data.error.code}: ${data.error.message}`); ``` Python: ```python import os, uuid, requests res = requests.post( "https://besday.com/api/v1/webhook_endpoints/we_3f9d0c8e/test", headers={ "Authorization": f"Bearer {os.environ['BESDAY_API_KEY']}", }, timeout=30, ) res.raise_for_status() print(res.json()) ``` Response (200): ```json { "object": "webhook_test", "endpoint_id": "we_3f9d0c8e", "event_id": "evt_77aa01", "delivered": true, "status_code": 200, "error": null } ``` Errors: `not_found`. --- # Changelog > Changes to the Besday API, newest first. Version 2026-12-03 is the first public release of the Brand API v1. Source: https://besday.com/docs/api/changelog · Updated 2026-12-03 · OpenAPI: https://besday.com/api/v1/openapi.json Within v1, changes are additive: new endpoints, new optional parameters, new fields and new event types. Write clients that ignore fields they do not know. ## 2026-12-03: Brand API v1 - API keys with `read` and `read_write` scopes, made in Settings → API keys. - Creators: list with marketplace filters, retrieve with prices and rating. - Orders: create with a structured brief, pay from credits, list, retrieve, delete unpaid, approve, request revisions. - Messages and deliveries (with file downloads). - Signed webhooks for every order status, with retries. - Idempotency keys, rate-limit headers, OpenAPI 3.1, llms.txt.