Skip to main content
GET
/
api
/
v1
/
users
/
{user_id}
/
connections
Get Connections Endpoint
curl --request GET \
  --url https://api.example.com/api/v1/users/{user_id}/connections \
  --header 'Authorization: Bearer <token>'
[
  {
    "user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "provider": "<string>",
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "status": "active",
    "last_synced_at": "2023-11-07T05:31:56Z",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z",
    "provider_user_id": "<string>",
    "provider_username": "<string>",
    "scope": "<string>",
    "max_historical_days": 123,
    "supports_pull": false
  }
]

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Headers

X-Open-Wearables-API-Key
string | null

Path Parameters

user_id
string<uuid>
required

Response

Successful Response

user_id
string<uuid>
required
provider
string
required
id
string<uuid>
required
status
enum<string>
required

Status of a user connection to a provider.

Available options:
active,
revoked,
expired
last_synced_at
string<date-time> | null
required
created_at
string<date-time>
required
updated_at
string<date-time>
required
provider_user_id
string | null
provider_username
string | null
scope
string | null
max_historical_days
integer | null
supports_pull
boolean
default:false