Skip to main content
POST
Extract Values
The /agents/extract-values endpoint extracts structured data from an image based on a provided template.

Request

string
required
Your API key for authentication.
string
The ID of an existing template to use for extraction. Required for template-based extraction.
number
Optional version number of the template to use. If not provided or set to 0, the latest version will be used. If provided along with template_id, access will be verified.
string
required
The URL of the image to extract data from. The URL must be publicly accessible.Supported formats: PNG, JPEG, GIF, WebP, TIFF, BMP, ICO, SVG, EPS, TGA
Maximum file size: 10MB
Alternatively, you can provide a base64-encoded image using the data URL format:
See our Base64 Encoding Guide for code snippets in various programming languages.
object
Advanced options for extraction.

Response

array
An array of fields with extracted values.

Examples

Example Request with Image URL

Example Request with Base64 Encoded Image

Example Response

Error Codes