Issue
When attempting to email dashboard reports directly to users, the platform requires recipients to have full Insights API permissions. Granting this level of access exposes all instance and workspace data to those users, creating a security issue when trying to restrict data visibility.
Product
Flex Insights
Environment
Twilio Console, Flex Analytics Portal
Cause
Native dashboard sharing relies on recipient roles having broad Insights API permissions. Because permissions cannot be scoped down to a single dashboard at the user level, native sharing exposes the entire workspace's data instance to the recipient.
Option 1: Manual Data Export and Emailing
Log into Flex and open the Analytics Portal using an authorized account.
Navigate to the desired report or dashboard.
Hover over the report title and click the three-dot options icon.
Click Download As and select your target export format (PDF, PNG, XLSX, or CSV).
Attach the downloaded report file to an email and send it directly to recipients using your corporate email client.
Option 2: Dynamic Scripting using the Flex Insights Export API
Obtain API user credentials with access to your provisioned Flex Insights Workspace.
Authenticate against the API by sending a
POSTrequest to/gdc/account/loginto retrieve a Super Secured Token (SST), followed by aGETrequest to/gdc/account/tokenfor a Temporary Token (TT).Retrieve your
Workspace IDfrom the Analytics Portal URL and your reportObject IDfrom the report's browser address bar URL.Execute a
POSTrequest to[https://analytics.ytica.com/gdc/app/projects/](https://analytics.ytica.com/gdc/app/projects/){workspace_id}/execute/rawcontaining the report object path payload andGDCAuthTTcookie header.Handle potential
202HTTP response statuses with a retry loop until a200response returns the export downloadURI.Issue a
GETrequest to[https://analytics.ytica.com/](https://analytics.ytica.com/){URI}to fetch the generated CSV data.Configure an automated script or serverless function (e.g., Twilio Functions, AWS Lambda) to pass the raw data payload to an email delivery service (such as Twilio SendGrid) and dispatch it to recipients automatically.
Additional Information
For step-by-step authentication workflows and payload samples, see Export Data from Flex Insights via API.
Running automated API export scripts keeps system credentials secure while ensuring end recipients only receive relevant data attachments without accessing the Flex interface.