Quickstart
1. Get a key
Sign in at flash.outtake.ai/account and create a key, or let your agent claim one. 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:
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.
urlis a full HTTP or HTTPS URL of at most 2,048 characters. Drop tracking parameters from a longer one.contextis what the user is trying to do, or what they expect the site to be, in at most 2,000 characters. It can benull.objectivesis optional. See 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:
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:
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.
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.