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

# Scan a URL, paid per call

POST https://armor.outtake.ai/v1/paid/scan
Content-Type: application/json

404 while paid scans are off. For an agent with no API key. Paid over MPP: the served document's x-payment-info lists the methods and prices on offer, by card through a Stripe shared payment token or in USDC on Tempo, and the 402 challenge states the price that applies. The first call answers 402 with a WWW-Authenticate: Payment challenge; pay it and retry with the credential in Authorization: Payment. The paid call runs one scan of the objectives sent, safety and the core objectives when none are, at one price whatever is sent, and returns it as GET /v1/scans/\{id} would, with request\_id and a receipt. Paying opens the closed-beta objectives. Every scanned scan gets policies.merchant, from whichever verdicts it has. A check refused or failed after payment, or one whose payer hangs up before its verdict is delivered, is refunded. The scan belongs to the payer, and no API key can read it.

Reference: https://flash.outtake.ai/docs/api-reference/paid-scan

## Request

### Body (application/json)

This endpoint expects a PaidScanRequest.

- `url` (string, required) — The full http or https URL to scan. Flash scans URLs of at most 2048 characters and refuses a longer one with 422 rejected; a url over 4096 characters is 400 invalid_request.
- `objectives` (list of enum, optional) — The objectives the scan answers, each once, as POST /v1/scan takes them. Left out, the scan runs safety and each of domain_ownership, entity_reputation, and entity_representation the caller's plan includes, and none of them is refused; send ["safety"] for safety alone. One price whatever is sent. Paying opens the closed-beta objectives, such as domain_ownership and entity_reputation. A deprecated objective gets 422 objective_unavailable before any payment.
  - Allowed values: `safety`, `domain_ownership`, `entity_reputation`, `entity_representation`, `entity_extraction`, `entity_legitimacy`
- `policies` (list of enum, optional) — Beta. The policies to apply to the scan's verdicts, each once; merchant when left out. merchant is the only policy today.
  - Allowed values: `merchant`

## Response

### 200

The finished scan and its receipt.

- `scanId` (string, required) — The scan's id.
- `status` (enum, required) — pending: still running; read it again in a few seconds. scanned: verdicts and policies are set. rejected: the URL was refused (reason says why). error: the scan failed or never finished; scan again.
  - Allowed values: `pending`, `scanned`, `rejected`, `error`
- `reason` (string, required, nullable) — Why a rejected or error scan has no verdicts; null otherwise.
- `created_at` (datetime, required)
- `finished_at` (datetime, required, nullable) — null while the scan is pending.
- `url` (string, required) — The URL scanned.
- `objectives` (list of enum, required) — The objectives asked for, or the ones the caller's plan runs when the request named none; safety first, each once. Once the scan is scanned, verdicts answers every one.
  - Allowed values: `safety`, `domain_ownership`, `entity_reputation`, `entity_representation`, `entity_extraction`, `entity_legitimacy`
- `verdicts` (list of PaidScanVerdictsItems, required) — The scan's answers: safety first, then each other objective in objectives, plus domain_ownership when another objective ran it first. entity_representation has one entry per entity the page represents, or one none entry. An objective the scan never reached still gets one inconclusive entry, with a reason and no subject, and one the caller's plan doesn't include gets one refused entry. Empty unless status is scanned.
- `observations` (list of PaidScanObservationsItems, required) — The facts this scan found, the same on every surface and for every reader: nodes first, then edges. Flash places all of them in its graph except where the page's links lead, which stay on this scan. Derived from the scan alone, so it never waits on, or shows, any other scan. Empty unless status is scanned, and when Flash couldn't place the page.
- `policies` (PaidScanPolicies, required) — Beta. Each policy's outcome, by name, read from verdicts. Every scan applies merchant.
- `site_state` (PaidScanSiteState, required, nullable) — Whether anything was on the site when Flash checked, read by code, not the model. state is live, taken_down, removed, no_dns, parked, error or blocked_us, and reason says why. error means no page loaded, so the safety verdict is inconclusive rather than not_live. reason is "unrecorded" when only the state was stored. state is "unknown" with reason "not_checked" when the scan finished without checking the site. null unless status is scanned.
- `page_tags` (list of PaidScanPageTagsItems, required, nullable) — Beta. The ad and analytics tag ids in the page's HTML; empty when the page carries none. null unless status is scanned, and when Flash read no page HTML.
- `engine` (string, required) — The engine that ran the scan.
- `cost_usd` (double, required, nullable) — The scan's measured LLM cost in USD; null when unmeasured. Only POST /v1/scan measures it.
- `llm_usage` (PaidScanLlmUsage, required, nullable) — The scan's LLM tokens; null when unmeasured. Only POST /v1/scan measures them.
- `trace_id` (string, required, nullable) — The request's Datadog trace id, for support. Only POST /v1/scan has one.
- `report_url` (string, required, nullable) — The scan's result page, where its account can report a wrong verdict. It opens for the account that ran the scan and its org's members, and for anyone with the link once that account makes it public. null unless status is scanned, and when the scan has no page.
- `request_id` (string, required) — This request's id, also sent as x-request-id. Quote it when you contact support.
- `receipt` (PaidScanReceipt, required) — The payment this check charged.

