> ## 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.

# Quickstart

> From zero to a live recovery in a few minutes

This guide connects an invoice source, mints an API key, and walks one recovery from overdue invoice to fee.

## Prerequisites

* A SentinelAR account at [sentinelar.app](https://sentinelar.app) — new workspaces start on a 14‑day trial
* A Stripe or QuickBooks Online account with at least one overdue invoice (test/sandbox is fine)
* The `owner` or `admin` role on your SentinelAR workspace

## Get started

**1. Connect an invoice source**

1. Open **Settings → Integrations** and click **Add source**.
2. Pick **Stripe** or **QuickBooks Online** and approve access on the provider's consent screen.
3. Sentinel imports your open invoices and the last 12 months of paid ones. The import never emails anyone.

You can connect several sources, including two of the same provider. Customers with the same email are merged across sources.

> [!NOTE]
>
> No webhook setup needed. Sentinel receives and verifies your provider's events itself: failed payments, overdue invoices, due‑date changes, and payments.

What Sentinel can offer depends on the invoice's source:

| | Stripe | QuickBooks Online |
| - | - | - |
| Extensions, discounts, payment plans | ✓ | ✓ |
| Pay link, void | ✓ | ✓ |
| Waits for automatic card retries | ✓ | — |

Follow the rest of the onboarding checklist on the Overview until every step is done.

**2. Create an API key**

1. Open **Settings → API Keys** and click **Create key**.
2. Choose a **role**:
   | Role | Use case |
   | - | - |
   | `admin` | Full access |
   | `member` | Operators: approve or reject drafts, close recoveries, edit customers |
   | `viewer` | Read‑only |
3. Every key gets `read`. Add `write` to approve, reject, close, or edit.
4. Pick an **expiry**: 7, 30, or 90 days.
5. Copy the key. It's shown once.

```bash theme={null}
export SENTINELAR_API_KEY="snl_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"

curl https://api.sentinelar.app/v1/recoveries \
  -H "Authorization: Bearer $SENTINELAR_API_KEY"
```

> [!WARNING]
>
> Treat keys like passwords. Rotate them from the same page — the old key keeps working for a grace period you choose (immediately, 1 hour, 24 hours, or 7 days).

**3. Review Sentinel's drafts**

When an invoice goes overdue, Sentinel opens a recovery and moves it through:

```text theme={null}
not_contacted → contacted → negotiating → recovered | handed_to_team | closed
```

Each outbound email arrives as a message with status `awaiting_review`, in the Inbox and the API:

```bash theme={null}
# Fetch a recovery with its messages
curl https://api.sentinelar.app/v1/recoveries/{id} \
  -H "Authorization: Bearer $SENTINELAR_API_KEY"

# Approve and send a draft
curl -X POST https://api.sentinelar.app/v1/messages/{id}/approve \
  -H "Authorization: Bearer $SENTINELAR_API_KEY"

# Reject a draft
curl -X POST https://api.sentinelar.app/v1/messages/{id}/reject \
  -H "Authorization: Bearer $SENTINELAR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "reject_reason": "too_aggressive", "reject_note": "Soften and re-offer the payment plan." }'
```

`reject_reason` is one of `wrong_tone`, `wrong_facts`, `bad_timing`, `too_aggressive`, `other`.

> [!TIP]
>
> Beyond replies, Sentinel can reach out on its own with pre‑due heads‑ups and follow‑ups. **Settings → Auto‑Pilot Rules** sets the mode — Off, Shadow (logs what it would have sent), or Live — and whether follow‑ups send without review. Shadow is the default.

**4. Track recovered revenue and fees**

When the invoice is paid in its source, the recovery becomes `recovered`. If the success fee applies — the invoice was 15+ days overdue at Sentinel's first email, outside the trial — a fee is recorded:

```bash theme={null}
curl https://api.sentinelar.app/v1/fees \
  -H "Authorization: Bearer $SENTINELAR_API_KEY"
```

Fees follow cash actually paid. Concessions are recorded on the fee but don't reduce it. **Settings → Billing** shows your plan, fees this month, and the next invoice date.

## Next steps

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

> [card] [Dashboard](https://sentinelar.app)
>
> Triage the Inbox, watch Collections, and tune your policy.

> [!TIP]
>
> Need help wiring SentinelAR into your billing stack? Email [support@sentinelar.app](mailto:support@sentinelar.app).


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