capabilities.work

Upload, List, and Clean Up a File

A 3-step recipe with Anthropic. We can help you get access.

Recipe · 3 steps

Upload, List, and Clean Up a File

Upload a file, verify it is listed, then delete it.

  1. Upload a file to Anthropic's servers, sending the binary as multipart form data.
  2. List the files stored for the organization to confirm the freshly uploaded file is present.
  3. Delete the uploaded file to clean up storage now that its presence has been confirmed.
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-list-cleanup-file, 3 operations: upload_file_v1_files_post → list_files_v1_files_get → delete_file_v1_files__file_id__delete. Specs on APIs.io.