---
title: "Initialize Credits"
method: POST
path: "/api/admin/credits/initialize"
tags: ["credits"]
---

# Initialize Credits

`POST /api/admin/credits/initialize`

## Request

- Base URL: `https://app.myriade.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://app.myriade.ai/api/admin/credits/initialize`
- Auth: none declared

Create or update quotas for all given users with a uniform amount.

Admin only. Validates total allocation against org pool.

## Cookies

- `session` string, nullable

## Request body

- InitializeQuotasRequest
  - `user_ids` string[], required
  - `monthly_quota_per_user` integer, required
  - `user_emails` object, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/myriade/apis/myriade-bi-api.md) · [All operations](https://skmtc.dev/myriade/apis/myriade-bi-api/llms.txt) · [OpenAPI document](https://skmtc.dev/myriade/apis/myriade-bi-api/revisions/15b7cb96ca80?raw)
