The gist
Fetches a single Attio note by its ID and returns a cleaned title plus the note content — used when you already know which note you want and need to pull it into a Zap for downstream processing (e.g. parsing, summarizing, or writing into a drive folder).
The flow
- Inputs —
ATTIO_TOKENandNOTE_ID, passed viainputData(Zapier "Run JavaScript" convention). - Validate inputs. Missing token or ID throws immediately so the Zap surfaces the failure instead of writing blanks.
- Authenticated GET to
/v2/notes/{NOTE_ID}with a Bearer token. - Error loud on failure. Any non-2xx response throws with status and body text so you can debug auth or missing-note issues quickly.
- Clean the title. Strips non-alphanumeric characters (except spaces) and trims — useful when note titles contain emojis or punctuation that break downstream file-naming or spreadsheet imports.
- Return
note_titleandnote_content. Content prefers plaintext and falls back to markdown. Two discrete fields make Zap mapping trivial.
Why this exists
Sometimes you don't need every note on a company — just the one you already know about. This is the lightweight counterpart to the bulk-notes snippet: one note in, two clean fields out.