curl --request POST \
--url https://api.erdo.ai/v1/integrations/{integrationID}/identity \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"account_id": "<string>",
"login_customer_id": "<string>"
}
'import requests
url = "https://api.erdo.ai/v1/integrations/{integrationID}/identity"
payload = {
"account_id": "<string>",
"login_customer_id": "<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({account_id: '<string>', login_customer_id: '<string>'})
};
fetch('https://api.erdo.ai/v1/integrations/{integrationID}/identity', 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.erdo.ai/v1/integrations/{integrationID}/identity",
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([
'account_id' => '<string>',
'login_customer_id' => '<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.erdo.ai/v1/integrations/{integrationID}/identity"
payload := strings.NewReader("{\n \"account_id\": \"<string>\",\n \"login_customer_id\": \"<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.erdo.ai/v1/integrations/{integrationID}/identity")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"account_id\": \"<string>\",\n \"login_customer_id\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.erdo.ai/v1/integrations/{integrationID}/identity")
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 \"account_id\": \"<string>\",\n \"login_customer_id\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"account_id": "<string>",
"app": "<string>",
"auth_type": "<string>",
"id": "<string>",
"login_customer_id": "<string>",
"name": "<string>",
"provided_by_organization_id": "<string>",
"provided_by_organization_slug": "<string>",
"provider_auth_failed_at": "<string>",
"status": "<string>",
"type": "<string>"
}{
"code": "not_found",
"details": {},
"message": "<string>"
}SetIntegrationIdentityAPI writes a connection's stored account identity
(account_id, and for Google Ads agency connections the manager/MCC login_customer_id) into its encrypted credentials, leaving every other credential key untouched, and returns the integration’s summary in the GET /v1/integrations shape — never any token material.
This is the escape hatch the OAuth callback’s auto-detection defers to: the detector only stamps login_customer_id when a fresh token’s sole accessible account is a manager, and every ambiguous shape needs the id set explicitly afterwards. The internal UpdateIntegration surface that used to be the documented way to do that is session-only, so a /v1 consumer had no way to set the id a manager connection hard-requires (client-account requests, managed-container provisioning) or to backfill account_id onto connections that predate identity stamping.
curl --request POST \
--url https://api.erdo.ai/v1/integrations/{integrationID}/identity \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"account_id": "<string>",
"login_customer_id": "<string>"
}
'import requests
url = "https://api.erdo.ai/v1/integrations/{integrationID}/identity"
payload = {
"account_id": "<string>",
"login_customer_id": "<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({account_id: '<string>', login_customer_id: '<string>'})
};
fetch('https://api.erdo.ai/v1/integrations/{integrationID}/identity', 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.erdo.ai/v1/integrations/{integrationID}/identity",
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([
'account_id' => '<string>',
'login_customer_id' => '<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.erdo.ai/v1/integrations/{integrationID}/identity"
payload := strings.NewReader("{\n \"account_id\": \"<string>\",\n \"login_customer_id\": \"<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.erdo.ai/v1/integrations/{integrationID}/identity")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"account_id\": \"<string>\",\n \"login_customer_id\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.erdo.ai/v1/integrations/{integrationID}/identity")
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 \"account_id\": \"<string>\",\n \"login_customer_id\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"account_id": "<string>",
"app": "<string>",
"auth_type": "<string>",
"id": "<string>",
"login_customer_id": "<string>",
"name": "<string>",
"provided_by_organization_id": "<string>",
"provided_by_organization_slug": "<string>",
"provider_auth_failed_at": "<string>",
"status": "<string>",
"type": "<string>"
}{
"code": "not_found",
"details": {},
"message": "<string>"
}Authorizations
An Erdo API key (erdo_api_...) or scoped token (erdo_token_...).
Path Parameters
Response
Success response
connection this organization reaches through a manager that lends it — the agency's own vendor key, usable here for as long as the management link lives. Absent on every connection the org holds itself. A caller that sees them should not offer to rotate or disconnect: the connection belongs to the manager, and only the manager can change it.
when the upstream provider last refused this connection's credential. Status cannot carry it: a retired key leaves a connection 'connected' here because Pipedream signs calls with it quite happily and simply returns the provider's 401 — which is how a widget on a customer's live site went two and a half days without anyone noticing. Reported, never acted on.

