1. Generate an API key
1
Sign in to casebyte.ai
Go to casebyte.ai/dashboard and sign in
with your Casebyte account. API access is currently in private beta — if
you don’t see the API keys section, email us
for access.
2
Open the API keys section
From your dashboard, open Settings and scroll to API keys.
3
Create a key
Click New API key, give it a descriptive name (e.g.
local-dev or
production-worker), and click Create.cb_live_ prefix is part of the key — include it in your Authorization
header.
2. Make your first request
Search for the phrase “wednesbury unreasonable” across all of HK case law, returning at most 5 results:3. Retrieve the full judgment
Take acase_id from the search results and fetch the judgment text:
4. See who cites it
Find later judgments that cite this case:What’s next
Search syntax
Boolean operators, phrases, fuzzy matching, and field scoping.
Identifiers
Three ways to look up a case — and which one to use.
Errors
Every error code the API can return, and what to do about it.
Rate limits
Understand the limits and how to back off cleanly.