Skip to Content
Documents

List a document's fields

GET
/api/v1/documents/{id}/fields

Authorization

bearerAuth
headerAuthorizationBearer <token>

Workspace API key, e.g. "Authorization: Bearer aflo_live_<64 hex chars>". Keys are hashed at rest and shown only once at creation. A key has scopes: read (GET routes), draft (create or change documents, fields and templates) and send (send, void, remind and bulk send); a call outside them gets 403 insufficient_scope. A key may expire (401 api_key_expired). Keys made before scopes existed have full access.

Path Parameters

id*string

Document id.

Response Body

Fields for this document, and its choice questions.

application/json
  1. response
success*boolean
data*
Example Request
curl -X GET 'https://appliflo.com/api/v1/documents/string/fields'
Example Response
{  "success": true,  "data": {    "fields": [      {        "id": "string",        "page": 0,        "bbox": [          0,          0,          0,          0        ],        "type": "string",        "label_text": "string",        "semantic_type": "date",        "format": "string",        "comb": {          "cells": 0        },        "multiline": true,        "confidence": 0,        "flagged": true,        "source": "acroform",        "recipient_id": "string",        "group_id": "string",        "option_value": "string",        "option_label": "string",        "section": "string",        "label_source": "page_text",        "role_hint": "string",        "help": "string"      }    ],    "groups": [      {        "id": "string",        "label": "string",        "kind": "single",        "min": 0,        "max": 0,        "instruction": "string",        "confidence": 0,        "source": "radio",        "section": "string",        "options": [          {            "field_id": "string",            "value": "string",            "label": "string"          },          {            "field_id": "string",            "value": "string",            "label": "string"          }        ]      }    ]  }}