Skip to main content
POST
/
claim-pending-rewards
Claim Pending Rewards
curl --request POST \
  --url https://tokens.shakesco.com/claim-pending-rewards \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "customer_ref": "<string>"
}
'
{
  "url": "https://send.shakesco.com/send-token/eyJ...",
  "expires_at": "2026-05-13T12:10:00.000Z"
}

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.

For the complete documentation index, see llms.txt. 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

customer_ref
string
required
Your unique identifier for this customer

Response

url
string
Short-lived claim URL. Hand this to the customer; don’t display it server-side.
expires_at
string
ISO 8601 timestamp when the URL stops working (30 minutes from creation)
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();
{
  "url": "https://send.shakesco.com/send-token/eyJ...",
  "expires_at": "2026-05-13T12:10:00.000Z"
}