Skip to content

SammCheese/InvisibleChat-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

InvisibleChat-API

Source code of the InvisibleChat API (currently hosted on repl.it, kept online with UptimeRobot)

API

https://invisiblechatapi.hubertmoszkarel.repl.co POST

Decryption request

{
  "type": "reveal",
  "password": "YOURPASSWORD", //The Password they used to encrypt
  "secret": "EncryptedMessage", // Someones Encrypted Message
}

Decryption response

{
  "response": "DecryptedMessage",
  "url": "First Url in the message if there is one"
}

Encryption request

{
  "type": "hide",
  "password": "YOURPASSWORD", // Password the other person has to use to decrypt
  "secret": "EncryptedMessage", // The Message you want to Encrypt
  "cover": "Cover Message" // The Message other people will see
}

Encryption response

{
  "response": "encryptedMessage" // Message containing your encrypted message
}

Error Response

{
  "response": "ERRORMESSAGE"
}

invisiblechatapi.hubertmoszkarel.repl.co/stats GET

{
  "api_calls": 0, // Calls Made so far
  "encryption_calls": 0, // Calls for encryption so far
  "decryption_calls": 0, // Calls for decryption so far
  "urls_found": 0, // Times image urls have been found so far
  "api_errors": 0 // Amount Errored Calls so far
}

https://invisiblechatapi.hubertmoszkarel.repl.co/keepalive GET

(Only used to keep the server alive with UptimeRobot)

Alive