Connection OAuth redirect target
Where an MCP server’s authorization server, or an app connector’s provider, sends the person’s browser after they consent to a connection started with auth: oauth or kind: app_connector. A browser arrives here, not an API client, so it takes no bearer token, and nothing here can tell whose browser it is. So the callback finishes nothing: it stores nothing, exchanges no code and does not use up the state. It hands the state, code and iss on to the bots page in Fluid admin, where the signed-in admin’s own session posts them to POST /bot-connections/oauth/complete. Only the admin who started the connection can finish it there, so a consent URL sent to another person never puts their account on the starter’s connection.
Every outcome is a 302 to Fluid admin.
curl --request GET \
--url https://api.fluid.app/api/company/v2026-10/bot-connections/oauth/callbackimport requests
url = "https://api.fluid.app/api/company/v2026-10/bot-connections/oauth/callback"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.fluid.app/api/company/v2026-10/bot-connections/oauth/callback', 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.fluid.app/api/company/v2026-10/bot-connections/oauth/callback",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.fluid.app/api/company/v2026-10/bot-connections/oauth/callback"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.fluid.app/api/company/v2026-10/bot-connections/oauth/callback")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fluid.app/api/company/v2026-10/bot-connections/oauth/callback")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodyQuery Parameters
The authorization code. Absent when the person declined.
The state from the authorization_url.
The authorization server's issuer (RFC 9207), which Google sends. Passed on to the admin page, and checked when the connection is completed.
The OAuth error, such as access_denied, when the person declined.
Response
To Fluid admin. When the provider sent a code and a state, Location is {origin}/settings/bots?connect=finish&state={state}&code={code}, with &iss={iss} added when the provider sent one; the admin page then posts them to POST /bot-connections/oauth/complete. When the provider sent an error or no code it is {origin}/settings/bots?connect=error&reason=consent_declined, and with no state reason=invalid_state. Query keys are in alphabetical order. origin is SALES_CHANNEL_CONNECT_RETURN_ORIGIN, defaulting to https://admin.fluid.app. The body is empty.
curl --request GET \
--url https://api.fluid.app/api/company/v2026-10/bot-connections/oauth/callbackimport requests
url = "https://api.fluid.app/api/company/v2026-10/bot-connections/oauth/callback"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.fluid.app/api/company/v2026-10/bot-connections/oauth/callback', 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.fluid.app/api/company/v2026-10/bot-connections/oauth/callback",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.fluid.app/api/company/v2026-10/bot-connections/oauth/callback"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.fluid.app/api/company/v2026-10/bot-connections/oauth/callback")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fluid.app/api/company/v2026-10/bot-connections/oauth/callback")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body