Ziwako Docs
ZiwakoRéférence APIProducts

Create Product Video Upload URL

POST
/products/video/upload-url

Creates a Cloudflare Stream direct upload URL for a product video. The client uploads the file directly to Cloudflare, then attaches it with PUT /products/{id}/video.

Authorization

X-API-Key<token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/products/video/upload-url" \  -H "Content-Type: application/json" \  -d '{    "proProfilId": "string"  }'
{  "type": "success",  "code": "string",  "status": 0,  "message": "string",  "data": {    "uploadURL": "string",    "uid": "string",    "maxDurationSeconds": 0,    "maxBytes": 0  }}