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

# Total Staked

> Total tokens currently locked across all of a customer's active stakes

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

Returns the sum of principal across every stake the customer currently has locked. Excludes any stakes that have already been unstaked.

### Query Parameters

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

### Response

<ResponseField name="total_staked" type="string">
  Sum of all active stake principals
</ResponseField>

```javascript theme={null}
const res = await fetch(
  "https://tokens.shakesco.com/total-staked?customer_ref=customer-123",
  { headers: { Authorization: `Bearer ${API_KEY}` } }
);
const { total_staked } = await res.json();
```

<ResponseExample>
  ```json 200 OK theme={null}
  { "total_staked": "200.0" }
  ```
</ResponseExample>
