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

# Introduction

> What SentinelAR does and how it recovers overdue invoices

**SentinelAR** is an autonomous payment‑recovery agent for B2B companies. It connects to your invoice sources — **Stripe**, **QuickBooks Online**, or several of either — and uses a two‑layer LLM, an intent classifier feeding a policy‑gated drafter, to negotiate overdue invoices with your customers over email.

You stay in control. Sentinel drafts every message and your team approves or rejects it before it goes out. Pricing is a platform fee plus a success fee on what Sentinel recovers — charged only on invoices that were at least 15 days overdue when Sentinel first emailed, and never during the trial. See [pricing](https://sentinelar.app/pricing).

> [card] [Quickstart](https://docs.sentinelar.app/quickstart.md)
>
> Connect an invoice source, mint an API key, and follow your first recovery end‑to‑end.

> [card] [API Reference](https://docs.sentinelar.app/api-reference)
>
> Read and act on customers, invoices, recoveries, messages, and fees.

## How it works

**1. An invoice goes overdue**

Your invoice source reports a failed payment or an overdue invoice and Sentinel opens a **recovery**. Where the source retries cards itself (Stripe), Sentinel waits for the retry first.

**2. Sentinel drafts a negotiation email**

The classifier reads the customer's history and the drafter writes a reply within your policy: tone, and bounds on extensions, discounts, and payment plans.

**3. Your team approves the draft**

Every outbound draft is a **message** awaiting review. Approve or reject it from the Inbox or the API. Follow‑ups can be sent automatically in Live mode.

**4. Concessions land in your source**

Agreed extensions, discounts, and payment plans are applied to the invoice in the source it came from.

**5. You pay on success**

When the invoice is paid, the recovery is marked `recovered` and a **fee** is recorded if the success fee applies.

## Core concepts

> [card] Invoice sources
>
> Stripe and QuickBooks Online connections. Each invoice belongs to one; customers are shared across sources by email.

> [card] Recoveries
>
> One overdue invoice's lifecycle: `not_contacted → contacted → negotiating → recovered | handed_to_team | closed`.

> [card] Messages
>
> Emails to and from the customer. Drafts move `awaiting_review → approved → sent`, or `rejected` / `withdrawn`.

> [card] Fees
>
> Success fees accrued when an eligible recovery is paid, with the rate applied.

> [card] API keys
>
> Bearer tokens (`snl_<32 hex>`) with a required expiry, a role (`admin`, `member`, `viewer`), and scopes (`read`, optional `write`).

> [!TIP]
>
> Need a hand integrating SentinelAR? Reach us at [support@sentinelar.app](mailto:support@sentinelar.app).


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