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

# Voting Power

> Read how many votes a customer currently has

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

Returns the number of votes a customer has based on their available balance and the configured ratio. Only available balance counts: staked and unvested tokens do not contribute. Returns `"0"` if voting hasn't been configured.

### Query Parameters

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

### Response

<ResponseField name="voting_power" type="string">
  Integer number of votes (e.g. `"15"`)
</ResponseField>

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

<ResponseExample>
  ```json 200 OK theme={null}
  { "voting_power": "15" }
  ```
</ResponseExample>