## Errors

### 400 Bad Request Error

invalid_request: the body is not the JSON above, such as one with context, the removed objective field, an empty objectives list or any other field. Nothing is charged.

- `error` (enum, required)
  - Allowed values: `invalid_request`, `unauthorized`, `forbidden`, `scope_required`, `not_found`, `rejected`, `objective_unavailable`, `rate_limited`, `disabled`, `unavailable`, `idempotency_key_in_use`, `idempotency_key_reused`, `payment_reused`
- `reason` (string, required) — A sentence that says what to do next, for a person or agent.
- `request_id` (string, required) — This request's id, also sent as x-request-id. Quote it when you contact support.
- `limit` (PaidErrorLimit, optional) — Which limit refused the check, on limit refusals only. A paid check's caller is always its payer.
- `allowance` (PaidErrorAllowance, optional) — The plan allowance that refused the scan, in place of `limit`, when the account has used the scans its plan includes.

### 402 Payment Required Error

No payment credential, or one the payment method refused. Pay what WWW-Authenticate asks and retry. Nothing was charged.

- `request_id` (string, required) — This request's id, also sent as x-request-id. Quote it when you contact support.
- `detail` (string, optional) — Why payment is needed, or why it was refused.

### 409 Conflict Error

payment_reused: this payment already paid for a check. Nothing was scanned; pay again for another check.

- `error` (enum, required)
  - Allowed values: `invalid_request`, `unauthorized`, `forbidden`, `scope_required`, `not_found`, `rejected`, `objective_unavailable`, `rate_limited`, `disabled`, `unavailable`, `idempotency_key_in_use`, `idempotency_key_reused`, `payment_reused`
- `reason` (string, required) — A sentence that says what to do next, for a person or agent.
- `request_id` (string, required) — This request's id, also sent as x-request-id. Quote it when you contact support.
- `limit` (PaidErrorLimit, optional) — Which limit refused the check, on limit refusals only. A paid check's caller is always its payer.
- `allowance` (PaidErrorAllowance, optional) — The plan allowance that refused the scan, in place of `limit`, when the account has used the scans its plan includes.

### 422 Unprocessable Entity Error

rejected: Flash won't scan this URL, such as a private address. objective_unavailable: an objective is deprecated or not available; this comes before any 402. Before payment nothing is charged; after it, the check is refunded.

- `error` (enum, required)
  - Allowed values: `invalid_request`, `unauthorized`, `forbidden`, `scope_required`, `not_found`, `rejected`, `objective_unavailable`, `rate_limited`, `disabled`, `unavailable`, `idempotency_key_in_use`, `idempotency_key_reused`, `payment_reused`
- `reason` (string, required) — A sentence that says what to do next, for a person or agent.
- `request_id` (string, required) — This request's id, also sent as x-request-id. Quote it when you contact support.
- `limit` (PaidErrorLimit, optional) — Which limit refused the check, on limit refusals only. A paid check's caller is always its payer.
- `allowance` (PaidErrorAllowance, optional) — The plan allowance that refused the scan, in place of `limit`, when the account has used the scans its plan includes.

### 429 Too Many Requests Error

rate_limited: the paid checks cap for this payer or for everyone is full, or a limit or busy engine refused the scan after payment, which is refunded. Wait for retry-after.

- `error` (enum, required)
  - Allowed values: `invalid_request`, `unauthorized`, `forbidden`, `scope_required`, `not_found`, `rejected`, `objective_unavailable`, `rate_limited`, `disabled`, `unavailable`, `idempotency_key_in_use`, `idempotency_key_reused`, `payment_reused`
