This documentation provides information on the available RESTful APIs on ODIN. These are exposed as authenticated HTTP methods on the web for researchers to perform the following actions:
Export study data
Send push notifications to participants
Authentication.
Authentication for these endpoints is performed using an API key, which can be generated on the About page of your study.
The API key is attached to each HTTP call as an authorization header.
On the About page you will also find the base URL for your study. That URL should replace the "[baseURL]" portion of the endpoints depicted below.
Export Data
Returns all data for a given study, as a zip archive.
The helper Python script below assists with the APIs' interaction. It downloads, extracts study data, processes it and based on some logic, sends appropriate messages to participants. To use this, modify the API key, study ID and base URL variables with your study details. This can be used as a template and updated with your desired conditional processing flow