Issue a customer-bound hosted connection link, valid for 15 minutes
POST
/api/v1/projects/{project_id}/connect-sessionsconnections:writeRequest body
| Field | Type | Required | Rules |
|---|---|---|---|
customer_id | uuid | Yes | |
provider | string | Yes | |
return_url | string (uri) | Yes | |
reconnect_connection_id | uuid | No | Pin reauthorization to this exact connection and native identity. Wrong native selections or replaced/disconnected target snapshots are refused. The existing billing identity is retained. |
authorization_purpose | enum | No | one of: "standard", "agentic"Agentic Google consent requires a separately configured AI-agent OAuth client and reconnect_connection_id. It creates a second purpose-bound grant without replacing the standard connection or adding a billable account. |
google_ads_manager_id | string | No | pattern ^[1-9][0-9]{9}$Google Ads only. Directly accessible manager; fresh OAuth and bounded native hierarchy verification required. Omit for direct account discovery. |
google_ads_customer_id | string | No | pattern ^[1-9][0-9]{9}$Requires google_ads_manager_id and must differ. Limit discovery to this enabled non-manager descendant; each selected client is one ordinary billable connection. No native linking or spend approval. |
shared_mailbox_id | uuid | No | Outlook only. Lowercase Entra object ID of a delegated/shared mailbox. Fresh delegated .Shared consent and Inbox access required; polling only. Omit for own mailbox. |
Response 201
| Field | Type | Required | Rules |
|---|---|---|---|
id | uuid | Yes | |
url | string | Yes | |
expires_at | string (date-time) | Yes |
Errors
400Invalid request401Authentication required402Billing activation or published usage allowance required403Project, role or scope denied409State, ownership, idempotency or configuration conflict429Rate limit; respect Retry-After503Maintenance mode or required service configuration unavailable
curl -X POST "https://YOUR_DOMAIN/api/v1/projects/$TECHRACE_PROJECT_ID/connect-sessions" \
-H "Authorization: Bearer $TECHRACE_API_KEY" \
-H "Content-Type: application/json" \
--data @- <<EOF
{
"customer_id": "8f1c2a4e-6b3d-4e21-9a77-1d0c5b2e9f10",
"provider": "facebook",
"return_url": "https://your-app.com/integrations/done"
}
EOF{
"id": "0a6f2c9d-1e4b-4d73-9f58-7b3e2a1c8d05",
"url": "https://YOUR_DOMAIN/connect#token=cs_…",
"expires_at": "2026-11-14T10:15:00.000Z"
}List credential-free customer connections
GET
/api/v1/projects/{project_id}/connectionsconnections:readParameters
| Field | Type | Required | Rules |
|---|---|---|---|
cursor query | string | No | |
limit query | integer | No | 1–100 |
customer_id query | uuid | No |
Response 200
| Field | Type | Required | Rules |
|---|---|---|---|
data | object[] | Yes | |
next_cursor | string | null | Yes |
Errors
400Invalid request401Authentication required402Billing activation or published usage allowance required403Project, role or scope denied409State, ownership, idempotency or configuration conflict429Rate limit; respect Retry-After502Invalid stored result or inconsistent project/customer/operation binding; no private data returned503Maintenance mode or required service configuration unavailable
curl -X GET "https://YOUR_DOMAIN/api/v1/projects/$TECHRACE_PROJECT_ID/connections?customer_id=8f1c2a4e-6b3d-4e21-9a77-1d0c5b2e9f10" \
-H "Authorization: Bearer $TECHRACE_API_KEY"{
"data": [
{
"id": "3b7e9d12-5c4a-4f8e-8b21-6a0d2c9e7f34",
"customer_id": "8f1c2a4e-6b3d-4e21-9a77-1d0c5b2e9f10",
"provider": "facebook",
"external_id": "1122334455",
"name": "Joe's Bakery",
"status": "connected",
"scopes": [
"pages_show_list",
"pages_read_engagement",
"pages_manage_posts"
],
"metadata": {},
"created_at": "2026-11-14T10:00:00.000Z"
}
],
"next_cursor": null
}Disconnect and cancel unstarted jobs; active leases block removal
DELETE
/api/v1/projects/{project_id}/customers/{customer_id}/connections/{connection_id}connections:writeParameters
| Field | Type | Required | Rules |
|---|---|---|---|
customer_id path | uuid | Yes | |
connection_id path | uuid | Yes |
Response 200
| Field | Type | Required | Rules |
|---|---|---|---|
disconnected | true | Yes |
Errors
400Invalid request401Authentication required402Billing activation or published usage allowance required403Project, role or scope denied409State, ownership, idempotency or configuration conflict429Rate limit; respect Retry-After503Maintenance mode or required service configuration unavailable
curl -X DELETE "https://YOUR_DOMAIN/api/v1/projects/$TECHRACE_PROJECT_ID/customers/$CUSTOMER_ID/connections/$CONNECTION_ID" \
-H "Authorization: Bearer $TECHRACE_API_KEY"Read bounded stored connection outcomes; no live provider probe. Each result family requires its existing read scope; Google agentic outcomes are excluded.
GET
/api/v1/projects/{project_id}/customers/{customer_id}/connections/{connection_id}/diagnosticsconnections:readParameters
| Field | Type | Required | Rules |
|---|---|---|---|
customer_id path | uuid | Yes | |
connection_id path | uuid | Yes |
Response 200
| Field | Type | Required | Rules |
|---|---|---|---|
connection_id | uuid | Yes | |
customer_id | uuid | Yes | |
provider | string | Yes | |
status | enum | Yes | one of: "connected", "expired", "disconnected" |
checked_at | string (date-time) | Yes | |
basis | "stored_evidence_only" | Yes | |
live_access | "not_verified" | Yes | |
freshness_window_seconds | 86400 | Yes | |
configuration | object | Yes | |
observations | object[] | Yes | 4–4 items |
Errors
400Invalid request401Authentication required402Billing activation or published usage allowance required403Project, role or scope denied409State, ownership, idempotency or configuration conflict429Rate limit; respect Retry-After503Maintenance mode or required service configuration unavailable
curl -X GET "https://YOUR_DOMAIN/api/v1/projects/$TECHRACE_PROJECT_ID/customers/$CUSTOMER_ID/connections/$CONNECTION_ID/diagnostics" \
-H "Authorization: Bearer $TECHRACE_API_KEY"