Load a CSV or TSV file into the current project's editable BigQuery catalog
Load a CSV or TSV file into the project's editable BigQuery catalog.
The file can be provided by a public HTTP(S) URL or Base64 content.
The first line is skipped as a header unless has_header is false.
For a local file, upload it at https://app.botify.com/:organization/:project/o/storage/tmp and pass the returned URL as source_url.
A temporary upload may hold up to 5 GiB once decompressed; other URLs and Base64 content are limited to 15 MB.
CSV/TSV files may be gzip compressed.
The operation fails when the destination table exists unless replace_existing is explicitly enabled.
Playground
Log inLog in to try this tool. The request uses your session.
POST
item
table_namerequired
Destination table name in the editable catalog; must not match a managed table family
table_description
Optional BigQuery table description
source_url
HTTP(S) URL of the source file. Temporary uploaded URLs on https://app.botify.com/:organization/:project/o/storage/tmp are allowed.
content_base64
Base64-encoded file content. Prefer source_url for large files.
format
Delimited input format, or auto-detect from the filename
columns
Optional explicit BigQuery schema. When omitted, BigQuery infers the schema from the file header and rows.
replace_existing
Replace an existing table. Disabled by default to prevent unintentional data loss.
has_header
Whether the first line is a header, skipped when loading. Set it to false to load every line as a row, so that a file with no header keeps its first row.
Credits
Fixed cost per item requested. Loading a file reads no existing data, so no data-scanned charge applies.
These usage SKUs can be charged on a call.
SKU
Credits
Description
Tool call
1 per request
Charged once per successful item.
Schemas
item is what you send, config how the tool behaves,
and the response is what you get back.
Item
object
Properties
table_namestringrequired
Destination table name in the editable catalog; must not match a managed table family
pattern "^[A-Za-z_][A-Za-z0-9_]{0,1023}$"
table_descriptionstring | null
Optional BigQuery table description
Default: null
source_urlstring | null
HTTP(S) URL of the source file. Temporary uploaded URLs on https://app.botify.com/:organization/:project/o/storage/tmp are allowed.
Default: null
content_base64string | null
Base64-encoded file content. Prefer source_url for large files.
Default: null
formatDelimitedFormat
Delimited input format, or auto-detect from the filename
Replace an existing table. Disabled by default to prevent unintentional data loss.
Default: false
has_headerboolean
Whether the first line is a header, skipped when loading. Set it to false to load every line as a row, so that a file with no header keeps its first row.