# “Saved reports” Endpoints - POST Export saved report in PDF format

**URL:** <https://community.toggl.com/t/saved-reports-endpoints-post-export-saved-report-in-pdf-format/419>\
**Category:** Reports API\
**Tags:** export, saved-report, api, post, pdf\
**Created:** [December 2, 2024, 6:20pm UTC](https://community.toggl.com/t/saved-reports-endpoints-post-export-saved-report-in-pdf-format/419 "2024-12-02T18:20:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Support](https://yyz2.discourse-cdn.com/flex012/user_avatar/community.toggl.com/support/32/1577_2.png) [@Support](https://community.toggl.com/u/Support)\
**Post date:** [December 2, 2024, 6:20pm UTC](https://community.toggl.com/t/saved-reports-endpoints-post-export-saved-report-in-pdf-format/419/1 "2024-12-02T18:20:52Z")

</div>

```auto
https://api.track.toggl.com/reports/api/v3/shared/{report_token}/pdf

```

**Authentication**

A public report is accessible by anyone, a private one is only accessible by the report’s owner or workspace admin. If the criteria aren’t met it returns 403 status code.

**Parameters**

The report can be executed without parameters, and in this case the saved or default parameters will be used.

- cURL
- Go
- Ruby
- JavaScript
- Python
- Rust

```auto
extern crate tokio;extern crate serde_json;use reqwest::{Client};use reqwest::header::{CONTENT_TYPE};#[tokio::main]async fn main() -> Result<(), reqwest::Error> { let client = Client::new().basic_auth("<email>", "<password>"); let json = client.request(Method::POST, "https://api.track.toggl.com/reports/api/v3/shared/{report_token}/pdf".to_string()) .header(CONTENT_TYPE, "application/json") .send() .await? .json() .await?; println!("{:#?}", json); Ok(())}

```

### Response[​](https://engineering.toggl.com/docs/reports/saved_reports/#response-3)

#### 200[​](https://engineering.toggl.com/docs/reports/saved_reports/#200-3)

Returns report information in pdf form

#### 400[​](https://engineering.toggl.com/docs/reports/saved_reports/#400-3)

Possible error messages:

- report\_type does not exist in params
- The report period is not supported

#### 401[​](https://engineering.toggl.com/docs/reports/saved_reports/#401-3)

Possible error messages:

- Unable to extract authentication data
- Incorrect username and/or password

#### 403[​](https://engineering.toggl.com/docs/reports/saved_reports/#403-3)

Possible error messages:

- Invalid token
- Workspace was not found or the report’s owner is no longer active on it

#### 404[​](https://engineering.toggl.com/docs/reports/saved_reports/#404-3)

Not found

#### 500[​](https://engineering.toggl.com/docs/reports/saved_reports/#500-3)

parameter `since` is missing
