API

Create note



Request
  • HTTP Method: POST
  • Content Type: application/json
  • URL: https://cryptonote.pro/api/notes
curl -X "POST" "https://cryptonote.pro/api/notes" \
     -H 'Content-Type: application/json' \
     -d $'{
      "content": "Lorem ipsum dolor sit amet, consectetur adipiscing elit",
      "type": "1",
      "limit_views": "1"
    }'
Parameter Type Description Required
content string ✓
type integer Type of destroy
1 - After reading
2 - 1 hour from now
3 - 24 hours from now
4 - 1 weak from now
5 - 1 month from now
✓
limit_views integer Number on views before destroy ✓*
password string User password for double encryption with custom password
password_confirmation string Password confirmation ✓*
destroy_without_confirmation boolean Don’t ask for confirmation before showing and destroying the note.

Response

Keep the complete returned link. It contains the note secret and is returned only at creation. Do not log or store it with a database export. Losing the link prevents recovery of the note.

{
  "id": "4165a344-44b2-44a9-b6b2-72e589436161",
  "created_at": "2022-07-01T21:38:17.000000Z",
  "link": "https:\/\/cryptonote.pro/n/xlojgkMnAfeI/EXAMPLE_SECRET_REPLACE_WITH_RETURNED_VALUE",
  "type": 1,
  "limit_views": 1,
  "with_password": false,
  "destroy_without_confirmation": false,
  "expired": null
}