Create Hosted Webpage (Form Parameter API)
Request
Example:Bearer {{YOUR_API_KEY}}
Body Params multipart/form-data
Supports HTML or ZIP files, up to 20MB in size.
Returns the response type; if set to text, only the hosted webpage URL is returned.
Request samples
curl --location --request POST 'https://api.302.ai/302/webserve/upload' \
--header 'Authorization: Bearer sk-jls4AaVBGoe1GwZD64qZA1qyKTN1MPHa4NmvH1cT68z7K1Zz' \
--form 'file=@""' \
--form 'format="json"'
Responses
application/json {
"id": "string",
"url": "string"
}
Modified at 2025-04-17 03:46:35