- `reason` (string, required) — A sentence that says what to do next, for a person or agent.
- `request_id` (string, required) — This request's id, also sent as x-request-id. Quote it when you contact support.
- `limit` (PaidErrorLimit, optional) — Which limit refused the check, on limit refusals only. A paid check's caller is always its payer.
- `allowance` (PaidErrorAllowance, optional) — The plan allowance that refused the scan, in place of `limit`, when the account has used the scans its plan includes.

### 503 Service Unavailable Error

disabled: scanning is paused. unavailable: Flash is starting, stopping or failed, or the scan failed after payment, which is refunded. Retry later.

- `error` (enum, required)
  - Allowed values: `invalid_request`, `unauthorized`, `forbidden`, `scope_required`, `not_found`, `rejected`, `objective_unavailable`, `rate_limited`, `disabled`, `unavailable`, `idempotency_key_in_use`, `idempotency_key_reused`, `payment_reused`
- `reason` (string, required) — A sentence that says what to do next, for a person or agent.
- `request_id` (string, required) — This request's id, also sent as x-request-id. Quote it when you contact support.
- `limit` (PaidErrorLimit, optional) — Which limit refused the check, on limit refusals only. A paid check's caller is always its payer.
- `allowance` (PaidErrorAllowance, optional) — The plan allowance that refused the scan, in place of `limit`, when the account has used the scans its plan includes.

## Types

### PaidScanVerdictsItems

One answer to one objective about one subject, in the same shape for every objective.

### PaidScanObservationsItems

One fact this scan found: a host, address, entity or social profile it saw, or an edge between two of them.

### PaidScanPolicies

Beta. Each policy's outcome, by name, read from verdicts. Every scan applies merchant.

- `merchant` (PaidScanPoliciesMerchant, required, nullable) — Beta. Whether to open, pay or onboard, derived by one fixed rule from the verdicts the scan has: safety, plus domain_ownership and entity_reputation when they ran. null exactly when the scan has no safety verdict. It checks the site, not the legal entity or person behind it, so it isn't KYB or KYC.

### PaidScanSiteState

Whether anything was on the site when Flash checked, read by code, not the model. state is live, taken_down, removed, no_dns, parked, error or blocked_us, and reason says why. error means no page loaded, so the safety verdict is inconclusive rather than not_live. reason is "unrecorded" when only the state was stored. state is "unknown" with reason "not_checked" when the scan finished without checking the site. null unless status is scanned.

- `state` (string, required)
- `reason` (string, required)

### PaidScanPageTagsItems

- `type` (enum, required) — The ad or analytics product the id belongs to.
  - Allowed values: `google_analytics`, `google_tag_manager`, `google_ads`, `google_adsense`, `meta_pixel`, `tiktok_pixel`, `hotjar`
- `id` (string, required) — The id as the page carries it, such as AW-123456789.

### PaidScanLlmUsage

The scan's LLM tokens; null when unmeasured. Only POST /v1/scan measures them.

- `input_tokens` (integer, required)
- `output_tokens` (integer, required)
- `cached_input_tokens` (integer, required)
- `llm_calls` (integer, required)

### PaidScanReceipt

The payment this check charged.

- `method` (enum, required)
  - Allowed values: `stub`, `stripe_spt`, `tempo`, `x402_base`
- `reference` (string, required) — The payment: a payment intent id or a transaction hash. It pays for one check only.
- `amount_usd` (string, required) — What the check cost, in USD.
- `payer` (string, required) — payer: and the payment's source. The scan belongs to it.

### PaidErrorLimit

Which limit refused the check, on limit refusals only. A paid check's caller is always its payer.

- `scope` (enum, required)
  - Allowed values: `caller`, `ip`, `all`
- `window` (enum, required)
  - Allowed values: `hour`, `day`
- `limit` (integer, required)
- `resetAt` (string, required) — When the window frees up, as ISO 8601.
- `caller` (enum, required)
  - Allowed values: `payer`

### PaidErrorAllowance

The plan allowance that refused the scan, in place of `limit`, when the account has used the scans its plan includes.

- `scans` (integer, required) — The scans the plan includes in any run of `days` days.
- `days` (integer, required)
- `resetAt` (string, required) — When the next scan fits the allowance, as ISO 8601.

### PaidScanPoliciesMerchant

