Skip to main content
DELETE
/
:projectId
/
api
/
v7
/
oauth
/
identities
/
:identityId
Unlink OAuth Identity
curl --request DELETE \
  --url https://api.replyke.com/api/v6/:projectId/api/v7/oauth/identities/:identityId \
  --header 'Authorization: <authorization>'
{
  "success": true
}
Unlinks an OAuth identity from the authenticated user’s account. The identity is permanently deleted. Requires a valid access token. The identity must belong to the authenticated user.

Headers

Authorization
string
required
Bearer {accessToken} — a valid access token for the authenticated user.

Path Parameters

identityId
string
required
UUID of the identity to unlink. Retrieve identity IDs from the List Identities endpoint.

Response

success
boolean
true when the identity was successfully unlinked.

Error Responses

{
  "error": "Identity not found",
  "code": "oauth/identity-not-found"
}
Returned when the identity does not exist or does not belong to the authenticated user.
{
  "error": "Cannot unlink the last identity. Set a password first or link another provider.",
  "code": "oauth/last-identity"
}
Returned when this is the only identity on the account and the user has no password set. Unlinking would lock the user out.
{
  "error": "User not found",
  "code": "oauth/user-not-found"
}

See Also