> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mithunai.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Start connecting your books

> The QuickBooks Online or Xero consent page for a saved connection holding your own app.

A saved QuickBooks Online or Xero connection holds **your own** Intuit or Xero app: its client id
and secret. It reads nothing until a person signs in to the vendor and consents. This returns the
vendor's consent page for that connection, with a single-use state bound to you that lasts ten
minutes. Send the browser there; the vendor sends it back to the address your deployment set, and
[Finish connecting your books](https://docs.mithunai.com/api-reference/employees/complete-books-consent.md) redeems what it
carried.

It needs `credential.manage` -- Owner or Admin -- and a signed-in person: an API key is refused.

> [!WARNING]
>
> AI employees are in **beta**. This answers `404` unless your deployment has switched the beta on
> and set `MITHUNAI_AI_EMPLOYEES_ACCOUNTING_REDIRECT_URI`. Not yet run against a real account. See
> [Finance](https://docs.mithunai.com/team/finance.md).

## Path

**credential\_id** `string` *required*

The saved QuickBooks Online or Xero connection.

## Response

**authorize\_url** `string` *required*

QuickBooks' or Xero's consent page.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.