Skip to main content
POST
Upload a form attachment

Authorizations

API-Key
string
header
required

Your API key, from More → API & Integrations in the dashboard, or from ht signup / ht auth login.

Body

multipart/form-data
file
file
required

The file (required, not empty).

field
string

Name of the form field, echoed back.

filename
string

File name to store; defaults to the uploaded file's name, else "attachment".

bucketId
string
default:forms

Storage folder; characters other than A-Z a-z 0-9 . _ - become -.

Response

OK

data
object

The payload.

error
null
meta
object