Skip to main content
Files are workbook-level — you upload them to the migration, not to a specific template; the generate run reads whatever’s been uploaded. Uploading is a two-step handshake: ask for a signed URL, then PUT the bytes straight to storage. If you upload two files with the same name, both are kept and listed, but a run reads only the newest of them — re-uploading a corrected contacts.csv replaces the old one for the next generate. {migration_id} is the id from creating a migration.

Authentication

Requires an x-api-key header. See Authentication.

Mint signed upload URLs

Request one entry per file, declaring its name (and, ideally, content type):
object[]
required
A non-empty array of files to upload, at most 25 per request. Each entry is { "name": "contacts.csv", "content_type": "text/csv", "size": 184320 }. name is required; content_type is optional but recommended.For more than 25, call this repeatedly — a migration may hold up to 400 files, of which at most 5 may be documents (PDF, Word or image files). See File limits.
integer
Optional size in bytes. When you send it, it counts toward your account’s 50 GB storage limit up front, so an upload that would go over is refused with 413 before any URL is minted. Without it, the request is refused only once the account is already at the limit.

Accepted file types

The file type is read from the name’s extension. One unsupported name rejects the whole batch with 400 and no URLs are minted, so retry without it.
Document extraction is currently unavailable. Until it’s switched back on, documents (PDF, Word and image files) are refused with 503 and code: "DOCUMENT_EXTRACTION_DISABLED", naming the refused files, and documents inside a ZIP are dropped and listed as skipped. Spreadsheets, CSVs, SQL dumps and XML work as normal.
201 Created — one signed upload per requested file:
string
The display name you requested, preserved for the round trip.
string
Where the object will land in storage once uploaded.
string
The single-use URL to PUT the file’s bytes to. The upload token is embedded in the URL.
string
The raw upload token, if you prefer a storage SDK’s uploadToSignedUrl helper over a plain PUT.
object
Everything needed for a chunked, resumable upload (the TUS protocol) instead of one PUT — better for large files and flaky connections. Point a TUS client (e.g. tus-js-client) at endpoint, send x_signature in the x-signature header, use chunk_size-byte chunks (6 MB), and set the upload metadata to { bucketName: bucket, objectName: object_name, contentType }. The object lands at the same storage_path either way.

Upload the bytes

PUT each file’s raw bytes to its signed_url, with a Content-Type matching what you declared:
Once your files are up, start a generate run.

List uploaded files

Lists the customer-uploaded files for the migration — useful to confirm an upload landed before generating.

Errors

Next

  • Start a run — generate a preview from the uploaded files.
  • Poll a run — track the run to completion.