> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://flash.outtake.ai/docs/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://flash.outtake.ai/docs/_mcp/server.

# Quickstart

> Create a Flash API key, run your first scan with POST /v1/scan, and read it back.

## 1. Get a key

Sign in at [flash.outtake.ai/account](https://flash.outtake.ai/account) and create a key, or let your agent [claim one](/docs/authentication#an-agent-claims-a-key). Keep it in `FLASH_API_KEY` and send it only to `armor.outtake.ai`. Flash keys start with `flash_` and don't work on the Outtake platform API.

## 2. Scan a URL

Test the key on a fixed URL:

```bash
curl https://armor.outtake.ai/v1/scan \
  -H "Authorization: Bearer $FLASH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://example.com/", "context": null}'
```

For real links, let an HTTP client encode the body. Never paste a URL or context into a shell command: a quote in either one can end the string and run the rest in a shell that holds your key.

```js
const response = await fetch("https://armor.outtake.ai/v1/scan", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.FLASH_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({ url, context }),
  signal: AbortSignal.timeout(180_000),
});
```

* `url` is a full HTTP or HTTPS URL of at most 2,048 characters. Drop tracking parameters from a longer one.
* `context` is what the user is trying to do, or what they expect the site to be, in at most 2,000 characters. It can be `null`.
* `objectives` is optional. See [Objectives](/docs/objectives).

A scan can wait for a free slot and then run for up to 90 seconds, so allow 3 minutes. Keep the connection open: closing it cancels the scan. When the queue is full, Flash answers `429 rate_limited` with `Retry-After` instead.

## 3. Act on the verdict

The response's `verdicts` lists one answer per objective, `safety` first. Act on the `safety` entry's `verdict`:

| `verdict`                | What your agent should do                                                 |
| ------------------------ | ------------------------------------------------------------------------- |
| `safe`                   | Continue.                                                                 |
| `unsafe` or `suspicious` | Warn the user and wait for their explicit approval before proceeding.     |
| `inconclusive`           | Treat it as unverified, never as safe. Ask the user, or scan again later. |
| `not_live`               | Nothing is on the site right now. Treat it as dead and don't retry soon.  |

`confidence` is 0 to 1 for `safe`, `unsafe` and `suspicious`, and `null` otherwise. `policies.merchant` turns every verdict the scan has into one `action`, `allow`, `hold` or `block`, with a `summary` to show the user. API scans belong to the key's account and never appear in the public Live feed.

## 4. Read it back

Any process can read a finished scan by its `scanId`:

```bash
curl https://armor.outtake.ai/v1/scans/9e2b6c4d-7a1f-4d3e-8b5a-0c9f1e2d3a47 \
  -H "Authorization: Bearer $FLASH_API_KEY"
```

```json
{
  "scanId": "9e2b6c4d-7a1f-4d3e-8b5a-0c9f1e2d3a47",
  "status": "scanned",
  "created_at": "2026-10-24T09:15:02.000Z",
  "finished_at": "2026-10-24T09:15:11.412Z",
  "objectives": [
    "safety",
    "entity_representation",
    "domain_ownership",
    "entity_reputation"
  ],
  "verdicts": [
    {
      "objective": "safety",
      "verdict": "unsafe"
    },
    {
      "objective": "domain_ownership",
      "verdict": "inconclusive"
    },
    {
      "objective": "entity_reputation",
      "verdict": "inconclusive"
    },
    {
      "objective": "entity_representation",
      "verdict": "impersonation"
    }
  ]
}
```

This record is trimmed. The whole one is what `POST /v1/scan` returned, without `request_id` or the measured cost and tokens. `status` is `pending` while the scan runs, `scanned` once its verdicts are set, or `rejected` or `error` with a `reason`; `verdicts` is empty until it is `scanned`. A key reads only its own account's scans. `POST /v1/scan` returns its `scanId` only when the scan finishes, so reading back can't recover a dropped request; start the scan with `POST /v1/scans` when it must survive one.

## Start a scan without waiting

`POST /v1/scans` takes the same body plus `wait_seconds` (0 to 30). It holds the request that long, then answers `200` with the finished scan, or `202` with the pending one, a `Location` of `GET /v1/scans/{scanId}` and `Retry-After: 5`. The scan keeps running after the response and counts against the same limits. Send an `Idempotency-Key` header, such as a UUID, to retry safely: the same request with the same key within a day returns the same scan with `idempotent-replayed: true` and never scans twice.

```bash
curl -sS -X POST https://armor.outtake.ai/v1/scans \
  -H "Authorization: Bearer $FLASH_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://example.com/", "wait_seconds": 10}'
```

Poll the `Location` every `Retry-After` seconds until `status` leaves `pending`. A scan takes up to about 75 seconds. One still waiting for a Flash slot after 30 s ends as `error` and doesn't count against the limits; start a new one.