Create import link
create_import_linkGet a link where a data file (CSV, TSV, Excel - anything an Azquo import reads) is IMPORTED into a database, exactly as an upload to /api/importdata imports it, at the same speed. Use it to bulk-load a file when you have no shell, or without handling an API key: the link is the only credential, reaches one database for you, and lasts 60 minutes.
A file the USER has: give them url; they open it in a browser and drop the file. The page shows the result.
A file you made, with a shell or code sandbox: run curlCommand with -F files=@path for each file. The reply is JSON with each file's result. Each file is imported as it arrives, so the file needs its Azquo header row (or a matching import template) and a name that says where the data came from - the file name chooses how it is read and is written into the provenance of every value.
Returns url, curlCommand, token, expiresInMinutes. Keep token: what each file imported - lines imported and rejected, values and names adjusted, warnings - can be looked up with it afterwards. A slow import is still running: look up what it did rather than sending the file again.
For a scheduled or repeated load, a script posting to /api/importdata with an API key needs no link.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"database": "<database>"
},
"name": "create_import_link"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Optional line shown on the upload page, e.g. which file to drop | |
| business | No | Optional. The business this call is for, by name, e.g. "azquo" - it then runs there whatever business the session is in. Worth giving on writes when you work in more than one business: a new MCP session starts in the login's own business. list_businesses shows the names. | |
| database | Yes | Database to import into |