---
title: "List OAuth providers"
method: GET
path: "/oauth-providers"
tags: ["Oauth"]
---

# List OAuth providers

`GET /oauth-providers`

Retrieves a list of all OAuth providers for a user.

## Query parameters

- `user_id` string

## Response `200`

Successful response

- object
  - `items` object[], required
    - `account_id` string, required — Account ID of the OAuth provider. This uniquely identifies the account on the provider side.
    - `user_id` string, required — The ID of the user, or the special value `me` for the currently authenticated user
    - `id` string, required — The unique identifier of the OAuth provider
    - `email` string — Email of the OAuth provider. This is used to display and identify the OAuth provider in the UI.
    - `provider_config_id` string, required — Provider config ID of the OAuth provider. This uniquely identifies the provider config on config.json file
    - `type` 'google' | 'github' | 'microsoft' | 'spotify' | 'facebook' | 'discord' | 'gitlab' | 'bitbucket' | 'linkedin' | 'apple' | 'x' | 'twitch', required — OAuth provider type, one of `google`, `github`, `microsoft`, `spotify`, `facebook`, `discord`, `gitlab`, `bitbucket`, `linkedin`, `apple`, `x`, `twitch`
    - `allow_sign_in` boolean, required — Whether the user can use this OAuth provider to sign in. Only one OAuth provider per type can have this set to `true`.
    - `allow_connected_accounts` boolean, required — Whether the user can use this OAuth provider as connected account. Multiple OAuth providers per type can have this set to `true`.
  - `pagination` object
    - `next_cursor` 'null', nullable — The cursor to fetch the next page of results. null if there is no next page.

---

[API](https://skmtc.net/hexclave/apis/hexclave-rest-api-3.md) · [All operations](https://skmtc.net/hexclave/apis/hexclave-rest-api-3/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hexclave/hexclave-rest-api-3/revisions/9b9326fe08a5/schema)
