API reference
Initiate provider integration
{ "name" "initiate integration", "method" "get", "url" "https //app api spikeapi com/v3/providers/{provider slug}/integration/init", "description" "initiate new provider integration by redirecting application user directly to the chosen provider website after going through the provider specific flow (granting permissions) application users will be redirected back to your preconfigured callback url alternatelly redirect uri param can be used to override the default value \n\nnotice that providers health connect and apple use different permission handling schemas, therefore do not go though oauth flow this end point is not to be used and application users will not be redirected to callback url for more details on mobile providers integration creation refer to sdks section ", "tab" "examples", "examples" { "languages" \[ { "id" "co nququth xyjnpwxess", "language" "curl", "code" "curl request get \\\\\n url https //app api stage spikeapi com/v3/providers/fitbit/integration/init \\\\\n header 'accept application/problem+json' \\\\\n header 'authorization bearer eyjhbgcioijiuzi1niisinr5cci6ikpxvcj9 eyjpc3mioii5otk5osisinn1yii6ime5zju3odazmgixythkywuifq djhtpuc7gakk03rtfqxufjzrbnpfwjgvjnfu7yuy4a4'", "customlabel" "" } ], "selectedlanguageid" "co nququth xyjnpwxess" }, "results" { "languages" \[ { "id" "qfu6epz 8pp15gg8ebsdx", "language" "204", "code" "ok", "customlabel" "" } ], "selectedlanguageid" "qfu6epz 8pp15gg8ebsdx" }, "request" { "pathparameters" \[ { "name" "provider slug", "kind" "required", "type" "string", "description" "strava, fitbit, garmin, huawei, whoop, withings, oura, polar", "" "strava, fitbit, garmin, huawei, whoop, withings, oura, polar" } ], "queryparameters" \[ { "name" "redirect uri", "kind" "optional", "type" "string", "description" "redirect uri", "" "redirect uri" }, { "name" "state", "kind" "optional", "type" "string", "description" "state", "" "state" } ], "headerparameters" \[ { "name" "authorization", "kind" "required", "type" "string", "description" "provide your bearer token in the authorization header when making requests to protected resources \n", "" "authorization" } ], "bodydataparameters" \[], "formdataparameters" \[] }, "currentnewparameter" { "label" "header parameter", "value" "headerparameters" }, "hastryitout" false, "response" \[] }