---
title: "Credit grant"
method: PATCH
path: "/users"
---

# Credit grant

`PATCH /users`

Allocate credits to an account.

## Request body

- object
  - `email` string, email, required — The (case-insensitive) email address of the user whose account to grant credits.
  - `amount` integer, required — The number of additional API credits to grant the account.

## Response `200`

The updated account credits.

- object
  - `email` string, email, required — The account email address.
  - `credits` integer, required — The number of updated API credits allocated to the account.

## Other responses

- `400` — The request was malformed.
- `401` — The authorization header was missing.
- `403` — The API token was invalid.
- `404` — One or more resources is nonexistant.
- `422` — One or more parameters were invalid.
- `429` — The rate limit was exceeded.
- `500` — An unknown error occurred.

## Changes

- **2026-04-27** `b22709346d45` — 1 breaking, 1 warning
  - added the new required request property `amount`
  - removed the request property `credits`

[Change history](https://skmtc.dev/joinmassive/apis/massive/changes/users/patch.md)

---

[API](https://skmtc.dev/joinmassive/apis/massive.md) · [All operations](https://skmtc.dev/joinmassive/apis/massive/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/joinmassive/massive/revisions/3a9f7769563f/schema)
