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

# Is Expired

> Check whether a customer's tokens are past the inactivity threshold

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

Returns `true` once the customer has been inactive longer than the expiry period configured on your token. Call this before [`/expire-tokens`](/api-reference/tokens/rewards/expire-tokens) to decide whether expiry should run.

Returns `false` if the token has no expiry configured, or if the customer has no recorded activity yet.

### Query Parameters

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

### Response

<ResponseField name="is_expired" type="boolean">
  `true` if the customer's tokens have passed the inactivity threshold
</ResponseField>

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

<ResponseExample>
  ```json 200 OK theme={null}
  { "is_expired": false }
  ```
</ResponseExample>
