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
  • 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 | Demo | Docs | Install
  1. Cloudron Forum
  2. Feature Requests
  3. Cloudron API Key

Cloudron API Key

Scheduled Pinned Locked Moved Solved Feature Requests
api
5 Posts 4 Posters 1.4k Views 4 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.
  • andres.moyaA Offline
    andres.moyaA Offline
    andres.moya
    wrote on last edited by girish
    #1

    To use the Cloudron API, currently you must give a token that is obtained vi a call to the login endpoint.

    This means that, if you want to make a script that calls this API in an automatic way, you must store somewhere the actual password of a real Cloudron user in plain text.

    I wish it were possible to create an application API Key from some place in the cloudron panel, and use it to authenticate calls, as it's done in many other similar APIs.

    fbartelsF 1 Reply Last reply
    0
    • andres.moyaA andres.moya

      To use the Cloudron API, currently you must give a token that is obtained vi a call to the login endpoint.

      This means that, if you want to make a script that calls this API in an automatic way, you must store somewhere the actual password of a real Cloudron user in plain text.

      I wish it were possible to create an application API Key from some place in the cloudron panel, and use it to authenticate calls, as it's done in many other similar APIs.

      fbartelsF Offline
      fbartelsF Offline
      fbartels
      App Dev
      wrote on last edited by fbartels
      #2

      Hi @andres-moya,
      if you go to https://my.your.domain/#/profile on your cloudron then you can create a token from there.

      andres.moyaA 1 Reply Last reply
      2
      • fbartelsF fbartels

        Hi @andres-moya,
        if you go to https://my.your.domain/#/profile on your cloudron then you can create a token from there.

        andres.moyaA Offline
        andres.moyaA Offline
        andres.moya
        wrote on last edited by andres.moya
        #3

        @fbartels 😮 it's true! didn't see it 😅

        Perhaps it will be good to mention it in the API docs:
        https://docs.cloudron.io/api.html#tag/Cloudron

        Thanks very much for the help, anyway...

        BrutalBirdieB 1 Reply Last reply
        0
        • andres.moyaA andres.moya

          @fbartels 😮 it's true! didn't see it 😅

          Perhaps it will be good to mention it in the API docs:
          https://docs.cloudron.io/api.html#tag/Cloudron

          Thanks very much for the help, anyway...

          BrutalBirdieB Offline
          BrutalBirdieB Offline
          BrutalBirdie
          Partner
          wrote on last edited by
          #4

          @andres-moya The api doc is also kinda outdated 😕

          For example I wanted to Update some apps via API.
          Nothing mentioned about that in the API doc.
          But if you can read code, you can find the functions.

          https://git.cloudron.io/cloudron/cloudron-cli/-/blob/master/src/actions.js#L750

           url = `https://${adminFqdn}/api/v1/apps/${app.id}/update?access_token=${token}`;
          

          By the way @staff is it possible as a community contributor to update the API Doc with a PR?

          Like my work? Consider donating a drink. Cheers!

          1 Reply Last reply
          1
          • girishG Offline
            girishG Offline
            girish
            Staff
            wrote on last edited by
            #5

            I have added it to https://docs.cloudron.io/profile/#api-tokens for a start. The API page is a bit outdated and will take more time to freshen up.

            1 Reply Last reply
            2
            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