> ## Documentation Index
> Fetch the complete documentation index at: https://docs.explo.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Email Dashboard Screenshot as Attachment

This endpoint takes a screenshot of the dashboard and emails it as an attachment. This endpoint is rate limited based on the corresponding docs [here](https://docs.explo.co/security/security-faqs.md#do-explos-api-endpoints-have-a-rate-limit).

> [!NOTE]
>
> This API will send the most recent version or draft of this dashboard.

### Body

**provided\_id** `string`

This is your id for your customer that you'd like to screenshot for. This
controls what data the dashboard loads with in the screenshot.

**dashboard\_embed\_id** `string`

This is the token you use to embed your dashboard in your site. You can find
this on the Dashboards page in Explo.

**email** `string`

The email you'd like this screenshot to be send to. If this is not provided,
then a short-lived download link to your screenshot will be returned instead.

**download\_file\_name** `string`

The name you'd like the file to be called in the download. By default, this is
set to dashboard\_screenshot\_download.\{png | pdf}.

**export\_type** `string`

The file type for the screenshot. Must be "image" (for a png) or "pdf" (for a
pdf). By default, this is "image."

**subject** `string`

Set subject for screenshot email. By default this is set to Requested Data
Export:
\{download\_file\_name} \{export\_type}.

**variables** `object`

Set variables for your screenshot. These will function the same way as
variables you provide in your embed.

**width** `number`

Width in pixels for the screenshot. Must be greater than 0

### Response

**success** `number`

Indicates whether the call was successfully initiated. 1 if successful, 0 if not.

**url** `string`

If an email is not provided, this will be the download url for your
screenshot.

```bash Example Request theme={null}
curl --location --request POST 'https://api.explo.co/api/dashboard/screenshot' \
--header 'Content-Type: application/json' \
--header 'Explo-Authorization: Token <token>' \
--data-raw '{
    "provided_id": "123",
    "dashboard_embed_id": "abc123",
    "email": "customer@site.com",
    "download_file_name": "your_dashboard_screenshot",
    "export_type": "image",
    "subject": "Requested Data Export: your_dashboard_screenshot image",
    "variables": {"example_var": 123}
}'
```

```json Response theme={null}
{
  "success": 1
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.