Build Flows

Integrations · November 14, 2026 · 16 min read

QuickBooks Online API Credentials: Intuit Developer App, Production Keys and Refresh Tokens

A step-by-step guide to QuickBooks Online API credentials for reporting: the Intuit developer account, an app with only the Accounting scope, development versus production keys, the production-keys tasks, the realm ID, the one-time Connect step, and how refresh tokens rotate and expire under Intuit's current policy, with every value stored in Azure Key Vault.

By Charley Forey, founder of Build Flows

Key takeaways

  • QuickBooks Online has no API key to copy: you register an Intuit app, get a client ID and secret, and a QuickBooks admin approves the connection once.
  • Tick only com.intuit.quickbooks.accounting. Intuit labels it Read & write and added permissions cannot be removed, so read-only is enforced by what the integration calls.
  • Development keys reach sandbox companies only; production keys unlock after the App details tasks and the Compliance questionnaire.
  • The realm ID is the QuickBooks company ID, found under Settings › Additional info and returned as realmId when the admin clicks Connect.
  • Access tokens last one hour and refresh token values can rotate on every refresh, so the integration must write the newest refresh token back to Key Vault each time.
  • Intuit now caps refresh tokens at five years (first Accounting-scope expiries from October 2028), after which an admin must click Connect again.

57 seconds · From a Build Flows walkthrough

Create an Intuit developer app with only the Accounting scope

Go from the Intuit Developer docs to My Hub > App Dashboard, create a new app, name it and tick only com.intuit.quickbooks.accounting. Intuit labels that scope read and write, so read-only access is enforced by what the integration requests, not by the scope itself.

Read the clip transcript

We need to create a developer account. I already have an account here, so I'm signed in. Once you're signed in, you'll go to your App Dashboard. That's My Hub, then App Dashboard. Then select the app card with the plus to create a new app. So we'll go to the App Dashboard. Cool. Here we can select the plus for a new app and get started. We'll name it, let's just call it Build Flows. We're going to give it access to just the accounting scope. You can give access to payments if you want. I'm going to confirm that.

Captions adapted from the source video; proper names may reflect automatic transcription. Original segment: 14:36–15:33. Watch at the source.

26 seconds · From a Build Flows walkthrough

Tell development keys apart from production keys

See where Intuit shows an app's client ID and client secret, and why the Production tab stays locked until the app details and questionnaire are done. The clip does not cover the Connect step, realm ID or refresh tokens.

Read the clip transcript

Wonderful. Now these are the client ID and client secret that you can use for development. We would copy those, and then we'd be able to use these credentials and move to production data once we've tested it in development.

Captions adapted from the source video; proper names may reflect automatic transcription. Original segment: 15:38–16:04. Watch at the source.

QuickBooks Online is usually the last system a contractor connects for reporting, and the one that causes the most confusion. Procore and HubSpot hand you a key or a service account. QuickBooks does not. There is no API key to copy out of settings. Instead you register an app with Intuit, get a client ID and secret, and then a QuickBooks admin approves the connection once, which produces a refresh token that the integration keeps alive from then on.

This guide walks through that setup in the order you will actually do it: the Intuit developer account, the app, the Accounting scope, development and production keys, the realm ID, the one-time Connect step and the refresh token. It ends with five values stored in Azure Key Vault and nothing sitting in an inbox. It is one part of the secure API credential setup for Procore, HubSpot, QuickBooks and Fabric.

Animated overview: QuickBooks Online connects through an Intuit developer app with the com.intuit.quickbooks.accounting scope and production keys. Five secrets land in Azure Key Vault: quickbooks-client-id, quickbooks-client-secret, quickbooks-realm-id, quickbooks-environment and quickbooks-refresh-token.QuickBooks Online access is an Intuit app plus a one-time Connect, not an API key.

What you end up with

When the setup is done, your Key Vault holds five QuickBooks secrets. Four of them your team can create on its own. The fifth only exists after the Connect step.

