Retrieve and save memos from anywhere
With this RESTful API you can get existing memos and save new memos from anywhere. All cryptographic functions such as digital signing and encryption or decryption occur on the client, though. We have a JavaScript library available to assist you with these "client-side" actions here on Github (or npm)
endpoint | https://nanomemo.cc/api/memo/blocks |
request type | POST |
API Key Required | No |
description | Retrieves one or more memos from the server |
arguments |
|
response |
{ "dtg":"2021-04-17T02:23:43.060Z", "success":true, "data":{ "6E3FD6E599E580FF631AF81477DB72A766D0740F6D81A0DE68F69035CE71D5DD":{ "message":"This is an example of a non-encrypted message that is sent in a memo", "hash":"6E3FD6E599E580FF631AF81477DB72A766D0740F6D81A0DE68F69035CE71D5DD", "signature":"fa7c7ee72d7993cbf854585c1bbf305d6a75bfa55a87131aad3b3b1205d257944054fbfca96098a9a6eaa6b84a593f5d174f7696b90dd31b7bf7db8f20e22b0a", "version_sign":1, "dtg":"2021-04-15T21:06:23.490Z", "signing_address":"nano_1k1zfz85cj4p89wib9w74c6brepkkcmf4dp9mqb4pyfsndbjhbu1ch7i4gdx" }, "ABC123...":{ "message":"Another memo...", "hash":"ABC123...", "signature":"abc123...", "version_sign":1, "dtg":"2021-04-15T21:06:23.490Z", "signing_address":"nano_3abc..." } } } |
endpoint | https://nanomemo.cc/api/memo/new |
request type | POST |
API Key Required | No (However, API key will increase daily limits) |
description | Submits all required memo fields to be saved on the server. |
arguments |
|
response |
{ Sample error response:"dtg":"2021-04-17T02:23:43.060Z", "success":true, "credits_balance": 95, "data":{ "message":"This is an example of a non-encrypted message that is sent in a memo", "hash":"6E3FD6E599E580FF631AF81477DB72A766D0740F6D81A0DE68F69035CE71D5DD", "signature":"fa7c7ee72d7993cbf854585c1bbf305d6a75bfa55a87131aad3b3b1205d257944054fbfca96098a9a6eaa6b84a593f5d174f7696b90dd31b7bf7db8f20e22b0a", "version_sign":1, "dtg":"2021-04-15T21:06:23.490Z", "signing_address":"nano_1k1zfz85cj4p89wib9w74c6brepkkcmf4dp9mqb4pyfsndbjhbu1ch7i4gdx" } } { "dtg":"2021-04-17T02:23:43.060Z", "success":false, "error":"Sorry, you have zero remaining daily credits to create new memos." } |
endpoint | https://nanomemo.cc/api/user |
request type | POST |
API Key Required | Yes |
description | Retrieves user information to include credits available and daily credit refill quantity/countdown |
arguments |
|
response |
{ "dtg":"2021-04-17T02:23:43.060Z", "success":true, "data":{ "api_key":"ACB123...", "credits_balance":95, "daily_credits":100, "daily_seconds_remaining":43200, } } |
endpoint | wss://nanomemo.cc |
request type | WebSocket |
API Key Required | No |
description | Receive a WebSocket message for every new memo saved on NanoMemo |
messages to server |
|
messages from server |
|