---
title: "Generate and download a timesheet export"
method: POST
path: "/v1/export/data"
tags: ["Export"]
---

# Generate and download a timesheet export

`POST /v1/export/data`

Creates an export file based on the provided parameters and returns a signed URL to download it. Supports various formats (Excel, CSV, PDF), report types, date ranges, and filtering options. The export can include task data, project summaries, team member summaries, and more based on the report type selection.

## Request body

- ExportParams
  - `report` integer
  - `email` string
  - `filename` string
  - `teamIds` string[]
  - `projectIds` string[]
  - `userIds` string[]
  - `tagIds` string[]
  - `absenceTypeIds` string[]
  - `absenceStatuses` string[]
  - `overtimeStatuses` string[]
  - `periodType` string
  - `year` integer
  - `type` string
  - `startDate` string
  - `endDate` string
  - `format` string
  - `filter` string
  - `splitTask` boolean
  - `summarize` boolean
  - `saveAsTemplate` boolean
  - `templateName` string
  - `organizationId` string
  - `exportedFields` ExportedField[]
    - `id` string
    - `name` string
    - `position` integer
    - `projectField` boolean
    - `teamField` boolean
    - `customField` boolean
    - `customValue` string
    - `customFormula` string
    - `customType` string
  - `xls1904` boolean
  - `mimeType` string
  - `dateRange` string
  - `fileType` string
  - `xls` boolean
  - `csv` boolean
  - `pdf` boolean
  - `fileExtension` string

## Response `200`

Export successfully created

- FileResponse
  - `url` string

## Other responses

- `400` — Invalid export parameters
- `401` — User not authorized to access this data
- `500` — Internal server error occurred during export creation

---

[API](https://skmtc.net/timesheet/apis/timesheet-api.md) · [All operations](https://skmtc.net/timesheet/apis/timesheet-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/timesheet/timesheet-api/revisions/fbe59bacb638/schema)
