Create test workspace

Authentication

Every API request carries a secret key from your server. Never put a secret key in browser or mobile code.

curl "https://crossblade.dev/v1/quickbooks-desktop/customers" \
  -H "Authorization: Bearer $CROSSBLADE_SECRET_KEY" \
  -H "Conductor-End-User-Id: $CROSSBLADE_END_USER_ID"

Step 1: Test and live keys

Each workspace has a test project and, once production opens, a live project. Keys start with ls_test_ or ls_live_ and only reach companies in their own project. Build and test with a test key against a sample company file.

Step 2: Read only, or read and write

A Read only key can send GET requests: read records and reports, run the health check, and read request status. Every other request needs a Read + write key, including creating end-users and setup links, writes to QuickBooks, resolving a request and raw qbXML passthrough. A read-only key gets 403 API_KEY_SCOPE_REQUIRED.

A read + write key is unattended integration authority, not per-change human approval: its writes run as soon as QuickBooks accepts them, without anyone reviewing each change. Give it only to a server you trust to make those changes. Delegated and personal access never write directly; they get 403 UNSUPPORTED_FOR_INTERACTIVE.

Step 3: The publishable key

Each project also has a publishable key, starting with pk_test_ or pk_live_. It is not a secret. It identifies the project when you create a setup link with POST /v1/auth-sessions, and it is shown on the API keys page.

Step 4: Rotate without downtime

Create the new key, deploy it to every caller, check that the old key’s Last used time has stopped moving, then revoke the old key. A missing, wrong or revoked key gets 401 AUTHENTICATION_ERROR.