Skip to main content
POST
/
interface
/
upload
Batch file upload
curl --request POST \
  --url https://powertokens.ai/api/interface/upload \
  --header 'Content-Type: multipart/form-data' \
  --form file='@example-file' \
  --form email= \
  --form login_style= \
  --form group_id=
{
  "code": 200,
  "data": {
    "task_id": "task_2605191840200001"
  },
  "msg": ""
}

Headers

Internal-Asset-Key
string

Body

multipart/form-data
file
file
required

Files (Images: JPEG, PNG, WebP, BMP, TIFF, GIF. <30MB. Aspect ratio 0.4-2.5. 300-6000px. Videos: MP4, MOV. 480p/720p. 2-15s. ≤50MB. 24-60fps. Audio: WAV, MP3. 2-15s. ≤15MB)

email
string
required

email

Example:

""

login_style
string
required

google,github

Example:

""

group_id
string
required

group ID

Example:

""

Response

200 - application/json
code
integer
required
data
object
required
msg
string
required