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