ScrubMyText Challenges API

The Challenges API from ScrubMyText — 3 operation(s) for challenges.

GitHub OpenAPI

Operations 3

POST /v1/challenges/manage ChallengeMyAction — create, inspect, consume, or cancel a veto window #
POST /v1/challenges/public/get ChallengeMyAction — inspect a challenge using its bearer token #
POST /v1/challenges/public/veto ChallengeMyAction — veto a pending challenge using its bearer token #

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/scrubmytext-com:scrubmytext-com-challenges-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

scrubmytext-com-challenges-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: ScrubMyText + Agent Infrastructure Challenges 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: Challenges
paths:
  /v1/challenges/manage:
    post:
      operationId: manageActionChallenge
      summary: ChallengeMyAction — create, inspect, consume, or cancel a veto window
      description: Creates a digest-bound cooling-off period during which a bearer challenger can veto. After the deadline, the paid owner may atomically consume one execution right within the bounded execution window. This is exception handling, not affirmative consent, legal approval, or proof that notice was delivered.
      security:
      - bearerAuth: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                operation:
                  type: string
                  enum:
                  - create
                  - check
                  - consume
                  - cancel
                control_id:
                  type: string
                  maxLength: 100
                action_fingerprint:
                  $ref: '#/components/schemas/Sha256Digest'
                veto_window_seconds:
                  type: integer
                  minimum: 60
                  maximum: 604800
                execution_window_seconds:
                  type: integer
                  minimum: 60
                  maximum: 86400
              required:
              - operation
              additionalProperties: false
      responses:
        '200':
          description: Challenge state or one-time execution-right decision
        '401':
          description: Paid API key required
        '422':
          description: Invalid operation-specific input
      tags:
      - Challenges
  /v1/challenges/public/get:
    post:
      operationId: getPublicActionChallenge
      summary: ChallengeMyAction — inspect a challenge using its bearer token
      description: Returns the current challenge state to the intended challenger. The token is a bearer secret and is never stored in plaintext.
      security: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                challenge_id:
                  type: string
                  maxLength: 100
                token:
                  type: string
                  minLength: 16
                  maxLength: 128
              required:
              - challenge_id
              - token
              additionalProperties: false
      responses:
        '200':
          description: Challenge state
        '400':
          description: Invalid input
        '403':
          description: Invalid bearer token
        '404':
          description: Challenge not found
      tags:
      - Challenges
  /v1/challenges/public/veto:
    post:
      operationId: vetoPublicActionChallenge
      summary: ChallengeMyAction — veto a pending challenge using its bearer token
      description: Atomically vetoes a pending challenge before its veto deadline. A late or repeated request cannot alter an executable, consumed, cancelled, vetoed, or expired challenge.
      security: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                challenge_id:
                  type: string
                  maxLength: 100
                token:
                  type: string
                  minLength: 16
                  maxLength: 128
              required:
              - challenge_id
              - token
              additionalProperties: false
      responses:
        '200':
          description: Final or current challenge state
        '400':
          description: Invalid input
        '403':
          description: Invalid bearer token
        '404':
          description: Challenge not found
      tags:
      - Challenges
components:
  schemas:
    Sha256Digest:
      type: string
      pattern: ^(?:sha256:)?[a-f0-9]{64}$
      description: 'A lowercase SHA-256 digest, with an optional sha256: prefix.'
  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.