Skip to main content

Get email settings

GET https://api.rollstack.com/public/v1/reports/{id}/email-config

Who a report's email goes to and how it is sent, for a report of any type. Answers 404 until its email is set up, as on a burst's variant that sends no email of its own. For a burst, read listBurstVariants, which has every variant's recipients, and listBurstEmailConfigs rather than calling this on each variant. On an older report that sends to several recipient groups, to, cc, bcc and replyTo list every group's addresses together.

Requires the slide_decks:read scope.

Operation ID: getReportEmailConfig.

Path parameters

  • id (string, required): The report to act on, of any type, by its id from listReports or createReport. You can also copy it from the report's link in Rollstack (appUrl): it's the part right after /slides/ or /destinations/.

Response 200

Success

application/json

  • to (array of string, required): The addresses the report's email is sent to. When empty, no one receives it: the report's runs send no email and sendReportEmail returns 400.
  • cc (array of string, required): The addresses copied on the report's email, which every recipient can see.
  • bcc (array of string, required): The addresses that also receive the report's email without the other recipients seeing them.
  • replyTo (array of string, required): The addresses recipients' replies go to instead of the sender. They don't receive the email themselves. Empty when replies go to the sender.
  • groupRecipients (boolean, required): Whether all the addresses in to receive one email together. When false, each address in to gets its own email with the same cc, bcc and replyTo, so the addresses in cc and bcc receive one copy per address in to.
  • smtpServerId (string or null, required): The SMTP connection the report's email is sent through, from listSmtpConnections; recipients see its from address as the sender. null when the email is sent from Rollstack's own address.
  • sharingFormat (string, required): How the email delivers the report. pdf and ppt send it as a PDF or PowerPoint file, attached or behind a download button (see sendAttachmentAsLink); a slide deck leaves its hidden slides out. link sends a link to the Google Drive or OneDrive file an older report updates, shared with the recipients as set in the app; an email report sends its content in the email itself, and a slide deck has no such file, so one whose settings still contain link is emailed as a PDF behind a download button. cloudLink (Exported link in the app), for slide decks only, sends a link to the copy exported to Google Drive or OneDrive and shares it with the addresses in to, cc and bcc with the sharing permission set in the app, viewer unless changed there; if no permission is set, as after PDF or PPT was picked in the app, the copy isn't shared with them. One of link, pdf, ppt, cloudLink.
  • sendAttachmentAsLink (boolean, required): Whether the email puts the pdf or ppt file behind a Download PDF or Download PPT button instead of attaching it. When false, the file is attached. Has no effect with cloudLink.
  • trigger (string, required): Which of the report's runs email it automatically. A run emails it when it updates everything, or when all its failures are in ignoredFailureStatusMessages. On a slide deck, all and scheduled work the same way: only runs started by its schedules (see getReportSchedules) send the email, and a slide deck with no datasheets is never emailed by its runs. On an older report, all emails after every run of the whole report, whether started by a schedule, with startReportRun or in the app, and scheduled only after runs its schedules start; a run of only some syncs never emails it. With none (Manual in the app), no run sends it: the email goes out only when sent with sendReportEmail or from the app. One of all, none, scheduled.
  • ignoredFailureStatusMessages (array of string, required): The failures that don't stop a run from emailing the report (see trigger). A run with failures still sends the email when all of them are in this list. On a slide deck, a run in which every datasheet fails never does. A slide deck's run records each failed datasheet as internal_server_error, so on a slide deck that is the only value with an effect. An older report's run records each failed sync's own reason, the error.code listReportSyncs shows.

    The other values describe why a sync of an older report failed, and have an effect only on older reports:

    • dashboard_not_found, or the older tableau_view_not_found: the dashboard, Tableau workbook, Power BI report or spreadsheet could not be found.
    • dashboard_tab_not_found: the dashboard tab, Tableau view, Power BI report page or spreadsheet sheet could not be found.
    • dashboard_not_ready: the dashboard took too long to load.
    • dashboard_has_errors: the dashboard or spreadsheet failed to load because of an error in the tool it comes from.
    • dashboard_invalid_layout: the dashboard's layout is invalid, and it needs to be saved again.
    • element_not_found, or the older metabase_element_not_found and looker_element_not_found: the visualization could not be found.
    • slide_not_found, or the older google_slide_not_found: the slide that shows the visualization could not be found.
    • file_not_found: the spreadsheet file the visualization comes from could not be found.
    • sheet_not_found: the spreadsheet sheet could not be found.
    • sheet_hidden: the spreadsheet sheet is hidden and needs to be unhidden.
    • range_not_found: the spreadsheet range could not be found.
    • duplicate_file_failed: Rollstack could not prepare the spreadsheet file for the update.
    • merged_range_on_filter_range: the visualization has merged cells, which filters can't be applied to.
    • insufficient_permissions: the owner doesn't have edit access to the file.
    • image_cropping_failed: Rollstack could not crop the visualization's image.
    • visualization_not_found: the visualization could not be found in the dashboard.
    • visualization_not_ready: the visualization took too long to load.
    • visualization_has_errors: the visualization failed to load because of an error in the tool it comes from.
    • visualization_empty, or the older empty_data: the visualization is empty.
    • invalid_credentials: the connection's credentials are invalid.
    • missing_credentials: the connection's credentials were deleted, or the owner's access to it was suspended.
    • instance_unavailable: the data source's instance is temporarily unavailable.
    • column_not_found: a column the native chart uses is missing from its data.
    • fetch_summary_data_error, fetch_visual_specification_error, missing_data, missing_formatted_value and viz_not_ready: Rollstack could not fetch the data of a native chart.
    • incorrect_data_structure: the native chart's structure doesn't fit its data.
    • malformed_data: Rollstack could not fetch the data of a native chart or, from Snowflake, Databricks or BigQuery, the query is invalid.
    • worksheet_not_found: the Tableau worksheet could not be found.
    • sync_not_found: the visualization was deleted.
    • file_update_failed: the data was fetched but could not be written into the file.
  • emailAnalyticsEnabled (boolean, required): Whether Rollstack tracks when recipients open the report's email; opened emails show as Opened in the report's Email sends panel in the app. Opens are tracked only while email analytics is also on for the organization (emailAnalyticsEnabled from getOrganization). Rollstack detects them through an invisible image in the email.
  • createdAt (string (date-time), required): When the report's email settings were created. Until they exist, getReportEmailConfig returns 404.
  • updatedAt (string (date-time), required): When the report's email settings were last saved. Changes the slides agent makes to the recipients alone don't update it.