The AnyDB connector lets your AI agent act in each user's AnyDB account. Each user connects their own AnyDB API key once, and Scalekit sends it with every call, so your agent never handles credentials. It comes with 18 tools.
- Tools
- 18
- What they doRead · write · destructive
- 7 · 8 · 37 read8 write3 destructive
- Users sign in with
- API key
Setup
Install the SDK
Terminal window npm install @scalekit-sdk/node dotenvTerminal window pip install scalekit-sdk-python python-dotenvSet your credentials
Add your Scalekit credentials to your
.envfile. Find values in app.scalekit.com > Developers > API Credentials..env SCALEKIT_ENVIRONMENT_URL=<your-environment-url>SCALEKIT_CLIENT_ID=<your-client-id>SCALEKIT_CLIENT_SECRET=<your-client-secret>Create the AnyDB connection
In AgentKit > Connections, create an AnyDB connection. The name you give it is the
connection_nameyour code passes. See Configure connections.Authorize a user and make your first call
quickstart.mts import { ScalekitClient } from '@scalekit-sdk/node'import 'dotenv/config'import { createInterface } from 'node:readline/promises'const scalekit = new ScalekitClient(process.env.SCALEKIT_ENVIRONMENT_URL,process.env.SCALEKIT_CLIENT_ID,process.env.SCALEKIT_CLIENT_SECRET,)const actions = scalekit.actionsconst connector = 'anydb'const identifier = 'user_123'// Generate an authorization link for the userconst { link } = await actions.getAuthorizationLink({ connectionName: connector, identifier })console.log('Authorize AnyDB:', link)const rl = createInterface({ input: process.stdin, output: process.stdout })await rl.question('Press Enter after authorizing...')rl.close()// Make your first callconst result = await actions.executeTool({connector,identifier,toolName: 'anydb_auth_check',toolInput: {},})console.log(result)Terminal window npx tsx quickstart.mtsquickstart.py import osfrom scalekit import ScalekitClientfrom dotenv import load_dotenvload_dotenv()scalekit_client = ScalekitClient(env_url=os.getenv("SCALEKIT_ENVIRONMENT_URL"),client_id=os.getenv("SCALEKIT_CLIENT_ID"),client_secret=os.getenv("SCALEKIT_CLIENT_SECRET"),)actions = scalekit_client.actionsconnection_name = "anydb"identifier = "user_123"# Generate an authorization link for the userlink_response = actions.get_authorization_link(connection_name=connection_name,identifier=identifier,)print("Authorize AnyDB:", link_response.link)input("Press Enter after authorizing...")# Make your first callresult = actions.execute_tool(tool_input={},tool_name="anydb_auth_check",connection_name=connection_name,identifier=identifier,)print(result)Terminal window python quickstart.pyEach user opens the link once and enters their AnyDB credentials there. See Authorize a user for the full flow and statuses.
Tools
Pass the exact name toexecute_toolanydb_auth_checkCheck that the connected AnyDB API key and email are valid.Read-onlyCheck Authentication
Check that the connected AnyDB API key and email are valid. Returns the authentication result. Use this to test the connection.
Inputs
This tool takes no inputs.
anydb_databases_listList the databases in an AnyDB team.Read-onlyList Databases
List the databases in an AnyDB team. Returns databases with their IDs (adbid) and names. Use this to get an adbid for the record tools.
Inputs
teamidstringrequired- Team ID, from anydb_teams_list. Example: 507f1f77bcf86cd799439011.
anydb_file_download_url_getGet a temporary download or preview URL for a file stored in a record cell.Read-onlyGet File Download URL
Get a temporary download or preview URL for a file stored in a record cell. Returns the file URL. Use anydb_record_get to find the record and cell position of the file.
Inputs
adbidstringrequired- Database ID, from anydb_databases_list. Example: 507f1f77bcf86cd799439012.
adoidstringrequired- Record ID, from anydb_records_list or anydb_records_search. Example: 507f1f77bcf86cd799439013.
cellposstringrequired- Cell position where the file is stored. Example: A1.
teamidstringrequired- Team ID, from anydb_teams_list. Example: 507f1f77bcf86cd799439011.
previewboolean- Set true for a preview URL instead of a download URL. Example: false.
anydb_record_getGet one AnyDB record with all its data.Read-onlyGet Record
Get one AnyDB record with all its data. Returns meta (adoid, adbid, teamid, name, description, status, assignees) and content cells keyed by position with key, type and value. Use anydb_records_list or anydb_records_search to find record IDs.
Inputs
adbidstringrequired- Database ID, from anydb_databases_list. Example: 507f1f77bcf86cd799439012.
adoidstringrequired- Record ID, from anydb_records_list or anydb_records_search. Example: 507f1f77bcf86cd799439013.
teamidstringrequired- Team ID, from anydb_teams_list. Example: 507f1f77bcf86cd799439011.
anydb_records_listList the records in an AnyDB database, optionally under one parent, of one template, filtered, sorted or grouped.Read-onlyList Records
List the records in an AnyDB database, optionally under one parent, of one template, filtered, sorted or grouped. Returns items with record meta and preview cells, total, hasmore and lastmarker for the next page. Use this to browse. Use anydb_records_search for a keyword search, or anydb_record_get for one record's full content.
Inputs
adbidstringrequired- Database ID, from anydb_databases_list. Example: 507f1f77bcf86cd799439012.
teamidstringrequired- Team ID, from anydb_teams_list. Example: 507f1f77bcf86cd799439011.
filterstring- Filter as a JSON string. Example: {"Status": "Active"}
groupbystring- Field to group results by. Example: Status.
lastmarkerstring- The lastmarker from the previous page, to get the next page. Example: 507f1f77bcf86cd799439099.
pagesizeinteger- Records per page. Defaults to 50. Example: 50.
parentidstring- Only records attached under this parent record ID (such as a folder). Example: 507f1f77bcf86cd799439014.
previewcellsstring- Which cells to include in each item's preview, as a JSON string. Example: ["A1", "B1"]
sortstring- Sort order as a JSON string. Example: {"field": "name", "order": "asc"}
templateidstring- Only records created from this template ID. Example: 507f1f77bcf86cd799439015.
templatenamestring- Only records of this template (type) name. Example: Project.
anydb_records_searchSearch the records of an AnyDB database by keyword.Read-onlySearch Records
Search the records of an AnyDB database by keyword. Returns matching records with their meta. Use this to find a record ID by text. Use anydb_records_list to browse with filters.
Inputs
adbidstringrequired- Database ID, from anydb_databases_list. Example: 507f1f77bcf86cd799439012.
searchstringrequired- Keyword to search for. Example: Acme.
teamidstringrequired- Team ID, from anydb_teams_list. Example: 507f1f77bcf86cd799439011.
limitinteger- Maximum number of results. Example: 20.
parentidstring- Only records under this parent record ID. Example: 507f1f77bcf86cd799439014.
startinteger- Number of results to skip. Example: 0.
anydb_teams_listList the AnyDB teams the connected user belongs to.Read-onlyList Teams
List the AnyDB teams the connected user belongs to. Returns teams with their IDs and names. Use this first to get a teamid.
Inputs
This tool takes no inputs.
anydb_record_copyDuplicate an AnyDB record, optionally into another database or under another parent.WriteDuplicate Record
Duplicate an AnyDB record, optionally into another database or under another parent. Returns the new record. Choose how attachments are copied with attachments_mode.
Inputs
adbidstringrequired- Database ID, from anydb_databases_list. Example: 507f1f77bcf86cd799439012.
adoidstringrequired- Record ID, from anydb_records_list or anydb_records_search. Example: 507f1f77bcf86cd799439013.
teamidstringrequired- Team ID, from anydb_teams_list. Example: 507f1f77bcf86cd799439011.
attachmentsmodestring- How to handle attachments: noattachments, link (share the same files) or duplicate (copy files). Example: link.one of
noattachmentslinkduplicate attachtostring- Parent record ID to attach the copy under. Example: 507f1f77bcf86cd799439014.
dstadbidstring- Database ID to copy into. Defaults to the same database. Example: 507f1f77bcf86cd799439017.
anydb_record_createCreate a record in an AnyDB database, optionally from a template and attached under a parent record.WriteCreate Record
Create a record in an AnyDB database, optionally from a template and attached under a parent record. Returns the new record with its adoid. Use anydb_records_list with templatename to see how existing records of a type are filled.
Inputs
adbidstringrequired- Database ID, from anydb_databases_list. Example: 507f1f77bcf86cd799439012.
namestringrequired- Record name. Example: Acme Corp onboarding.
teamidstringrequired- Team ID, from anydb_teams_list. Example: 507f1f77bcf86cd799439011.
attachstring- Parent record ID to attach the new record under, such as a folder. Example: 507f1f77bcf86cd799439014.
contentobject- Cell values to set, keyed by cell position (A1, B1, ...). Each cell is an object with a value and, for new cells, a key (field name) and type. Use anydb_record_get to see a record's cells and positions. Example: {"A1": {"key": "firstName", "type": "string", "value": "John"}, "B1": {"key": "age", "type": "number", "value": 25}}
templatestring- Template record ID to create the record from. Example: 507f1f77bcf86cd799439015.
templatenamestring- Template (type) name to create the record from. Example: Project.
anydb_record_updateUpdate an AnyDB record's name, description, status, follow-up, lock or cell values.WriteUpdate Record
Update an AnyDB record's name, description, status, follow-up, lock or cell values. Returns the updated record. Use anydb_record_get first to see cell positions.
- Idempotent
Inputs
adbidstringrequired- Database ID of the record. Example: 507f1f77bcf86cd799439012.
adoidstringrequired- ID of the record to update. Example: 507f1f77bcf86cd799439013.
teamidstringrequired- Team ID of the record. Example: 507f1f77bcf86cd799439011.
contentobject- Cell values to change, keyed by cell position, such as {"A1": {"value": "Updated value"}}. Example: {"A1": {"value": "Updated value"}, "B1": {"value": 25}}
descriptionstring- New description. Example: Kick-off done, waiting on contract.
followupnumber- Follow-up time as a Unix timestamp in milliseconds. Example: 1767225600000.
iconstring- Record icon. Example: 📁.
lockedboolean- Set true to lock the record against edits. Example: false.
namestring- New record name. Example: Acme Corp onboarding (phase 2)
statusstring- New status. Example: In progress.
anydb_webhook_registerRegister a webhook URL for an AnyDB team.WriteRegister Webhook
Register a webhook URL for an AnyDB team. Returns the webhookId. Then call anydb_webhook_subscribe to choose which record events it receives.
Inputs
namestringrequired- Webhook name. Example: CRM sync.
teamidstringrequired- Team ID, from anydb_teams_list. Example: 507f1f77bcf86cd799439011.
urlstringrequired- URL that AnyDB POSTs events to. Example: https://example.com/hooks/anydb.
backoff_msinteger- Wait between retries in milliseconds. Example: 2000.
custom_headersobject- Extra headers AnyDB sends with each delivery. Example: {"X-Source": "anydb"}
descriptionstring- Webhook description. Example: Sends record changes to the CRM.
max_retriesinteger- How many times to retry a failed delivery. Example: 3.
timeoutinteger- Request timeout in milliseconds. Example: 10000.
anydb_webhook_subscribeSubscribe a registered webhook to a record event (create, update or delete).WriteSubscribe Webhook to Event
Subscribe a registered webhook to a record event (create, update or delete). Returns the result. Register the webhook first with anydb_webhook_register.
- Idempotent
Inputs
eventstringrequired- Record event: RECORD_CREATE, RECORD_UPDATE or RECORD_DELETE. Create and update events are debounced and may arrive late. Example: RECORD_UPDATE.one of
RECORD_CREATERECORD_UPDATERECORD_DELETE webhook_idstringrequired- Webhook ID returned by anydb_webhook_register. Example: 65f1c2d3e4b5a6978899aabb.
anydb_webhook_unsubscribeStop a webhook from receiving one record event.WriteUnsubscribe Webhook from Event
Stop a webhook from receiving one record event. Returns the result. Use anydb_webhook_delete to remove the webhook entirely.
- Idempotent
Inputs
eventstringrequired- Record event: RECORD_CREATE, RECORD_UPDATE or RECORD_DELETE. Create and update events are debounced and may arrive late. Example: RECORD_UPDATE.one of
RECORD_CREATERECORD_UPDATERECORD_DELETE webhook_idstringrequired- Webhook ID returned by anydb_webhook_register. Example: 65f1c2d3e4b5a6978899aabb.
anydb_webhook_updateUpdate an AnyDB webhook's name, description, URL, timeout or custom headers.WriteUpdate Webhook
Update an AnyDB webhook's name, description, URL, timeout or custom headers. Returns the updated webhook. Use the webhookId from anydb_webhook_register.
- Idempotent
Inputs
webhook_idstringrequired- Webhook ID returned by anydb_webhook_register. Example: 65f1c2d3e4b5a6978899aabb.
custom_headersobject- Extra headers AnyDB sends with each delivery. Example: {"X-Source": "anydb"}
descriptionstring- New description. Example: Sends record changes to the new CRM.
namestring- New name. Example: CRM sync v2.
timeoutinteger- Request timeout in milliseconds. Example: 10000.
urlstring- New delivery URL. Example: https://example.com/hooks/anydb-v2.
anydb_record_removeRemove an AnyDB record from one or more parent records (detach it).DestructiveRemove Record
Remove an AnyDB record from one or more parent records (detach it). Removing it from every parent deletes it. Returns the result. Use anydb_record_get to see where the record is attached.
- Idempotent
Inputs
adbidstringrequired- Database ID, from anydb_databases_list. Example: 507f1f77bcf86cd799439012.
adoidstringrequired- Record ID, from anydb_records_list or anydb_records_search. Example: 507f1f77bcf86cd799439013.
removefromidsstringrequired- Comma-separated IDs of the parent records to remove it from. Example: 507f1f77bcf86cd799439014,507f1f77bcf86cd799439016.
teamidstringrequired- Team ID, from anydb_teams_list. Example: 507f1f77bcf86cd799439011.
anydb_webhook_deleteDelete an AnyDB webhook and its event subscriptions.DestructiveDelete Webhook
Delete an AnyDB webhook and its event subscriptions. Returns the result. Use anydb_webhook_unsubscribe to stop only one event.
- Idempotent
Inputs
webhook_idstringrequired- Webhook ID returned by anydb_webhook_register. Example: 65f1c2d3e4b5a6978899aabb.
No tools match.