Be first in. Get early access

AisleRule

All documentation

API keys

An API key lets a script or an AI agent check a UPC without a browser. Keys are created and revoked on API keys. The free plan allows 1 active key, Store 3, 5 stores 10 and 10 stores 25.

Creating a key

  1. Open API keys and press Create key.
  2. Give it a name you will recognise later, such as "CI" or "Claude Desktop".
  3. Copy the key now. It is shown once; afterwards only its first characters (aislerule_live_3f9c…) are visible.

Keys starting with aislerule_test_ come from a test deployment and only work there.

Using a key

Send it as a bearer token:

curl https://aislerule.tenhatch.com/api/v1/check-upc \
  -H "Authorization: Bearer aislerule_live_…" \
  -H "Content-Type: application/json" \
  -d '{"upc": "099999000016", "state": "TX"}'

X-API-Key: <key> works as well. Every successful call counts one check against the account's monthly allowance of API and agent checks. The response's usage object tells you how many remain.

Rate limits

60 requests per minute per key by default. The X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset headers are on every response; a 429 includes Retry-After in seconds.

Revoking a key

Press Revoke next to the key. Requests with a revoked key get HTTP 401 immediately. Revoke and recreate a key if it was ever pasted somewhere public.

Errors

Every error is JSON: {"error": {"code": "...", "message": "..."}}. Codes: unauthorized (401), invalid_input (400, with details), payment_required (402, allowance used up), rate_limited (429), internal (500, retry with backoff).