---
title: "Trigger an Export Job"
method: POST
path: "/api/v1/analytics/exports"
---

# Trigger an Export Job

`POST /api/v1/analytics/exports`

## Headers

- `Content-Type` string
- `Accept` string

## Request body

- object
  - `from` string
  - `to` string
  - `emails` string[]
  - `event_type` string[]
  - `user_id` string[]
  - `company_id` string[]
  - `segment_id` string
  - `format` 'avro' | 'csv' | 'ndjson' | 'parquet'
  - `exclusions` string

## Response `201`

Created - Export job successfully created

- object
  - `environment_app_token` string — The app token of the environment.
  - `environment_name` string — The name of the environment.
  - `job_id` string — The ID of the export job.
  - `links` string — The links to the export job.
  - `start_time` string — The start time of the export job.

## Other responses

- `401` — Unauthorized - Invalid API key or insufficient permissions
- `409` — Conflict - Export job already in progress

---

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