Cloudron API Key
-
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.
-
Hi @andres-moya,
if you go tohttps://my.your.domain/#/profile
on your cloudron then you can create a token from there. -
@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/CloudronThanks very much for the help, anyway...
-
@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?