Skip to main content
POST
Create Web inquiry

Headers

api-key
string
required
Example:

"secret_live_xxx"

Body

application/json
subject_id
string
required

Your stable identifier for the subject.

Example:

"user_123"

return_url
string<uri>

URL where the user is redirected after the hosted capture flow completes. When template_key is provided, omit this to use the template's return_url, or pass it to override. Required when template_key is not provided.

template_key
string

Key of a published template. When provided, only subject_id is required; the inquiry inherits configuration from the template (including return_url). Any field may be provided as an override.

name
string

Inquiry name. Required when template_key is not provided.

description
string

Inquiry description.

query
string

What you want to know from this inquiry. Required when template_key is not provided.

fields
object[]

Fields to extract from the captured evidence. Required when template_key is not provided.

start_url
string<uri>

URL the user is sent to when the capture session starts.

acceptance_guide
string

Instructions for earning a high acceptance score.

show_acceptance_guide
boolean
default:false

Whether to show the acceptance guide to the user.

ai_instruction
string

Additional instructions for AI processing.

capture_type
enum<string>
default:screenshot

How evidence is captured. screenshot uses a viewport capture; document uses files obtained from the site (for example PDF and other supported formats), not limited to PDF.

Available options:
screenshot,
document
metadata
object

Arbitrary key-value metadata attached to the inquiry.

Response

201 - application/json

Inquiry created.

id
string

Web inquiry id (web_iq_...).

Example:

"web_iq_xxxxxxxxxxxxxxxx"

subject_id
string

Your stable identifier for the subject (echoed from the create request).

Example:

"user_123"

template_id
string | null

Resolved template id when the inquiry was created from a template.

Example:

"web_tpl_xxxxxxxxxxxxxxxx"

template_key
string | null

Template key when the inquiry was created from a template.

Example:

"web_tpl_key_xxxxxxxxxxxxxxxx"

template_version
integer

Template version used when resolving configuration.

Example:

1

status
enum<string>
Available options:
active,
expired,
cancelled,
completed
name
string

Display name of the inquiry.

description
string

Inquiry description.

query
string

What the inquiry is trying to establish from captured evidence.

fields
object[]

Configured extraction fields.

acceptance_guide
string

Markdown acceptance guide shown or used for scoring.

start_url
string<uri>

URL the user is sent to when the capture session starts.

return_url
string<uri>

URL where the user is redirected after the hosted capture flow completes.

capture_type
enum<string>

How evidence is captured. screenshot uses a viewport capture; document uses files obtained from the site (for example PDF and other supported formats), not limited to PDF.

Available options:
screenshot,
document
max_retries
integer

Maximum capture or processing retries allowed for this inquiry.

metadata
object | null

Arbitrary metadata attached to the inquiry.

expires_at
string<date-time>
created_at
string<date-time>
updated_at
string<date-time>
deleted_at
string<date-time> | null

Present when the inquiry has been soft-deleted.