Skip to main content
GET
/
is-expired
Is Expired
curl --request GET \
  --url https://tokens.shakesco.com/is-expired \
  --header 'Authorization: Bearer <token>'
{ "is_expired": false }

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 true once the customer has been inactive longer than the expiry period configured on your token. Call this before /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

customer_ref
string
required
Your unique identifier for this customer

Response

is_expired
boolean
true if the customer’s tokens have passed the inactivity threshold
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();
{ "is_expired": false }