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 anx-api-key header. See Authentication.
Mint signed upload URLs
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.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 with400 and no URLs are minted, so retry without it.
201 Created — one signed upload per requested file:
The raw upload token, if you prefer a storage SDK’s
uploadToSignedUrl helper
over a plain PUT.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:
generate run.
List uploaded files
Errors
Next
- Start a run — generate a preview from the uploaded files.
- Poll a run — track the run to completion.