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

# Start a scan without waiting for it

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

Starts the same scan as POST /v1/scan and holds the request up to wait\_seconds (0 to 30). A scan that finishes in time answers 200; otherwise 202 with the pending scan, a Location of GET /v1/scans/\{scanId} and Retry-After. The scan keeps running after the response and counts against the same limits. Send an Idempotency-Key to retry safely: a repeat of the same request within a day returns the same scan with idempotent-replayed: true and never scans twice.

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

## Authentication

- `Authorization` header (bearer token, required) — A flash\_ API key, sent as Authorization: Bearer \<key>.

## Request

### Headers

- `idempotency-key` (string, optional) — 1 to 255 visible ASCII characters, such as a UUID, scoped to the account and kept for a day.

### Body (application/json)

This endpoint expects an AsyncScanRequest.

- `url` (string, required) — The URL to scan, at most 4096 characters.
- `context` (string, optional, nullable) — Optional context for the scan, such as what the caller is about to do with the URL. At most 2000 characters.
- `objectives` (list of enum, optional) — The objectives the scan runs, as on POST /v1/scan. 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.
  - 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`
- `wait_seconds` (integer, optional, default: 0) — How long to hold the request open for the verdict. A scan that finishes in time returns 200 with the scan; otherwise 202 with the pending scan, a Location of GET /v1/scans/\{scanId} and a Retry-After in seconds. A scan takes up to about 75 seconds.

## Response

### 200

The scan finished within wait_seconds: scanned, rejected or error.

- `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 ScanRecordVerdictsItems, 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 ScanRecordObservationsItems, 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` (ScanRecordPolicies, required) — Beta. Each policy's outcome, by name, read from verdicts. Every scan applies merchant.
- `site_state` (ScanRecordSiteState, 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 ScanRecordPageTagsItems, 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` (ScanRecordLlmUsage, 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.

### 202

The scan is still pending. Poll its Location after retry-after.

- `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 ScanRecordVerdictsItems, 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 ScanRecordObservationsItems, 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` (ScanRecordPolicies, required) — Beta. Each policy's outcome, by name, read from verdicts. Every scan applies merchant.
- `site_state` (ScanRecordSiteState, 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 ScanRecordPageTagsItems, 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` (ScanRecordLlmUsage, 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.

## Errors

### 400 Bad Request Error

invalid_request: the body is not the JSON above, or the Idempotency-Key is malformed.

- `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`
- `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` (ErrorLimit, optional) — Which limit refused the scan, on limit refusals only.
- `allowance` (ErrorAllowance, optional) — The plan allowance that refused the scan, in place of `limit`, when the account has used the scans its plan includes.

### 401 Unauthorized Error

unauthorized: no API key, or one Flash doesn't know.

- `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`
- `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` (ErrorLimit, optional) — Which limit refused the scan, on limit refusals only.
- `allowance` (ErrorAllowance, optional) — The plan allowance that refused the scan, in place of `limit`, when the account has used the scans its plan includes.

### 403 Forbidden Error

scope_required: the key lacks the scan scope.

- `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`
- `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` (ErrorLimit, optional) — Which limit refused the scan, on limit refusals only.
- `allowance` (ErrorAllowance, optional) — The plan allowance that refused the scan, in place of `limit`, when the account has used the scans its plan includes.

### 409 Conflict Error

idempotency_key_in_use: a request with this Idempotency-Key is still being admitted. Retry in a second.

- `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`
- `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` (ErrorLimit, optional) — Which limit refused the scan, on limit refusals only.
- `allowance` (ErrorAllowance, 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. objective_unavailable: an objective isn't served to this account; nothing was scanned. idempotency_key_reused: the key was sent with a different request in the last day.

- `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`
- `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` (ErrorLimit, optional) — Which limit refused the scan, on limit refusals only.
- `allowance` (ErrorAllowance, 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: a limit or a busy engine refused the scan; nothing was started. 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`
- `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` (ErrorLimit, optional) — Which limit refused the scan, on limit refusals only.
- `allowance` (ErrorAllowance, 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. 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`
- `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` (ErrorLimit, optional) — Which limit refused the scan, on limit refusals only.
- `allowance` (ErrorAllowance, optional) — The plan allowance that refused the scan, in place of `limit`, when the account has used the scans its plan includes.

## Types

### ScanRecordVerdictsItems

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

### ScanRecordObservationsItems

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

### ScanRecordPolicies

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

- `merchant` (ScanRecordPoliciesMerchant, 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.

### ScanRecordSiteState

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)

### ScanRecordPageTagsItems

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

### ScanRecordLlmUsage

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)

### ErrorLimit

Which limit refused the scan, on limit refusals only.

- `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: `anonymous`, `account`, `internal_key`

### ErrorAllowance

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.

### ScanRecordPoliciesMerchant

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 ScanRecordPoliciesMerchantBecauseItems, 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`

### ScanRecordPoliciesMerchantBecauseItems

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

## Examples

### Example 1

**Request**

```json
{
  "url": "string"
}
```

**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"
}
```

**SDK Code**

```python
import requests

url = "https://armor.outtake.ai/v1/scans"

payload = { "url": "string" }
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

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

print(response.json())
```

```javascript
const url = 'https://armor.outtake.ai/v1/scans';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"url":"string"}'
};

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/scans"

	payload := strings.NewReader("{\n  \"url\": \"string\"\n}")

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

	req.Header.Add("Authorization", "Bearer <token>")
	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/scans")

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

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"url\": \"string\"\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/scans")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"url\": \"string\"\n}")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://armor.outtake.ai/v1/scans', [
  'body' => '{
  "url": "string"
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

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

```csharp
using RestSharp;

var client = new RestClient("https://armor.outtake.ai/v1/scans");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"url\": \"string\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = ["url": "string"] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "https://armor.outtake.ai/v1/scans")! 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()
```

### Example 2

**Request**

```json
{
  "url": "string"
}
```

**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"
}
```

**SDK Code**

```python
import requests

url = "https://armor.outtake.ai/v1/scans"

payload = { "url": "string" }
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

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

print(response.json())
```

```javascript
const url = 'https://armor.outtake.ai/v1/scans';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"url":"string"}'
};

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/scans"

	payload := strings.NewReader("{\n  \"url\": \"string\"\n}")

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

	req.Header.Add("Authorization", "Bearer <token>")
	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/scans")

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

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"url\": \"string\"\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/scans")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"url\": \"string\"\n}")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://armor.outtake.ai/v1/scans', [
  'body' => '{
  "url": "string"
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

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

```csharp
using RestSharp;

var client = new RestClient("https://armor.outtake.ai/v1/scans");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"url\": \"string\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = ["url": "string"] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "https://armor.outtake.ai/v1/scans")! 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()
```