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

# Generate and email a timesheet export

`POST /v1/export/send`

Creates an export file based on the provided parameters and sends it via email to the specified address. This endpoint uses the same export generation logic as the /data endpoint but delivers the result via email instead of returning a download URL. The email field in exportParams must be provided.

## 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 sent via email

## Other responses

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

---

[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)
