Skip to content

Authentication

To authenticate, send an API key as a Bearer token. For conversions, the key is optional.

To create a key in the dashboard:

  1. Sign in to the LabelZoom dashboard.
  2. In the API Keys section, click Create new key.
  3. Optional: In Name, enter a name for the key.
  4. In Environment, keep the default, Live, or select Test.
  5. Optional: To use Cloud Print, in Scopes, select print.
  6. Click Create key, and then copy the key. The dashboard shows the full key only once.

Keep keys out of client-side code and version control. Load them from an environment variable or a secret store.

Send the key in the Authorization header:

Authorization: Bearer API_KEY

Every SDK reads the key from the LABELZOOM_API_KEY environment variable.

Live keys and test keys produce the same output for your plan. Use live keys in production. If your account is on Pro or above when you create a live key, conversion requests made with that key aren’t stored; see Data retention.

Scopes control what a key can call:

Scope Allows
convert Conversions, and reading and converting templates. Every key has it.
print Cloud Print. Includes convert.
Symptom Fix
Output has a watermark Check that the key is set, spelled correctly, and not revoked, and that your account has a paid plan. A bad key doesn’t fail: the request converts anonymously on the free tier.
403 response Use a key that has the scope the endpoint needs, or a plan that includes the feature.
401 response Send a valid key. Only Cloud Print endpoints and URL-to-ZPL conversions return 401. Some Cloud Print actions work only in the dashboard; see Authentication and scopes.