ScrubMyText X402 API
The X402 API from ScrubMyText — 8 operation(s) for x402.
The X402 API from ScrubMyText — 8 operation(s) for x402.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/scrubmytext-com:scrubmytext-com-x402-api"
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.
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: 3.2.0
info:
title: ScrubMyText + Agent Infrastructure X402 API
version: 7.5.0
description: 49 deterministic tools for text integrity, AI-agent controls, and contextual service-quality evidence. TrustMyChoice provides free public lookup and comparison plus free, identity-verified structured contributions without publishing a universal trust score or selling ranking position. Selected premium stateless text tools include a 3-call trial and optional x402 pay-per-call.
servers:
- url: https://api.scrubmytext.com
tags:
- name: X402
paths:
/x402/v1/scan:
post:
operationId: scanUntrustedTextX402
summary: x402 pay-per-call — Scan untrusted text
description: Dedicated x402 pay-per-call route. The first request returns HTTP 402 with PAYMENT-REQUIRED. Retry with PAYMENT-SIGNATURE. This route does not consume the free trial.
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
text:
type: string
maxLength: 1000000
additionalProperties: false
required:
- text
responses:
'200':
description: Successful result
headers:
PAYMENT-RESPONSE:
description: Base64-encoded x402 settlement response after a successful paid request
schema:
type: string
'400':
description: Invalid input
'401':
description: API key required or invalid
'429':
description: Monthly usage limit reached
'402':
description: Payment Required
headers:
PAYMENT-REQUIRED:
description: Base64-encoded x402 v2 PaymentRequired object
schema:
type: string
parameters:
- in: header
name: PAYMENT-SIGNATURE
required: false
schema:
type: string
description: Base64-encoded x402 v2 payment payload supplied on the paid retry.
tags:
- X402
/x402/v1/redact:
post:
operationId: redactSensitiveTextX402
summary: x402 pay-per-call — Redact sensitive text
description: Dedicated x402 pay-per-call route. The first request returns HTTP 402 with PAYMENT-REQUIRED. Retry with PAYMENT-SIGNATURE. This route does not consume the free trial.
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
text:
type: string
maxLength: 1000000
additionalProperties: false
required:
- text
responses:
'200':
description: Successful result
headers:
PAYMENT-RESPONSE:
description: Base64-encoded x402 settlement response after a successful paid request
schema:
type: string
'400':
description: Invalid input
'401':
description: API key required or invalid
'429':
description: Monthly usage limit reached
'402':
description: Payment Required
headers:
PAYMENT-REQUIRED:
description: Base64-encoded x402 v2 PaymentRequired object
schema:
type: string
parameters:
- in: header
name: PAYMENT-SIGNATURE
required: false
schema:
type: string
description: Base64-encoded x402 v2 payment payload supplied on the paid retry.
tags:
- X402
/x402/v1/compare:
post:
operationId: compareTextX402
summary: x402 pay-per-call — Compare text
description: Dedicated x402 pay-per-call route. The first request returns HTTP 402 with PAYMENT-REQUIRED. Retry with PAYMENT-SIGNATURE. This route does not consume the free trial.
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
original:
type: string
maxLength: 1000000
modified:
type: string
maxLength: 1000000
additionalProperties: false
required:
- original
- modified
responses:
'200':
description: Successful result
headers:
PAYMENT-RESPONSE:
description: Base64-encoded x402 settlement response after a successful paid request
schema:
type: string
'400':
description: Invalid input
'401':
description: API key required or invalid
'429':
description: Monthly usage limit reached
'402':
description: Payment Required
headers:
PAYMENT-REQUIRED:
description: Base64-encoded x402 v2 PaymentRequired object
schema:
type: string
parameters:
- in: header
name: PAYMENT-SIGNATURE
required: false
schema:
type: string
description: Base64-encoded x402 v2 payment payload supplied on the paid retry.
tags:
- X402
/x402/v1/detect-secrets:
post:
operationId: detectSecretsX402
summary: x402 pay-per-call — Detect secrets
description: Dedicated x402 pay-per-call route. The first request returns HTTP 402 with PAYMENT-REQUIRED. Retry with PAYMENT-SIGNATURE. This route does not consume the free trial.
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
text:
type: string
maxLength: 1000000
additionalProperties: false
required:
- text
responses:
'200':
description: Successful result
headers:
PAYMENT-RESPONSE:
description: Base64-encoded x402 settlement response after a successful paid request
schema:
type: string
'400':
description: Invalid input
'401':
description: API key required or invalid
'429':
description: Monthly usage limit reached
'402':
description: Payment Required
headers:
PAYMENT-REQUIRED:
description: Base64-encoded x402 v2 PaymentRequired object
schema:
type: string
parameters:
- in: header
name: PAYMENT-SIGNATURE
required: false
schema:
type: string
description: Base64-encoded x402 v2 payment payload supplied on the paid retry.
tags:
- X402
/x402/v1/validate-output:
post:
operationId: validateOutputX402
summary: x402 pay-per-call — Validate AI output
description: Dedicated x402 pay-per-call route. The first request returns HTTP 402 with PAYMENT-REQUIRED. Retry with PAYMENT-SIGNATURE. This route does not consume the free trial.
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
output: {}
schema:
type: object
additionalProperties: false
required:
- output
responses:
'200':
description: Successful result
headers:
PAYMENT-RESPONSE:
description: Base64-encoded x402 settlement response after a successful paid request
schema:
type: string
'400':
description: Invalid input
'401':
description: API key required or invalid
'429':
description: Monthly usage limit reached
'402':
description: Payment Required
headers:
PAYMENT-REQUIRED:
description: Base64-encoded x402 v2 PaymentRequired object
schema:
type: string
parameters:
- in: header
name: PAYMENT-SIGNATURE
required: false
schema:
type: string
description: Base64-encoded x402 v2 payment payload supplied on the paid retry.
tags:
- X402
/x402/v1/sanitize-context:
post:
operationId: sanitizeAgentContextX402
summary: x402 pay-per-call — Sanitize agent context
description: Dedicated x402 pay-per-call route. The first request returns HTTP 402 with PAYMENT-REQUIRED. Retry with PAYMENT-SIGNATURE. This route does not consume the free trial.
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
text:
type: string
maxLength: 1000000
mode:
type: string
enum:
- standard
- strict
- unicode
redact_sensitive:
type: boolean
additionalProperties: false
required:
- text
responses:
'200':
description: Successful result
headers:
PAYMENT-RESPONSE:
description: Base64-encoded x402 settlement response after a successful paid request
schema:
type: string
'400':
description: Invalid input
'401':
description: API key required or invalid
'429':
description: Monthly usage limit reached
'402':
description: Payment Required
headers:
PAYMENT-REQUIRED:
description: Base64-encoded x402 v2 PaymentRequired object
schema:
type: string
parameters:
- in: header
name: PAYMENT-SIGNATURE
required: false
schema:
type: string
description: Base64-encoded x402 v2 payment payload supplied on the paid retry.
tags:
- X402
/x402/v1/prepare-for-agent:
post:
operationId: prepareForAgentX402
summary: x402 pay-per-call — Prepare for agent
description: Dedicated x402 pay-per-call route. The first request returns HTTP 402 with PAYMENT-REQUIRED. Retry with PAYMENT-SIGNATURE. This route does not consume the free trial.
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
text:
type: string
maxLength: 1000000
mode:
type: string
enum:
- standard
- strict
- unicode
redact_sensitive:
type: boolean
additionalProperties: false
required:
- text
responses:
'200':
description: Successful result
headers:
PAYMENT-RESPONSE:
description: Base64-encoded x402 settlement response after a successful paid request
schema:
type: string
'400':
description: Invalid input
'401':
description: API key required or invalid
'429':
description: Monthly usage limit reached
'402':
description: Payment Required
headers:
PAYMENT-REQUIRED:
description: Base64-encoded x402 v2 PaymentRequired object
schema:
type: string
parameters:
- in: header
name: PAYMENT-SIGNATURE
required: false
schema:
type: string
description: Base64-encoded x402 v2 payment payload supplied on the paid retry.
tags:
- X402
/x402/v1/rework:
post:
operationId: reworkTextX402
summary: x402 pay-per-call — ReworkMyText — rework text
description: Dedicated x402 pay-per-call route. The first request returns HTTP 402 with PAYMENT-REQUIRED. Retry with PAYMENT-SIGNATURE. This route does not consume the free trial.
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
text:
type: string
maxLength: 1000000
mode:
type: string
enum:
- light
- standard
- deep
default: standard
required:
- text
additionalProperties: false
responses:
'200':
description: Successful result
content:
application/json:
schema:
type: object
properties:
brand:
type: string
const: ReworkMyText
engine_version:
type: string
reworked_text:
type: string
mode:
type: string
enum:
- light
- standard
- deep
characters_in:
type: integer
characters_out:
type: integer
wording_change_percent:
type: integer
minimum: 0
maximum: 100
structural_change_percent:
type: integer
minimum: 0
maximum: 100
transformations:
type: object
protected:
type: object
warnings:
type: array
items:
type: string
notice:
type: string
required:
- brand
- engine_version
- reworked_text
- mode
- characters_in
- characters_out
- transformations
- protected
- warnings
- notice
headers:
PAYMENT-RESPONSE:
description: Base64-encoded x402 settlement response after a successful paid request
schema:
type: string
'400':
description: Invalid input
'401':
description: Paid API key required or invalid
'429':
description: Monthly usage limit reached
'402':
description: Payment Required
headers:
PAYMENT-REQUIRED:
description: Base64-encoded x402 v2 PaymentRequired object
schema:
type: string
parameters:
- in: header
name: PAYMENT-SIGNATURE
required: false
schema:
type: string
description: Base64-encoded x402 v2 payment payload supplied on the paid retry.
tags:
- X402
components:
securitySchemes:
bearerAuth:
type: http
scheme: bearer
bearerFormat: smt_founder_..., smt_live_..., or legacy smt_tmc_...
description: smt_founder_ keys provide all-tool access for 30 days or 1,000 total calls with no overages, then remain limited to TrustMyChoice evidence writes. Paid smt_live_ keys access subscription tools. Legacy smt_tmc_ keys are limited to TrustMyChoice observation and correction writes.