[{"data":1,"prerenderedAt":618,"buildId":619},["ShallowReactive",2],{"developers:\u002Fdevelopers\u002Freference-knowledge":3},{"doc":4,"lang":103,"nav":115,"alternatePath":273,"policy":274,"specVersion":318,"reference":319,"layout":110,"toc":610,"prev":614,"next":615,"operations":616,"overview":105,"heroExample":105},{"id":5,"title":6,"apiTag":7,"body":8,"description":100,"draft":101,"extension":102,"lang":103,"meta":104,"navTitle":105,"navigation":106,"order":107,"path":108,"rawbody":109,"section":110,"seo":111,"stem":112,"translationKey":113,"version":105,"__hash__":114},"developers_en\u002Fdevelopers\u002Freference-knowledge.md","Knowledge","knowledge",{"type":9,"value":10,"toc":94},"minimark",[11,16,36,43,77,91],[12,13,15],"h2",{"id":14},"search-indexed-knowledge","Search indexed knowledge",[17,18,19,23,24,27,28,31,32,35],"p",{},[20,21,22],"code",{},"POST \u002Fv1\u002Fknowledge\u002Fsearch"," takes ",[20,25,26],{},"query"," (1–1,000 nonblank characters) and optional ",[20,29,30],{},"max_results"," (1–8, default 4). Select the team with ",[20,33,34],{},"Totem-Team"," when your key can access several teams. This is a read: it has no idempotency key and creates no durable operation.",[17,37,38,39,42],{},"The integration needs ",[20,40,41],{},"knowledge:read"," and a separate, current knowledge-content acknowledgement when its key is created. Ordinary read access, CRM writes and old keys do not grant knowledge content. Adding another team to a organization integration requires that acknowledgement again. Totem-hosted assistant processing uses its current execution and team processing delegation, independently of a third-party recipient's content grant.",[17,44,45,46,49,50,53,54,57,58,61,62,65,66,53,69,72,73,76],{},"The team must have its knowledge base enabled. The response contains ",[20,47,48],{},"object: \"knowledge_search\"",", ",[20,51,52],{},"status"," and ",[20,55,56],{},"passages",". Each passage has ",[20,59,60],{},"text",", stored ",[20,63,64],{},"title",", optional ",[20,67,68],{},"section",[20,70,71],{},"page"," (both nullable), and a similarity ",[20,74,75],{},"score"," from 0 to 1. Query text, private lead files, raw source\u002Ffile identifiers and provider URLs are excluded.",[17,78,79,80,82,83,86,87,90],{},"An empty ",[20,81,56],{}," array is a successful search. ",[20,84,85],{},"status: \"indexing\""," with no passages means the knowledge index is still being prepared; ",[20,88,89],{},"ready"," with no passages means no current retained result matched. An unavailable provider or vector index returns an error rather than an invented no-hit.",[17,92,93],{},"Only a completed, current indexed source generation is served. Revoking the grant, disabling the knowledge base, deleting indexed content or disconnecting its account withdraws access when observed locally. Provider-side deletion or moves are discovered by sync\u002Freconciliation and are eventual; this endpoint does not promise instant source-provider withdrawal.",{"title":95,"searchDepth":96,"depth":96,"links":97},"",3,[98],{"id":14,"depth":99,"text":15},2,"Retrieve bounded passages from the selected team's indexed knowledge with explicit content access.",false,"md","en",{},null,true,"88","\u002Fdevelopers\u002Freference-knowledge","---\ntitle: Knowledge\ndescription: Retrieve bounded passages from the selected team's indexed knowledge with explicit content access.\nsection: reference\norder: 88\ntranslationKey: reference-knowledge\nlang: en\ndraft: false\napiTag: knowledge\n---\n\n## Search indexed knowledge\n\n`POST \u002Fv1\u002Fknowledge\u002Fsearch` takes `query` (1–1,000 nonblank characters) and optional `max_results` (1–8, default 4). Select the team with `Totem-Team` when your key can access several teams. This is a read: it has no idempotency key and creates no durable operation.\n\nThe integration needs `knowledge:read` and a separate, current knowledge-content acknowledgement when its key is created. Ordinary read access, CRM writes and old keys do not grant knowledge content. Adding another team to a organization integration requires that acknowledgement again. Totem-hosted assistant processing uses its current execution and team processing delegation, independently of a third-party recipient's content grant.\n\nThe team must have its knowledge base enabled. The response contains `object: \"knowledge_search\"`, `status` and `passages`. Each passage has `text`, stored `title`, optional `section` and `page` (both nullable), and a similarity `score` from 0 to 1. Query text, private lead files, raw source\u002Ffile identifiers and provider URLs are excluded.\n\nAn empty `passages` array is a successful search. `status: \"indexing\"` with no passages means the knowledge index is still being prepared; `ready` with no passages means no current retained result matched. An unavailable provider or vector index returns an error rather than an invented no-hit.\n\nOnly a completed, current indexed source generation is served. Revoking the grant, disabling the knowledge base, deleting indexed content or disconnecting its account withdraws access when observed locally. Provider-side deletion or moves are discovered by sync\u002Freconciliation and are eventual; this endpoint does not promise instant source-provider withdrawal.\n","reference",{"title":6,"description":100},"developers\u002Freference-knowledge","reference-knowledge","0u22o1peuGzG8GudmB_AXdkyZCsCfieyjwCWWpOQfZA",[116,131,170,254],{"section":117,"items":118},"start",[119,123,127],{"path":120,"title":121,"description":122},"\u002Fdevelopers","Overview","Read CRM data and run authorized Totem actions with explicit permissions, private-content grants and observable operation results.",{"path":124,"title":125,"description":126},"\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":128,"title":129,"description":130},"\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":132,"items":133},"guides",[134,138,142,146,150,154,158,162,166],{"path":135,"title":136,"description":137},"\u002Fdevelopers\u002Ftypescript","TypeScript SDK","Use the official server-side TypeScript client for typed Totem requests, explicit business actions, pagination and safe outcome handling.",{"path":139,"title":140,"description":141},"\u002Fdevelopers\u002Fsync","Keep a copy in sync","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":143,"title":144,"description":145},"\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":147,"title":148,"description":149},"\u002Fdevelopers\u002Fcrm-writes","CRM writes and notes","Import and update CRM leads, record opt-outs, archive leads and synchronize notes with explicit permissions, conditional versions and safe retries.",{"path":151,"title":152,"description":153},"\u002Fdevelopers\u002Fn8n","n8n","Connect a self-hosted n8n workflow to the Totem API with the public Totem Studio node and a saved API credential.",{"path":155,"title":156,"description":157},"\u002Fdevelopers\u002Fhighlevel","HighLevel connection","Connect CRM and use authorized Totem workflow actions and events in HighLevel, with separate permissions and clear release status.",{"path":159,"title":160,"description":161},"\u002Fdevelopers\u002Fcoverage","Data coverage","What Totem records, since when, and how to tell an empty value from a fact that was never recorded.",{"path":163,"title":164,"description":165},"\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":167,"title":168,"description":169},"\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":110,"items":171},[172,176,180,184,189,194,199,204,209,214,219,224,229,230,235,240,245,250],{"path":173,"title":174,"description":175},"\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":177,"title":178,"description":179},"\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":181,"title":182,"description":183},"\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":185,"title":186,"description":187,"apiTag":188},"\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":190,"title":191,"description":192,"apiTag":193},"\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":195,"title":196,"description":197,"apiTag":198},"\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":200,"title":201,"description":202,"apiTag":203},"\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":205,"title":206,"description":207,"apiTag":208},"\u002Fdevelopers\u002Freference-bookings","Bookings and services","List and fetch a team's bookings, and list the services its customers can book.","bookings",{"path":210,"title":211,"description":212,"apiTag":213},"\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":215,"title":216,"description":217,"apiTag":218},"\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":220,"title":221,"description":222,"apiTag":223},"\u002Fdevelopers\u002Freference-tasks","Tasks","Create and complete team tasks with explicit write permission.","tasks",{"path":225,"title":226,"description":227,"apiTag":228},"\u002Fdevelopers\u002Freference-operations","Operations","Observe an accepted asynchronous action and request cancellation safely.","operations",{"path":108,"title":6,"description":100,"apiTag":7},{"path":231,"title":232,"description":233,"apiTag":234},"\u002Fdevelopers\u002Freference-assistants","Published assistants","Discover and run current published assistants without exporting their instructions.","assistants",{"path":236,"title":237,"description":238,"apiTag":239},"\u002Fdevelopers\u002Freference-sync","Changes feed","One endpoint that copies a team and then returns every change, page by page.","sync",{"path":241,"title":242,"description":243,"apiTag":244},"\u002Fdevelopers\u002Freference-library","Library and attachments","Discover permitted Library entries, review their revisions and deliver them through current channels.","library",{"path":246,"title":247,"description":248,"apiTag":249},"\u002Fdevelopers\u002Freference-catalog","Catalog","Search published products and send reviewed variants with current availability and prices.","catalog",{"path":251,"title":252,"description":253},"\u002Fdevelopers\u002Fobjects","All objects","Every object the API returns, field by field, with an example of each.",{"section":255,"items":256},"resources",[257,261,265,269],{"path":258,"title":259,"description":260},"\u002Fdevelopers\u002Fchangelog","Changelog","Changes to the Totem API, newest first, each under the date it shipped.",{"path":262,"title":263,"description":264},"\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":266,"title":267,"description":268},"\u002Fdevelopers\u002Fglossary","Glossary","The terms these docs use, defined in one place, each with a link to the page that explains it.",{"path":270,"title":271,"description":272},"\u002Fdevelopers\u002Ffaq","FAQ","Short answers to the questions developers ask most about the Totem API, with links to the details.","\u002Fdevelopers\u002Fes\u002Freference-knowledge",{"ACTIVATION_MARGIN_MS":275,"ADMIN_ACCESS_DISCLOSURE_VERSION":276,"AUDIT_RETENTION_DAYS":277,"AUTH_FAILURE_LIMITS":278,"CAPTURE_LAG_FLOOR_MS":282,"CAPTURE_LAG_P99_MS":105,"CURSOR_MAX_AGE_DAYS":283,"DIRTY_TTL_DAYS":283,"FAMILY_TEAM_SCOPE":284,"FAMILY_TEAM_SCOPE_OPTIONS":285,"FEED_SETTLE_LAG_MS":287,"GATE_REFRESH_MS":275,"INTEGRATION_NAME_LENGTH":288,"INTEGRATION_PURPOSE_LENGTH":290,"KEY_CACHE_TTL_MS":293,"KEY_STATS_RETENTION_DAYS":294,"LEAD_RESPONSE_READ_BUDGET":295,"LIST_SCAN_MAX":298,"MAX_FAMILY_INTEGRATION_TEAMS":283,"MAX_INTEGRATIONS_PER_FAMILY":299,"MAX_IP_ALLOWLIST":280,"PAGE_LIMIT":300,"PLATFORM_CONFIG_TTL_MS":303,"REMOVAL_RETENTION_DAYS":304,"REQUEST_BODY_MAX_BYTES":305,"ROLL_GRACE_DEFAULT_HOURS":306,"ROLL_GRACE_HOURS":307,"SEARCH_MAX_RESULTS":299,"SENSITIVE_SECTOR_POLICY":310,"SENSITIVE_SECTOR_POLICY_OPTIONS":311,"SYNC_DAILY_BUDGET":313,"SYNC_VELOCITY":315,"TEAM_CACHE_TTL_MS":317},60000,"2026-10-17",365,{"perIpPerMinute":279,"perLookupIdPerMinute":280,"banMs":281},60,20,600000,300000,30,"explicit_list",[284,286],"all_family_teams",10000,{"min":99,"max":289},80,{"min":291,"max":292},1,280,5000,90,{"conversations":280,"messageReads":296,"calls":297},200,50,1000,10,{"default":301,"max":302},25,100,15000,45,131072,24,[308,291,306,309],0,168,"exclude",[310,312],"allow",{"floor":314,"recordsMultiplier":96},250000,{"perMinute":316,"burst":287},2000,30000,"1.0.0",{"operations":320,"schemas":422,"errors":447,"commonErrors":606,"defaultStability":327,"policy":274,"problemExample":607},[321],{"id":322,"method":323,"path":324,"summary":325,"description":326,"stability":327,"scopes":328,"rateClass":329,"tenantBinding":330,"authenticated":106,"parameters":331,"parametersByLocation":339,"body":343,"bodyDescription":353,"responseFields":354,"responseComponent":395,"listOf":105,"example":396,"successStatus":296,"pathExamples":403,"errors":404,"tag":7},"knowledge.search","POST","\u002Fv1\u002Fknowledge\u002Fsearch","Search team knowledge","Retrieves bounded passages from the team’s enabled, retained indexed knowledge with a separate knowledge-content opt-in; existing keys gain no access. Provider deletion discovery is eventual. Private lead files, raw file identifiers and source URLs are excluded.","stable",[41],"read","team_header",[332],{"name":34,"type":333,"required":101,"description":334,"nullable":101,"typeLabel":333,"constraints":335,"conditional":106,"location":338},"string","The team to read, as a `team_…` id. Omit it when the key reads one team; it is required when the key reads several (`400 team_required`). When you send it, it must name a team the key reads: a malformed id gets `400 invalid_request`, and a team outside the key gets `404 team_not_accessible`, as does a request without it once the key reads no team at all.",{"prefixes":336},[337],"team_","header",{"path":340,"query":341,"header":342},[],[],[332],[344,347],{"name":26,"type":333,"required":106,"description":345,"nullable":101,"typeLabel":333,"constraints":346},"Question to retrieve from the selected team’s indexed knowledge.",{"minLength":291,"maxLength":298},{"name":30,"type":348,"required":101,"description":349,"nullable":101,"typeLabel":348,"constraints":350},"integer","Maximum passages, from 1 to 8; defaults to 4.",{"minimum":291,"maximum":351,"default":352},8,4,"A bounded team knowledge search; private lead files and provider filters are unavailable.",[355,361,366,370,375,380,385,390],{"name":356,"type":357,"required":106,"description":358,"nullable":101,"typeLabel":333,"enumValues":359,"constant":106},"object","\"knowledge_search\"","Always knowledge_search.",[360],"knowledge_search",{"name":52,"type":362,"required":106,"description":363,"nullable":101,"typeLabel":333,"enumValues":364},"\"ready\" | \"indexing\"","Indexing with no retained match means the index is still being prepared.",[89,365],"indexing",{"name":56,"type":367,"required":106,"description":368,"nullable":101,"typeLabel":367,"constraints":369},"Array\u003Cobject>","Matching passages only; an empty array is a successful search.",{"maxItems":351},{"name":371,"type":333,"required":106,"description":372,"nullable":101,"typeLabel":333,"constraints":373},"passages[].text","Retained matching passage.",{"minLength":291,"maxLength":374},1200,{"name":376,"type":333,"required":106,"description":377,"nullable":101,"typeLabel":333,"constraints":378},"passages[].title","Stored document title.",{"maxLength":379},512,{"name":381,"type":382,"required":106,"description":383,"nullable":106,"typeLabel":333,"constraints":384},"passages[].section","string | null","Stored section, if available.",{"maxLength":379},{"name":386,"type":387,"required":106,"description":388,"nullable":106,"typeLabel":348,"constraints":389},"passages[].page","integer | null","Stored page number, if available.",{"exclusiveMinimum":308},{"name":391,"type":392,"required":106,"description":393,"nullable":101,"typeLabel":392,"constraints":394},"passages[].score","number","Similarity score from 0 to 1.",{"minimum":308,"maximum":291},"KnowledgeSearch",{"object":360,"status":89,"passages":397},[398],{"text":399,"title":400,"section":401,"page":99,"score":402},"The first visit includes an initial assessment and a written estimate.","Service guide","First visit",0.85,{},[405,406,407,408,409,410,411,412,413,414,415,416,417,418,419,420,421],"invalid_request","secret_key_in_browser","invalid_credentials","key_expired","insufficient_scope","plan_not_entitled","ip_not_allowed","capability_disabled","rate_limited","internal_error","api_disabled","service_unavailable","team_required","team_not_accessible","team_state_restricted","sector_restricted","capture_not_ready",[423],{"name":395,"description":424,"fields":425,"example":442,"variants":445,"sharedFields":446},"Current retained knowledge passages without query echo, provider ids or source URLs.",[426,428,430,432,434,436,438,440],{"name":356,"type":357,"required":106,"description":358,"nullable":101,"typeLabel":333,"enumValues":427,"constant":106},[360],{"name":52,"type":362,"required":106,"description":363,"nullable":101,"typeLabel":333,"enumValues":429},[89,365],{"name":56,"type":367,"required":106,"description":368,"nullable":101,"typeLabel":367,"constraints":431},{"maxItems":351},{"name":371,"type":333,"required":106,"description":372,"nullable":101,"typeLabel":333,"constraints":433},{"minLength":291,"maxLength":374},{"name":376,"type":333,"required":106,"description":377,"nullable":101,"typeLabel":333,"constraints":435},{"maxLength":379},{"name":381,"type":382,"required":106,"description":383,"nullable":106,"typeLabel":333,"constraints":437},{"maxLength":379},{"name":386,"type":387,"required":106,"description":388,"nullable":106,"typeLabel":348,"constraints":439},{"exclusiveMinimum":308},{"name":391,"type":392,"required":106,"description":393,"nullable":101,"typeLabel":392,"constraints":441},{"minimum":308,"maximum":291},{"object":360,"status":89,"passages":443},[444],{"text":399,"title":400,"section":401,"page":99,"score":402},[],[],[448,456,462,467,474,480,486,491,498,503,507,511,515,520,524,528,534,538,542,547,551,557,563,569,575,581,586,591,597,602],{"code":449,"status":450,"title":451,"wireTitle":451,"action":452,"description":453,"fix":454,"retryable":101,"retry":455},"custom_values_review_required",409,"Custom values require review","fix_request","Stored custom values contain duplicate names or ambiguous legacy rows.","Reconcile duplicate names and label-only legacy rows in Totem, then read a fresh custom-values ETag before retrying.","no",{"code":457,"status":458,"title":459,"wireTitle":459,"action":452,"description":460,"fix":461,"retryable":101,"retry":455},"idempotency_key_required",400,"Idempotency key required","This write requires an Idempotency-Key header before it can have an effect.","Send one unique key per logical write and reuse that same key for every retry.",{"code":463,"status":450,"title":464,"wireTitle":464,"action":452,"description":465,"fix":466,"retryable":101,"retry":455},"idempotency_key_reused","Idempotency key reused","This key was already used with a different body, resource or selected team.","Keep the original key for retries of its original request; use a new key for a new logical write.",{"code":468,"status":450,"title":469,"wireTitle":469,"action":470,"description":471,"fix":472,"retryable":106,"retry":473},"idempotency_in_progress","Write in progress","retry_after","An identical write with this idempotency key is still being processed.","Wait for Retry-After, then retry with the same key and exactly the same request.","after",{"code":475,"status":450,"title":476,"wireTitle":476,"action":477,"description":478,"fix":479,"retryable":101,"retry":455},"outcome_unknown","Write outcome unknown","contact_support","An earlier attempt may have committed its effect, but Totem cannot safely prove its outcome.","Do not retry automatically or generate a new key; reconcile the resource and contact support with Totem-Request-Id.",{"code":481,"status":482,"title":483,"wireTitle":483,"action":452,"description":484,"fix":485,"retryable":101,"retry":455},"version_conflict",412,"Lead version conflict","The strong If-Match validator no longer names the current public version of this lead.","Read the lead again, reconcile your intended changes, then send its new ETag in If-Match.",{"code":487,"status":450,"title":488,"wireTitle":488,"action":452,"description":489,"fix":490,"retryable":101,"retry":455},"ambiguous_identity","Ambiguous lead identity","The supplied phone, email or integration external id resolves to conflicting lead identities.","Resolve the conflicting identities explicitly in the CRM; this endpoint never silently merges them.",{"code":492,"status":493,"title":494,"wireTitle":494,"action":495,"description":496,"fix":497,"retryable":101,"retry":455},"inbound_not_enabled",403,"Inbound intake not enabled","check_credentials","The principal does not hold the separate inbound intake capability requested by this write.","Use origin import for inert CRM synchronization or ask an administrator to explicitly enable inbound intake.",{"code":499,"status":493,"title":500,"wireTitle":500,"action":452,"description":501,"fix":502,"retryable":101,"retry":455},"consent_required","Consent required","This effect requires explicit consent evidence that this request does not provide.","Collect the person’s explicit consent with its notice and capture evidence before requesting this effect.",{"code":405,"status":458,"title":504,"wireTitle":504,"action":452,"description":505,"fix":506,"retryable":101,"retry":455},"Invalid request","Something in the request is not valid: an unknown, repeated or out-of-range query parameter, a query string or body on an endpoint that takes none, a cursor issued for another endpoint, filter or team, a malformed `Totem-Team` header, or a body that is not the JSON this endpoint expects. `param` names the parameter, header or field at fault. A conversations cursor is also refused once the conversation it points at has been erased.","Correct what `param` names before you retry: the same request fails the same way. For a cursor, send the `next_cursor` you received from the same endpoint, with the same filters and team. If a conversations cursor you did not change is refused, start that list again from the first page.",{"code":417,"status":458,"title":508,"wireTitle":508,"action":452,"description":509,"fix":510,"retryable":101,"retry":455},"Team required","The key reads more than one team and this endpoint reads one team's data, but the request does not say which team.","Send the team's id (`team_…`, as listed by `GET \u002Fv1\u002Fteams`) in the `Totem-Team` header.",{"code":406,"status":458,"title":512,"wireTitle":512,"action":452,"description":513,"fix":514,"retryable":101,"retry":455},"Secret key sent from a browser","The request carried a secret key together with an `Origin` header, which means it came from a browser. Totem refuses it before reading anything.","Call the API only from your server. If the key has been in a web page, a mobile app or a browser extension, treat it as leaked: roll it and mark it as compromised, so the old key stops working at once.",{"code":407,"status":516,"title":517,"wireTitle":517,"action":495,"description":518,"fix":519,"retryable":101,"retry":455},401,"Invalid credentials","The `Authorization` header is missing or malformed, or the key is unknown, wrong or revoked, or its integration is no longer active.","Send `Authorization: Bearer \u003Ckey>` with a current secret key. Do not retry in a loop: repeated failures from one IP address, or against one key, lock it out for a while with `429 rate_limited`.",{"code":408,"status":516,"title":521,"wireTitle":521,"action":495,"description":522,"fix":523,"retryable":101,"retry":455},"Key expired","The key was rolled and its grace period is over.","Deploy the key that replaced it: the old key is past its grace period and will not work again. If there is no replacement, create a new key in Settings → Developers.",{"code":409,"status":493,"title":525,"wireTitle":525,"action":495,"description":526,"fix":527,"retryable":101,"retry":455},"Insufficient scope","The key lacks a permission this endpoint needs; CRM writes and note-content reads require separate explicit grants.","Use an explicitly authorized integration profile or ask an administrator to review its grants; never broaden an old read key implicitly.",{"code":410,"status":493,"title":529,"wireTitle":529,"action":530,"description":531,"fix":532,"retryable":106,"retry":533},"Plan not entitled","keep_and_retry","The organization's plan does not include the Totem API at the moment.","Keep your data and cursors, and pause calls until the customer has a plan with API access again; then continue where you left off. While access is refused, the feed delivers nothing for the key's teams, removals included: if the refusal lasts longer than your retention policy allows, delete your copy.","restored",{"code":411,"status":493,"title":535,"wireTitle":535,"action":495,"description":536,"fix":537,"retryable":101,"retry":455},"IP address not allowed","The key is valid, but the request came from an IP address outside the integration's allowlist.","Call from an allowed address, or ask an administrator to add yours to the allowlist in Settings → Developers.",{"code":419,"status":493,"title":539,"wireTitle":539,"action":530,"description":540,"fix":541,"retryable":106,"retry":533},"Team restricted","The team is restricted for now: it is disabled (for example, suspended for non-payment), archived or billing-only, or its API access is paused. `GET \u002Fv1\u002Fteams` still lists it.","Keep the team's data and cursor, skip it for this run and try again later. The key's other teams are not affected. While the team is restricted, the feed delivers nothing for it, removals included: if the restriction lasts longer than your retention policy allows, delete the team's copy.",{"code":420,"status":493,"title":543,"wireTitle":543,"action":530,"description":544,"fix":545,"retryable":101,"retry":546},"Sector restricted","Totem does not export this team's data through the API because the team works in a sensitive sector, such as health care, where its records can reveal health information.","Skip the team: waiting does not change this. The feed delivers nothing for it, removals included, so keep what you already have only as long as your retention policy allows, then delete the team's copy. Talk to the customer or to Totem if you need its data.","blocked",{"code":412,"status":493,"title":548,"wireTitle":548,"action":530,"description":549,"fix":550,"retryable":106,"retry":533},"Capability disabled","Totem has temporarily switched this endpoint off for every key.","Keep your data and cursors and try again later; the other endpoints keep working.",{"code":552,"status":553,"title":554,"wireTitle":554,"action":452,"description":555,"fix":556,"retryable":101,"retry":455},"resource_missing",404,"Resource not found","The record does not exist, was removed, belongs to a team this key does not read, or was created so recently that Totem has not prepared it yet. A `GET` or `POST` under `\u002Fv1\u002F` that matches no endpoint also gets this code. Any other method, and any path outside `\u002Fv1\u002F`, gets a plain `404` from the firewall in front of the API, with no problem body and no `Totem-Request-Id`.","Check the id and the path. If the record was created moments ago, do not retry in a loop: the changes feed delivers it as soon as it is ready.",{"code":418,"status":553,"title":558,"wireTitle":558,"action":559,"description":560,"fix":561,"retryable":101,"retry":562},"Team not accessible","drop_team","The `Totem-Team` header names a team this key does not read: one it never covered, one removed from the key or from the organization, or one that was deleted. Without the header, it means the key no longer reads any team.","Re-read `GET \u002Fv1\u002Fteams` before you act. If the team is no longer listed, delete its copy and its cursor; if it is still listed, keep everything and try again on the next run.","confirm",{"code":564,"status":450,"title":565,"wireTitle":565,"action":566,"description":567,"fix":568,"retryable":101,"retry":455},"resync_required","Resync required","resync","Totem cannot continue the feed from this cursor: the data was restored from a backup, or a gap was found in the team's changes.","Run a full resync: forget the versions you stored for the team, read the feed again without a cursor, and once it has caught up delete every local record of the team it did not deliver. Keep using your current copy until then.",{"code":421,"status":450,"title":570,"wireTitle":570,"action":571,"description":572,"fix":573,"retryable":106,"retry":574},"Team data is still being prepared","wait_capture","Totem is still preparing this team's data for the API. This happens once per team, after it is first added to any key; adding it to another key later does not repeat it.","Keep whatever you hold for the team and try again in a few minutes; the key's other teams keep syncing meanwhile.","later",{"code":576,"status":577,"title":578,"wireTitle":578,"action":566,"description":579,"fix":580,"retryable":101,"retry":455},"sync_cursor_expired",410,"Sync cursor expired","The cursor is more than 30 days old, counted from the point in the feed it reached (or, while an initial sync is still running, from when that sync started).","Run a full resync, as for `resync_required`. To prevent it, save the `next_cursor` of every page, empty pages included: the cursor of a team you poll regularly never ages out.",{"code":413,"status":582,"title":583,"wireTitle":583,"action":470,"description":584,"fix":585,"retryable":106,"retry":473},429,"Rate limited","The key went over its rate limit (items per minute), or too many failed authentication attempts from this IP address or against this key have locked it out for a while.","Wait the seconds in `Retry-After`, then retry the same request. Each request sets aside its full `limit` up front and gives back what it does not use, so a smaller `limit` keeps a nearly spent allowance moving.",{"code":587,"status":582,"title":588,"wireTitle":588,"action":470,"description":589,"fix":590,"retryable":106,"retry":473},"quota_exceeded","Daily quota exceeded","The key has spent its daily quota of items. Every item returned by the changes feed and by every list counts toward it, including `GET \u002Fv1\u002Fteams`, `GET \u002Fv1\u002Fmembers`, `GET \u002Fv1\u002Fbooking_services` and a lead's activities. The quota resets at 00:00 UTC.","Stop syncing until 00:00 UTC (`Retry-After` counts the seconds) and resume then with the same cursor: nothing is lost. Requests for one record, such as `GET \u002Fv1\u002Fleads\u002F{id}`, search and `GET \u002Fv1\u002Fme` do not count toward the quota and keep working.",{"code":414,"status":592,"title":593,"wireTitle":593,"action":594,"description":595,"fix":596,"retryable":106,"retry":594},500,"Internal error","backoff","Something went wrong inside Totem while answering this request.","Retry with exponential backoff. If it keeps failing, contact support and quote the `Totem-Request-Id`.",{"code":415,"status":598,"title":599,"wireTitle":599,"action":594,"description":600,"fix":601,"retryable":106,"retry":594},503,"API disabled","Totem has temporarily switched the API off for every key.","Keep your data and cursors and retry later with exponential backoff.",{"code":416,"status":598,"title":603,"wireTitle":603,"action":594,"description":604,"fix":605,"retryable":106,"retry":594},"Service unavailable","Reserved: the API itself does not return this code today. A `503` from the load balancer or the hosting platform in front of the API arrives without a problem body; treat it like this code.","Retry with exponential backoff; your data and cursors stay valid.",[405,406,407,408,409,410,411,412,413,414,415,416],{"type":608,"title":554,"status":553,"code":552,"request_id":609,"doc_url":608},"https:\u002F\u002Ftotemstudio.ai\u002Fdevelopers\u002Ferrors#resource_missing","req_0f6b2c1e-8d4a-4b7e-9c3f-5a2d1e7b9c40",[611,612,613],{"id":14,"text":15,"depth":99},{"id":322,"text":325,"depth":99},{"id":395,"text":395,"depth":99},{"path":225,"title":226,"section":110},{"path":231,"title":232,"section":110},[617],{"id":322,"method":323,"path":324,"summary":325},1796395410846,"6ece8729-dc31-4887-85ce-5a18e6f853a8"]