Skip to Content
kosemdocs
ReferenceAPIUsers

List linked accounts

Lists Google and GitHub accounts linked to the caller's account, oldest first. Pass me or your own user ID. Also returns enabled sign-in providers. Signing in with a provider links that account (directly for Google-hosted email addresses, or after email code verification for GitHub).

GET
/v1/users/{user}/linkedAccounts

Lists Google and GitHub accounts linked to the caller's account, oldest first. Pass me or your own user ID.

Also returns enabled sign-in providers. Signing in with a provider links that account (directly for Google-hosted email addresses, or after email code verification for GitHub).

Authorization

bearer
headerAuthorizationBearer <token>

An access token, or an API key.

Path Parameters

user*string

The user's ID, or me for the caller.

Match^(me|usr_[0-7][0-9a-hjkmnp-tv-z]{25})$

Response Body

OK

application/json
  1. response
linkedAccounts*array<>

The accounts, oldest first, with those whose link time kosem doesn't know first.

providers*array<>

The providers people can sign in with here. Signing in with one links its account.

Example Request
curl -X GET 'https://api.kosem.ai/v1/users/string/linkedAccounts'
Example Response
{
  "linkedAccounts": [
    {
      "createTime": "2019-08-24T14:15:22Z",
      "email": "string",
      "lastUseTime": "2019-08-24T14:15:22Z",
      "login": "string",
      "name": "string",
      "provider": "google"
    }
  ],
  "providers": [
    "google"
  ]
}