# Social Account Endpoints {#social-account-endpoints}


Manage linked social/OAuth accounts for users.


## Base Path {#base-path}


```
/api/social-account
```


## Endpoints {#endpoints}



### List Social Accounts {#list-social-accounts}


```
GET /api/social-account
Authorization: Bearer {token}
```

Returns all linked social accounts for the current user.


### Link Social Account {#link-social-account}


```
POST /api/social-account
Authorization: Bearer {token}
```

```json
{
  "provider": "google",
  "providerId": "google-user-id",
  "providerAccountId": "account-id"
}
```


### Unlink Social Account {#unlink-social-account}


```
DELETE /api/social-account/:id
Authorization: Bearer {token}
```


## Supported Providers {#supported-providers}


| Provider  | OAuth Flow |
| --------- | ---------- |
| Google    | OAuth 2.0  |
| GitHub    | OAuth 2.0  |
| Facebook  | OAuth 2.0  |
| Twitter   | OAuth 1.0a |
| LinkedIn  | OAuth 2.0  |
| Microsoft | OAuth 2.0  |


## Related Pages {#related-pages}


- [Auth Endpoints](https://sourcey-gauzy.pages.dev/api/auth-endpoints/index.md) — authentication
- [SSO/SAML Integration](https://sourcey-gauzy.pages.dev/integrations/sso-saml-integration/index.md) — SSO setup
