Cloud Flare API (Stream)

Doc

https://developers.cloudflare.com/stream/uploading-videos/direct-creator-uploads

cURL Example:

curl -X POST https://api.cloudflare.com/client/v4/accounts/{Accont iD}}/stream/direct_upload
	 -H "Content-Type: application/json" 
     -H "Authorization: Bearer {API Token}" 
     -d "{\"maxDurationSeconds\":3600}"

Official Example

curl \
-H "Authorization: Bearer token" \
https://api.cloudflare.com/client/v4/accounts/acc/stream/uid

Note:

Don’t use Postman to test. It will return 400 Bad Request always.

Online Test Tool

https://reqbin.com/req/c-dwjszac0/curl-post-json-example