Request body for create_file. Notes: - filename is optional (server can auto-generate). - ttl_min controls the signed URL lifetime. - expected_hash and expected_size_bytes are the client's pre-commitment for the object it is about to upload; confirm refuses to record the manifest hash unless the stored bytes agree with both. They bring the single-file route to parity with the batch route, which already accepted expected_hash. - upload_mode selects the data plane: "put" (default) returns the single signed PUT URL; "resumable" additionally returns a resumable_upload block for large objects (provider must support it; GCS does). See file_ops.create_file.
AI AgentsInfrastructureAutonomousArtificial IntelligenceStorage
Properties
Name
Type
Description
filename
object
content_type
object
ttl_min
object
expected_hash
object
Optional sha256 precommit hash (with or without 'sha256:' prefix)
expected_size_bytes
object
Optional declared object size in bytes; confirm verifies it
upload_mode
object
Data plane: 'put' (default, single signed PUT) or 'resumable'
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.