[{"data":1,"prerenderedAt":445,"buildId":446},["ShallowReactive",2],{"developers:\u002Fdevelopers\u002Fn8n":3},{"doc":4,"lang":224,"nav":234,"alternatePath":389,"policy":390,"specVersion":434,"reference":7,"layout":435,"toc":436,"prev":442,"next":443,"operations":444,"overview":7,"heroExample":7},{"id":5,"title":6,"apiTag":7,"body":8,"description":221,"draft":222,"extension":223,"lang":224,"meta":225,"navTitle":7,"navigation":226,"order":227,"path":228,"rawbody":229,"section":230,"seo":231,"stem":232,"translationKey":6,"version":7,"__hash__":233},"developers_en\u002Fdevelopers\u002Fn8n.md","n8n",null,{"type":9,"value":10,"toc":212},"minimark",[11,16,38,51,55,90,93,97,108,118,130,158,173,177,184,190,194],[12,13,15],"h2",{"id":14},"install-on-self-hosted-n8n","Install on self-hosted n8n",[17,18,19,20,24,25,29,30,37],"p",{},"In n8n, open ",[21,22,23],"strong",{},"Settings → Community nodes → Install"," and enter ",[26,27,28],"code",{},"n8n-nodes-totem-studio",". Your n8n host needs Node.js 24.18.0 or a newer Node.js 24 release and must allow community packages. ",[31,32,36],"a",{"href":33,"rel":34},"https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002Fn8n-nodes-totem-studio",[35],"nofollow","The published package on npm"," lists the current version and its supported operations.",[17,39,40,41,44,45,50],{},"Version ",[21,42,43],{},"0.13.0"," on npm includes the Totem Studio action node, with CRM reads and writes, calls and bookings reads, notifications and the changes feed. The expanded action set and Events polling trigger are prepared in the ",[31,46,49],{"href":47,"rel":48},"https:\u002F\u002Fgithub.com\u002Ftotem-studio\u002Fn8n-nodes-totem-studio",[35],"official repository"," for 1.0.0. Publication of that version on npm and verification for the n8n Cloud catalogue are pending.",[12,52,54],{"id":53},"one-saved-credential","One saved credential",[56,57,58,68,83],"ol",{},[59,60,61,62,67],"li",{},"Create an integration key in ",[31,63,66],{"href":64,"rel":65},"https:\u002F\u002Fapp.totemstudio.ai\u002Fsettings?tab=developers",[35],"Settings → Totem API",". Choose the read or CRM write permissions your workflow needs. Note contents and inbound intake require separate grants.",[59,69,70,71,74,75,78,79,82],{},"In n8n, create a ",[21,72,73],{},"Totem Studio Public API"," credential and enter the ",[26,76,77],{},"tsk_live_…"," key. Its connection test calls ",[26,80,81],{},"GET \u002Fv1\u002Fme",".",[59,84,85,86,89],{},"Add ",[21,87,88],{},"Totem Studio",", choose a resource\u002Foperation and, for team-scoped operations, an authorized workspace.",[17,91,92],{},"Select the same saved credential on every node sharing that integration. Updating that credential updates its references, without putting keys in workflow JSON, fields or URLs. The node uses the fixed public API origin; internal Totem runtime credentials are not public API keys.",[12,94,96],{"id":95},"crm-writes","CRM writes",[17,98,99,100,103,104,107],{},"The ",[21,101,102],{},"Fields (JSON)"," input accepts documented API fields. For ",[21,105,106],{},"Create or Resolve",", an inert import can use:",[109,110,116],"pre",{"className":111,"code":113,"language":114,"meta":115},[112],"language-json","{\"origin\":\"import\",\"email\":\"alex.rivera@example.com\",\"external_id\":\"crm-contact-001\"}\n","json","",[26,117,113],{"__ignoreMap":115},[17,119,120,121,124,125,129],{},"Existing upserts fill missing identities and preserve human values. Resolve first and then use ",[21,122,123],{},"Update"," with the current ETag to change pipeline fields, tags or other existing values. ",[31,126,128],{"href":127},"\u002Fdevelopers\u002Fcrm-writes","CRM writes and notes"," defines the exact contract. Imports cannot activate outreach.",[17,131,132,134,135,134,138,141,142,145,146,149,150,153,154,157],{},[21,133,123],{},", ",[21,136,137],{},"Archive",[21,139,140],{},"Update Note"," and ",[21,143,144],{},"Delete Note"," require ",[21,147,148],{},"If-Match",". Copy the response ",[26,151,152],{},"etag"," including its quotes. Lead and note validators are distinct. Review a ",[26,155,156],{},"412"," conflict against the newest resource before making a new logical change.",[17,159,160,161,164,165,168,169,172],{},"The node generates an idempotency key per execution item and retains it for identical retries. Its result includes ",[26,162,163],{},"idempotencyKey",". To resume the same write in a different execution, provide the original ",[21,166,167],{},"Idempotency Key",", identical fields and original If-Match. ",[26,170,171],{},"outcome_unknown"," stops blind automatic repetitions; reconcile first. Notes write receipts contain metadata only; note reads and note feed items require the explicit content grant.",[12,174,176],{"id":175},"follow-queued-actions-and-events-in-the-prepared-100-release","Follow queued actions and events in the prepared 1.0.0 release",[17,178,179,180,183],{},"An asynchronous action returns its operation ID and actual state. Read that same operation to observe completion or request cancellation where supported; never submit the action again to poll it. ",[21,181,182],{},"Wait for Completion"," is an explicit option, off by default, with a bounded wait; reaching its deadline returns the latest known state. A pending answer is not completed work.",[17,185,186,187,189],{},"The Events trigger polls supported business events using the same saved key and its event permission. Deduplicate event IDs and read current resources when needed; events are separate from the full CRM changes feed. If a write returns ",[26,188,171],{},", keep its original operation and idempotency details for reconciliation.",[12,191,193],{"id":192},"keep-a-copy-in-sync","Keep a copy in sync",[17,195,196,197,134,200,141,203,206,207,211],{},"Lists and the changes feed return one page with ",[26,198,199],{},"data",[26,201,202],{},"has_more",[26,204,205],{},"next_cursor",". Apply each page durably before saving the next cursor. Continue with the same operation and workspace; a full resync uses the ",[31,208,210],{"href":209},"\u002Fdevelopers\u002Fsync","sync guide",", including removals and version checks. The node does not replace your storage or retention policy.",{"title":115,"searchDepth":213,"depth":213,"links":214},3,[215,217,218,219,220],{"id":14,"depth":216,"text":15},2,{"id":53,"depth":216,"text":54},{"id":95,"depth":216,"text":96},{"id":175,"depth":216,"text":176},{"id":192,"depth":216,"text":193},"Connect a self-hosted n8n workflow to the Totem API with the public Totem Studio node and a saved API credential.",false,"md","en",{},true,"23","\u002Fdevelopers\u002Fn8n","---\ntitle: n8n\ndescription: Connect a self-hosted n8n workflow to the Totem API with the public Totem Studio node and a saved API credential.\nsection: guides\norder: 23\ntranslationKey: n8n\nlang: en\ndraft: false\n---\n\n## Install on self-hosted n8n\n\nIn n8n, open **Settings → Community nodes → Install** and enter `n8n-nodes-totem-studio`. Your n8n host needs Node.js 24.18.0 or a newer Node.js 24 release and must allow community packages. [The published package on npm](https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002Fn8n-nodes-totem-studio) lists the current version and its supported operations.\n\nVersion **0.13.0** on npm includes the Totem Studio action node, with CRM reads and writes, calls and bookings reads, notifications and the changes feed. The expanded action set and Events polling trigger are prepared in the [official repository](https:\u002F\u002Fgithub.com\u002Ftotem-studio\u002Fn8n-nodes-totem-studio) for 1.0.0. Publication of that version on npm and verification for the n8n Cloud catalogue are pending.\n\n## One saved credential\n\n1. Create an integration key in [Settings → Totem API](https:\u002F\u002Fapp.totemstudio.ai\u002Fsettings?tab=developers). Choose the read or CRM write permissions your workflow needs. Note contents and inbound intake require separate grants.\n2. In n8n, create a **Totem Studio Public API** credential and enter the `tsk_live_…` key. Its connection test calls `GET \u002Fv1\u002Fme`.\n3. Add **Totem Studio**, choose a resource\u002Foperation and, for team-scoped operations, an authorized workspace.\n\nSelect the same saved credential on every node sharing that integration. Updating that credential updates its references, without putting keys in workflow JSON, fields or URLs. The node uses the fixed public API origin; internal Totem runtime credentials are not public API keys.\n\n## CRM writes\n\nThe **Fields (JSON)** input accepts documented API fields. For **Create or Resolve**, an inert import can use:\n\n```json\n{\"origin\":\"import\",\"email\":\"alex.rivera@example.com\",\"external_id\":\"crm-contact-001\"}\n```\n\nExisting upserts fill missing identities and preserve human values. Resolve first and then use **Update** with the current ETag to change pipeline fields, tags or other existing values. [CRM writes and notes](\u002Fdevelopers\u002Fcrm-writes) defines the exact contract. Imports cannot activate outreach.\n\n**Update**, **Archive**, **Update Note** and **Delete Note** require **If-Match**. Copy the response `etag` including its quotes. Lead and note validators are distinct. Review a `412` conflict against the newest resource before making a new logical change.\n\nThe node generates an idempotency key per execution item and retains it for identical retries. Its result includes `idempotencyKey`. To resume the same write in a different execution, provide the original **Idempotency Key**, identical fields and original If-Match. `outcome_unknown` stops blind automatic repetitions; reconcile first. Notes write receipts contain metadata only; note reads and note feed items require the explicit content grant.\n\n## Follow queued actions and events in the prepared 1.0.0 release\n\nAn asynchronous action returns its operation ID and actual state. Read that same operation to observe completion or request cancellation where supported; never submit the action again to poll it. **Wait for Completion** is an explicit option, off by default, with a bounded wait; reaching its deadline returns the latest known state. A pending answer is not completed work.\n\nThe Events trigger polls supported business events using the same saved key and its event permission. Deduplicate event IDs and read current resources when needed; events are separate from the full CRM changes feed. If a write returns `outcome_unknown`, keep its original operation and idempotency details for reconciliation.\n\n## Keep a copy in sync\n\nLists and the changes feed return one page with `data`, `has_more` and `next_cursor`. Apply each page durably before saving the next cursor. Continue with the same operation and workspace; a full resync uses the [sync guide](\u002Fdevelopers\u002Fsync), including removals and version checks. The node does not replace your storage or retention policy.\n","guides",{"title":6,"description":221},"developers\u002Fn8n","Bl5OCKi2KTYvUVaJMPR9rbiAyRniQlq-GQCzz2itoN0",[235,250,281,370],{"section":236,"items":237},"start",[238,242,246],{"path":239,"title":240,"description":241},"\u002Fdevelopers","Overview","Read CRM data and run authorized Totem actions with explicit permissions, private-content grants and observable operation results.",{"path":243,"title":244,"description":245},"\u002Fdevelopers\u002Fquickstart","Quickstart","Make your first requests to the Totem API in a few minutes. Check your key, find your team, list leads and start a sync.",{"path":247,"title":248,"description":249},"\u002Fdevelopers\u002Fauthentication","Authentication","Secret keys and where they may live, the Totem-Team header for keys with several teams, IP allowlists, and how to roll or revoke a key.",{"section":230,"items":251},[252,256,258,262,264,265,269,273,277],{"path":253,"title":254,"description":255},"\u002Fdevelopers\u002Ftypescript","TypeScript SDK","Use the official server-side TypeScript client for typed Totem requests, explicit business actions, pagination and safe outcome handling.",{"path":209,"title":193,"description":257},"Copy a team with the changes feed and keep the copy current. Apply pages safely, recover from errors, and start from a reference client that Totem tests.",{"path":259,"title":260,"description":261},"\u002Fdevelopers\u002Fpagination","Lists and pagination","How list endpoints return records a page at a time, how to read every page, and what order and filters a list supports.",{"path":127,"title":128,"description":263},"Import and update CRM leads, record opt-outs, archive leads and synchronize notes with explicit permissions, conditional versions and safe retries.",{"path":228,"title":6,"description":221},{"path":266,"title":267,"description":268},"\u002Fdevelopers\u002Fhighlevel","HighLevel connection","Connect CRM and use authorized Totem workflow actions and events in HighLevel, with separate permissions and clear release status.",{"path":270,"title":271,"description":272},"\u002Fdevelopers\u002Fcoverage","Data coverage","What Totem records, since when, and how to tell an empty value from a fact that was never recorded.",{"path":274,"title":275,"description":276},"\u002Fdevelopers\u002Ftesting","Testing and go-live","How to build and test an integration safely while the API has no test environment, and what to check before you go live.",{"path":278,"title":279,"description":280},"\u002Fdevelopers\u002Fsecurity","Security and personal data","How Totem protects API keys and the data the API serves, what it records about each key, where the API runs, and what to do with the personal data you copy.",{"section":282,"items":283},"reference",[284,288,292,296,301,306,311,316,321,326,331,336,341,346,351,356,361,366],{"path":285,"title":286,"description":287},"\u002Fdevelopers\u002Fconventions","Conventions","The notation these docs use, and the rules every response follows: ids, timestamps, empty values, amounts, enums, versions, stability, errors and untrusted text.",{"path":289,"title":290,"description":291},"\u002Fdevelopers\u002Ferrors","Errors","The error format, how your integration should handle each kind of error, and every error code with when it happens and what to do.",{"path":293,"title":294,"description":295},"\u002Fdevelopers\u002Frate-limits","Rate limits","How much a key can read per minute and per day, what counts toward each limit, how to retry after a 429, and how long an initial sync takes.",{"path":297,"title":298,"description":299,"apiTag":300},"\u002Fdevelopers\u002Freference-account","Account, teams and members","Check that a key works and what it can read, list its teams with their time zones, list each team's members, and check that the API is up.","account",{"path":302,"title":303,"description":304,"apiTag":305},"\u002Fdevelopers\u002Freference-leads","Leads, boards and activities","List, fetch and search a team's leads and clients, read each lead's activities, and list the boards and stages they move through.","leads",{"path":307,"title":308,"description":309,"apiTag":310},"\u002Fdevelopers\u002Freference-calls","Calls","List and fetch a team's calls, with their direction, timing and a normalized outcome. Separate permissions control transcripts, recordings and outgoing calls.","calls",{"path":312,"title":313,"description":314,"apiTag":315},"\u002Fdevelopers\u002Freference-conversations","Conversations","List and fetch a team's conversations on every channel, with their status, assignee, whether a person has taken them over and when the last messages came and went. Separate permissions control message content and delivery.","conversations",{"path":317,"title":318,"description":319,"apiTag":320},"\u002Fdevelopers\u002Freference-bookings","Bookings and services","List and fetch a team's bookings, and list the services its customers can book.","bookings",{"path":322,"title":323,"description":324,"apiTag":325},"\u002Fdevelopers\u002Freference-decisions","Decision requests","Ask named people on the team to approve something or take a job, with a deadline, and react to the outcome.","decision_requests",{"path":327,"title":328,"description":329,"apiTag":330},"\u002Fdevelopers\u002Freference-notifications","Notifications","Read your team's business alerts, including requests to call a lead, and keep them in sync with your CRM.","notifications",{"path":332,"title":333,"description":334,"apiTag":335},"\u002Fdevelopers\u002Freference-tasks","Tasks","Create and complete team tasks with explicit write permission.","tasks",{"path":337,"title":338,"description":339,"apiTag":340},"\u002Fdevelopers\u002Freference-operations","Operations","Observe an accepted asynchronous action and request cancellation safely.","operations",{"path":342,"title":343,"description":344,"apiTag":345},"\u002Fdevelopers\u002Freference-knowledge","Knowledge","Retrieve bounded passages from the selected team's indexed knowledge with explicit content access.","knowledge",{"path":347,"title":348,"description":349,"apiTag":350},"\u002Fdevelopers\u002Freference-assistants","Published assistants","Discover and run current published assistants without exporting their instructions.","assistants",{"path":352,"title":353,"description":354,"apiTag":355},"\u002Fdevelopers\u002Freference-sync","Changes feed","One endpoint that copies a team and then returns every change, page by page.","sync",{"path":357,"title":358,"description":359,"apiTag":360},"\u002Fdevelopers\u002Freference-library","Library and attachments","Discover permitted Library entries, review their revisions and deliver them through current channels.","library",{"path":362,"title":363,"description":364,"apiTag":365},"\u002Fdevelopers\u002Freference-catalog","Catalog","Search published products and send reviewed variants with current availability and prices.","catalog",{"path":367,"title":368,"description":369},"\u002Fdevelopers\u002Fobjects","All objects","Every object the API returns, field by field, with an example of each.",{"section":371,"items":372},"resources",[373,377,381,385],{"path":374,"title":375,"description":376},"\u002Fdevelopers\u002Fchangelog","Changelog","Changes to the Totem API, newest first, each under the date it shipped.",{"path":378,"title":379,"description":380},"\u002Fdevelopers\u002Fsupport","Support","How to get help with the Totem API, what to include in a request, and what to do if a key leaks.",{"path":382,"title":383,"description":384},"\u002Fdevelopers\u002Fglossary","Glossary","The terms these docs use, defined in one place, each with a link to the page that explains it.",{"path":386,"title":387,"description":388},"\u002Fdevelopers\u002Ffaq","FAQ","Short answers to the questions developers ask most about the Totem API, with links to the details.","\u002Fdevelopers\u002Fes\u002Fn8n",{"ACTIVATION_MARGIN_MS":391,"ADMIN_ACCESS_DISCLOSURE_VERSION":392,"AUDIT_RETENTION_DAYS":393,"AUTH_FAILURE_LIMITS":394,"CAPTURE_LAG_FLOOR_MS":398,"CAPTURE_LAG_P99_MS":7,"CURSOR_MAX_AGE_DAYS":399,"DIRTY_TTL_DAYS":399,"FAMILY_TEAM_SCOPE":400,"FAMILY_TEAM_SCOPE_OPTIONS":401,"FEED_SETTLE_LAG_MS":403,"GATE_REFRESH_MS":391,"INTEGRATION_NAME_LENGTH":404,"INTEGRATION_PURPOSE_LENGTH":406,"KEY_CACHE_TTL_MS":409,"KEY_STATS_RETENTION_DAYS":410,"LEAD_RESPONSE_READ_BUDGET":411,"LIST_SCAN_MAX":414,"MAX_FAMILY_INTEGRATION_TEAMS":399,"MAX_INTEGRATIONS_PER_FAMILY":415,"MAX_IP_ALLOWLIST":396,"PAGE_LIMIT":416,"PLATFORM_CONFIG_TTL_MS":419,"REMOVAL_RETENTION_DAYS":420,"REQUEST_BODY_MAX_BYTES":421,"ROLL_GRACE_DEFAULT_HOURS":422,"ROLL_GRACE_HOURS":423,"SEARCH_MAX_RESULTS":415,"SENSITIVE_SECTOR_POLICY":426,"SENSITIVE_SECTOR_POLICY_OPTIONS":427,"SYNC_DAILY_BUDGET":429,"SYNC_VELOCITY":431,"TEAM_CACHE_TTL_MS":433},60000,"2026-10-17",365,{"perIpPerMinute":395,"perLookupIdPerMinute":396,"banMs":397},60,20,600000,300000,30,"explicit_list",[400,402],"all_family_teams",10000,{"min":216,"max":405},80,{"min":407,"max":408},1,280,5000,90,{"conversations":396,"messageReads":412,"calls":413},200,50,1000,10,{"default":417,"max":418},25,100,15000,45,131072,24,[424,407,422,425],0,168,"exclude",[426,428],"allow",{"floor":430,"recordsMultiplier":213},250000,{"perMinute":432,"burst":403},2000,30000,"1.0.0","guide",[437,438,439,440,441],{"id":14,"text":15,"depth":216},{"id":53,"text":54,"depth":216},{"id":95,"text":96,"depth":216},{"id":175,"text":176,"depth":216},{"id":192,"text":193,"depth":216},{"path":127,"title":128,"section":230},{"path":266,"title":267,"section":230},[],1796395410324,"6ece8729-dc31-4887-85ce-5a18e6f853a8"]