This QuickStart demonstrates how to extend an embedded Sigma workbook with scheduled export functionality using the Sigma REST API.

Unlike basic embedding scenarios, this implementation provides users with export management capabilities directly within the host application. We won't cover every possibility, but we will cover these three core workflows:

1: Schedule an Export:
Allow users to create scheduled exports by configuring email recipients, subject lines, message content, export format (PDF, CSV, Excel), and delivery frequency (daily, weekly, monthly). The system handles workbook ID resolution and validates all parameters before creating the schedule via the Sigma API.

2: Manage Export Schedules:
Provide users with a management interface to view existing export schedules, edit configurations (with recipient re-entry for security compliance), delete unwanted schedules, and immediately trigger exports with custom recipient lists.

3: Send Now:
Enable users to send exports on-demand using existing schedule configurations, with the ability to specify different recipients for ad-hoc sharing without modifying the original schedule.

This approach enables a complete export management experience directly within the embedded environment. It's especially useful for SaaS providers, internal dashboards, or any scenario where users need to share Sigma content via email without requiring direct access to the Sigma interface.

REST API Usage 01: Getting Started

For more information on Sigma's product release strategy, see Sigma product releases

If something doesn't work as expected, here's how to contact Sigma support

Target Audience

Developers who want to use Sigma's REST API to programmatically control Sigma in an embedded context.

Prerequisites

Sigma Free Trial

Download Visual Studio Code

Footer

Start the Express server in terminal from the embedding_qs_series_2_api_use_cases folder and enable debugging:

DEBUG=true npm start

The server is ready when it displays: Server listening at http://localhost:3000.

Browse to the landing page:

http://localhost:3000

Select the Exports page and click Go.

Select the Embed_API_QuickStart workbook:

The embed loads but there are no exports set up yet, and we can only see the Schedule Export button.

Footer

Click the Schedule Export button to access the modal.

Configure it to send a PDF daily at 9:00 AM to a valid email address:

Click Create.

Observing the console log, we can see the POST command to Sigma along with the various path and body parameters sent. For example, we set the includeLink value to false since this is an embed and we don't want embed users to have that link back to Sigma in the email:

A popup will confirm the export was created with Export schedule created successfully!.

Click Ok to close that.

We are returned to the page and now there is a Manage Exports button present. This appears whenever the selected workbook has a export schedule:

Before we look at that, let's confirm in Sigma that the export job has been created there.

Open Sigma and navigate to the Embed_API_QuickStart.

Select Scheduled Exports from the workbook's menu:

We will have the job just created listed:

Footer

Back in our host application, click the Manage Exports button.

For each export job, we provide three functions:

They are self-explanatory; go ahead and experiment with them to see how they work, observing the console and browser inspection logs for each operation.

For example, if we click, Run Now, we are prompted for one or more email addresses to send to. we are asked to confirm and then we verify the email arrived in our mailbox:

Cleanup

You may want to delete any export jobs created so that they do not run on future schedules. Just click the Delete button for each job created.

Once all are deleted, the Manage Exports button will be hidden.

Footer

In this QuickStart, we demonstrated how to extend your Sigma embedding experience with export management functionality. Specifically, we covered:

This QuickStart builds on the foundational embedding setup and introduces a practical use case for email-based content sharing directly from the embedded environment, eliminating the need for users to access the Sigma interface directly.

Additional Resource Links

Blog
Community
Help Center
QuickStarts

Be sure to check out all the latest developments at Sigma's First Friday Feature page!

Footer