Skip to main content
GET
/
files
/
{fileOrDirId}
Get File or Directory
curl --request GET \
  --url https://api.mijnklantportaal.nl/v1/files/{fileOrDirId} \
  --header 'Authorization: Bearer <token>'
{
  "id": "fsf_abc12345678",
  "type": "file",
  "name": "contract_v2.pdf",
  "size": 1284,
  "mime": "application/pdf",
  "fileShareId": "fss_abc12345678",
  "createdAt": "2024-04-29T21:00:00+02:00"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

fileOrDirId
string
required

ID of the file or directory to get

Example:

"fsf_abc12345678"

Response

The requested file or directory

File or Directory

id
string

ID of the file or directory. Files are starting with fsf_, directories with fsd_.

Example:

"fsf_abc12345678"

type
string

Type of this content item. Can be file or directory.

Example:

"file"

name
string

Name of the file or directory

Example:

"contract_v2.pdf"

size
integer | null

Size of the file in bytes. Will be null for directories.

Example:

1284

mime
string | null

The mime-type of the file. Will be null for directories.

Example:

"application/pdf"

fileShareId
string | null

ID of the Share this file or directory is shared in, if shared.

Example:

"fss_abc12345678"

createdAt
string

Date and time when the payment link was created. Written in ATOM format.

Example:

"2024-04-29T21:00:00+02:00"

I