Skip to main content
POST
File upload

Headers

X-API-KEY
string
required

API key assigned by Waffo. The key must be allowed to call the business API that matches meta.purpose

X-SIGNATURE
string
required

Signature of the meta string: sign its UTF-8 bytes with your RSA private key using SHA256withRSA, then Base64-encode the result. Same key pair and algorithm as the other APIs

Body

multipart/form-data

multipart/form-data request of the File upload API

meta
object
required

File metadata as a JSON string. X-SIGNATURE is computed over this string, so send it exactly as signed

file
file
required

The binary data of the file. Allowed formats and maximum size depend on meta.purpose

Response

200 - */*

OK

response data

code
string
Example:

0

msg
string
Example:

"success"

data
object

File upload response