Skip to main content
GET
/
api
/
v1
/
external
/
companies
/
{companyId}
/
folders
/
{folderId}
List Folder Contents
curl --request GET \
  --url https://app.aiinsurance.io/api/v1/external/companies/{companyId}/folders/{folderId} \
  --header 'Authorization: <api-key>'
{ "items": [ { "contentId": "550e8400-e29b-41d4-a716-446655440010", "contentType": "folder", "name": "Invoices", "mimeType": null, "category": null, "uploadedAt": null, "createdAt": "2026-01-20T09:00:00.000Z" }, { "contentId": "550e8400-e29b-41d4-a716-446655440020", "contentType": "file", "name": "claim-report.pdf", "mimeType": "application/pdf", "category": "claims", "uploadedAt": "2026-01-20T09:15:00.000Z", "createdAt": "2026-01-20T09:15:00.000Z" } ], "totalCount": 2 }

Authorizations

Authorization
string
header
required

API key authentication. Include your API key in the Authorization header.

Path Parameters

companyId
string<uuid>
required

Company identifier

folderId
string<uuid>
required

Folder identifier

Query Parameters

page
integer
default:1

Page number (1-based, default 1, page size 50)

Required range: x >= 1
sortBy
enum<string>
default:createdAt

Field to sort by

Available options:
createdAt
sortDirection
enum<string>
default:desc

Sort direction (default desc)

Available options:
asc,
desc

Response

Paginated list of folder contents

items
object[]
totalCount
integer

Total number of items across all pages