Try the sandbox

INVALID_API_KEY or AUTHENTICATION_REQUIRED: the API key is missing or invalid

Checked on 2026-11-25 against the SharkPOS API code · Markdown

INVALID_API_KEY · HTTP 401

Message you may see:

What it means

The request does not carry Authorization: Bearer <API_KEY> (AUTHENTICATION_REQUIRED) or the key does not exist, is malformed or was revoked (INVALID_API_KEY).

Why it happens

How to fix it

  1. Check the base URL: sandbox https://sandbox.sharkpos.cl, production https://api.sharkpos.cl.
  2. Send the exact header Authorization: Bearer <API_KEY>.
  3. If you lost it, create another: it is stored as a hash and cannot be recovered.

Should you retry? Not until the key is fixed.

All API errors are JSON: {"status": "error", "code": "...", "message": "...", "solution": "..."}. The code is stable; message and solution are in Spanish. Full table in the guide for agents.

Related

Integrating receipts or invoices? Try it in the sandbox, without touching the real SII.

Try it today in the sandbox

Get a sandbox API key: a test company with certificate and folios already loaded and a simulated SII. When you are ready, each RUT costs CLP 5,990 a month (VAT included) with 20,000 documents a month.