Secret nameWhat it isWhere it comes fromWho adds it
quickbooks-client-idIdentifies your Intuit appIntuit Developer: your app › Keys and credentials › ProductionYour team
quickbooks-client-secretThe app's passwordSame screenYour team
quickbooks-realm-idThe QuickBooks company IDQuickBooks Settings (gear) › Additional info, and returned at ConnectYour team
quickbooks-environmentproduction or sandboxType it exactlyYour team
quickbooks-refresh-tokenLong-lived token that renews accessReturned when an admin clicks ConnectThe integration, during the setup call

The naming convention (lowercase, hyphens, one prefix per system) is the same one used for Procore and HubSpot. The credential setup checklist generates the full list for you.

Before you start

  • A QuickBooks Online admin. Only an admin can approve an app's access to the company. If your controller is the admin, book 15 minutes with them for the Connect step.
  • A company-owned email for the Intuit developer account. The developer account owns the app and its production keys. If it lives on one person's personal email, you have a key-person problem the day they leave. A shared mailbox or an IT-owned account is better.
  • An Azure Key Vault ready to receive secrets. See Azure Key Vault setup for data integrations if you do not have one yet.
  • About an hour, most of it on the production-keys tasks in Step 4.

Animated six-step sequence: 1 developer account at developer.intuit.com; 2 create the app under Workspace, Apps, plus, ticking only com.intuit.quickbooks.accounting; 3 development keys for sandbox companies only; 4 production keys after App details and the Compliance questionnaire; 5 store the client ID, secret, realm ID and environment in Key Vault; 6 a QuickBooks admin clicks Connect once and the integration saves the refresh token to Key Vault.Steps 1 to 4 happen once per app. The Connect step happens once per QuickBooks company.

Step 1: Sign in to Intuit Developer

  1. Go to developer.intuit.com and choose Sign in, or create an account if you do not have one.
  2. Use the company-owned email described above. Intuit asks you to verify it before production keys unlock, so use an inbox someone actually reads.
  3. Once signed in, Intuit drops you into a workspace. Apps live inside a workspace, and you can add team members to it later, so nobody has to share a login.

In the walkthrough video, the Intuit docs page describes this as My Hub › App Dashboard. The portal now presents the same thing as Workspaces › your workspace › Apps. If you land on the docs site, the App Dashboard link takes you to the same place.

Step 2: Create the app with only the Accounting scope

  1. In your workspace, open the Apps tab and select the card with the + to create a new app. The Create a new app wizard has three steps: Type, Basic info and Permissions.
  2. On Type, choose the QuickBooks Online option.
  3. On Basic info, give the app a name your team will recognize later, such as "Company reporting integration" (3 to 80 characters, no special characters). The name is shown to the QuickBooks admin when they approve the connection.
  4. On Add permissions, tick com.intuit.quickbooks.accounting only. Leave com.intuit.quickbooks.payment unticked unless you really need payment processing data. Reporting does not.
  5. Confirm. Intuit shows a final Add these permissions? dialog before it creates the app.

Intuit Developer workspace with the Apps tab open on the App Dashboard. An existing app card shows In development, and the cursor is on the empty card with a plus sign used to create a new app.Workspace › Apps: the + card creates a new app.

The Create a new app wizard on step 2, Tell us about your app, with the app name field filled in.Name the app something the QuickBooks admin will recognize when they approve it.

The Add permissions step with com.intuit.quickbooks.accounting ticked and com.intuit.quickbooks.payment left unticked.Tick the Accounting scope only. Payments is a separate scope you do not need for reporting.

Read the confirmation dialog carefully. It says two things that matter:

  • The Accounting scope is labelled "Read & write". There is no read-only QuickBooks Online scope. The app can technically create and change records, so "read-only" has to come from what the integration actually calls (queries and reports, never create, update or delete). We cover how to hold that line in read-only API scopes for Procore, HubSpot and QuickBooks.
  • "Once you add permissions, you can't remove them." If you tick Payments by accident, the cleanest fix is to delete the app and start again before anyone connects it.

