---
title: "Create User Token Limit Settings"
method: POST
path: "/admin/token-rate-limits/users"
tags: ["public"]
---

# Create User Token Limit Settings

`POST /admin/token-rate-limits/users`

## Request

- Base URL: `https://cloud.onyx.app/api`
- URL: `https://cloud.onyx.app/api/admin/token-rate-limits/users`
- Auth: HTTP bearer

## Request body

- TokenRateLimitArgs
  - `enabled` boolean, required
  - `token_budget` integer, nullable
  - `period_hours` integer, required
  - `cost_budget_cents` number, nullable

## Response `200`

Successful Response

- TokenRateLimitDisplay
  - `token_id` integer, required
  - `enabled` boolean, required
  - `token_budget` integer, nullable, required
  - `period_hours` integer, required
  - `cost_budget_cents` number, nullable, required

## Other responses

- `422`: Validation Error

## Changes

- **2026-10-28** `76bc90bf55b6`: 1 info
  - endpoint added
- **2026-01-06** `2d941ea53eb3`: 1 breaking
  - api path removed without deprecation
- **2025-08-21** `9321c45d93b5`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/onyx-dot-app/apis/onyx-api/changes/admin/token-rate-limits/users/post.md)

---

[API](https://skmtc.dev/onyx-dot-app/apis/onyx-api.md) - [All operations](https://skmtc.dev/onyx-dot-app/apis/onyx-api/llms.txt) - [OpenAPI document](https://skmtc.dev/onyx-dot-app/apis/onyx-api/revisions/76bc90bf55b6?raw)
