Skip to content

Linked Accounts

This endpoint comes from the base django_social_auth_rest.urls module - the one you always include, regardless of which providers you’ve enabled:

# urls.py
path("api/social-auth/", include("django_social_auth_rest.urls")),

It’s the one place to ask “which providers does this user have connected?” - useful for building an account settings page with a link/unlink button next to each provider.

GET /api/social-auth/linked-accounts/
Authorization: Bearer <JWT_ACCESS_TOKEN>

Requires authentication.

Response:

{
"providers": [
{
"label": "Google",
"is_linked": true
},
{
"label": "GitHub",
"is_linked": false
}
// ... other providers
]
}