Revoke one agent profile grant
curl --request DELETE \
--url https://atollhq.com/api/oauth/connections/{connectionId}/profiles/{profileRef} \
--cookie sb-%3Cproject-ref%3E-auth-token=import requests
url = "https://atollhq.com/api/oauth/connections/{connectionId}/profiles/{profileRef}"
headers = {"cookie": "sb-%3Cproject-ref%3E-auth-token="}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {cookie: 'sb-%3Cproject-ref%3E-auth-token='}};
fetch('https://atollhq.com/api/oauth/connections/{connectionId}/profiles/{profileRef}', 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://atollhq.com/api/oauth/connections/{connectionId}/profiles/{profileRef}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_COOKIE => "sb-%3Cproject-ref%3E-auth-token=",
]);
$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://atollhq.com/api/oauth/connections/{connectionId}/profiles/{profileRef}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("cookie", "sb-%3Cproject-ref%3E-auth-token=")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://atollhq.com/api/oauth/connections/{connectionId}/profiles/{profileRef}")
.header("cookie", "sb-%3Cproject-ref%3E-auth-token=")
.asString();require 'uri'
require 'net/http'
url = URI("https://atollhq.com/api/oauth/connections/{connectionId}/profiles/{profileRef}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["cookie"] = 'sb-%3Cproject-ref%3E-auth-token='
response = http.request(request)
puts response.read_body{
"error": "Unauthorized",
"code": "unauthorized"
}{
"error": "Unauthorized",
"code": "unauthorized"
}Authentication
Revoke one agent profile grant
DELETE
/
api
/
oauth
/
connections
/
{connectionId}
/
profiles
/
{profileRef}
Revoke one agent profile grant
curl --request DELETE \
--url https://atollhq.com/api/oauth/connections/{connectionId}/profiles/{profileRef} \
--cookie sb-%3Cproject-ref%3E-auth-token=import requests
url = "https://atollhq.com/api/oauth/connections/{connectionId}/profiles/{profileRef}"
headers = {"cookie": "sb-%3Cproject-ref%3E-auth-token="}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {cookie: 'sb-%3Cproject-ref%3E-auth-token='}};
fetch('https://atollhq.com/api/oauth/connections/{connectionId}/profiles/{profileRef}', 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://atollhq.com/api/oauth/connections/{connectionId}/profiles/{profileRef}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_COOKIE => "sb-%3Cproject-ref%3E-auth-token=",
]);
$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://atollhq.com/api/oauth/connections/{connectionId}/profiles/{profileRef}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("cookie", "sb-%3Cproject-ref%3E-auth-token=")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://atollhq.com/api/oauth/connections/{connectionId}/profiles/{profileRef}")
.header("cookie", "sb-%3Cproject-ref%3E-auth-token=")
.asString();require 'uri'
require 'net/http'
url = URI("https://atollhq.com/api/oauth/connections/{connectionId}/profiles/{profileRef}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["cookie"] = 'sb-%3Cproject-ref%3E-auth-token='
response = http.request(request)
puts response.read_body{
"error": "Unauthorized",
"code": "unauthorized"
}{
"error": "Unauthorized",
"code": "unauthorized"
}Authorizations
Authenticated Supabase web session for a human Atoll user. The cookie name includes the deployment's Supabase project reference and may be chunked.
Response
Grant revoked without revoking the connection
⌘I

