---
title: "Sync Users"
method: POST
path: "/api/admin/users/sync"
tags: ["Admin"]
---

# Sync Users

`POST /api/admin/users/sync`

Force sync users data: clear caches, flush Redis usage stream to DB, fetch fresh.

## Response `200`

Successful Response

- UserListResponse
  - `success` boolean
  - `users` UserBasic[]
    - `user_id` string, required
    - `email` string, nullable
    - `full_name` string, nullable
    - `company_name` string, nullable
    - `country` string, nullable
    - `role` 'user' | 'admin' | 'support'
    - `tier` 'tier1' | 'tier2' | 'tier3' | 'tier4' | 'tier5'
    - `account_type` 'user' | 'enterprise' — Account type: determines billing mode and allowed API key scopes. - USER: Prepaid wallet billing, can create user-scope keys - ENTERPRISE: Postpaid invoice billing, can create enterprise-scope keys
    - `prepaid_added` number
    - `prepaid_balance` number
    - `prepaid_spent` number
    - `postpaid_paid` number
    - `postpaid_unpaid` number
    - `postpaid_current_month` number
    - `total_requests` integer
    - `total_tokens` integer
    - `requests_rejected_30d` integer
    - `created_at` string, nullable
    - `last_login` string, nullable
    - `last_request_at` string, nullable
  - `total` integer
  - `page` integer
  - `limit` integer
  - `tier_distribution` object
  - `admin_count` integer

## Other responses

- `500` — Internal Server Error

---

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