Skip to main content

[Early Access] Read wearable credentials

GET /v1/wearables/{provider}/credentials
devhttps://api.sandbox.ovok.com

Early Access — interfaces may change without notice.

Report whether the caller's project has Strava / Polar OAuth app credentials on file, without ever returning the raw values. Use the response to drive a 'configured / not configured' indicator in the dashboard; the secret fields (hasSecret, hasWebhookSecret) report presence only and clientIdLast4 lets the UI show 'ends in …XY34' for visual confirmation. Admin-only.

Parameters

NameInTypeRequiredDescription
providerpathstringyesWearable provider slug whose stored credentials are being read. Currently strava or polar.

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.

200WearableCredentialsStatusDto (application/json)

Status view of a project's wearable OAuth credentials. Returned by GET / PUT / DELETE — raw secrets are never surfaced, only their presence and the last 4 chars of the stored clientId.

  • configured: boolean (required) — True when both clientId and clientSecret are on file for this provider.
  • clientIdLast4: string (required) — Last 4 characters of the stored clientId, for visual confirmation. null when no clientId is on file.
  • hasSecret: boolean (required) — True when a clientSecret is on file. The value itself is never returned.
  • hasWebhookSecret: boolean (required) — True when a webhookSecret is on file. Required for inbound signature verification on Polar; optional on Strava.

Example

{
"configured": true,
"clientIdLast4": "XY34",
"hasSecret": true,
"hasWebhookSecret": true
}