Skip to main content
POST
Python

Authorizations

x-api-key
string
header
required

API key for authentication

Body

application/json
schema
object
required

JSON Schema for the data to be extracted.

tags
string[]
tag_ids
string[]
tag_filter_logic
enum<string>
default:OR

Logical operator for combining filter conditions

Available options:
AND,
OR
source_types
enum<string>[]

The type of the source

Available options:
crawl,
local_file,
google_drive,
github,
notion
file_types
enum<string>[]

The type of the source file

Available options:
html,
pdf,
ppt,
pptx,
pptm,
doc,
docx,
docm,
xls,
xlsx,
xlsm,
md,
txt,
jsonl,
png,
jpg,
webp,
heic,
heif,
wav,
mp3,
aiff,
aac,
m4a,
ogg,
flac,
mp4,
mpg,
mov,
avi,
flv,
webm,
wmv,
3gp,
notion_page
date_from
integer

Start date for content search (Unix timestamp in seconds)

Required range: x >= 1735639200
date_to
integer

End date for content search (Unix timestamp in seconds)

Required range: x >= 1735639200
domains
string[]
metadata
object

(reserved for future use) Filter group with nested structure. Supports combining filters with AND/OR logic.

source_metadata
object

Filter by individual source/file metadata from source_metadatas table

chunk_metadata
object

Filter by chunk-level metadata from chunk_metadatas table

use_postfilter
boolean
default:false

Whether to bypass LanceDB prefilter and apply WHERE after the vector search (IVF_PQ) returns top-K. Significantly faster for broad filters that cover most of the table, but may return fewer than limit results when the hit rate is low.

limit
integer
default:10
Required range: 1 <= x <= 100
offset
integer
default:0
Required range: x >= 0
authz_policy
string

(reserved for future use) Name of the registered authz policy to evaluate when retrieving content. Defaults to the reserved "default" policy when omitted. Ignored when authz is disabled.

Pattern: ^[a-z][a-z0-9_-]{0,63}$
Example:

"external-chatbot"

principal_id
string

Identifier of the end-user (principal) on whose behalf this request is made. Used to look up the principal's authz subject attributes for policy evaluation. When omitted, subject attributes are empty (most restrictive). Ignored when authz is disabled.

Maximum string length: 256
Example:

"user-123"

prompt
string

Additional prompt for the LLM (optional, if not specified, a default prompt in Japanese will be used).

Whether to search for and use related content

Response

Successful extraction

created
integer
required

抽出実行時刻(Unix timestamp)

result
object
required

Extraction result as a JSON object conforming to the provided schema.