Skip to main content
This guide walks through creating a Test API key, reading the quote spec, and running your first simulation.

Before you start

  • A Kordless workspace with a published Live Book.
  • An organization admin account (required to mint API keys).
  • The API access feature on your plan.
If your workspace has no published Book yet, the quote-spec and simulation endpoints return a no_published_book error. Publish a Book first — see Start your first Book.

Create a Test API key

  1. Open your workspace and go to Developers.
  2. Under API keys, choose Create key.
  3. Name the key (for example, Quickstart test).
  4. Select Test as the environment.
  5. Choose the scopes you need. For this quickstart, select accounts:read, quote-spec:read, and simulations:write.
  6. Copy the secret immediately — it is shown only once.
The secret starts with sk_test_, which marks it as a Test key. Test keys reach only test-mode data and never affect Live customers or billing.

Check your key

Verify your key works and see what scopes it has:
The response includes your account ID, the environment (test), and the scopes your key holds:

Find your account ID

List the account targets your key can reach:
The first entry is your own account (relationship self). Connected Accounts appear after it. Find the id of the account you want to quote against — you will use it in the next steps.

Read the quote spec

Fetch the published Book’s services and required inputs:
The response lists every service the Book covers, its inputs, and the Book version:

Run a simulation

Simulate a quote without persisting it. Pass the service key and selections from the quote spec:
The response includes the decision, total, line items, derivation, and the Book version used:

Success

You have authenticated, read the quote spec, and run a simulation. The simulation used the same evaluator and Book version that a formal quote would use — the only difference is that it was not persisted.

Next steps