Skip to content
Navigation

Keep a social video to study

A public TikTok, Instagram, YouTube, X or Facebook post's video, fetched by a worker into Media as a reference. The same link again returns the same file. Other sites are refused (422 reference_link_unsupported). Needs the videos:create permission.

POST
https://app.mosio.me/v1/media/links

Authorization

  • apiKeyAPI key in headerrequired

Request bodyJSONrequired

  • urlstringrequired
    maxLength: 2000 · minLength: 1

Returns

202

The reference, pending until fetched.

JSON
  • idstringrequired
  • filenamestringrequired
  • content_typestringrequired
  • kindimageorvideooraudiorequired
  • size_bytesnumberrequired
  • statuspendingorreadyrequired
  • urlstring | nullrequired
  • editrequired

    One of the following:

    • object
    • null
  • rolemediaorreferencerequired
  • source_urlstring | nullrequired
  • created_atstringrequired

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.

Type to search…

↑↓ navigate↵ selectEsc close