---
title: "Allocate Team Credits"
method: POST
path: "/v1/enterprise/teams/{team_id}/credits/allocate"
tags: ["enterprise", "billing"]
---

# Allocate Team Credits

`POST /v1/enterprise/teams/{team_id}/credits/allocate`

## Request

- Base URL: `https://api.kodik.ru` (the document declares no server; this is the origin it was published from)
- URL: `https://api.kodik.ru/v1/enterprise/teams/{team_id}/credits/allocate`
- Auth: HTTP bearer

## Path parameters

- `team_id` integer, required

## Request body

- AllocateCreditsRequest
  - `user_id` integer, nullable: User ID to allocate to, null for team-wide
  - `amount` integer, required: Whole number of credits to allocate
  - `description` string, nullable

## Response `201`

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.dev/kodik/apis/kodik-api/revisions/ba47f599c3d0?raw)
