---
title: "Grant Credits"
method: POST
path: "/api/admin/grant-credits"
tags: ["admin"]
---

# Grant Credits

`POST /api/admin/grant-credits`

## Request

- Base URL: `https://api.tintin-x.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.tintin-x.com/api/admin/grant-credits`
- Auth: none declared

Grant credits to an agent's owner (admin API key required).

## Headers

- `x-admin-key` string, nullable

## Request body

- AdminGrantCreditsRequest
  - `agent_id` string, required: Agent ID to look up the owning user
  - `amount` integer, required: Credits to add

## Response `200`

Successful Response

- AdminGrantCreditsResponse
  - `user_id` string, required
  - `agent_id` string, required
  - `amount_granted` integer, required
  - `new_balance` integer, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/tintin-x/apis/tintin-api.md) · [All operations](https://skmtc.dev/tintin-x/apis/tintin-api/llms.txt) · [OpenAPI document](https://skmtc.dev/tintin-x/apis/tintin-api/revisions/8839a8d0a66c?raw)
