Create a new file
Required Scopes
- files.read-write
Request
- application/json
Body
Lifecycle status: awaiting_upload | uploaded | active | infected
Human-readable label for the file
MIME type supplied by the client at create time
S3 endpoint URL — POST your multipart form here to upload the file. Present only in the create response.
Required form fields to include in the multipart POST to S3 alongside the file binary
url_data object
S3 URL where the file is accessible after upload
CDN URL for previewing the uploaded file after upload completes
Responses
- 200
- application/json
- Schema
- Example (from schema)
Schema
Opaque identifier for this file
Lifecycle status: awaiting_upload | uploaded | active | infected
Human-readable label for the file
MIME type supplied by the client at create time
S3 endpoint URL — POST your multipart form here to upload the file. Present only in the create response.
Required form fields to include in the multipart POST to S3 alongside the file binary
url_data object
S3 URL where the file is accessible after upload
CDN URL for previewing the uploaded file after upload completes
{
"id": "string",
"status": "string",
"display_name": "string",
"content_type": "string",
"upload_url": "string",
"upload_fields": {},
"url_data": {
"s3_url": "string",
"preview_url": "string"
}
}