Skip to main content
POST
/
files
Uploading a file or creating a directory
curl --request POST \
  --url https://api.mijnklantportaal.nl/v1/files \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form file=@example-file
{
  "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.

Query Parameters

directory
string

ID of the directory to place the file or directory in.

Example:

"fsd_abc12345678"

Body

file
file

The file you want to upload

Response

Returning the created 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