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=), the modules a Zoho account can write to, HubSpot’s one module (contacts), or a Calendly account’s meeting types. 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
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. Refused with 404 (Workspace not found.) when the id is unknown, is not one of your customers, or is not an org_… id; 410 when that customer was deleted (restore it with POST /customers/{id}/restore until it is erased); 403 when the key belongs to one customer workspace (it cannot act as another); 400 when your workspace is not a developer workspace. /customers/* and GET /customers/usage are your own workspace's and refuse the header with 400: call them without it.
"org_3fKq9TzQ1mN8vB2xR7cLpA"
Path Parameters
The connection: calcom or calendly (calendars), grist or googlesheets (spreadsheets), zoho, zoho_bigin or hubspot (CRMs), records (kept here), zendesk or salesforce (helpdesks).
calcom, grist, googlesheets, zoho, zoho_bigin, hubspot, calendly, records, zendesk, salesforce