Beta. Whether to open, pay or onboard, derived by one fixed rule from the verdicts the scan has: safety, plus domain_ownership and entity_reputation when they ran. null exactly when the scan has no safety verdict. It checks the site, not the legal entity or person behind it, so it isn't KYB or KYC.

- `action` (enum, required) — Beta. block: the safety verdict is unsafe, or the owner has a sourced adverse record; don't open, pay or onboard. allow: every answer in checked is positive: the page is safe and, when checked, its owner is verified or corroborated and reputable. hold: anything else, including a claimed or shared-host owner, limited history and any answer Flash couldn't reach; ask a person first. An allow covers only what checked names: from safety alone, the link is safe to open, not a merchant an agent can pay.
  - Allowed values: `allow`, `hold`, `block`
- `checked` (list of enum, required) — Beta. The objectives the action was decided from, in order: safety always, then domain_ownership and entity_reputation when the scan answered them.
  - Allowed values: `safety`, `domain_ownership`, `entity_reputation`
- `summary` (string, required) — Beta. One or two sentences for a person: the action, what set it, and what Flash checked.
- `because` (list of PaidScanPoliciesMerchantBecauseItems, required) — Beta. The answers behind the action: every checked answer for allow, each that matched for block, and each that kept it from allow for hold. Show each answer's summary to a person.
- `version` (enum, required) — Beta. Bumps whenever the rule behind action changes meaning.
  - Allowed values: `2`

### PaidScanPoliciesMerchantBecauseItems

Beta. One answer behind the action, as the scan serves it.

## Examples

**Request**

```json
{
  "url": "https://example.com/"
}
```

**Response**

```json
{
  "scanId": "string",
  "status": "pending",
  "reason": "string",
  "created_at": "2024-01-15T09:30:00Z",
  "finished_at": "2024-01-15T09:30:00Z",
  "url": "string",
  "objectives": [
    "safety"
  ],
  "verdicts": [
    {
      "objective": "safety",
      "subject": {
        "kind": "url",
        "value": "string",
        "name": "string"
      },
      "verdict": "safe",
      "confidence": 0.5,
      "reason": "site_unreachable",
      "summary": "string",
      "evidence": [
        {
          "kind": "string",
          "summary": "string",
          "source": "string",
          "observations": [
            "string"
          ]
        }
      ]
    }
  ],
  "observations": [
    {
      "id": "string",
      "kind": "node",
      "type": "host",
      "key": "string",
      "scanned": true
    }
  ],
  "policies": {
    "merchant": {
      "action": "allow",
      "checked": [
        "safety"
      ],
      "summary": "string",
      "because": [
        {
          "objective": "safety",
          "status": "safe",
          "reason": "string"
        }
      ],
      "version": 2
    }
  },
  "site_state": {
    "state": "string",
    "reason": "string"
  },
  "page_tags": [
    {
      "type": "google_analytics",
      "id": "string"
    }
  ],
  "engine": "string",
  "cost_usd": 1.1,
  "llm_usage": {
    "input_tokens": 1,
    "output_tokens": 1,
    "cached_input_tokens": 1,
    "llm_calls": 1
  },
  "trace_id": "string",
  "report_url": "string",
  "request_id": "string",
  "receipt": {
    "method": "stub",
    "reference": "string",
    "amount_usd": "string",
    "payer": "string"
  }
}
```

**SDK Code**

```python
import requests

url = "https://armor.outtake.ai/v1/paid/scan"

payload = { "url": "https://example.com/" }
headers = {"Content-Type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript
const url = 'https://armor.outtake.ai/v1/paid/scan';
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json'},
  body: '{"url":"https://example.com/"}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://armor.outtake.ai/v1/paid/scan"

	payload := strings.NewReader("{\n  \"url\": \"https://example.com/\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://armor.outtake.ai/v1/paid/scan")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n  \"url\": \"https://example.com/\"\n}"

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://armor.outtake.ai/v1/paid/scan")
  .header("Content-Type", "application/json")
  .body("{\n  \"url\": \"https://example.com/\"\n}")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://armor.outtake.ai/v1/paid/scan', [
  'body' => '{
  "url": "https://example.com/"
}',
  'headers' => [
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://armor.outtake.ai/v1/paid/scan");
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"url\": \"https://example.com/\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["Content-Type": "application/json"]
let parameters = ["url": "https://example.com/"] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://armor.outtake.ai/v1/paid/scan")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```