# "Insights" Endpoints - POST Export employee profitability insights

**URL:** <https://community.toggl.com/t/insights-endpoints-post-export-employee-profitability-insights/413>\
**Category:** Reports API\
**Tags:** export, api, post, insights, profitability\
**Created:** [December 2, 2024, 6:12pm UTC](https://community.toggl.com/t/insights-endpoints-post-export-employee-profitability-insights/413 "2024-12-02T18:12:31Z")\
**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:12pm UTC](https://community.toggl.com/t/insights-endpoints-post-export-employee-profitability-insights/413/1 "2024-12-02T18:12:32Z")

</div>

```auto
https://api.track.toggl.com/insights/api/v1/workspace/{workspace_id}/profitability/employees.{extension}

```

Downloads employee profitability insights in the specified format: csv or xlsx.

- 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/insights/api/v1/workspace/{workspace_id}/profitability/employees.{extension}".to_string()).json(&serde_json::json!(\{"currency":"string","end_date":"string","group_ids":"string","resolution":"string","rounding":"integer","rounding_minutes":"integer","start_date":"string","user_ids":"string"\})) .header(CONTENT_TYPE, "application/json") .send() .await? .json() .await?; println!("{:#?}", json); Ok(())}

```

### Parameters[​](https://engineering.toggl.com/docs/reports/insights/#parameters-1)

#### Body[​](https://engineering.toggl.com/docs/reports/insights/#body-1)

| Name | Type | Description |
| --- | --- | --- |
| currency | string | - |
| end\_date | string | - |
| group\_ids | string | - |
| resolution | string | - |
| rounding | integer | - |
| rounding\_minutes | integer | - |
| start\_date | string | - |
| user\_ids | string | - |

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

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

A stream with the csv or xlsx for the report being exported

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

Invalid parameters

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

User has no access to workspace or is not admin

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

Internal Server Error
