Read Google Chat connection session
curl --request GET \
--url https://atollhq.com/api/integrations/google-chat/connect-session \
--cookie sb-%3Cproject-ref%3E-auth-token=import requests
url = "https://atollhq.com/api/integrations/google-chat/connect-session"
headers = {"cookie": "sb-%3Cproject-ref%3E-auth-token="}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {cookie: 'sb-%3Cproject-ref%3E-auth-token='}};
fetch('https://atollhq.com/api/integrations/google-chat/connect-session', 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/integrations/google-chat/connect-session",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
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/integrations/google-chat/connect-session"
req, _ := http.NewRequest("GET", 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.get("https://atollhq.com/api/integrations/google-chat/connect-session")
.header("cookie", "sb-%3Cproject-ref%3E-auth-token=")
.asString();require 'uri'
require 'net/http'
url = URI("https://atollhq.com/api/integrations/google-chat/connect-session")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["cookie"] = 'sb-%3Cproject-ref%3E-auth-token='
response = http.request(request)
puts response.read_body{
"session": {
"googleUserDisplayName": "<string>",
"googleUserEmail": "jsmith@example.com",
"expiresAt": "2023-11-07T05:31:56Z"
},
"memberships": [
{
"memberId": "<string>",
"orgId": "<string>",
"role": "<string>",
"name": "<string>",
"slug": "<string>"
}
]
}{
"error": "Unauthorized",
"code": "unauthorized"
}{
"error": "Unauthorized",
"code": "unauthorized"
}{
"error": "Unauthorized",
"code": "unauthorized"
}{
"error": "Unauthorized",
"code": "unauthorized"
}Integrations
Read Google Chat connection session
Returns display-safe Google Chat identity details and Atoll memberships owned by the signed-in human. The initial Chat handoff stores the bearer token in a short-lived HttpOnly cookie; its hash and the Google completion redirect are not returned.
GET
/
api
/
integrations
/
google-chat
/
connect-session
Read Google Chat connection session
curl --request GET \
--url https://atollhq.com/api/integrations/google-chat/connect-session \
--cookie sb-%3Cproject-ref%3E-auth-token=import requests
url = "https://atollhq.com/api/integrations/google-chat/connect-session"
headers = {"cookie": "sb-%3Cproject-ref%3E-auth-token="}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {cookie: 'sb-%3Cproject-ref%3E-auth-token='}};
fetch('https://atollhq.com/api/integrations/google-chat/connect-session', 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/integrations/google-chat/connect-session",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
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/integrations/google-chat/connect-session"
req, _ := http.NewRequest("GET", 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.get("https://atollhq.com/api/integrations/google-chat/connect-session")
.header("cookie", "sb-%3Cproject-ref%3E-auth-token=")
.asString();require 'uri'
require 'net/http'
url = URI("https://atollhq.com/api/integrations/google-chat/connect-session")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["cookie"] = 'sb-%3Cproject-ref%3E-auth-token='
response = http.request(request)
puts response.read_body{
"session": {
"googleUserDisplayName": "<string>",
"googleUserEmail": "jsmith@example.com",
"expiresAt": "2023-11-07T05:31:56Z"
},
"memberships": [
{
"memberId": "<string>",
"orgId": "<string>",
"role": "<string>",
"name": "<string>",
"slug": "<string>"
}
]
}{
"error": "Unauthorized",
"code": "unauthorized"
}{
"error": "Unauthorized",
"code": "unauthorized"
}{
"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.
⌘I

