LogoLogo
Try it outResourcesAPIsAddOnsBook a demo
  • Getting Started
    • Introduction to Beefree SDK
      • Create an Application
      • Installation and Fundamentals
        • Configuration parameters
          • Configuration Reload
          • Workspaces
          • Debugging the Beefree SDK Editor
        • Methods and Events
        • Authorization Process
        • How the UID parameter works
        • Set up two-factor authentication
        • Naming conventions
      • Development Applications
      • Manage Users
      • Manage Subscriptions
    • Tracking Message Changes
    • Sample Code
    • Release Candidate Environment
  • Visual Builders
    • Email Builder
    • Page Builder
      • Integrating Page Builder
      • Embedding videos in a page
    • Popup Builder
      • Popup Builder - Getting Started
      • Testing and Integrating
      • Setting layout and size
        • Advanced settings
    • AI-Driven Design Creation
  • APIs
    • Content Services API
      • Authentication
      • Export
      • Convert
      • Row Processing
      • AI Collection
      • Brand Style
      • Check
    • Template Catalog API
      • Authentication
      • Templates
      • Categories
      • Collections
      • Designers
      • Tags
    • HTML Importer API
      • Authentication
      • Import HTML
  • Forms
    • Form Block
    • Integrating and using the Form block
      • Passing forms to the builder
      • Form structure and parameters
      • Form layout customization
      • Allowed form fields
      • Edit form field modal
  • Rows
    • Reusable Content
      • Create Reusable Content
        • Pre-build Reusable Content
          • Implement Custom Rows
        • Save Reusable Content
          • Implement Hosted Saved Rows
          • Implement Self-hosted Saved Rows
            • Self-hosted Saved Rows Concepts and Tutorial
      • Sync Reusable Content
        • Implement Synced Rows
        • Initialize Edit Single Row Mode
      • Manage Reusable Content
    • Storage for Reusable Content
      • Hosted Saved Rows
      • Self-Hosted Saved Rows
  • File manager
    • File manager application overview
      • Mime Types and Groups
  • Server-side configurations
    • Server-side options
      • Toolbar options
      • Storage options
        • Configure your AWS S3 bucket
        • Connect your file storage system
      • Content options
      • Services options
      • Undo & Changes history
      • Custom JavaScript Libraries Injection
  • Other Customizations
    • Advanced options
      • Special Links and Merge Tags
      • Content Dialog
      • Custom Color Palette
      • Font management
      • Roles and Permissions
      • Smart Merge Tags
      • Commenting
      • Custom Attributes
      • Meta Tags
      • Custom Languages
      • Display Conditions
      • Advanced Permissions
      • Custom File Picker
      • Custom Headers
    • Appearance
      • Content Defaults
      • Custom Sidebar Position
      • Content Tile Sorting
      • Content Tile Grouping
      • Loading Spinner Theme
      • Custom Tab Layout
      • Themes
      • Custom CSS
        • Change Log
    • AMP for Email
    • Collaborative Editing
      • Co-editing Integration Guide
    • Mobile Design Mode
    • Multi-language Templates
    • Cards Style and Image Round Corners
    • Hover Effect for Buttons
    • Content Area Padding
    • Line Height
    • Frontend Commands
  • Data Structures
    • Getting Started
    • Schema Catalog
    • Simple Schema
      • Template Schema
      • Definitions Schema
      • Row Schema
      • Column Schema
      • Title Schema
      • Image Schema
      • Button Schema
      • Paragraph Schema
      • HTML Schema
      • Menu Schema
      • List Schema
      • Icon Schema
      • Divider Schema
    • Row Metadata
    • Form Validation Schema
    • Comments Schema
      • Change Schema for Comments
  • Builder AddOns
    • AddOns
      • AddOns Overview
      • Partner AddOns
        • Partner AddOns directory
        • Installing Partner AddOns
        • DeepL
        • Stability AI
        • Azure AI Vision - Image Analysis
          • Alternate Text Generation with AI
          • AI Alt Text Bulk Generation
        • AI Writing Assistant
          • Available Providers
            • OpenAI
            • Azure OpenAI
            • Anthropic
          • AI Providers and Data Security
          • AI-Generated Meta Tag Fields
          • Token Upselling
          • Apply a Brand Tone
        • Custom AI Writing Assistant
      • Custom AddOns
        • AddOn Development
        • Contribute to the Partner AddOn Marketplace
      • AddOns Configuration
      • AddOn FAQs
  • Resources
    • Error Management
      • onWarning
      • Beefree SDK Editor Errors
      • File System Provider errors
      • JSON Parser errors
      • Template Validation and Update
      • Template validation and update errors
    • Scheduled maintenances
