connect provider
Save a paste-a-key (BYOK) or agent-subscription connection. BYOK credentials are verified upstream; subscription documents are structurally validated. Both are encrypted at rest. Owner/admin Firebase session only. OAuth providers (kind=“oauth”, e.g. notion) connect via GET /v1/connections//oauth/start instead. fields is a map of the provider’s declared connection fields — call GET /v1/connections/providers for the exact fields per provider. Currently (BYOK): gws (api_key); fireflies (api_key); nomads (username, api_key); linear (api_key); expo (api_key, default_account?, default_app_id?); github (api_key); conductor (api_key); betterstack (api_key); tailscale (client_id, api_key); gitlab (api_key, host?); dodo (api_key, environment); polar (api_key, environment); spaceship (api_key, api_secret); cloudflare (api_key, account_id); stripe (api_key, stripe_version?); sentry (api_key, host?, organization_slug?); newrelic (api_key, region, account_id?); clerk (api_key); buffer (api_key); bluesky (identifier, api_key, service?); opensky (client_id, client_secret); miro (api_key); crisp (identifier, api_key, website_id); calendly (api_key); gemini (api_key); clarity (api_key); monkeytype (api_key); digitalocean (api_key); render (api_key); cal (api_key); elevenlabs (api_key); sarvam (api_key); canny (api_key, admin_user_id?); posthog (api_key, region, host?, project_id?); chatwoot (api_key, host?, account_id?); loops (api_key); ahrefs (api_key); tinyfish (api_key); openrouter (api_key); groq (api_key); artificialanalysis (api_key); submitforbacklinks (api_key); devto (api_key); strale (api_key); intercom (api_key, region, admin_id?); plain (api_key); openai (api_key); replicate (api_key). Agent subscriptions: codex (auth_json); claude_code (credential); antigravity (credential).
curl --request POST \
--url https://api.fetchbean.com/v1/connections \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"provider": "<string>",
"fields": {},
"label": "<string>"
}
'import requests
url = "https://api.fetchbean.com/v1/connections"
payload = {
"provider": "<string>",
"fields": {},
"label": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({provider: '<string>', fields: {}, label: '<string>'})
};
fetch('https://api.fetchbean.com/v1/connections', 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.fetchbean.com/v1/connections",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'provider' => '<string>',
'fields' => [
],
'label' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.fetchbean.com/v1/connections"
payload := strings.NewReader("{\n \"provider\": \"<string>\",\n \"fields\": {},\n \"label\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.fetchbean.com/v1/connections")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"provider\": \"<string>\",\n \"fields\": {},\n \"label\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fetchbean.com/v1/connections")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"provider\": \"<string>\",\n \"fields\": {},\n \"label\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"retryable": true,
"billable": true
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"retryable": true,
"billable": true
}
}Authorizations
A Firebase ID token from a signed-in dashboard session. Used only by the Connections routes; an fb_ API key is not accepted here.
Body
Response
Created
The response is of type object.
Was this page helpful?
curl --request POST \
--url https://api.fetchbean.com/v1/connections \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"provider": "<string>",
"fields": {},
"label": "<string>"
}
'import requests
url = "https://api.fetchbean.com/v1/connections"
payload = {
"provider": "<string>",
"fields": {},
"label": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({provider: '<string>', fields: {}, label: '<string>'})
};
fetch('https://api.fetchbean.com/v1/connections', 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.fetchbean.com/v1/connections",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'provider' => '<string>',
'fields' => [
],
'label' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.fetchbean.com/v1/connections"
payload := strings.NewReader("{\n \"provider\": \"<string>\",\n \"fields\": {},\n \"label\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.fetchbean.com/v1/connections")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"provider\": \"<string>\",\n \"fields\": {},\n \"label\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fetchbean.com/v1/connections")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"provider\": \"<string>\",\n \"fields\": {},\n \"label\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"retryable": true,
"billable": true
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"retryable": true,
"billable": true
}
}
