Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
openapi: 3.2.0
info:
title: Secure AI Approvals API
version: 1.0.0
description: 'Data loss prevention for AI agents. Inspects what an agent is about to do — the tool call, with its arguments — and allows, redacts or blocks it according to rules the account holds. Every inspected action is logged as kinds and locations, never as values.
The detector half is still here on its own: /redact swaps the people in a piece of text for plausible stand-ins before it reaches a model, and /restore puts them back.'
contact:
url: https://secureai.one/developers
servers:
- url: https://secureai.one/v1
security:
- apiKey: []
tags:
- name: Approvals
paths:
/approvals:
get:
summary: Actions held for a person
operationId: listApprovals
parameters:
- name: status
in: query
schema:
type: string
enum:
- pending
- approved
- denied
- expired
- name: limit
in: query
schema:
type: integer
default: 50
maximum: 200
responses:
'200':
description: Newest first, with expiry applied — nothing is shown as pending that can no longer be approved.
content:
application/json:
schema:
type: object
properties:
approvals:
type: array
items:
$ref: '#/components/schemas/Approval'
'401':
description: Missing or invalid credentials.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
tags:
- Approvals
/approvals/{id}:
get:
summary: One held action
operationId: getApproval
parameters:
- name: id
in: path
required: true
schema:
type: string
responses:
'200':
description: The approval.
content:
application/json:
schema:
type: object
properties:
approval:
$ref: '#/components/schemas/Approval'
'404':
description: No such approval.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
tags:
- Approvals
post:
summary: Approve or deny
description: 'Must be a signed-in person. An API key is refused here even though it is accepted everywhere else on this API: a key approving its own agent''s action is the agent approving itself with extra steps, and the whole value of the feature is that a human looked.
A decision is final, and an expired approval cannot be approved.'
operationId: decideApproval
parameters:
- name: id
in: path
required: true
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
decision:
type: string
enum:
- approved
- denied
note:
type: string
maxLength: 500
required:
- decision
responses:
'200':
description: The decided approval.
content:
application/json:
schema:
type: object
properties:
approval:
$ref: '#/components/schemas/Approval'
'403':
description: An API key cannot approve its own agent's action.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: No such approval.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'409':
description: Already decided, or expired before it was decided.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
tags:
- Approvals
components:
schemas:
Approval:
type: object
description: An action held for a person. Carries the kinds and locations of what was found and never the values — a reviewer needs the shape, not the digits.
properties:
id:
type: string
createdAt:
type: integer
expiresAt:
type: integer
status:
type: string
enum:
- pending
- approved
- denied
- expired
agent:
type: string
nullable: true
tool:
type: string
keyId:
type: string
findings:
type: array
items:
$ref: '#/components/schemas/Finding'
decidedBy:
type: string
decidedAt:
type: integer
note:
type: string
required:
- id
- createdAt
- expiresAt
- status
- tool
- keyId
- findings
Error:
type: object
properties:
error:
type: object
properties:
message:
type: string
type:
type: string
code:
type:
- string
- 'null'
param:
type:
- string
- 'null'
Finding:
type: object
description: Something the scanner located. Carries the kind and where it sat, never the value.
properties:
kind:
type: string
enum:
- secret
- card
- iban
- ssn
- govid
- email
- phone
- address
- postcode
- name
- host
path:
type: string
description: Dotted path into the action, e.g. "body.customer.email". Empty when the input was a bare string.
example: body.customer.email
decision:
type: string
enum:
- allow
- redact
- approve
- block
required:
- kind
- path
- decision
securitySchemes:
apiKey:
type: http
scheme: bearer
description: A key created in Settings → Developer. Shown once; what is stored is its SHA-256.