The Add these permissions? confirmation dialog listing com.intuit.quickbooks.accounting as Read and write for QuickBooks Online, with a warning that permissions cannot be removed once added.Intuit labels the Accounting scope Read & write, and added permissions are permanent.

Step 3: Test with development keys

When the app is created, Intuit shows Your app is ready for testing with a Show credentials toggle. These are the development keys.

The Your app is ready for testing card, marked In development, with the Show credentials toggle off so the client ID and client secret stay masked.Development keys are ready immediately. Leave Show credentials off while anyone else can see your screen.

Development keys only work against sandbox companies, the test QuickBooks companies Intuit gives every developer account. They cannot read your real books, and production keys cannot read a sandbox. That separation is useful: you can prove the whole flow on fake data before touching the real ledger.

Animated comparison table. Development keys: available as soon as the app exists, sandbox companies only, base URL sandbox-quickbooks.api.intuit.com, localhost redirect URIs allowed for testing, environment value sandbox. Production keys: available after App details and the questionnaire, real QuickBooks Online companies, base URL quickbooks.api.intuit.com, HTTPS-only redirect URIs, environment value production, stored only in your Key Vault.Two key sets that never cross: development reaches sandboxes, production reaches your real company.

If Build Flows (or another consultant) is doing the testing, they will normally use their own developer account and sandbox for this step. You do not need to send your development keys anywhere.

Step 4: Unlock production keys

  1. In the app's left menu, open Keys and credentials and select the Production tab. (The Get production keys tile on App Overview leads to the same place.)
  2. The credentials are locked, with the message Complete these tasks in any order to unlock your production credentials.
  3. Work through the App details tasks. At the time of writing these start with Review your Intuit Developer Portal Profile and verify your email and Add your app's end-user license agreement and privacy policy, and continue with the app's URLs (host domain, launch URL, disconnect URL) and categories.
  4. Complete the Compliance questionnaire (also in the left menu). It asks how the app uses and protects QuickBooks data. Set aside time for it, and answer it for the app you actually run. It is per app, so a second app means a second questionnaire.
  5. Add the production redirect URI under Settings. The Production tab links there ("You can also modify your redirect urls on the settings page"). Production redirect URIs must use HTTPS and cannot be an IP address.

Keys and credentials, Production tab, labelled Live production data. The client ID and client secret are locked, and a task list reads Complete these tasks in any order to unlock your production credentials, with App details at 17 percent and an estimate of 8 minutes.Production keys stay locked until App details and Compliance are complete.

A few practical notes for an internal reporting app:

  • You do not have to publish the app. Production keys and an App Store listing are separate. A private app used only by your company is normal.
  • The URLs do not need to be elaborate. A page on your company website that describes the integration, plus links to your privacy policy and terms, is usually enough. If a consultant owns the integration, they may host these pages.
  • Check the App Partner Program tier. Under the Intuit App Partner Program, launched in 2025, "CorePlus" API calls are metered. Those are the data-out calls a reporting integration makes: reads, queries and reports. Writes ("Core" calls) are not metered. Every workspace starts on the free Builder tier, which at the time of writing includes 500,000 CorePlus calls a month; calls above the allowance are blocked until the next month on Builder. A nightly sync for one company normally sits well inside that, but check the App partner program benefits tab in your workspace if you plan frequent full refreshes.

When the tasks are done, the Production tab shows a client ID and client secret. Do not copy them into email, chat or a ticket. Go straight to Step 6 and put them in Key Vault, or wait and enter them together on the setup call. Why we never email an API key explains the handoff.

Step 5: Find the realm ID (company ID)

Every QuickBooks Online company has a numeric company ID. The API calls it the realm ID, and every request URL includes it (/v3/company/<realmId>/...).

