Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps - Status | Demo | Docs | Install
  1. Cloudron Forum
  2. MiroTalk
  3. Enabling the MiroTalk meetings API (success!)

Enabling the MiroTalk meetings API (success!)

Scheduled Pinned Locked Moved MiroTalk
guides
2 Posts 2 Posters 276 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • canadaduaneC Offline
    canadaduaneC Offline
    canadaduane
    App Dev
    wrote on last edited by canadaduane
    #1

    In case this is useful to anyone else:

    I wanted to gain access to the full meetings and token APIs at my-server.com/api/v1/docs/:

    9f0b4e5d-b62e-4a55-be88-9b62a224918c-image.png

    Since I was able to access the page above, it looked at first like everything was already set and ready to go!

    However, I soon learned that this was not the case:

    {"error":"This endpoint has been disabled. Please contact the administrator for further information."}

    This made me think that I needed to use the secret in /app/data/api_secret to access the API. But it didn't work (same error message as above).

    It turns out I needed to add the following to the /app/data/env file:

    API_ALLOW_MEETINGS=true
    API_ALLOW_TOKEN=true

    Once I restarted the server, I was rewarded with a new error!

    {"error":"Unauthorized!"}

    This unauthorized error shows up because, I believe, the /app/data/api_secret is not used for the meetings or token APIs. You need to ALSO add the following to your /app/data/env file:

    API_KEY_SECRET=yourVerySpecialSecret

    Finally, you can click the Authorize button in the swagger / MiroTalk SFU API page (shown above), and add yourVerySpecialSecret to the input box there. After that, you have access to your own MiroTalk SFU API!

    Update to add: You can find a complete list of possible env settings here:

    https://github.com/miroslavpejic85/mirotalksfu/blob/main/.env.template

    1 Reply Last reply
    7
    • MiroTalkM Offline
      MiroTalkM Offline
      MiroTalk
      App Maintainer
      wrote on last edited by
      #2

      Thank you, @canadaduane for the great analysis! πŸ˜‰

      In case it’s helpful, here are some examples of API usage in different languages:

      • JavaScript
      • PHP
      • Python
      • Bash

      You can find full working examples here:
      https://docs.mirotalk.com/mirotalk-sfu/api/

      1 Reply Last reply
      5

      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

      With your input, this post could be even better πŸ’—

      Register Login
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Bookmarks
      • Search