Powered by GitBook
LogoLogo

Policies

  • Privacy & Cookies
  • Terms of Services
  • GDPR Compliance
  • Trust Center

Contact Us

  • Submit a request
  • Book a demo
  • Report a security issue
  • Beefree SDK Startup Program

Resources

  • Developer website
  • Create a Developer Account

© Bee Content Design, Inc. San Francisco, CA | Part of Growens

On this page
  • Beefree SDK API Offering
  • Overview of Content Services API
  • Use Cases and Capabilities
  • Base URL
  • Collections by Category
  • Rate Limits
  • Strategies for Managing Rate Limits
  • FAQs
  • What is the pricing by plan type?
  • How will charges appear on my bill?
  • Can I use different payment methods for each app?
  • How do you calculate request limits?

Was this helpful?

Export as PDF
  1. APIs

Content Services API

Learn more about the Content Services API offering in Beefree SDK.

PreviousAI-Driven Design CreationNextAuthentication

Last updated 10 days ago

Was this helpful?

The Content Services API is available on Beefree SDK paid plans only.

Beefree SDK API Offering

Beefree SDK includes a comprehensive API offering designed to expand upon the builder's capabilities. By leveraging Beefree SDK's APIs, you can extend the builder's functionality into other aspects of your application.

Beefree SDK's API offering includes three APIs. They are the following:

  • Content Services API

  • Template Catalog API

  • HTML Importer API

This section of the documentation discusses the Content Services API, which includes resources for exporting, converting, processing, and styling templates within Beefree SDK. This collection of resources extends the functionality of the builder to offer your end users a complete content creation solution.

API
Purpose
Requires Separate API Key?

Import custom HTML into Beefree SDK

Export, convert, and style templates and rows. Use AI to generate metadata, SMS, and summaries.

Access Beefree's catalog of templates

Overview of Content Services API

The Content Services API is a REST-based API that enables Beefree SDK integrators to programmatically manipulate template JSON. It is built to follow predictable resource url patterns, and to utilize standard HTTP response codes and methods.

Beefree SDK requires that you authenticate prior to accessing the Content Services API's resources. You can generate API keys for both production and development applications. API keys associated with development applications are intended for pre-production environments and endpoint testing. They should not be used in production environments.

There are five categories of resources within the Content Services API. Each of these categories includes a group of endpoints with resources to support various workflows.

These categories are the following:

  • Export: Services that allow users to extract content into various formats (such as HTML, PDF, or image files), making it easy to repurpose or distribute designs across different platforms.

  • Convert: Tools that transform content from one format to another (for example, converting template JSON to HTML ). This enables compatibility with different systems and workflows.

  • AI Collection: AI-powered capabilities for text generation, such as creating metadata for emails, summarizing content, or creating SMS messages.

  • Row Processing: Services that operate at the structural level, such as analyzing, modifying, or extracting specific rows or sections within a design for granular control over the content layout.

  • Brand Style: Resources focused on enforcing or applying brand guidelines, including applying consistent colors, typography, and spacing rules to ensure brand integrity across all generated content.

  • Check: Perform checks on email, page, and row content. Report design feedback to end users.

The following diagram displays each of the five categories within the Content Services API, and their corresponding resources.

Use Cases and Capabilities

This section provides a high level overview of the Content Services API's capabilities, and lists a few scenarios in which this API is particularly helpful.

Export Different Formats