To find it in QuickBooks Online:

  1. Sign in to the company as a user.
  2. Select Settings (the gear icon) › Additional info. The company ID is shown there.
  3. Shortcut: with QuickBooks open, press Ctrl + Alt + ? (Windows) or Control + Option + ? (Mac).

The number also appears at the top of the billing page (Settings › Subscriptions and billing in current QuickBooks, older guides say Account and settings › Billing & subscription), but that page needs admin rights. Additional info works for every user.

Two things to know:

  • The realm ID is not secret on its own. It is still worth keeping in Key Vault next to the other values so the pipeline reads one place.
  • The Connect step in Step 7 returns the realm ID as realmId on the redirect. That value is authoritative. If it disagrees with what someone typed in, the admin picked a different company during Connect, which is worth catching before the first sync.

Step 6: Store the first four secrets in Key Vault

Do this before the Connect call, so the integration has everything it needs except the refresh token. In the Azure portal, open your vault and go to Objects › Secrets › + Generate/Import. Create one secret per value:

NameValue
quickbooks-client-idThe production client ID
quickbooks-client-secretThe production client secret
quickbooks-realm-idThe company ID from Step 5
quickbooks-environmentproduction
quickbooks-refresh-tokenSkip for now. The integration writes it in Step 7

Use the names exactly as shown, lowercase with hyphens, and paste values without quotes or trailing spaces. Leave content type and dates empty.

The refresh token is the one secret that changes on its own, so whoever runs the integration needs permission to create and update secrets, not only read them. That is why the setup asks for the Key Vault Secrets Officer role (it can read, create, update and delete secrets) rather than the read-only Key Vault Secrets User role. Microsoft Fabric and Key Vault secrets in pipelines shows how the pipeline reads these values at run time and writes back the rotated token.

Step 7: The admin clicks Connect, once

QuickBooks uses the OAuth 2.0 authorization code flow. Nobody types a QuickBooks password into the integration, and nobody copies a token. Instead:

  1. The integration builds a Connect link to Intuit's authorization endpoint (https://appcenter.intuit.com/connect/oauth2) with the Accounting scope, the registered redirect URI and a random state value.
  2. The QuickBooks admin opens it, signs in to Intuit, picks the right company and clicks Connect.
  3. Intuit redirects back to the redirect URI with a short-lived code, the same state and the realmId.
  4. The integration posts the code, with the client ID and secret, to Intuit's token endpoint (https://oauth.platform.intuit.com/oauth2/v1/tokens/bearer).
  5. Intuit returns an access token and a refresh token.
  6. The integration writes the refresh token and realm ID straight into Key Vault.

Animated sequence diagram with four lanes: QuickBooks admin, Intuit, Integration and Key Vault. 1 the integration sends the admin to the Connect link with the accounting scope and a state value; 2 the admin signs in, picks the company and clicks Connect; 3 Intuit redirects to the registered URI with code, state and realmId; 4 the integration posts the code with the client ID and secret; 5 Intuit returns an access token valid for one hour and a refresh token; 6 the integration saves the refresh token and realm ID as secrets. A note says the admin never sees, copies or emails a token.The Connect step: the admin approves, the integration does the exchange, and the token goes straight into Key Vault.

This is why you skipped the refresh token in Step 6. It does not exist until Connect, and the cleanest way to handle it is to do Connect on a shared call, with the integration writing the token into your vault while the admin watches. The authorization code is single use and expires within minutes, so there is no benefit in doing it ahead of time.

The redirect URI in the Connect link must match one registered on the app exactly, including https, the path and any trailing slash. A mismatch is the most common reason Connect fails.

How QuickBooks refresh tokens work now

This is the part most setups get wrong months later, when the sync quietly stops. Three separate clocks run on every connection.

Animated diagram of three clocks. One: access tokens last 60 minutes and are renewed with the refresh token. Two: a refresh can return a new refresh token value, the old value lapses within 24 hours, and the newest value must be written back to quickbooks-refresh-token every time. Three: hard limits, a refresh token unused for 100 days expires, and Intuit now caps refresh tokens at five years, after which an admin must click Connect again.Access tokens last an hour, refresh token values rotate, and refresh tokens now have a five-year ceiling.

