---
title: "Export Users"
method: POST
path: "/v1/admin/users/export"
tags: ["admin", "dashboard"]
---

# Export Users

`POST /v1/admin/users/export`

## Request body

- UserExportRequest
  - `format` 'csv' | 'json'
  - `export_type` 'users' | 'transactions'
  - `user_ids` integer[], nullable
  - `include_money` boolean
  - `marketing_consent` boolean, nullable
  - `role` 'CUSTOMER' | 'EDITOR' | 'ADMIN' | 'AMBASSADOR' | 'EDUCATOR' | 'BOT', nullable
  - `is_active` boolean, nullable
  - `email_verified` boolean, nullable
  - `account_type` 'REGULAR' | 'ENTERPRISE', nullable
  - `created_after` string, nullable
  - `created_before` string, nullable
  - `last_login_after` string, nullable
  - `last_login_before` string, nullable
  - `search` string, nullable
  - `has_subscription` boolean, nullable
  - `subscription_plan` string, nullable
  - `filter_tier` string, nullable
  - `filter_country` string, nullable
  - `usage_period_start` string, nullable
  - `usage_period_end` string, nullable
  - `paid_after` string, nullable
  - `paid_before` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/kodik/apis/kodik-api.md) · [All operations](https://skmtc.dev/kodik/apis/kodik-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/kodik/kodik-api/revisions/55c71b347360/schema)
