API Overview

API Code Examples

35min

The following C# code blocks serve as examples of how to interact with the Hunni API using various methods. You will need to replace the Client ID and Client Secret with your credentials and update any asset IDs to reflect IDs your account has access to.

At the end of doc, all the examples are combined into in a single console app.

If you run into any issues please contact [email protected].

Note: All the C# examples below require the Newtonsoft.Json library

Retrieve a Token

Use the below code example to retrieve an access token. See API Authentication for more information.

C#


Folders

Create a Folder

C#




Retrieve Child Folders by Parent Folder ID

C#




Tables

Retrieve Table Definition

C#


Create a Table

C#


Retrieve the Tables from a Folder

C#


Retrieve Data from a Table

C#


File Groups

Retrieve File Group Definition

C#


Create a File Group

C#


Retrieve the File Groups From a Folder

C#


Retrieve Data from a File Group

C#


Views

Retrieve the Views from a Folder

C#


Retrieve View Definition

C#


Retrieve the Data from a View

C#


Columns

Retrieve Column Types

C#


Retrieve Column Definitions for a Table

C#


Rows

Insert Single Table Row

C#


Insert Table Rows in Bulk

C#


Update Single Table Row

C#


Update Table Rows in Bulk

C#


Delete Table Rows

C#


Files

Orphaned Documents: Files uploaded through the API that are not associated with a table after 24 hours are deleted

Upload a File

C#


Upload a File into a Table Cell Value

C#


Retrieve the Details for a File

C#


Download a File

C#




Miscellaneous

Retrieve the API Version

C#


Retrieve Organization Subscription Details

C#


Retrieve Asset Types

C#


All the above examples in a single C# console app

The following code serves as an example of how to interact with the Hunni API. You will need to replace the Client ID and Client Secret with your credentials and update any asset IDs to reflect IDs your account has access to.



C#




Updated 26 Feb 2025
Did this page help you?