1. Access tokens last one hour. Intuit's access tokens are valid for 3,600 seconds. The integration gets a new one by calling the token endpoint with the refresh token. It never needs the admin for this.

2. The refresh token value rotates. A refresh can return a different refresh token from the one you sent. Intuit's guidance is to always store and use the refresh token from the most recent response. Its Authorization FAQ calls the previous value stale, and its OAuth library documentation says previous refresh tokens expire 24 hours after you receive a new one. Do not rely on that grace period. After every refresh, write the returned refresh token back to quickbooks-refresh-token. If two jobs refresh at the same time and one saves an older value, the connection breaks soon after.

3. Refresh tokens have hard limits.

  • 100 days of inactivity. A refresh token that is not used for 100 days expires. A daily or weekly sync keeps it alive without any extra work.
  • Five-year maximum. In November 2025 Intuit announced that refresh tokens now have a maximum validity of five years, replacing the old "valid forever if used every 100 days" behavior. For apps using the Accounting or Payments scopes, the cap applies to tokens issued from October 2023, so the first ones start expiring in October 2028. Tokens for restricted and granular scopes start expiring from February 2027. Intuit's OAuth libraries can now return the absolute expiry as x_refresh_token_hard_expires_in when you opt in.

When the five-year cap is reached, the only fix is for a QuickBooks admin to click Connect again. Record the Connect date when you do it, and put a reminder in the calendar a month before the five-year mark. A monitor that alerts on expiring credentials is better still; see monitoring integration credentials and expiry alerts.

Common mistakes

  • Ticking Payments "just in case". It cannot be removed later, and it widens what the app is allowed to do. Accounting only.
  • Assuming the Accounting scope is read-only. It is labelled Read & write. Read-only is a property of the integration's code and review process, not of the scope.
  • Using development keys against the real company. Development keys only reach sandbox companies, so calls to the real realm fail with an authentication error. Check quickbooks-environment and the base URL match the keys.
  • Registering the developer account on a personal email. The app and its production keys belong to that account. Use a company-owned one and add team members to the workspace.
  • A redirect URI that is almost right. http versus https, a missing path segment or a trailing slash is enough for Intuit to reject the Connect request.
  • Not saving the rotated refresh token. The old value may keep working briefly, then refreshes fail with invalid_grant. Always write back the newest token.
  • Running two refreshers. A test notebook and the scheduled pipeline both refreshing the same connection will eventually overwrite each other. One writer per connection.
  • Pasting the client secret into email or chat "just for now". Treat it like a password. Enter it straight into Key Vault, or on the setup call.
  • Connecting the wrong company. Admins with access to several companies, including old or test ones, can pick the wrong one at Connect. Compare the returned realmId with the expected company ID.

For error messages and fixes across all four systems, see credential setup troubleshooting for Procore, HubSpot, QuickBooks, Azure and Fabric.

Checklist

  • Intuit developer account created on a company-owned email, and email verified
  • App created in the workspace with com.intuit.quickbooks.accounting only
  • Flow tested with development keys against a sandbox company
  • App details completed (profile, EULA, privacy policy, app URLs)
  • Compliance questionnaire submitted
  • Production redirect URI added under Settings (HTTPS, exact match)
  • Production client ID and secret stored in Key Vault, never emailed
  • Company ID recorded as quickbooks-realm-id
  • quickbooks-environment set to production
  • Setup call booked with a QuickBooks admin for the Connect step
  • Refresh token written to Key Vault by the integration, and realmId checked
  • Integration identity can write secrets (Key Vault Secrets Officer) so rotated tokens are saved
  • Connect date recorded, with a reminder before the five-year limit

Getting help with the setup

