---
title: "Assign Credits"
method: POST
path: "/partner/credits"
tags: ["partner"]
---

# Assign Credits

`POST /partner/credits`

## Request

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

Assign credits to a customer (``org_id`` or ``email``) from your pool;
a negative ``amount`` takes credits back. 409 insufficient_pool /
cap_exceeded / ambiguous_email; 404 when nobody matches. Send
``Idempotency-Key`` to make retries safe.

## Headers

- `Idempotency-Key` string, nullable

## Request body

- CreditsBody: Positive ``amount`` assigns credits from your pool; negative takes them back. Address the customer by ``org_id`` or by ``email``.
  - `amount` unknown
  - `note` string, nullable
  - `org_id` string, nullable
  - `email` string, email, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

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