documents

Structured Extraction

Rule-based extraction of named fields from text; not a language model, it returns only what the text states. POST /v1/extract with {text, schema}: schema is a JSON Schema, a list of field names, or {fields: {name: regex}}. Built-in fields include email, phone, date, url, money and company; other fields come from "Label: value" lines. Pay per request in USDC; no account, no API key.

post/v1/structured-extraction

Request

  • Base URL: https://agent.pocket.network
  • URL: https://agent.pocket.network/v1/structured-extraction
  • Auth: none required

Request body

textstring required

The text to extract from.

schemaunknown required

Response

The upstream response, served after payment settles.

object required

For POST /v1/extract, a JSON object with fields (null when not found), matched_by and schema_mode. The exact shape is the service's own and is not pinned here; errors return a JSON object with an error field.

Changes

No recorded changes to this operation across all 1 revision of this API.