Skip to main content

[Early Access] Revoke a wearable connection

DELETE /v1/wearables/{provider}/connections/{patientId}
devhttps://api.sandbox.ovok.com

Early Access — interfaces may change without notice.

Deletes the stored OAuth tokens (the FHIR Endpoint resource) for the given (patient, provider) pair. The user must re-authenticate with the provider to reconnect. Historical Observation / Procedure data already written is not deleted — by design, audit history is append-only.

Example

curl -X DELETE '<APP_BASE_URL>/v1/wearables/strava/connections/<patient-uuid>' \
-H 'Authorization: Bearer <token>'

Returns { ok: true } whether or not a connection existed (idempotent).

Parameters

NameInTypeRequiredDescription
providerpathstringyesWearable provider slug whose tokens should be deleted.
patientIdpathstringyesFHIR Patient id whose connection to revoke. Idempotent — non-existent connections still return { ok: true }.

Responses

CodeDescription
200Success.
400The request could not be operated by the server.
401The resource owner or authorization server denied the request.
404The requested resource could not be found.
422The request could not be validated by the server.
500The server encountered an unexpected condition. Please try again later.

200OkResponseDto (application/json)

Side-effect-only acknowledgement. Body is the literal { "ok": true }.

  • ok: boolean (required)