Most of this is form-filling, but the production-keys tasks and the Connect step are easier with someone who has done them before. Build Flows can do the whole QuickBooks setup with you on a call: your admin clicks Connect, the token goes straight into your vault, and nothing passes through email. Write to charley@buildflows.ai or start at buildflows.ai. If you are planning the reporting side too, the Procore, QuickBooks, HubSpot and Fabric demo shows where this data ends up, and the security page covers how we handle client credentials.

References

Frequently asked questions

Does QuickBooks Online have an API key?

No. QuickBooks Online uses OAuth 2.0. You create an app at developer.intuit.com to get a client ID and client secret, then a QuickBooks admin authorizes the app for the company once, which produces an access token and a refresh token.

Is there a read-only scope for the QuickBooks Online API?

No. The com.intuit.quickbooks.accounting scope is labelled Read & write in the Intuit Developer portal. A reporting integration stays read-only by only running queries and reports, and by having that rule enforced in code review. Store its credentials as write-capable secrets.

What is the difference between development and production keys?

Development keys are available as soon as the app is created and only work with sandbox companies. Production keys unlock after you finish the App details tasks and the Compliance questionnaire, and they are the only keys that can reach a real QuickBooks Online company.

Where do I find the QuickBooks realm ID?

The realm ID is the QuickBooks Online company ID. In QuickBooks, open Settings (the gear icon) and select Additional info, or press Ctrl + Alt + ? on Windows (Control + Option + ? on Mac). It is also returned as realmId when the admin completes the Connect step, which is the most reliable source.

How long do QuickBooks Online refresh tokens last?

Access tokens last one hour. A refresh token expires if it goes unused for 100 days, and its value can change on refresh, so always store the newest one; Intuit says the previous value lapses within 24 hours. Since Intuit's November 2025 policy change, refresh tokens also have a five-year maximum, after which an admin must click Connect again.

Who needs to click Connect, and how often?

A QuickBooks Online admin for the company clicks Connect once, ideally on a short call with whoever runs the integration. They only need to do it again if the app is disconnected, the refresh token lapses, or the five-year limit is reached.

Should I email the client ID and secret to my consultant?

No. Treat the client secret like a password and enter it straight into your Azure Key Vault, or enter it together on the setup call. The refresh token should be written to the vault by the integration itself during the Connect step.

Next step

Need this connection in your environment?

Scope one integration: the records, direction, timing, and business rules behind the connection.

Prefer email? charley@buildflows.ai

Keep learning

Integrations · November 14, 2026

Secure API Credential Setup for Procore, HubSpot and QuickBooks with Azure Key Vault and Microsoft Fabric

The end-to-end guide to connecting Procore, HubSpot and QuickBooks Online to Microsoft Fabric and Power BI without handing over credentials: who owns each step and how long it takes, the architecture from sources through Azure Key Vault to Fabric, the four steps (Fabric access, read-only API access in three systems, Key Vault with the Secrets Officer role, connect and go live), the exact secret names, what to send back, how to revoke access, common mistakes and a checklist.

Integrations · November 14, 2026

Read-Only API Scopes for Construction Reporting: Procore, HubSpot, QuickBooks, Azure and Fabric

A reference that starts from the report (WIP, backlog, pipeline, AR aging, cash) and maps it to the smallest read permission in Procore, HubSpot and QuickBooks Online, plus the right Azure Key Vault and Microsoft Fabric roles, with every name checked against vendor docs.

Integrations · November 14, 2026

Microsoft Fabric and Azure Key Vault: Secret Names, the Vault URI Handoff and How Pipelines Read Secrets

The last stretch of a secure credential setup: Fabric workspace access (Admin role, guest vs domain account, F2 cost), adding ten named secrets under Objects > Secrets > Generate/Import, Key Vault naming rules, what to send back to your partner and what never to send, how a Fabric pipeline reads secrets at run time with notebookutils getSecret and whose identity it uses, why Key Vault references in Fabric connections don't cover Procore, HubSpot or QuickBooks, and how to revoke access by removing one role assignment.