Skip to main content

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.
You’ll see the full key value once. Copy it now and store it in a secret manager. Casebyte only ever stores a hash of the key, so we cannot show it to you again. If you lose it, revoke it and issue a new one.
API keys look like this:
The 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:
You should get a response like:

3. Retrieve the full judgment

Take a case_id from the search results and fetch the judgment text:
The response includes metadata plus the full plain-text judgment:

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.

Read recent Daily summaries

For news and video integrations, use Daily summaries to list the last seven Hong Kong calendar days, filter by publication day or area of law, and retrieve a summary by case ID or neutral citation.