API docs for autonomous agents

Pay-per-use data operations that an agent can call without setup.

Scrub AI expose trois primitives simples pour les agents autonomes : nettoyer, extraire et convertir. Chaque appel facture seulement l'unite utile, sans abonnement, sans configuration, sans couche d'orchestration supplementaire.

pay-per-usemicro-transactionszero configuration
Why teams switch
10x to 100x

moins cher que les outils B2B traditionnels vendus en licences, seats ou contrats annuels.

3 endpoints

`clean`, `extract` et `convert` suffisent pour la majorite des flux de donnees agentiques.

0 workflow builder

Un agent appelle l'API au moment opportun et paie uniquement l'operation utile.

Positionnement

Pense pour les agents qui doivent agir, pas pour les acheteurs de plateformes.

Pay-per-use

Pas de package entreprise a negocier. Un agent paie seulement ce qu'il declenche.

Micro-transactions

Facturation granulaire a la ligne, a la requete ou au fichier selon l'operation.

Zero configuration

Aucun schema preregistre, aucun connecteur, aucune UI a paramétrer avant le premier appel.

Pricing

Three operations. Predictable unit economics.

Les prix ci-dessous sont pensés pour etre assez bas pour qu'un agent puisse appeler Scrub AI au milieu d'une boucle de raisonnement ou d'un workflow sans transformer le cout du pipeline.

ServiceUnitePrixIdeal for
Nettoyage basiqueLigne0,001 $ a 0,005 $ / ligneCSV, logs, catalogs, CRM exports
Extraction structureeRequete0,01 $ a 0,02 $ / requeteEmails, reports, tickets, HTML
Conversion de formatFichier0,005 $ / fichierJSON, CSV, plain text, inter-agent handoff

Quickstart

Onboarding sans configuration en moins de cinq minutes.

  1. 01

    Definir SCRUB_API_BASE et SCRUB_API_KEY dans l'environnement de l'agent.

  2. 02

    Choisir l'operation selon le besoin: clean, extract ou convert.

  3. 03

    Lire data et usage.total_usd pour alimenter la suite du workflow.

shellmachine-ready
export SCRUB_API_BASE="https://api.scrubai.example/v1"
export SCRUB_API_KEY="sk_live_your_key"

Integration notes

  • No SDK required.
  • No schema registry before the first request.
  • No seat-based billing to pre-approve.
  • No workflow builder to maintain when the agent changes strategy.

API examples

One endpoint per data operation.

Les exemples ci-dessous utilisent une base d'URL de demonstration. Remplacez-la par votre endpoint Scrub AI provisionne et injectez la cle d'API dans l'environnement de l'agent.

POST /cleanLigne

Nettoyage basique

Normalise des lignes CSV, des exports CRM, des logs ou des tableaux copiés-collés sans pipeline ETL.

Pricing
0,001 $ à 0,005 $ / ligne
requestmachine-ready
curl -X POST "$SCRUB_API_BASE/clean" \
  -H "Authorization: Bearer $SCRUB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "input": [
      "alice, ALICE@EXAMPLE.COM, 2026/05/01",
      " bob , bob@example.com , 01-05-2026 "
    ],
    "output_format": "json",
    "rules": ["trim", "normalize_case", "normalize_dates"]
  }'
responsemachine-ready
{
  "job_id": "cln_01jv9q2",
  "status": "completed",
  "data": [
    {
      "name": "Alice",
      "email": "alice@example.com",
      "signup_date": "2026-05-01"
    },
    {
      "name": "Bob",
      "email": "bob@example.com",
      "signup_date": "2026-05-01"
    }
  ],
  "usage": {
    "lines_processed": 2,
    "unit_price_usd": 0.003,
    "total_usd": 0.006
  }
}
POST /extractRequête

Extraction structurée

Transforme du texte brut, des emails ou du HTML en JSON exploitable par un agent ou un workflow.

Pricing
0,01 $ à 0,02 $ / requête
requestmachine-ready
curl -X POST "$SCRUB_API_BASE/extract" \
  -H "Authorization: Bearer $SCRUB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "input": "Order #4819 for Sarah Chen, shipping to 22 King St, Toronto. Total: $84.20. Delivery ETA: May 21.",
    "schema": {
      "order_id": "string",
      "customer_name": "string",
      "shipping_address": "string",
      "total_amount": "number",
      "delivery_eta": "string"
    }
  }'
responsemachine-ready
{
  "job_id": "ext_01jv9q8",
  "status": "completed",
  "data": {
    "order_id": "4819",
    "customer_name": "Sarah Chen",
    "shipping_address": "22 King St, Toronto",
    "total_amount": 84.2,
    "delivery_eta": "2026-05-21"
  },
  "usage": {
    "requests_billed": 1,
    "unit_price_usd": 0.02,
    "total_usd": 0.02
  }
}
POST /convertFichier

Conversion de format

Convertit des fichiers et sorties inter-agents entre JSON, CSV, texte brut ou autres formats d'echange.

Pricing
0,005 $ / fichier
requestmachine-ready
curl -X POST "$SCRUB_API_BASE/convert" \
  -H "Authorization: Bearer $SCRUB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "input_format": "json",
    "output_format": "csv",
    "file_name": "contacts.json",
    "content": [
      { "name": "Alice", "email": "alice@example.com" },
      { "name": "Bob", "email": "bob@example.com" }
    ]
  }'
responsemachine-ready
{
  "job_id": "cnv_01jv9qb",
  "status": "completed",
  "content": "name,email\nAlice,alice@example.com\nBob,bob@example.com\n",
  "usage": {
    "files_billed": 1,
    "unit_price_usd": 0.005,
    "total_usd": 0.005
  }
}