POST
/
v1
curl --request POST \
  --url https://api.sharefast.me/v1 \
  --header 'Content-Type: multipart/form-data' \
  --form 'files=[
  "<string>"
]' \
  --form password=password123 \
  --form characters=2 \
  --form expires=1m \
  --form caseSensitive=true \
  --form customUrl=hello \
  --form adminKey=admin123
{
  "url": "https://shfst.me/hello",
  "files": [
    {
      "id": "AAAA-BBBB-CCCC-DDDD",
      "name": "file.txt",
      "size": 123456,
      "type": "text/plain",
      "url": "https://cdn.sharefast.me/abc123/file.txt"
    }
  ],
  "expires_at": "2021-01-01T00:00:00.000Z"
}

Body

multipart/form-data
files
string[]

The files to upload.

password
string

The password to protect the link.

characters
enum<integer>

The number of characters to use in the link.

  • 2 Characters (Up to 24 Hours)
  • 3 Characters (Up to 24 Hours)
  • 4 Characters (Up to 7 Days)
  • 5 Characters (Up to 30 Days)
  • 6 Characters (Up to 30 Days)
Available options:
2,
3,
4,
5,
6
expires
enum<string>

The time until the link expires.

  • 2 Characters: 1 Minute, 10 Minutes, 1 Hour, 12 Hours, 24 Hours
  • 3 Characters: 1 Minute, 10 Minutes, 1 Hour, 12 Hours, 24 Hours
  • 4 Characters: 1 Minute, 10 Minutes, 1 Hour, 12 Hours, 24 Hours, 3 Days, 7 Days
  • 5 Characters: 1 Minute, 10 Minutes, 1 Hour, 12 Hours, 24 Hours, 3 Days, 7 Days, 12 Days, 30 Days
  • 6 Characters: 1 Minute, 10 Minutes, 1 Hour, 12 Hours, 24 Hours, 3 Days, 7 Days, 12 Days, 30 Days
Available options:
1m,
10m,
1h,
12h,
24h,
3d,
7d,
12d,
30d
caseSensitive
boolean

Whether or not the link is case sensitive.

customUrl
string

Use a custom URL for the link instead of a random one.

adminKey
string

The admin key can be used to manage the files after upload.

Response

200 - application/json
url
string

The URL of the uploaded files.

files
object[]

The uploaded files.

expires_at
string

The time the link expires.

Was this page helpful?