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

# Read the key's scan limits

GET https://armor.outtake.ai/v1/limits

The hour and day windows this key's scans count against, and how much of each is used. A key's account shares one limit across its web, MCP and API scans; an internal key has its own.

Reference: https://flash.outtake.ai/docs/api-reference/get-limits

## Authentication

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

## Response

### 200

The key's limit windows.

- `caller` (enum, required) — account: the limits the key's account shares across web, MCP and API scans. internal_key: an internal key's own limits.
  - Allowed values: `account`, `internal_key`
- `hour` (LimitsHour, required) — The rolling last hour.
- `day` (LimitsDay, required) — The rolling last 24 hours.

## Errors

### 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 usage:read 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.

### 503 Service Unavailable Error

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

### LimitsHour

The rolling last hour.

- `limit` (integer, required) — Scans the window allows.
- `used` (integer, required) — Scans counted in the window.
- `remaining` (integer, required)
- `resetAt` (string, required, nullable) — When the next scan frees up, as ISO 8601; null while the window has room.

### LimitsDay

The rolling last 24 hours.

- `limit` (integer, required) — Scans the window allows.
- `used` (integer, required) — Scans counted in the window.
- `remaining` (integer, required)
- `resetAt` (string, required, nullable) — When the next scan frees up, as ISO 8601; null while the window has room.

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

## Examples

**Response**

```json
{
  "caller": "account",
  "hour": {
    "limit": 1,
    "used": 1,
    "remaining": 1,
    "resetAt": "string"
  },
  "day": {
    "limit": 1,
    "used": 1,
    "remaining": 1,
    "resetAt": "string"
  }
}
```

**SDK Code**

```python
import requests

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

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript
const url = 'https://armor.outtake.ai/v1/limits';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

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"
	"net/http"
	"io"
)

func main() {

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

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	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/limits")

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

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

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.get("https://armor.outtake.ai/v1/limits")
  .header("Authorization", "Bearer <token>")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://armor.outtake.ai/v1/limits', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

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

```csharp
using RestSharp;

var client = new RestClient("https://armor.outtake.ai/v1/limits");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://armor.outtake.ai/v1/limits")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

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()
```