Data Manager, previously known as Data Upload, is WMDA's enhanced platform designed for efficient and secure data management within the global donor registry network. Renamed in early 2024, the platform's name change reflects its expanded functionality beyond simple data uploads, accommodating a growing range of data-related features.
Data Manager supports both manual and automatic data uploads, allowing registries to list donor information in the Search & Match Service. Manual uploads involve uploading encrypted XML files, while automatic uploads utilize a REST API for seamless integration between systems. Though XML is currently the primary format, support for JSON files is forthcoming, with notifications to be provided when this becomes available.
Once data is uploaded and processed, it becomes accessible to search coordinators and transplant physicians through the Search & Match Service, and is also integrated into the Match-Connect service. For those using the API, technical support is readily available to ensure smooth operation and understanding.
Data Manager is designed to meet the evolving needs of donor registries, offering robust and real-time data processing capabilities that ensure accurate and up-to-date information is always available. For more information and support, you can contact us directly by emailing support@wmda.info
This document describes the mechanism via the REST API method with curl commands.
If you are not an API user yet, and plan to automate your file handling process. Then please request an API credential from WMDA support team to email support@wmda.info. And please follow steps below:
Data Manager uses Bear Token for the authorization as all WMDA API services, please follow user guide for API authentication to implement https://share.wmda.info/x/8I7RFw.
WMDA credential only available for one year currently. If your credential is expired, please send to WMDA support team to request a new one.
Currently, WMDA is implementing a new feature to let API user to request a new credential by themselves before the credential expires, we will send announcement when this feature is available.
To get more knowledge for usage of curl, we recommend member to read the doc for curl https://ec.haxx.se/usingcurl-netrc.html.
Data Manager API specification is in the swagger doc: https://apispecs.wmda.info/?urls.primaryName=Data%20Manager%20Data%20Exchange%20API
Below is an example to guide how to upload a file:
Step 1: Set up the credential by following the instruction in the "Implement credential"
Step 2: Test to use the API in WMDA Data Manager sandbox.
Below is an example to guide how to get the information to upload a file:
URL | |
---|---|
SERVER URL | Sandbox system: https://sandbox-datamanager-api.wmda.info Production system: https://datamanager-api.wmda.info |
URI | /api/v1/files/upload |
METHOD | POST |
Full URL path example | https://sandbox-datamanager-api.wmda.info/api/v1/files/upload |
Request form | --form 'file=@c:/path/to/file/ION-<yourion>-D.gpg' \ --form 'ion="<yourion>"' \ --form 'folder="upload"' |
HEADER | Authorization and Content-Type are required, the other ones are optional |
Authorization | Bear Token |
Content-Type | multipart/form-data |
Step 3:
Run curl call as below to upload a file:
curl -i POST 'https://sandbox-datamanager-api.wmda.info/api/v1/files/upload' \ --header 'Authorization: Bearer ••••••' \ --header 'Content-Type: multipart/form-data' --form 'file=@c:/path/to/file/ION-0999-D.gpg' \ --form 'ion="9999"' \ --form 'folder="upload"' |
Below is suggestion for curl call based on the swagger doc
curl -i POST --location 'https://sandbox-datamanager-api.wmda.info/api/v1/files/upload' \ --header 'Authorization: Bearer ••••••' \ --header 'Content-Type: multipart/form-data' --form 'file=@c:/path/to/file/ION-0999-D.gpg' \ --form 'ion="9999"' \ --form 'folder="upload"' |
Download reports
You may use the API also to fetch your reports . And you may need 2 steps.
1.Fetch the files list and get the file names.
Use the following curl and endpoint to fetch an array of file list for the folder ""report:
curl --location 'https://sandbox-datamanager-api.wmda.info/api/v1/files/list' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer ••••••' \ --data '{ "ion": 9999, "folder": "report" }' |
2. Fetch all the reports or the one you need.
curl --location 'https://sandbox-datamanager-api.wmda.info/api/v1/files/download' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer ••••••' \ --data '{ "ion": 9999, "folder": "report", "fileName": "<filename>.txt" }' |
For those registries that are permitted to use the full dataset the statement below will fetch that. You can download the file in the folder "download"
curl POST --location 'https://sandbox-datamanager-api.wmda.info/api/v1/files/download' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer ••••••' \ --data '{ "ion": 9999, "folder": "download", "fileName": "wmda_data_v22.zip.gpg" } |