One of the most common use cases for the Content Services API is exporting different format types. Once your end users complete their designs within the no-code builder, they'll want to export their designs and distribute them. That is where the Export category stands out. By using this category of endpoints, you can provide your end users with the option to export their no-code designs in HTML, plain text, PDF, or image formats.

Your end users may want to export their templates into various formats in the following scenarios:

  • HTML: For sending email campaigns, publishing landing pages, or embedding popups.

  • Plain Text: For accessibility, compatibility with text-only email clients, improved deliverability, and compliance with communication regulations.

  • PDF: For attaching designs to emails, SMS, WhatsApp, printing hard copies, or creating flyers, while preserving the design's layout.

  • Image: For creating visual galleries, dashboards, social media posts, internal presentations, or campaign planning visuals.

Convert Content

Another common use case of the Content Services API is converting one format to another. The formats in the Convert category differ from those in the Export category, and serve a separate purpose. This category of endpoints is for creating designs and loading them within the builder.

These endpoints allow you to:

  • Page to Email: Convert existing page templates into email templates. This saves your end users time by allowing them to use their favorite designs across multiple content channels.

  • Email to Page: Convert existing email templates into page templates. This saves your end users time by allowing them to use their favorite designs across multiple content channels.

  • Simple to Full JSON: Convert an AI-generated Simple Schema into full Beefree JSON that can be loaded within the builder for your end users to edit.

AI Collection

This category of endpoints requires that you configure an AI Provider within the Beefree SDK Developer Console. Through the integration with your AI Provider, these endpoints generate the following supporting details for your end users templates:

  • SMS: Generates concise text versions (e.g., promotional SMS).

  • Metadata: Generates subject lines and preheaders based on a template's content.

  • Summary: Generate summaries based on a template's content.

Row Processing

These endpoints manage rows within templates to maintain consistency and reduce redundancy:

  • Index: List saved rows available.

  • Merge: Merge row updates across multiple templates. Particularly useful when applying global updates.

  • Synced Rows: Retrieve a list of synced rows available.

Brand Style Management

Brand consistency can be enforced or retroactively applied across templates:

  • /templates and /rows endpoints allow updating visual properties (colors, fonts, spacings, etc.) across multiple templates or rows based on defined brand styles.

Check

The Check group of endpoints enables you to provide content feedback to your end users directly within the builder. With the Check endpoints, you can inform your end users when their emails, pages, or rows are missing valuable information (for example, links for Calls-to-Action), before they export their designs.

You can use these endpoints to provide feedback on:

  • Email designs

  • Page designs

  • Rows within designs

Learn more about all the available checks in the Check section of the API documentation.

Base URL

All API access is over HTTPS, and accessed from the following URL:

https://api.getbee.io/v1/{collection}/{resource}

You can reference each resource and its corresponding collection options in the following section.

Collections by Category

The following tables list the available collection options for resources within the category.

Export

The following table lists the resources available in this category of endpoints and their corresponding collection options.

Resource
Collection Options

/html

  • /message

  • /page

  • /popup

  • /amp

/plain-text

  • /message

/pdf

  • /message

  • /page

/image

  • /message

  • /page

Convert

The following table lists the resources available in this category of endpoints and their corresponding collection options.

Resource
Collection Options

/page-to-email

  • /conversion

/email-to-page

  • /conversion

/simple-to-full-json

  • /conversion

AI Collection

The following table lists the resources available in this category of endpoints and their corresponding collection options.

Resource
Collection Options

/sms

  • /ai

/metadata

  • /ai

/summary

  • /ai

Row Processing

The following table lists the resources available in this category of endpoints and their corresponding collection options.

Resource
Collection Options

/merge

  • /message

  • /page

/merge-rows

  • /message

  • /page

/synced-rows

  • /message

  • /page

/merge-index

  • /message

  • /page

Brand Style

The following table lists the resources available in this category of endpoints and their corresponding collection options.

Resource
Collection Options

/brand

  • /template

  • /row

Check

The following table lists the resources available in this category of endpoints and their corresponding collection option.

