To get started with the Spike API first create an account, by signing up at https://spikeapi.com. Once approved you'll have access to the Spike developer console.
Once you have these credentials you can begin using Spike API.
For a user to establish connections with data providers, applications need to launch the integration flow, which entails opening Spike's integration webpage on the user's browser.
client_id (string) App ID for your team.
provider (string) name of the data provider.
user_id (string) A unique ID representing the end user. Typically this will be a user ID number from your application. Personally identifiable information should not be used in the user_id.
Apple Health* (SDK)
Android Health Connect* (SDK)
*Please, use iOS SDK (Swift, React Native, Flutter, or Android-Kotlin) to connect to Apple Health and Android Health Connect.
Users will be redirected to a data provider website and users will be asked to submit authentication details. Once the user authorizes access to their data, Spike returns the user back to the application using the postback URL. (You can edit it on the developer console). Appended to the postback URL is the Spike user ID. Following is an example of the postback URL with the user ID highlighted:
Please save it and use it for all user data requests.
Get data from devices
user_id (string) Key returned by Spike connect device request. This key should be stored in your database against the user and used for all interactions with the Spike API.
start_data (date) Date from in YYYY-MM-DD format
end_data (date) Date to in YYYY-MM-DD format
x-spike-auth (string) Application token from Spike console.