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
    • SDK Libraries
      • Python guide
    • File Uploading
    • Task Retrieval
      • Web-hook task retrieval
      • Polling task retrieval
    • 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 folder
  • Request body
  • Returns
  • Fetching folder
  • Path parameters
  • Returns
  • Update folder
  • Path parameters
  • Request body
  • Returns
  • Delete folder
  • Path parameters
  • Folder Object

Was this helpful?

Export as PDF
  1. API Setup

Folders

PreviousPolling task retrievalNextTemplates

Last updated 3 months ago

Was this helpful?

Folders hold the different types of documents and templates.

Create folder

POSThttps://api.openai.com/v1/create_folder

Creates a folder

Request body

Name String Required The name of the folder to create

Desc String A detailed description of the folder's purpose or content

Returns

The created object

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


client = KoncileAPIClient(
    api_key=API_KEY
)

response = client.folders.create(
    name=name,
    desc=desc
)

Fetching folder

GEThttps://api.openai.com/v1/fetch_folder/{folder_id}

Fetches all information about a folder, using the folder_id

Path parameters

Folder_id Integer Required The id of the folder to fetch

Returns

curl api.koncile.ai/v1/fetch_folder/?folder_id=folder_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.folders.get(folder_id=folder_id)

Update folder

PUThttps://api.openai.com/v1/update_folder/{folder_id}

Updates a folder, using the folder_id

Path parameters

Folder_id Integer Required The id of the folder to update

Request body

name String The name of the folder to update

desc String A detailed description of the folder's purpose or content to update

Returns

curl api.koncile.ai/v1/update_folder/?folder_id=folder_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.folders.update(folder_id=folder_id)

Delete folder

DELETEhttps://api.openai.com/v1/delete_folder/{folder_id}

Deletes a folder, using the folder_id

Path parameters

folder_id Integer Required The id of the folder to delete

override Boolean If True forces deletion. Default False

curl api.koncile.ai/v1/delete_folder/?folder_id=folder_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.folders.delete(folder_id=folder_id)

Folder Object

id Integer

name String The name of the folder

desc String A detailed description of the folder's purpose or content

The object

The object

folder
folder
folder