Anthropic · Arazzo Workflow

Anthropic Upload, Verify, and Download a File

Version 1.0.0

Upload a file, read back its metadata, and download its content when it is downloadable.

1 workflow 1 source API 1 provider
View Spec View on GitHub Artificial IntelligenceClaudeFoundation ModelsLarge Language ModelsMachine-LearningMCPAgentsArazzoWorkflows

Provider

anthropic

Workflows

upload-verify-download-file
Upload a file, confirm its metadata, and download its content.
Creates a file, retrieves its metadata to confirm storage, and downloads the content when the file is marked downloadable.
3 steps inputs: apiKey, file outputs: content, fileId, mimeType
1
uploadFile
Upload a file to Anthropic's servers for later use, sending the binary as multipart form data.
2
verifyMetadata
Retrieve the stored file metadata to confirm the upload succeeded and inspect its mime type, size, and downloadable flag.
3
downloadContent
Download the raw content of the uploaded file now that it is confirmed downloadable.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Anthropic Upload, Verify, and Download a File
  summary: Upload a file, read back its metadata, and download its content when it is downloadable.
  description: >-
    A Files API round-trip. The workflow uploads a file via multipart form data,
    reads back the stored file metadata to confirm it landed, and branches on
    the downloadable flag to download the raw file content. Every step spells
    out its request inline — including the inline anthropic-version header the
    spec defines — so the flow can be read and executed without opening the
    underlying OpenAPI description.

    Adaptation note: the Messages API description in this repository does not
    define a document source that references an uploaded file_id (its
    DocumentSource only supports base64, text, url, and content), so this
    workflow exercises the file lifecycle directly rather than feeding the
    upload into a message.
  version: 1.0.0
sourceDescriptions:
- name: filesApi
  url: ../openapi/anthropic-files-api-openapi.yml
  type: openapi
workflows:
- workflowId: upload-verify-download-file
  summary: Upload a file, confirm its metadata, and download its content.
  description: >-
    Creates a file, retrieves its metadata to confirm storage, and downloads
    the content when the file is marked downloadable.
  inputs:
    type: object
    required:
    - apiKey
    - file
    properties:
      apiKey:
        type: string
        description: A valid Anthropic API key sent in the x-api-key header.
      file:
        type: string
        description: The binary file contents to upload as multipart form data.
  steps:
  - stepId: uploadFile
    description: >-
      Upload a file to Anthropic's servers for later use, sending the binary as
      multipart form data.
    operationId: upload_file_v1_files_post
    parameters:
    - name: x-api-key
      in: header
      value: $inputs.apiKey
    - name: anthropic-version
      in: header
      value: "2023-06-01"
    requestBody:
      contentType: multipart/form-data
      payload:
        file: $inputs.file
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      fileId: $response.body#/id
      filename: $response.body#/filename
      downloadable: $response.body#/downloadable
  - stepId: verifyMetadata
    description: >-
      Retrieve the stored file metadata to confirm the upload succeeded and
      inspect its mime type, size, and downloadable flag.
    operationId: get_file_metadata_v1_files__file_id__get
    parameters:
    - name: x-api-key
      in: header
      value: $inputs.apiKey
    - name: anthropic-version
      in: header
      value: "2023-06-01"
    - name: file_id
      in: path
      value: $steps.uploadFile.outputs.fileId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      mimeType: $response.body#/mime_type
      sizeBytes: $response.body#/size_bytes
      downloadable: $response.body#/downloadable
    onSuccess:
    - name: canDownload
      type: goto
      stepId: downloadContent
      criteria:
      - context: $response.body
        condition: $.downloadable == true
        type: jsonpath
    - name: notDownloadable
      type: end
      criteria:
      - context: $response.body
        condition: $.downloadable == false
        type: jsonpath
  - stepId: downloadContent
    description: >-
      Download the raw content of the uploaded file now that it is confirmed
      downloadable.
    operationId: download_file_v1_files__file_id__content_get
    parameters:
    - name: x-api-key
      in: header
      value: $inputs.apiKey
    - name: anthropic-version
      in: header
      value: "2023-06-01"
    - name: file_id
      in: path
      value: $steps.uploadFile.outputs.fileId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      content: $response.body
  outputs:
    fileId: $steps.uploadFile.outputs.fileId
    mimeType: $steps.verifyMetadata.outputs.mimeType
    content: $steps.downloadContent.outputs.content

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/anthropic-upload-verify-download-file-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.