API: Creating Thoughts

How to add thoughts to Napkin from anywhere with our API.

Fabian avatar
Written by Fabian
Updated over a week ago

You like tinkering and maybe already have a savant teddy bear at your bedside that listens to all those ideas that pop up before you fall to sleep? You can now connect it directly to Napkin and add those ideas to your swarm of thoughts.

Here's how:

  1. Open Napkin and go to your account area

  2. In the "API" area, add a new token

  3. Send thoughts to the API

  4. Get the thought url in the API response

Please mind: the API is for applications that send single thoughts to your account. You can't really use it to import archives of notes as it'll run into timeouts.

Sample call:

curl https://app.napkin.one/api/createThought \
-H 'Accept:application/json' \
-H 'Content-Type: application/json' -d '{
"email": "leonardo@davinci.it",
"token": "macchina-dettatura-ec1air8wcr",
"thought": "The natural desire of good men is knowledge.",
"sourceUrl": "https://thevisualagency.com/works/decoding-leonardo-da-vinci-for-the-world/"

Sample response:


Did this answer your question?