GET
/
users
/
{userID}
/
socialAccounts
List all social logins for a user
curl --request GET \
  --url https://backendapi.corbado.io/v2/users/{userID}/socialAccounts \
  --header 'Authorization: Basic <encoded-value>'
[
  {
    "socialAccountID": "soc-6060375336139150919",
    "providerType": "github",
    "identifierValue": "jane@doe.com",
    "userID": "usr-4693224802260150919",
    "foreignID": "53150919",
    "avatarURL": "https://avatars.githubusercontent.com/u/53150919?v=4",
    "fullName": "Jane Doe"
  }
]

Authorizations

Authorization
string
header
required

Basic authentication is used to authenticate requests to the Backend API. The username is the project ID and the password is the API secret.

The project ID and API secret can be found in the Developer Panel.

Path Parameters

userID
string
required

Unique identifier of the user. Format: usr-<number>.

Example:

"usr-4693224802260150919"

Query Parameters

sort
string

Field and direction to sort results. Use the format fieldName:asc or fieldName:desc.

Example:

"createdAt:desc"

filter[]
string[]

Filter results by specific fields and conditions. Format: <field>:<operator>:<value>. Supported operators include:

  • eq: equals (e.g. email:eq:mail@example\.com matches items where email equals mail@example.com)
  • gt: greater than (e.g. created:gt:2021-01-01T00:00:00 matches items created after Jan 1, 2021)
  • lt: less than (e.g. created:lt:2021-01-01T00:00:00 matches items created before Jan 1, 2021)
page
integer
default:1

The page number to retrieve for paginated results.

Example:

1

pageSize
integer
default:10

The number of items to return per page. Useful for pagination.

Example:

20

Response

List of social logins.

socialAccountID
string
required

Unique identifier of the social account.

Example:

"soc-6060375336139150919"

providerType
string
required

Type of the social provider.

Example:

"github"

identifierValue
string
required

Login identifier of the user (here email address).

Example:

"jane@doe.com"

userID
string
required

Unique identifier of the user.

Example:

"usr-4693224802260150919"

foreignID
string
required

Unique identifier of the user in the social provider.

Example:

"53150919"

avatarURL
string
required

URL of the avatar of the user in the social provider.

Example:

"https://avatars.githubusercontent.com/u/53150919?v=4"

fullName
string
required

Full name of the user in the social provider.

Example:

"Jane Doe"