curl --request GET \
--url https://app.thinnest.ai/api/v1/agents/{id}/connections/{kind}/options \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.thinnest.ai/api/v1/agents/{id}/connections/{kind}/options', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.thinnest.ai/api/v1/agents/{id}/connections/{kind}/options"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"doc": "8xQm2KvTzR4pLw",
"name": "Greenleaf leads",
"plan": "free",
"tables": [
{
"id": "Site_Visits",
"columns": [
"Name",
"Phone",
"Budget",
"Locality",
"Visit_Date"
]
},
{
"id": "Projects",
"columns": [
"Project",
"Locality",
"Price_From"
]
}
]
}List Connection Options
What a connected account can reach, read live each time, so you can choose a target for PATCH …/connections/{kind}: a Grist document’s tables and columns (?doc=), a spreadsheet’s sheets (?spreadsheet=), or the modules a Zoho account can write to. Other kinds have nothing to choose.
curl --request GET \
--url https://app.thinnest.ai/api/v1/agents/{id}/connections/{kind}/options \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.thinnest.ai/api/v1/agents/{id}/connections/{kind}/options', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.thinnest.ai/api/v1/agents/{id}/connections/{kind}/options"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"doc": "8xQm2KvTzR4pLw",
"name": "Greenleaf leads",
"plan": "free",
"tables": [
{
"id": "Site_Visits",
"columns": [
"Name",
"Phone",
"Budget",
"Locality",
"Visit_Date"
]
},
{
"id": "Projects",
"columns": [
"Project",
"Locality",
"Price_From"
]
}
]
}Authorizations
Your API key (ta_live_…) from Settings → API keys, sent as Authorization: Bearer <key>. Keep it on a server: it can message every customer you have. A key is full, build or read-only; a request its level does not allow is refused with 403.
Headers
Developers only: the customer workspace this request acts in — its org_… id from POST /customers. Leave it out to act in your own workspace.
"org_3fKq9TzQ1mN8vB2xR7cLpA"
Path Parameters
The agent's id (ag_…).
The connection: calcom (calendar), grist or googlesheets (spreadsheets), zoho or zoho_bigin (CRMs), records (kept here), zendesk or salesforce (helpdesks).
calcom, grist, googlesheets, zoho, zoho_bigin, records, zendesk, salesforce Query Parameters
Grist only, and required there: the document id to look in.
Google Sheets only, and required there: the spreadsheet id or its link.