85trust / 100

Analyze Document

by Ausca Analysis in Documents & files

x402 APIPassing, checked 2 h ago

Extract normalized forms, tables, signatures, or layout from a document.

POST https://ausca.com/v1/analyze-document

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
145 ms typical, 145 ms slowest 5%
Last check
2 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://ausca.com/v1/analyze-document" \
  -H "content-type: application/json" \
  -d '{"idempotency_key":"ausca-x402-discovery-example","input":{"artifact":{"artifact_ref":"runx:artifact:sha256:4444444444444444444444444444444444444444444444444444444444444444","content_digest":"sha256:5555555555555555555555555555555555555555555555555555555555555555","media_type":"application/pdf"},"feature_types":["FORMS","TABLES"]},"input_schema_digest":"sha256:7093216a29925031972d61a7ab5f6013936aac9f81c3c54f51a00a3fef66759b","offer_id":"document.analysis","offer_revision":"analysis-bytes-r8","offer_revision_digest":"sha256:2075d04fffaa0d718d26cdae4e164f12c9049f67aa215ae73fa17d61efb4436a","output_schema_digest":"sha256:730cf6fb1e6f26fd5ebe335fab86da10099fd0db4f177ba1a2540b4756e00900"}'
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.03:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fausca.com%2Fv1%2Fanalyze-document
const res = await pay("https://ausca.com/v1/analyze-document", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"idempotency_key":"ausca-x402-discovery-example","input":{"artifact":{"artifact_ref":"runx:artifact:sha256:4444444444444444444444444444444444444444444444444444444444444444","content_digest":"sha256:5555555555555555555555555555555555555555555555555555555555555555","media_type":"application/pdf"},"feature_types":["FORMS","TABLES"]},"input_schema_digest":"sha256:7093216a29925031972d61a7ab5f6013936aac9f81c3c54f51a00a3fef66759b","offer_id":"document.analysis","offer_revision":"analysis-bytes-r8","offer_revision_digest":"sha256:2075d04fffaa0d718d26cdae4e164f12c9049f67aa215ae73fa17d61efb4436a","output_schema_digest":"sha256:730cf6fb1e6f26fd5ebe335fab86da10099fd0db4f177ba1a2540b4756e00900"}),
});
console.log(await res.json());

Example input

{
  "idempotency_key": "ausca-x402-discovery-example",
  "input": {
    "artifact": {
      "artifact_ref": "runx:artifact:sha256:4444444444444444444444444444444444444444444444444444444444444444",
      "content_digest": "sha256:5555555555555555555555555555555555555555555555555555555555555555",
      "media_type": "application/pdf"
    },
    "feature_types": [
      "FORMS",
      "TABLES"
    ]
  },
  "input_schema_digest": "sha256:7093216a29925031972d61a7ab5f6013936aac9f81c3c54f51a00a3fef66759b",
  "offer_id": "document.analysis",
  "offer_revision": "analysis-bytes-r8",
  "offer_revision_digest": "sha256:2075d04fffaa0d718d26cdae4e164f12c9049f67aa215ae73fa17d61efb4436a",
  "output_schema_digest": "sha256:730cf6fb1e6f26fd5ebe335fab86da10099fd0db4f177ba1a2540b4756e00900"
}

Example output

{
  "inspect_url": "/v1/invocations/ausca-discovery-example",
  "invocation": {
    "invocation_id": "ausca-discovery-example",
    "offer_revision_digest": "sha256:2075d04fffaa0d718d26cdae4e164f12c9049f67aa215ae73fa17d61efb4436a",
    "output": {
      "feature_counts": {
        "FORMS": 1,
        "TABLES": 0
      },
      "pages": [
        {
          "artifact_ref": "runx:artifact:sha256:6666666666666666666666666666666666666666666666666666666666666666",
          "content_digest": "sha256:7777777777777777777777777777777777777777777777777777777777777777",
          "feature_counts": {
            "FORMS": 1,
            "TABLES": 0
          },
          "page_index": 1,
          "size_bytes": 1024
        }
      ],
      "schema": "ausca.document_analysis.manifest.v1",
      "source_digest": "sha256:5555555555555555555555555555555555555555555555555555555555555555"
    },
    "output_digest": "sha256:bc5245605982a2e6ee3423acff2b5f86a508fe7dd7ed8316070f893b661f5f60",
    "receipt_ref": {
      "public_url": "https://runx.ai/r/0000000000000000000000000000000000000000000000000000000000000000",
      "type": "receipt",
      "uri": "runx:receipt:discovery-example"
    },
    "state": "succeeded",
    "updated_at": "2026-01-01T00:00:00Z"
  },
  "status": "accepted"
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
2 h agoPassed402145 ms$0.3