> ## 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 Pending Rewards

> Generate a short-lived URL the customer opens to claim pending rewards

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

Returns a one-time URL (valid for 30 minutes) that lets the customer claim any pending rewards directly in the Shakesco app. Send this URL to the customer (push notification, email, in-app link).

### Request Body

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

### Response

<ResponseField name="url" type="string">
  Short-lived claim URL. Hand this to the customer; don't display it server-side.
</ResponseField>

<ResponseField name="expires_at" type="string">
  ISO 8601 timestamp when the URL stops working (30 minutes from creation)
</ResponseField>

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

<ResponseExample>
  ```json 200 OK theme={null}
  {
    "url": "https://send.shakesco.com/send-token/eyJ...",
    "expires_at": "2026-05-13T12:10:00.000Z"
  }
  ```
</ResponseExample>
