> ## 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.

# Claim Vested Tokens

> Credit the customer with any vested tokens they haven't claimed yet

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

Moves whatever portion of the grant has vested but not yet been claimed into the customer's available balance. Use [`/vested-amount`](/api-reference/tokens/vesting/vested-amount) first to check whether anything is currently claimable.

<Info>
  Treat this as a transaction. Check [`/vested-amount`](/api-reference/tokens/vesting/vested-amount) before retrying after a timeout.
</Info>

### Request Body

<ParamField body="customer_ref" type="string" required>
  Your unique identifier for this customer
</ParamField>

### Response

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

```javascript theme={null}
await fetch("https://tokens.shakesco.com/claim-vested-tokens", {
  method: "POST",
  headers: { Authorization: `Bearer ${API_KEY}`, "Content-Type": "application/json" },
  body: JSON.stringify({ customer_ref: "customer-123" }),
});
```

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

  ```json 400 Nothing to Claim theme={null}
  { "error": "No tokens are claimable yet" }
  ```

  ```json 404 No Grant theme={null}
  { "error": "No active vesting grant found" }
  ```
</ResponseExample>
