GET
/
prod
/
v1
/
file-type
Get file types
curl --request GET \
  --url https://api.orion.file.ai/prod/v1/file-type \
  --header 'x-api-key: <api-key>'
{
  "fileTypes": [
    {
      "id": "671290be60a313d55c800016",
      "name": "Invoice",
      "description": "An",
      "classId": "",
      "className": "Invoice",
      "isDeleted": false,
      "isPublished": true,
      "createdAt": "2024-10-18T16:45:50.064Z",
      "updatedAt": "2024-10-18T16:45:50.064Z",
      "isHero": true,
      "mode": "system",
      "usageApprovalState": "approved",
      "currentSchemaVersion": {
        "id": "6825b293e4045050159a9012",
        "fields": [],
        "blueprintId": "671290be60a313d55c800016",
        "originalSchemaId": "6822f82f8e71384720e3b233",
        "documentId": null,
        "blueprintMode": "user",
        "schemaType": "custom",
        "state": "active",
        "usageApprovalState": "approved",
        "createdAt": "2025-05-15T09:23:31.609Z",
        "updatedAt": "2025-05-15T09:23:31.609Z",
        "isCurrentVersion": true,
        "versionNumber": 10,
        "versionMinorNumber": 5,
        "versionName": "1.5",
        "versionDescription": "",
        "metadata": {
          "lastModifiedBy": "68217fe644185d6150db54a8",
          "userId": "68217fe644185d6150db54a8",
          "organizationId": "68218006ebc72170fdb221f7",
          "workspaceId": "68218006ebc72170fdb221f2"
        },
        "versionDisplayName": ""
      }
    }
  ],
  "count": 1,
  "currentPage": 1
}
The response will contain a list of file types that are associated with the workspace and their respective properties.

Authorizations

x-api-key
string
header
required

API key for authentication

Query Parameters

page
number
default:1

Page number

Example:

1

limit
number
default:100

Number of items per page

Example:

100

sortBy
string
default:createdAt

Field to sort by

Example:

"createdAt"

sortOrder
enum<string>
default:ASC

Sort direction

Available options:
ASC,
DESC
Example:

"ASC"

Response

200
application/json

The file types are retrieved

The response is of type object.