Unlink OAuth Identity
curl --request DELETE \
--url https://api.replyke.com/api/v6/:projectId/api/v7/oauth/identities/:identityId \
--header 'Authorization: <authorization>'import requests
url = "https://api.replyke.com/api/v6/:projectId/api/v7/oauth/identities/:identityId"
headers = {"Authorization": "<authorization>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: '<authorization>'}};
fetch('https://api.replyke.com/api/v6/:projectId/api/v7/oauth/identities/:identityId', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.replyke.com/api/v6/:projectId/api/v7/oauth/identities/:identityId",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.replyke.com/api/v6/:projectId/api/v7/oauth/identities/:identityId"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("Authorization", "<authorization>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://api.replyke.com/api/v6/:projectId/api/v7/oauth/identities/:identityId")
.header("Authorization", "<authorization>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.replyke.com/api/v6/:projectId/api/v7/oauth/identities/:identityId")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["Authorization"] = '<authorization>'
response = http.request(request)
puts response.read_body{
"success": true
}OAuth Endpoints
Unlink OAuth Identity
Remove a linked OAuth identity from the current user
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>'import requests
url = "https://api.replyke.com/api/v6/:projectId/api/v7/oauth/identities/:identityId"
headers = {"Authorization": "<authorization>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: '<authorization>'}};
fetch('https://api.replyke.com/api/v6/:projectId/api/v7/oauth/identities/:identityId', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.replyke.com/api/v6/:projectId/api/v7/oauth/identities/:identityId",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.replyke.com/api/v6/:projectId/api/v7/oauth/identities/:identityId"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("Authorization", "<authorization>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://api.replyke.com/api/v6/:projectId/api/v7/oauth/identities/:identityId")
.header("Authorization", "<authorization>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.replyke.com/api/v6/:projectId/api/v7/oauth/identities/:identityId")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["Authorization"] = '<authorization>'
response = http.request(request)
puts response.read_body{
"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.
Returned when the identity does not exist or does not belong to the
authenticated user.
Returned when this is the only identity on the account and the user
has no password set. Unlinking would lock the user out.
Headers
string
required
Bearer {accessToken} — a valid access token for the authenticated user.Path Parameters
string
required
UUID of the identity to unlink. Retrieve identity IDs from the
List Identities endpoint.
Response
boolean
true when the identity was successfully unlinked.Error Responses
Identity Not Found — 404
Identity Not Found — 404
{
"error": "Identity not found",
"code": "oauth/identity-not-found"
}
Last Identity — 400
Last Identity — 400
{
"error": "Cannot unlink the last identity. Set a password first or link another provider.",
"code": "oauth/last-identity"
}
User Not Found — 404
User Not Found — 404
{
"error": "User not found",
"code": "oauth/user-not-found"
}

