Upload, Verify, and Download a File
A 3-step recipe with Anthropic. We can help you get access.
Recipe · 3 steps
Upload, Verify, and Download a File
with Anthropic
Upload a file, confirm its metadata, and download its content.
- Upload a file to Anthropic's servers for later use, sending the binary as multipart form data.
- Retrieve the stored file metadata to confirm the upload succeeded and inspect its mime type, size, and downloadable flag.
- Download the raw content of the uploaded file now that it is confirmed downloadable.
What you'll need to have ready
- apiKey: A valid Anthropic API key sent in the x-api-key header.
- file: The binary file contents to upload as multipart form data.
For your developer
Arazzo workflow anthropic:upload-verify-download-file, 3 operations: upload_file_v1_files_post → get_file_metadata_v1_files__file_id__get → download_file_v1_files__file_id__content_get. Specs on APIs.io.