website logo
⌘K
Quickstart
User
Metrics
Webhooks
Mobile SDK
V2
React Native
Flutter
Android (Kotlin)
Swift
V1
Errors
FAQ
Docs powered by
Archbee
User

Delete User Integration

You can delete a user integration using Spike user ID and app access token.


Delete a user integration by Spike user ID
POST
Params
Path Params
user_id
required
String
User ID returned by add integration request. This key should be stored in your database against the user and used for all interactions with the Spike API.
Header Parameters
x-spike-auth
required
String
Client access token
Body Parameters
integrations_to_remove
required
Array
The list of the integrations
Python
|
import requests

url = 'https://api.spikeapi.com/users/28281281-de18-a2d3-1122-87ed32ea32aa/remove-integrations'
headers = {}
headers['x-spike-auth'] = 'fa0b3803-1111-2222-9788-eccce210d30c'
data = {'integrations_to_remove': ['oura', 'fitbit', 'non_existent_integration']}

response = requests.request('POST', url, json=data, headers=headers)

print(response.text)

RESPONSES
200
|
{
  "removed_count": 2,
  "removed_integrations": ["oura", "fitbit"]
}




Did this page help you?
PREVIOUS
Get User Data
NEXT
API Version 2 (V2)
Docs powered by
Archbee
Delete user integration
TABLE OF CONTENTS
POST
Delete user integration
Docs powered by
Archbee