Resource
Collection Options

/check

  • /message

  • /page

  • /row

Example URLs

The following table provides a few examples of URLs you can reference as an example for making specific types of requests.

Type
Action
Example URL

Email

Request HTML for email

https://api.getbee.io/v1/message/html

Landing Page

Request HTML for a landing page

https://api.getbee.io/v1/page/html

Popup

Request HTML for a popup

https://api.getbee.io/v1/popup/html

AMP

Request HTML for AMP

https://api.getbee.io/v1/amp/html

Rate Limits

API requests rate limits exist independently of API key’s monthly usage allowance.

By default, the API has the following rate limits:

  • Per minute: 500 requests

  • Per second: 100 requests

  • X-Rate-Limit: An integer representing the total number of requests available per cycle. Exceeding the limit per cycle results in a 429 error. (e.g. 500)

  • X-Rate-Limit-Remaining: An integer representing the number of remaining requests before the next cycle begins, and the count resets. (e.g. 100)

  • X-Rate-Limit-Reset: A Unix timestamp representing the time the next cycle will begin, and the count will reset.

  • Retry-After: A Unix timestamp representing the time the application may resume submitting requests.

Strategies for Managing Rate Limits

To stay within the default limits and ensure reliable delivery, the following practices are recommended. These not only help distribute traffic more evenly but also provide resilience against transient network issues:

  • Monitor rate limit headers and handle 429 responses gracefully. Response metadata indicates remaining capacity and reset timing. When receiving a 429 Too Many Requests, it’s best to pause requests and retry after the time specified in the Retry-After header.

  • Use exponential backoff. On retries, apply an exponentially increasing delay with a small random variation. This helps prevent synchronized retry storms that can worsen congestion.

  • Throttle traffic using a queue. In applications that generate burst traffic or scale horizontally, a request queue with rate-based throttling can smooth spikes and prevent exceeding per-second or per-minute thresholds.

  • Debounce high-frequency updates. Debouncing can be especially effective in scenarios like autosaving. For example, it's not typically necessary to request new HTML after every change.

  • Cache repeated GET requests.

    Short-lived caching for frequently accessed data helps reduce redundant requests and conserves rate limit capacity.

  • Monitor usage patterns. Set up alerting for repeated 429 errors to catch rate limit issues early. Monitoring request patterns can also help anticipate scale needs.

FAQs

Reference the answers to the most frequently asked questions in this section.

What is the pricing by plan type?

The Content Services API allows you to carry out a number of useful tasks, like converting an email or a page into a thumbnail image or a PDF document, or updating a footer into all the emails that use it (for example, a saved row).

These tasks consume resources in our Amazon Web Services environment, so we have to account for that. We did extensive research to define pricing that is consistent with other APIs.

Here is a quick summary:

Plan
Included API calls
Cost per extra API call

Essentials

15,000

$0.01

Core

50,000

$0.01

Superpowers

250,000

$0.003

Enterprise

Custom

Custom

Note: Overages to the allotted amounts for each Beefree SDK plan type are charged at the end of the billing period. For this reason, the first invoice after cancellation may include usage charges for the Content Services API. Reference the Usage-based fees article for more information.

How will charges appear on my bill?

An additional charge, CSAPI, will be added to your current subscription plan invoice. When you activate the Content Services API, your billing statement will change, and you'll notice a new line item on your Beefree SDK invoice for the service.

Can I use different payment methods for each app?

The Content Services API is provided as a component for your current subscription and the charges will be applied to the subscription payment method. Currently, there is no option to use an alternative payment method specific to these charges.

How do you calculate request limits?

API requests rate limits exist independently of any API key’s monthly usage allowance.

The API has the following rate limits:

  • Per minute: 500 requests

  • Per second: 100 requests

✅ Yes, .

✅ Yes, .

✅ Yes,.

HTML Importer
see authentication instructions
CSAPI
see authentication instructions
Template Catalog
see authentication instructions
Diagram Displaying Beefree SDK's API Offering
Content Services API Offering