Skip to main content
POST
/
api
/
v1
/
folders
Create a folder
curl --request POST \
  --url https://formhug.ai/api/v1/folders \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "New folder",
  "parent_folder_token": "KaB2c1"
}
'
{
  "data": {
    "token": "KaB2c1",
    "name": "Work",
    "parent_folder_token": "<string>",
    "child_folder_count": 0,
    "child_form_count": 3,
    "created_at": "2026-05-12T08:00:00Z"
  }
}

Documentation Index

Fetch the complete documentation index at: https://formhug.ai/docs/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Personal Access Token prefixed with fh_. Sent as Authorization: Bearer fh_xxx. The scope required by each endpoint is listed in that endpoint's description.

Body

application/json
name
string

Folder name; falls back to a default when blank

Example:

"New folder"

parent_folder_token
string | null

Parent folder token; omit or pass null to create at the root

Example:

"KaB2c1"

Response

Created

data
object
required
Last modified on May 21, 2026