Myfiles API

My Files

Read file list of uploaded user files.

Endpoint

https://vitaldb.net/api/v1/myfiles

Method

GET

Parameter

  • Please urlencode the parameter if it has any special characters.

Field

Type

Required

Description

access_token

String

Required

An Access token which is required to access VitalDB APIs. Please read OAuth2 API Document for more information.

bedname

String

Optional

Filter file list by bedname (filename LIKE %bedname%)

startdate

Date

Optional

Filter file list by date, yyyy-mm-dd (mtime >= startdate)

enddate

Date

Optional

Filter file list by date, yyyy-mm-dd  (mtime <= enddate)

uploadstartdate

Date

Optional

Filter file list by upload date, yyyy-mm-dd (mtime >= uploadstartdate)

uploadenddate

Date

Optional

Filter file list by upload date, yyyy-mm-dd (mtime >= uploadenddate)

Return Value

  • Content-Disposition: attachment;filename=json.gz;
  • Content-Type: application/x-gzip

Field

Type

Description

json.gz

File

A gzip compressed file that contains a list of file information in JSON format

    fileid

Number

File ID which is required to download the file from VitalDB cloud

    filename

String

File name (ex) DEMO_210415_091812.vital

    filesize

Number

File size in bytes

    mtime

Datetime

Uploaded or lastly modified datetime

Sample Code

curl -i https://vitaldb.net/api/v1/myfiles?access_token=xxxxxxxx --output json.gz

Download

Download a vital file from the cloud.

Endpoint

https://vitaldb.net/api/v1/download

Method

GET

Parameter

  • Please urlencode the parameter if it has any special characters.

Field

Type

Required

Description

access_token

String

Required

An Access token which is required to access VitalDB APIs. Please read OAuth2 API Document for more information.

fileid

Number

Required

ID of a file that you would like to download.

Return Value

Field

Type

Description

bedname_yymmdd_hhmmss.vital

File

A vital file

Sample Code

curl -i https://vitaldb.net/api/v1/download?access_token=xxxxxxxx&fileid=xxx