Skip to main content
This quickstart walks you from an empty project to your first live response from the Noteboxd fragrance and perfume developer API, and shows how composite ETag caching cuts repeat GET costs in half.
1

Create a project and API key

Open the Developer Portal, verify your email if prompted, and create a project under Projects. Generate an API key in Keys and store the nb_live_... secret in an environment variable:
The secret is shown once at creation. Keep it server-side and out of client bundles or public repositories.
2

Accept the Commercial API v2 terms

On the Developer Portal dashboard, click Accept v2 terms to accept version 2.0 of the Commercial API Terms. Until you accept, authenticated /v2 endpoints return 403 TERMS_NOT_ACCEPTED.
3

Verify connectivity with /v2/health

GET /v2/health requires no key and costs nothing:
4

Search for a fragrance

A new account starts on the Free evaluation plan (50 calls/day across allowlisted search and catalogue routes). Search by keyword to resolve a fragrance id or brand/name slug:
On paid plans, this search call costs $0.005 base plus $0.001 per hit returned ($0.006 for 1 result).
5

Fetch the detailed fragrance profile

Pass either the opaque id or the URL-encoded brand/name slug (guerlain%2Fshalimar) to GET /v2/fragrances/{id}. Omit view or pass view=detailed for full notes, pyramid, accords, and perfumers ($0.010), or pass view=basic for a summary card ($0.005):
Inspect the response headers:
6

Revalidate with If-None-Match for 50% off

Store the ETag alongside your cached response. When revalidating a GET endpoint, pass that ETag in If-None-Match:
If the response representation is unchanged on the same UTC day (or has no signed image links), Noteboxd returns 304 Not Modified with an empty body at 50% off the list price:
If the record itself has not changed on a later UTC day and signed imageUrl parameters rotated, the API returns 200 OK with fresh signed links, a new ETag, and x-noteboxd-revalidated: image-links-refreshed, still at 50% off.
7

Render images directly and add attribution

Embed imageUrl directly in a browser <img> tag or mobile app view rather than downloading or proxying it from your backend:
See Licensing and image links for cache window rules, attribution, and troubleshooting image URLs.