LogoLogo
WebsiteLoginSign up
  • Welcome to Koncile
  • Getting Started
    • Key Koncile features
    • Folders vs. Extraction Templates
    • General fields vs. Repeated fields
  • DATA EXTRACTION APP
    • Set up an Extraction Template
    • Set field format
    • How to write field descriptions
    • Import documents
      • Importing amendments
    • Export data
    • Auto-classify documents
  • Generated fields with AI
  • API Setup
    • API Key generation
    • Swagger
    • API pricing and limits
    • Libraries
    • File Uploading
    • Task Retrieval
      • Example of Python Code
    • Folders
    • Templates
    • Fields
    • Instructions
    • API status codes
    • Bubble Plugin
  • Miscellaneous
    • Q&A
Powered by GitBook
LogoLogo

Useful links

  • Website
  • Login
  • Extraction template library

@Copyright Koncile 2024

On this page
  • Create field
  • Request body
  • Returns
  • Fetching field
  • Path parameters
  • Returns
  • Update field
  • Path parameters
  • Request body
  • Returns
  • Delete field
  • Path parameters
  • Field Object

Was this helpful?

Export as PDF
  1. API Setup

Fields

PreviousTemplatesNextInstructions

Last updated 2 months ago

Was this helpful?

Fields to be extracted

Create field

POSThttps://api.openai.com/v1/create_field Creates a field to extract

Request body

template_id Integer Required The id of the folder inside which the field is created

name String Required The name of the field to create, unique

type String Require Defines whether the field is extracted once (General fields) or for every line (Line fields)

desc String The description of the field to create

format String The kind of field to extract, with their custom formatting. By default "text". For all the field formats, please refer to this .

position Integer The field position in the output, relative to the other fields. Default: appended to the end

Returns

The created object

curl api.koncile.ai/v1/create_field/ \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $API_KEY" \
  -d '{
    "template_id": integer,
    "name": "string",
    "type": "string"
  }'
from koncile_sdk.client import KoncileAPIClient


client = KoncileAPIClient(
    api_key=API_KEY
)

response = client.fields.create(
    template_id=template_id,
    name=name,
    type=type
)

Fetching field

GEThttps://api.openai.com/v1/fetch_field/{field_id} Fetches all the informations about a field, using the field_id

Path parameters

field_id Integer Required The id of the field to fetch

Returns

curl api.koncile.ai/v1/fetch_field/?field_id=field_id \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $API_KEY"
from koncile_sdk.client import KoncileAPIClient


client = KoncileAPIClient(
    api_key=API_KEY
)

response = client.fields.get(field_id=field_id)

Update field

PUThttps://api.openai.com/v1/update_field/{field_id} Updates a field, using the field

Path parameters

field_id Integer Required The id of the field to update

Request body

name String The name of the field to create, unique

desc String The description of the field to create

type String Defines whether the field is extracted once (General fields) or for every line (Line fields)

position Integer The field position in the output, relative to the other fields. Default: appended to the end

Returns

curl api.koncile.ai/v1/update_field/?field_id=field_id \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $API_KEY"
from koncile_sdk.client import KoncileAPIClient


client = KoncileAPIClient(
    api_key=API_KEY
)

response = client.fields.update(field_id=field_id)

Delete field

DELETEhttps://api.openai.com/v1/delete_field/{field_id} Deletes a field, using the field_id

Path parameters

field_id Integer Required The id of the field to update

curl api.koncile.ai/v1/delete_field/?field_id=field_id \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $API_KEY"
from koncile_sdk.client import KoncileAPIClient


client = KoncileAPIClient(
    api_key=API_KEY
)

response = client.fields.delete(field_id=field_id)

Field Object

id Integer

name String The name of the field, unique

desc String The description of the field

type String Defines whether the field is extracted once (General fields) or for every line (Line fields)

position Integer The field position in the output, relative to the other fields. Default: appended to the end

Template_id Integer The id from the template the field is linked to

The object

format String The kind of field to extract, with their custom formatting. By default "text". For all the field formats, please refer to this .

The object

format String The kind of field to extract, with their custom formatting. By default "text". For all the field formats, please refer to this .

page
page
page
field
field
field