Add to Tana

Posted by jason, Last update over 1 year ago

Add entry to your Tana Inbox node.

To use:
* Create a node for entries to be added to. For example: I added one called Inbox on the root node.
* Open the node, then hit CMD+k and select Get API Token (Does not work in Firefox or Safari; use Chrome for this step). This will generate a token for this node only.
* Create a new draft and select this action. You will be prompted for the API key


  • script

    const credential = Credential.create(
      "\nPress cmd+k and select 'Get API Token' on your inbox node"
    if (!credential.authorize()) {
      alert("No API token provided or found.");
        "Tana API token not entered, or not found. Clear API token and try again if no prompt was provided."
    const content = encodeURI(draft.content);
    const url = `${content}`;
    const http = HTTP.create();
    const response = http.request({
      "url": url,
      "method": "GET",
      "headers": {
        "Authorization": `Bearer ${credential.getValue("token")}`,
        "Content-Type": "application/json",


  • After Success Default
    Notification Info
    Log Level Info
Items available in the Drafts Directory are uploaded by community members. Use appropriate caution reviewing downloaded items before use.