Skip to content
Developer home

File delivery

  Less than to read

The file delivery API allows 3rd party application to download file from X3 Configuration.

The redirected url is valid for only one hour, if the app needs to re-download the file, another call to download api must be done.

  • Requirements for this step:

    • Url of API to call to download the file obtained as shown in the previous step Files listing

    • A valid access token “XXXXXXX” for this endpoint obtained as shown in the previous step Token management

  • API call examples:

    • By curl command with automatic redirection (get directly the file content):

        curl -LH "Authorization: Bearer XXXXXXX"
        % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                        Dload  Upload   Total   Spent    Left  Speed
          0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
        100     6  100     6    0     0      3      0  0:00:02  0:00:01  0:00:01     3
    • By Postman without automatic redirection (get a presigned URL for downloading the file): File downloading