Skip to content
Navigation

Send a post's video from the browser

Browser first: the extension sends the video it already downloaded (logged in, from the user's connection) instead of Mosio fetching it. Returns a presigned upload_url: PUT the bytes with headers, then call /video/complete. A post that already has its video answers with it and no URL. Like /study, the video becomes a reference: transcribed, cut into scenes, never footage or posted. Needs the videos:create permission.

POST
https://app.mosio.me/v1/discover/posts/{id}/video

Authorization

  • apiKeyAPI key in headerrequired

Path parameters

  • idstringrequired

Request bodyJSONrequired

  • content_typevideo/mp4orvideo/quicktimerequired
  • size_bytesintegerrequired
    maximum: 314572800

Returns

201

Where to send the bytes, or the video already there.

JSON
  • post_idstringrequired
  • media_idstringrequired
  • statusuploadingorimportingorreadyrequired
  • upload_urlstring | nullrequired
  • headersmap ofstringrequired

400

The request body is not valid JSON or does not match the schema.
JSON
  • errorunauthorizedorinvalid_api_keyorinsufficient_scopeorforbiddenorinvalid_inputorinvalid_composition+8 morerequired

    A stable error code.

  • messagestringrequired

    A message for people, in Indonesian.

  • detailsoptionalunknown

    More about the error, such as the fields to fix.

401

The API key is missing or not valid.
JSON
  • errorunauthorizedorinvalid_api_keyorinsufficient_scopeorforbiddenorinvalid_inputorinvalid_composition+8 morerequired

    A stable error code.

  • messagestringrequired

    A message for people, in Indonesian.

  • detailsoptionalunknown

    More about the error, such as the fields to fix.

404

No such video or file in this workspace.
JSON
  • errorunauthorizedorinvalid_api_keyorinsufficient_scopeorforbiddenorinvalid_inputorinvalid_composition+8 morerequired

    A stable error code.

  • messagestringrequired

    A message for people, in Indonesian.

  • detailsoptionalunknown

    More about the error, such as the fields to fix.

Type to search…

↑↓ navigate↵ selectEsc close