Stream direct_upload bad request issue

curl -X POST “***/stream/direct_upload” -H “X-Auth-Email: *****” -H “X-Auth-Key: *****” -H “Content-Type: application/json” --data ‘{“maxDurationSeconds”:300,“expiry”:“2021-01-02T02:20:00Z”,“thumbnailTimestampPct”:0.529241,“allowedOrigins”:[“”],“requireSignedURLs”:true,“watermark”:{“uid”:“first video”}}’

Response -
“result”: null,
“success”: false,
“errors”: [
“code”: 10005,
“message”: “Bad Request”
“messages”: null

Can you pls guide me the issue ? I am using global API key and my account email.


I just ran a request like this and it worked:

curl -X POST --data '{"maxDurationSeconds": 3600,"expiry": "2021-01-14T23:20:00Z","requireSignedURLs": true}' -H "X-Auth-Key: xxx" -H "X-Auth-Email: [email protected]"
  "result": {
    "uploadURL": "",
    "uid": "9deb94ef868a4f088116e43309507ac6",
    "watermark": null
  "success": true,
  "errors": [],
  "messages": []

Could it be because you are trying to use a watermark with UID “first video”, which is not a valid UID for a watermark?