Authorization and access

Authorization process is described here. Each API request must also consist of unique Api-key obtained during application registration together with client_id and client_secret.

Headers

  • Accept: multipart/form-data
  • Content-type: multipart/form-data
  • Authorization: Bearer {access_token}
  • Api-key: {unique_app_api-key}

Available file types

  • JPG, GIF, PNG, BMP, PDF, ODT, DOC, TXT, DOCX, TIFF, ODS, XLS, XLSX, PPT, RTF

Uploading file url parameters

  • URL: https://api.platform.trans.eu
  • Endpoint: /ext/media-storage-api/v1/assets
  • Http Method: PUT

File should be send in request body (request body should be send as form data).

Json response example

{"id": "eb6bd829-0794-4553-8d8f-7f000ea76d15",
"path": "https://service.media-storage.query/v1/assets/eb6bd829-0794-4553-8d8f-7f000ea76d15",
    "ttl": {},
    "file": {},
        "image": {}
    }
}

Downloading file from an order url parameters

  • URL: https://api.platform.trans.eu
  • Endpoint: /ext/media-storage-api/v1/assets/{mediaId}
  • Http Method: GET

You will get file in response.