Disconnect an external provider
curl --request DELETE \
--url 'https://sandbox.circularo.com/api/v1/oauth/{strategy_name}/token?token='import requests
url = "https://sandbox.circularo.com/api/v1/oauth/{strategy_name}/token?token="
response = requests.delete(url)
print(response.text)const options = {method: 'DELETE'};
fetch('https://sandbox.circularo.com/api/v1/oauth/{strategy_name}/token?token=', 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://sandbox.circularo.com/api/v1/oauth/{strategy_name}/token?token=",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
]);
$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://sandbox.circularo.com/api/v1/oauth/{strategy_name}/token?token="
req, _ := http.NewRequest("DELETE", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://sandbox.circularo.com/api/v1/oauth/{strategy_name}/token?token=")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.circularo.com/api/v1/oauth/{strategy_name}/token?token=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
response = http.request(request)
puts response.read_body{
"status": "SUCCESS"
}{
"status": 400,
"type": "VALIDATION:INPUT_INVALID",
"message": "Invalid input",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 401,
"type": "AUTH:UNAUTHORIZED",
"message": "Authentication failed",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}OAuth
Disconnect an external provider
DELETE /oauth/{strategy_name}/token
Drops the caller’s connection to an external provider - the stored access and refresh tokens together with the record that the provider was connected at all. Circularo can then no longer reach that provider on their behalf until they connect it again through GET /oauth/{strategy_name}.
Only the caller’s own connection is dropped, and only here: nothing is revoked at the provider, and the identity the account is linked to for signing in is kept apart from these tokens and stays as it is.
Token authorization: Authorize using a token — either a session token obtained from login or an API key — to call this endpoint.
Disconnect an external provider
curl --request DELETE \
--url 'https://sandbox.circularo.com/api/v1/oauth/{strategy_name}/token?token='import requests
url = "https://sandbox.circularo.com/api/v1/oauth/{strategy_name}/token?token="
response = requests.delete(url)
print(response.text)const options = {method: 'DELETE'};
fetch('https://sandbox.circularo.com/api/v1/oauth/{strategy_name}/token?token=', 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://sandbox.circularo.com/api/v1/oauth/{strategy_name}/token?token=",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
]);
$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://sandbox.circularo.com/api/v1/oauth/{strategy_name}/token?token="
req, _ := http.NewRequest("DELETE", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://sandbox.circularo.com/api/v1/oauth/{strategy_name}/token?token=")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.circularo.com/api/v1/oauth/{strategy_name}/token?token=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
response = http.request(request)
puts response.read_body{
"status": "SUCCESS"
}{
"status": 400,
"type": "VALIDATION:INPUT_INVALID",
"message": "Invalid input",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 401,
"type": "AUTH:UNAUTHORIZED",
"message": "Authentication failed",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}