cURL
curl --request POST \ --url https://api.serial.io/files \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: multipart/form-data' \ --form file=@example-file
{ "name": "<string>", "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "updated_at": "2023-11-07T05:31:56Z", "created_at": "2023-11-07T05:31:56Z", "bucket_id": "<string>", "last_accessed_at": "2023-11-07T05:31:56Z", "metadata": { "eTag": "<string>", "size": 123, "mimetype": "<string>", "cacheControl": "<string>", "lastModified": "2023-11-07T05:31:56Z", "contentLength": "<string>", "httpStatusCode": 123 } }
Endpoint for direct uploading of files to Serial’s backend (includes both images & files). Be sure to include the file metadata if you want your file properly categorized (name, binary, & mimetype).
Show child attributes