---
title: "Admin Add Credits"
method: POST
path: "/credits/admin/add-credits/{user_id}"
tags: ["credits"]
---

# Admin Add Credits

`POST /credits/admin/add-credits/{user_id}`

## Request

- Base URL: `https://studio-api.meganova.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://studio-api.meganova.ai/credits/admin/add-credits/{user_id}`
- Auth: OAuth 2
  - Password
  - Token URL: `auth/token`

Admin endpoint to add credits to a user's balance.

Requires admin role.

Args:
    user_id: Target user ID
    credit_request: Request with amount and description

Returns:
    Updated credit information

## Path parameters

- `user_id` string, uuid, required

## Request body

- AddCreditsRequest: Request to add credits to a user.
  - `amount` integer, required: Credits to add
  - `description` string, required: Reason for adding credits

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/meganova/apis/meganova-api.md) - [All operations](https://skmtc.dev/meganova/apis/meganova-api/llms.txt) - [OpenAPI document](https://skmtc.dev/meganova/apis/meganova-api/revisions/c683584f6060?raw)
