Imports
Answer an import's questions
Each answer is one of the question's own option values, and a path only with field or field_with_default. Nothing else is accepted. A question left out takes its recommended option, recorded as answered_by: "auto". Answers can be given once: a second call is 409 conflict with details.code: "import_already_answered".
post/v1/imports/{id}/answers
Request
- Base URL: https://api.galleyrender.com
- URL: https://api.galleyrender.com/v1/imports/{id}/answers
- Auth: HTTP bearer
Path parameters
idstring required
Example:imp_4tq8m2x7k1bv
The import id returned by POST /v1/imports.
Request body
Response
Accepted; the import moves on to synthesis.
Example response
{
"id": "imp_4tq8m2x7k1bv",
"document_kind": "invoice",
"closest_starter": "invoice",
"language": "en",
"questions": [
{
"id": "q1",
"prompt": "Is this paragraph printed the same on every document, or does it change?",
"options": [
{
"value": "field_with_default"
}
]
}
],
"fonts_substituted": [
{
"from": "Helvetica",
"to": "public-sans"
}
],
"draft_summary": {
"fields": [
"buyer.name",
"invoice_number",
"line_items[]"
]
},
"template": {
"ref": "ashcroft-invoice@1"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.