Every API here is available over the APIs.io API and to AI agents over MCP.
openapi: 3.2.0
info:
title: Overwing Evaluate API
version: 0.21.0
contact:
name: Overwing
email: support@overwing.ai
url: https://overwing.ai
x-guidance: 'To check text before it is sent or acted on, POST /api/x402/evaluate with {"input": "<text>"} and pay $0.002 in USDC over x402; branch on recommended_action in the response (block, redact, review, allow). The text can be in any language; responses are in English, and GET /api/v1/languages lists the languages tested. Add rule_set "outbound-message" and a context object (recipient, channel, owns_contact_info) when the text is a message to a known recipient. To identify a bot, GET /api/x402/atlas/lookup?user_agent=<string> for $0.001. To try either with no payment and no key, call POST /api/v1/evaluate or GET /api/v1/atlas/lookup with no Authorization header, 10 a day each. Everything under /api/v1 other than those two needs a key from POST /api/v1/signup. Full guide: /llms.txt.'
summary: Guardrails that check text before an agent sends it, open data on AI agents (Atlas), a check of whether a site is reachable by agents (Beacon), and clearance for agents on legacy systems (Tower).
description: 'Overwing makes five products, all in this API. Preflight (/api/v1/preflight): one check of an unsigned Solana transaction against the caller''s policy, answering allow or refuse before an agent signs it. Guardrails (/api/v1/evaluate): send any text and a rule set slug; receive a pass/fail/review verdict per rule and in aggregate, one recommended action (block, redact, review, allow) and calibrated confidence, typically in under 500 ms. Atlas (/api/v1/atlas): a registry of AI crawlers, fetchers and browser agents, and a lookup that says what a User-Agent claims to be and whether the claim can be verified. Beacon (/api/v1/beacon): one paid lookup that says whether a site is reachable by agents, that is whether they can find it, read it and use it; $1 over x402 at /api/x402/beacon, or $5 by card. Tower (/api/v1/tower): typed operations on legacy business systems, where each write is executed, sent to a person for review, or refused, with a signed receipt for every step; in pilot, against a mock adapter. POST /api/v1/evaluate and GET /api/v1/atlas/lookup work with no key, 10 calls a day each; everything else takes `Authorization: Bearer ow_live_...` from POST /api/v1/signup (Tower actions take an agent key, `ow_agent_...`). Every error is `{ "error": "..." }`. The same operations are available over MCP (hosted at /mcp, or the overwing-mcp npm package) and, for evaluate and lookup, over A2A at /a2a. Plain-text guide at /llms.txt; human-readable reference at /docs.'
servers:
- url: https://overwing.ai
security:
- bearerAuth: []
tags:
- name: Evaluate
description: Score text against a rule set
paths:
/api/v1/evaluate/batch:
post:
tags:
- Evaluate
operationId: evaluateBatch
summary: Evaluate up to 50 inputs against one rule set in a single call
description: Each item counts as one evaluation against the daily quota and the per-minute burst limit; the whole batch is reserved up front (429 if it would not fit). Items succeed or fail independently and are processed with bounded concurrency. Supports Idempotency-Key.
parameters:
- name: Idempotency-Key
in: header
required: false
schema:
type: string
maxLength: 255
pattern: ^[A-Za-z0-9_.:-]{1,255}$
description: 'Optional. Retrying with the same key and body within 24 hours returns the stored response (header Idempotency-Replayed: true) without re-running or re-charging. Same key with a different body returns 422; a still-running original returns 409.'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/BatchRequest'
example:
rule_set: content-safety
items:
- id: msg-1
input: Hello there.
- id: msg-2
input: Call me at 555-123-4567.
metadata:
thread: t1
responses:
'200':
description: Per-item results (some items may carry an error)
content:
application/json:
schema:
$ref: '#/components/schemas/BatchResponse'
'400':
description: Invalid input; the message names the offending item
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Missing or invalid API key
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: Rule set not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'409':
description: Idempotency-Key still in progress
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'422':
description: Idempotency-Key reused with a different body
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: Batch would exceed the daily quota or the per-minute limit
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'502':
description: Every item failed
content:
application/json:
schema:
$ref: '#/components/schemas/BatchResponse'
/api/v1/evaluate:
post:
tags:
- Evaluate
operationId: evaluate
summary: Evaluate text against a rule set.
security:
- {}
- bearerAuth: []
parameters:
- name: Idempotency-Key
in: header
required: false
schema:
type: string
maxLength: 255
pattern: ^[A-Za-z0-9_.:-]{1,255}$
description: 'Optional. Retrying with the same key and body within 24 hours returns the stored response (header Idempotency-Replayed: true) without re-running or re-charging. Same key with a different body returns 422; a still-running original returns 409.'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/EvaluateRequest'
example:
input: Hello, this is a test.
rule_set: content-safety
metadata:
session: abc
responses:
'200':
description: Verdict
headers:
X-RateLimit-Limit:
schema:
type: integer
description: Daily evaluation limit
X-RateLimit-Remaining:
schema:
type: integer
X-RateLimit-Reset:
schema:
type: integer
description: Unix seconds at next UTC midnight
X-Burst-Limit:
schema:
type: integer
description: Evaluations allowed per minute on this plan
X-Burst-Remaining:
schema:
type: integer
X-Burst-Reset:
schema:
type: integer
description: Unix seconds when the current minute window ends
content:
application/json:
schema:
$ref: '#/components/schemas/Evaluation'
'400':
description: Invalid input
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Missing or invalid API key
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: Rule set not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'409':
description: Idempotency-Key still in progress
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'422':
description: Idempotency-Key reused with a different body
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: Daily quota and prepaid credits exhausted, or per-minute burst limit reached (see Retry-After and the X-RateLimit-* / X-Burst-* headers)
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'502':
description: Evaluation engine error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/api/v1/evaluations:
delete:
tags:
- Evaluate
operationId: purgeEvaluations
summary: Bulk delete stored evaluations (all, or those before a date)
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- confirm
properties:
confirm:
type: string
const: delete
before:
type: string
format: date-time
responses:
'200':
description: Deleted
content:
application/json:
schema:
type: object
properties:
deleted:
type: integer
before:
type:
- string
- 'null'
'400':
description: Missing confirmation
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Missing or invalid API key
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
get:
tags:
- Evaluate
operationId: listEvaluations
summary: List evaluations, newest first
parameters:
- name: limit
in: query
schema:
type: integer
minimum: 1
maximum: 100
default: 20
- name: cursor
in: query
schema:
type: string
description: Opaque cursor from next_cursor
- name: verdict
in: query
schema:
$ref: '#/components/schemas/Verdict'
- name: rule_set
in: query
schema:
type: string
description: Rule set slug
responses:
'200':
description: Page of evaluations
content:
application/json:
schema:
type: object
required:
- evaluations
- next_cursor
properties:
evaluations:
type: array
items:
$ref: '#/components/schemas/EvaluationSummary'
next_cursor:
type:
- string
- 'null'
'400':
description: Invalid query
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Missing or invalid API key
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/api/v1/evaluations/{id}:
delete:
tags:
- Evaluate
operationId: deleteEvaluation
summary: Delete one stored evaluation
parameters:
- name: id
in: path
required: true
schema:
type: string
responses:
'200':
description: Deleted
content:
application/json:
schema:
type: object
properties:
id:
type: string
deleted:
type: boolean
'401':
description: Missing or invalid API key
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: Not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
get:
tags:
- Evaluate
operationId: getEvaluation
summary: Fetch one evaluation with input and per-rule results
parameters:
- name: id
in: path
required: true
schema:
type: string
pattern: ^eval_[A-Za-z0-9_-]{16}$
responses:
'200':
description: Evaluation
content:
application/json:
schema:
$ref: '#/components/schemas/EvaluationDetail'
'401':
description: Missing or invalid API key
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: Not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/api/v1/feedback:
get:
tags:
- Evaluate
operationId: describeFeedback
summary: 'How to send feedback: what the route takes and its limits'
security: []
responses:
'200':
description: Description
content:
application/json:
schema:
type: object
post:
tags:
- Evaluate
operationId: sendFeedback
summary: 'Tell Overwing what went wrong: a wrong verdict, an error you could not act on…'
security:
- {}
- bearerAuth: []
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- message
properties:
message:
type: string
maxLength: 2000
description: What happened and what you expected
about:
type: string
maxLength: 300
description: A path, a tool name or a product
evaluation_id:
type: string
maxLength: 64
request_id:
type: string
maxLength: 64
contact:
type: string
maxLength: 200
description: 'Where an answer can reach you: an email, a URL, an agent name'
responses:
'201':
description: Recorded
content:
application/json:
schema:
type: object
properties:
received:
type: boolean
id:
type: string
'400':
description: message missing or too long
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: Daily allowance for this address used
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/api/v1/languages:
get:
tags:
- Evaluate
operationId: listLanguages
summary: Input languages the prebuilt rule sets were tested in, with the date and size…
security: []
responses:
'200':
description: Languages
content:
application/json:
schema:
type: object
properties:
input_languages:
type: string
response_language:
type: string
tested:
type: array
items:
type: object
properties:
code:
type: string
name:
type: string
native_name:
type: string
checks:
type: integer
matched_expected:
type: integer
test:
type: object
/api/x402/evaluate:
post:
tags:
- Evaluate
operationId: x402Evaluate
summary: Evaluate and pay per call in USDC (x402), no account needed
security: []
x-payment-info:
price:
mode: fixed
currency: USD
amount: '0.002000'
protocols:
- x402: {}
description: Same body and response as POST /api/v1/evaluate. Without an X-PAYMENT header the response is 402 with x402 payment requirements. Sign them with an x402 client and resend; settlement happens only after a successful evaluation. The response adds a `paid` object.
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/EvaluateRequest'
responses:
'200':
description: Verdict
content:
application/json:
schema:
$ref: '#/components/schemas/Evaluation'
'400':
description: Invalid input
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'402':
description: Payment required (x402 requirements in the body)
'429':
description: Capacity exhausted
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'502':
description: Evaluation engine error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/api/x402/execute:
post:
tags:
- Evaluate
operationId: x402Execute
summary: The same paid evaluation, called as {service, params} (MoltsPay form)
security: []
x-payment-info:
price:
mode: fixed
currency: USD
amount: '0.002000'
protocols:
- x402: {}
requestBody:
required: false
content:
application/json:
schema:
type: object
properties:
service:
type: string
enum:
- evaluate
params:
$ref: '#/components/schemas/EvaluateRequest'
responses:
'200':
description: Verdict, also under `result`
content:
application/json:
schema:
$ref: '#/components/schemas/Evaluation'
'400':
description: Invalid input
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'402':
description: Payment required
components:
schemas:
BatchRequest:
type: object
required:
- rule_set
- items
properties:
rule_set:
type: string
context:
type: object
additionalProperties: true
description: Default context for every item; an item's own context overrides it
store:
type: boolean
description: Applies to every item. False keeps no input text or context
items:
type: array
minItems: 1
maxItems: 50
items:
type: object
required:
- input
properties:
id:
type: string
maxLength: 128
description: Your own identifier, echoed back; must be unique within the batch
input:
type: string
maxLength: 100000
metadata:
type: object
additionalProperties: true
context:
type: object
additionalProperties: true
RuleResult:
type: object
required:
- rule
- type
- answer
- probability
- confidence
- verdict
- action
properties:
rule:
type: string
action:
type: string
enum:
- block
- redact
- review
description: 'The rule''s declared action: what to do when this rule fails'
type:
$ref: '#/components/schemas/QuestionType'
answer:
oneOf:
- type: string
- type: number
- type: boolean
description: 'choice: selected option; score: position on the level scale (may be fractional); noul: boolean'
probability:
type: number
minimum: 0
maximum: 1
confidence:
type: number
minimum: 0
maximum: 1
verdict:
$ref: '#/components/schemas/Verdict'
QuestionType:
type: string
enum:
- choice
- score
- noul
EvaluationSummary:
type: object
properties:
id:
type: string
verdict:
$ref: '#/components/schemas/Verdict'
aggregate_score:
type:
- number
- 'null'
confidence:
type:
- number
- 'null'
latency_ms:
type:
- integer
- 'null'
rule_set:
type: string
metadata:
type:
- object
- 'null'
created_at:
type: string
format: date-time
Error:
type: object
required:
- error
properties:
error:
type: string
description: Human-readable message
EvaluationDetail:
allOf:
- $ref: '#/components/schemas/EvaluationSummary'
- type: object
properties:
input:
type: string
context:
type:
- object
- 'null'
input_token_count:
type:
- integer
- 'null'
results:
type: array
items:
$ref: '#/components/schemas/RuleResult'
Verdict:
type: string
enum:
- pass
- fail
- review
description: 'fail: a rule''s fail condition matched. review: a rule''s confidence was below its review threshold and nothing failed. pass: otherwise.'
Evaluation:
type: object
required:
- id
- verdict
- recommended_action
- aggregate_score
- confidence
- latency_ms
- results
properties:
id:
type: string
example: eval_aBcDeFgHiJkLmNoP
verdict:
$ref: '#/components/schemas/Verdict'
recommended_action:
type: string
enum:
- block
- redact
- review
- allow
description: 'One word to act on, derived from the failed rules'' actions: block if any failed rule says block, else redact, else review (a review verdict or a review-action fail), else allow.'
aggregate_score:
type: number
minimum: 0
maximum: 1
description: 'Weighted score: pass=1, review=0.5, fail=0 per rule, weighted by rule weight. A ranking signal for sorting or thresholds, not a decision: use verdict and recommended_action to act.'
confidence:
type: number
description: Minimum confidence across rules
latency_ms:
type: integer
results:
type: array
items:
$ref: '#/components/schemas/RuleResult'
EvaluateRequest:
type: object
required:
- input
- rule_set
properties:
input:
type: string
maxLength: 100000
description: 'The LLM output (or any text) to evaluate. The input can be in any language the model reads. Tested on 2026-09-29 in Spanish, Portuguese, French, German, Japanese, Chinese (Simplified), Korean, Arabic and Hindi: 7 checks in each, and every verdict matched the English one. A small test, not a benchmark: the texts were written by a model and have not been reviewed by native speakers. Responses are in English whatever the input language.'
rule_set:
type: string
description: 'Rule set slug. Prebuilt: content-safety (toxicity, PII, self-harm, sexual content, severity) and outbound-message (adds unauthorized_pii and confidential_leak, and reads the context object)'
metadata:
type: object
additionalProperties: true
description: Opaque context echoed back and stored with the evaluation
context:
type: object
additionalProperties: true
description: 'Structured facts about the situation, passed to the model as state next to the text so rules can reference them: e.g. { recipient: "known customer", channel: "email", owns_contact_info: true }. Max 8 KB.'
store:
type: boolean
description: 'False runs the check without keeping the input text or the context: the record holds the verdict, scores and metadata only. It cannot turn storage back on when the organization has store_inputs off (PATCH /api/v1/org). The response header X-Input-Stored says which happened.'
BatchResponse:
type: object
properties:
summary:
type: object
properties:
total:
type: integer
pass:
type: integer
fail:
type: integer
review:
type: integer
errors:
type: integer
results:
type: array
items:
type: object
properties:
id:
type:
- string
- 'null'
index:
type: integer
evaluation:
oneOf:
- $ref: '#/components/schemas/Evaluation'
- type: 'null'
error:
type:
- string
- 'null'
securitySchemes:
bearerAuth:
type: http
scheme: bearer
bearerFormat: ow_live_<32 hex>
description: 'API key from the dashboard, from POST /api/v1/api-keys, or from POST /api/v1/signup (one call, no browser). A key has a scope: full (every endpoint) or evaluate (POST evaluate and evaluate/batch, GET rule-sets, me, usage and the Atlas reads; everything else answers 403). Give agents an evaluate key.'