> ## Documentation Index
> Fetch the complete documentation index at: https://docs.shakesco.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Set Daily Cap

> Limit how many tokens any single customer can earn per day

<span style={{display:"none"}}>For the complete documentation index, see [llms.txt](/llms.txt).</span>

Sets the maximum tokens any one customer can earn in a 24-hour window. Once a customer hits the cap, `/claim-tokens` returns `429 Daily earning cap exceeded` until their rolling window resets.

The cap is per-customer and resets on a rolling 24-hour window measured from the customer's first claim of the cycle, not at fixed midnight UTC.

### Request Body

<ParamField body="cap_amount" type="number" required>
  Maximum tokens per customer per day. Decimals allowed.
</ParamField>

### Response

<ResponseField name="tx_hash" type="string">
  Reference identifier for the cap configuration
</ResponseField>

```javascript theme={null}
await fetch("https://tokens.shakesco.com/set-daily-cap", {
  method: "POST",
  headers: { Authorization: `Bearer ${API_KEY}`, "Content-Type": "application/json" },
  body: JSON.stringify({ cap_amount: 50 }),
});
```

<ResponseExample>
  ```json 200 OK theme={null}
  { "tx_hash": "0xabc..." }
  ```
</ResponseExample>
