Anthropic UploadFile

Anthropic UploadFile

Certified

Upload a file to Anthropic

Uploads a file from Kestra internal storage to the Anthropic Files API using the beta Files endpoint.

yaml
type: io.kestra.plugin.anthropic.UploadFile

Upload a text file

yaml
    id: anthropic_upload_file
    namespace: company.team

    tasks:
      - id: upload
        type: io.kestra.plugin.anthropic.UploadFile
        apiKey: "{{ secret('ANTHROPIC_API_KEY') }}"
        filePath: "{{ outputs.create_file.uri }}"
        mimeType: "text/plain"
Properties

Anthropic API Key

File path

Kestra internal storage URI (for example, from a previous task output).

MIME type

Content type to send with the file (e.g., text/plain, image/png, application/pdf).

Filename override

Optional filename to send to Anthropic. If unset, the Kestra storage filename is used.

Reference (ref) of the pluginDefaults to apply to this task.

File ID

Identifier of the uploaded file.

Filename

Filename assigned by Anthropic.

Size

File size in bytes.