Skip to main content
GET
/
public
/
check-credits
curl "https://your-store.myshopify.com/apps/proxy_genlook-x/public/check-credits"
{
  "allowed": true
}
Check whether your shop has credits available to create generations. Cached for 2 minutes on both client and server.

Request

No parameters. Shop is identified via app proxy authentication.
curl "https://your-store.myshopify.com/apps/proxy_genlook-x/public/check-credits"

Response

allowed
boolean
required
true if credits are available, false if quota is exhausted.
{
  "allowed": true
}
This endpoint fails open — if the check errors, it returns allowed: true to avoid blocking users. The Create Generation endpoint performs the definitive quota check and will return QUOTA_EXCEEDED if needed.