Skip to Content
Blackbell for builders
Guides

Choose the recipe for the task

Load when choosing the shortest call sequence for page edits, batches, uploads, bookings, customer imports, broadcasts or access rules.

Pages and translations

  • For a named change, use find_and_edit with find (“Office closed”), then with changes from the exact snippet. Use check_edit_session to show both screenshots with preview_url. On yes, call go_live_edit_session.
  • For a conversion review, use list_pages, get_page_outline, start_edit_session and check_edit_session. Offer at most five changes in priority order. Wait for the person’s picks before one edit_page, check with fix: true, preview and ask before go live. improve-page
  • For repairs, use list_pages, start_edit_session and check_edit_session with fix: true. Fix remaining issues in one edit_page without changing the design or meaning. Recheck the final copy, show repairs, screenshots and preview, then go live on yes. fix-page
  • For translations, send a free page’s texts in the same order with add_page_language. For normal blocks, use get_page_texts, then one edit_page with locale.
  • Use one edit session per page. Put every change in it, then go live once. A new session per change costs calls and ends in 409 page_changed when another session went live first.
  • With replace_code, send all changes of one block as pairs in one call (up to 50).

Batch calls, files and shared CSS

  • Prepare each change. For many pages’ slugs, settings or go live, use one run_many with the tool name and arguments per call, when available. Otherwise call individually. Successful writes return short answers with omitted keys in left_out. Request full: true only when needed. Go live once per approved session. Stop on already_live.
  • For several files, batch get_upload_link in one run_many with one {} per file. Upload each via curl -T to its own link. Use each upload_id with import_page per new page, or batch translations in one run_many of add_page_language.

Bookings, imports and messages

  • For a new booking page, read get_settings, create the calendar, set its hours with set_calendar_hours, create the form with 2–7 questions and link it with set_form_schedule. Preview availability. On yes use set_form_status published. Follow the new-page recipe with data-bb-open="form:<form id>" buttons. set-up-booking
  • To book for someone, match their email with upsert_customer, then call list_offers, list_free_slots and hold_slot (15 minutes). On yes use confirm_hold. Give the person pay_url for a paid form.
  • To import, dedupe and label, call create_label for the requested name (reuses an existing label). Use import_customers with up to 1,000 rows keyed by email and label_ids on each row. Report new and matched counts. import-customers
  • For a group broadcast, call list_customer_groups or list_labels, draft_broadcast with draft: true and the audience, preview_broadcast, then get_broadcast. Show preview, audience in words and count. Only on yes call send_broadcast. send-broadcast

Audience-specific pages and forms

  • For different owner/tenant content at one link, use start_edit_session with new: true and a name (e.g. “Owners”). Read get_page_outline on copy_page_id. Use set_text or replace_code with the named session id and a block id from its copy. Show its preview_url, screenshots from check_edit_session and the group in words. After yes use set_version_audience with that session and group. Other visitors see the public page.
  • To restrict a page or form, use list_labels or list_customer_groups. Explain who gets access and what others see. Wait for yes, then use set_page_access or set_form_access. page-access-and-versions

On this page