HemmeligOrg / Hemmelig.app

Keep your sensitive information out of chat logs, emails, and more with encrypted secrets.
https://hemmelig.app
MIT License
717 stars 62 forks source link

documentation for the API #272

Open 305trueit opened 9 months ago

305trueit commented 9 months ago

Description

Issue Description:

I'm having difficulty locating sufficient documentation for the API, particularly regarding the API. I'm interested in understanding if there's a method to invoke the web application from a script.

The payload, once encrypted, would resemble the following JSON structure:

{
  "text": "<encrypted text>",
  "files": [],
  "title": "<encrypted title>",
  "password": "",
  "ttl": 360,
  "allowedIp": "",
  "preventBurn": false,
  "maxViews": 1,
  "isPublic": false
}

I observed that the response includes a header with an ID, but I'm unsure about the URL to which to send the payload prior to encryption.

Any guidance on this matter would be greatly appreciated.

Screenshots

No response

Additional information

No response

bjarneo commented 9 months ago

https://github.com/HemmeligOrg/Hemmelig.app/blob/main/cli.js

bjarneo commented 1 month ago

Some docs here, but not reliable yet

https://hemmelig.app/api-docs