---
title: "Extract typed values"
method: POST
path: "/extractions"
tags: ["Gateway"]
---

# Extract typed values

`POST /extractions`

## Request

- Base URL: `https://api.phaseo.app/v1`
- URL: `https://api.phaseo.app/v1/extractions`
- Auth: HTTP bearer

Extracts text, numbers, dates, times, durations and typed lists from text or embedded images. Returns typed values and model-reported uncertainty. Estimates, forecasts, streaming and remote image URLs are not supported.

## Request body

- ExtractionRequest
  - `model` string, required: Model ID with the extraction.extract capability.
  - `input` string, required: Source text. May be empty when images are supplied.
  - `fields` object, required: Field names match ^[A-Za-z_][A-Za-z0-9_.-]{0,63}$.
  - `images` ExtractionImage[]: Embedded PNG, JPEG or WebP images; 4 MiB each and 8 MiB combined decoded.
    - `content_type` 'image/png' | 'image/jpeg' | 'image/webp', required
    - `base64` string, required: Base64-encoded image bytes, without a data URL prefix.
  - `reference_date` string, date: Explicit date context for incomplete dates.

## Response `200`

Typed extraction answers

- ExtractionResponse
  - `model` string, required
  - `answers` object, required
  - `truncated` boolean, required: Whether the provider truncated source input.
  - `usage` ExtractionUsage, required
    - `input_tokens` integer, required: Provider-reported aggregate input tokens across all passes.
    - `output_tokens` 0, required
    - `total_tokens` integer, required

## Changes

- **2026-10-19** `41882c270e8c`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/phaseo/apis/phaseo-gateway-api/changes/extractions/post.md)

---

[API](https://skmtc.dev/phaseo/apis/phaseo-gateway-api.md) - [All operations](https://skmtc.dev/phaseo/apis/phaseo-gateway-api/llms.txt) - [OpenAPI document](https://skmtc.dev/phaseo/apis/phaseo-gateway-api/revisions/5ca9bb220d25?raw)
