Secure AI Redact API

The Redact API from Secure AI — 1 operation(s) for redact.

GitHub OpenAPI

Operations 1

POST /redact Take identifying detail out of text #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/secureai-one:secureai-one-redact-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

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.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

secureai-one-redact-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Secure AI Redact 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: Redact
paths:
  /redact:
    post:
      operationId: redact
      summary: Take identifying detail out of text
      description: Returns the text with people replaced by plausible stand-ins, and the map needed to reverse it. Send the returned text to your model; send the model's reply to /restore with the same map.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RedactRequest'
      responses:
        '200':
          description: The redacted text and its map
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Redaction'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/PaymentRequired'
        '413':
          $ref: '#/components/responses/TooLarge'
        '429':
          $ref: '#/components/responses/RateLimited'
        '503':
          $ref: '#/components/responses/RedactionUnavailable'
      tags:
      - Redact
components:
  responses:
    Unauthorized:
      description: No API key, or one that is not recognised
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    PaymentRequired:
      description: No API access on this account, or out of balance. The code says which.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    TooLarge:
      description: More than 200,000 characters in one call
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    RateLimited:
      description: 60 requests a minute per key, or a spending cap reached
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    RedactionUnavailable:
      description: Redaction could not run, so nothing was sent to any model
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            message:
              type: string
            type:
              type: string
            code:
              type:
              - string
              - 'null'
            param:
              type:
              - string
              - 'null'
    Redaction:
      type: object
      properties:
        object:
          type: string
          const: redaction
        text:
          type: string
          description: The text with stand-ins in place. Send this to your model.
        map:
          type: object
          additionalProperties:
            type: string
          description: Stand-in to real value. Returned here and stored nowhere — keep it for the life of the conversation or that answer cannot be restored.
        redacted:
          type: integer
          description: How many values were replaced.
        names_decided:
          type: boolean
          description: Whether the name check reached a decision. False means it could not run, not that no names were found.
        spans:
          type: array
          description: Present when `spans` was true.
          items:
            type: object
            properties:
              start:
                type: integer
                description: Code-point offset in the text sent.
              end:
                type: integer
                description: Exclusive code-point offset.
              type:
                type: string
              text:
                type: string
              confidence:
                type:
                - number
                - 'null'
                minimum: 0
                maximum: 1
                description: How often a value of this kind was really private on the public test sets. Null where not measured.
        risk:
          type: object
          description: Present when `risk` was true. A rule-based score, not a measured probability.
          properties:
            score:
              type: integer
              minimum: 0
              maximum: 100
            level:
              type: string
              enum:
              - low
              - medium
              - high
            reasons:
              type: array
              items:
                type: object
                properties:
                  kind:
                    type: string
                    enum:
                    - birth_date
                    - date
                    - age
                    - place
                    - care_facility
                    - sex
                    - occupation
                  weight:
                    type: number
                  count:
                    type: integer
                  example:
                    type: string
    RedactRequest:
      type: object
      required:
      - text
      properties:
        text:
          type: string
          maxLength: 200000
          description: The text to redact.
        map:
          type: object
          additionalProperties:
            type: string
          description: A map from a previous call, so the same person keeps the same stand-in across turns.
        allow:
          type: array
          items:
            type: string
          description: Terms to send as written — a shared mailbox, a product name a detector mistakes for a person.
        profile:
          type: object
          description: The end user's own details, so they are recognised even when written unusually.
          properties:
            name:
              type: string
            email:
              type: string
            phone:
              type: string
        strict:
          type: boolean
          default: false
          description: 'Refuse the request rather than proceed when the name check cannot decide. Off by default: the structured stages have already run, and refusing costs somebody their answer to protect a name that may not be there. Turn it on when the input is records rather than one person''s messages.'
        organisations:
          type: boolean
          default: false
          description: 'Hide the names of companies and other private organisations too, each behind an invented company name. Off by default: a company is usually what the question is about. Public bodies (courts, ministries, EU institutions) stay as written either way.'
        spans:
          type: boolean
          default: false
          description: 'Also return `spans`: where each hidden value was, its kind, and how sure the API is that it was private.'
        risk:
          type: boolean
          default: false
          description: 'Also return `risk`: what is still visible in the cleaned text that could point to one person, scored 0 to 100.'
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: A key created in Settings → Developer. Shown once; what is stored is its SHA-256.