Skip to content
Browse all functions

Function for File Operations Demonstration

playground/hellofiles

hellofiles (Function for File Operations Demonstration) is a 1001fx API function in the group Playground: POST https://api.1001fx.com/playground/hellofiles, 0 credits per call. It works as a ready-made module in Make and n8n or as a plain HTTP call.

0 credits per callHTTP APIn8nMake

Returns the first given file. Playground function with file input and output to test files input and file retrieval. Charge is always 0. ApiKey is required.

Try it in the 1001fx app

Run hellofiles in your browser with your API key – fill the form, click Run and get the answer or the file.

hellofiles in the 1001fx app: the form with example values
Function for File Operations Demonstration in the 1001fx app

Endpoint

POSThttps://api.1001fx.com/playground/hellofiles
Header
X-API-KEY: YOURSECRETAPIKEY How to
Content type
multipart/form-data

Parameters

  • file1filerequired

    This file will be returned.

  • file2fileoptional

    This file will not be returned

Examples

First file

Sends first file back

Input

Expects one pdf file named as file parameter: files
{
  "files": [
    {
      "name": "pdf1.pdf",
      "type": "",
      "path": "testdata/pdf1.pdf"
    },
    {
      "name": "pdf2.pdf",
      "type": "",
      "path": "testdata/pdf2.pdf"
    }
  ]
}

Output · HTTP 200

Result is a single file.
{
  "statusCode": 200
}
Show curl command
curl -X POST 'https://api.1001fx.com/playground/hellofiles' \
  -H 'X-API-KEY: YOURSECRETAPIKEY' \
  -F 'file1=@pdf1.pdf' \
  -F 'file2=@pdf2.pdf'

Try hellofiles now

Run it in your browser or create a free account and get 100 credits every month.

Changelog

  • 1.0.006.01.2023created
Ask 1001fx