Skip to main content
POST
/
api
/
v1
/
external
/
companies
/
{companyId}
/
folders
curl --request POST \
  --url https://app.aiinsurance.io/api/v1/external/companies/{companyId}/folders \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "entityType": "company",
  "name": "Claims Documents"
}
'
{
  "id": "550e8400-e29b-41d4-a716-446655440001"
}

Authorizations

Authorization
string
header
required

API key authentication. Send your raw API key as the Authorization header value with NO scheme prefix — Authorization: YOUR-API-KEY. Do NOT prefix it with Bearer or ApiKey, and do not use an X-API-Key header; those are not accepted.

Path Parameters

companyId
string<uuid>
required

Company identifier

Body

application/json
entityType
enum<string>
required

The folder owner's entity type

Available options:
Event,
Exposure,
Quote,
Submission,
Person,
Organization,
Policy,
company
name
string
required

Folder name (must be non-empty)

entityId
string<uuid> | null

The owner entity's id. Required for every entityType except company (omit or send null for company-level folders).

parentFolderId
string<uuid> | null

Parent folder to nest under (omit or null for top-level)

Response

Folder created successfully

id
string<uuid>

Id of the created folder