POST
/
v1
/
channels
/
{channelID}
/
resumable-uploads
Create resumable media upload session
curl --request POST \
  --url https://api.wazapin.com/v1/channels/{channelID}/resumable-uploads \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "file_length": 2,
  "file_type": "<string>"
}
'
{
  "data": {
    "upload_session_id": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Session token or API key

Path Parameters

channelID
string
required

Channel ID

Body

application/json
file_length
integer<int64>
required

File size in bytes

Required range: x >= 1
file_type
string
required

MIME type of the file

Minimum string length: 1

Response

Created

data
object
required