[{"data":1,"prerenderedAt":1113,"buildId":1114},["ShallowReactive",2],{"developers:\u002Fdevelopers\u002Freference-library":3},{"doc":4,"lang":53,"nav":65,"alternatePath":223,"policy":224,"specVersion":268,"reference":269,"layout":60,"toc":1093,"prev":1105,"next":1106,"operations":1107,"overview":55,"heroExample":55},{"id":5,"title":6,"apiTag":7,"body":8,"description":50,"draft":51,"extension":52,"lang":53,"meta":54,"navTitle":55,"navigation":56,"order":57,"path":58,"rawbody":59,"section":60,"seo":61,"stem":62,"translationKey":63,"version":55,"__hash__":64},"developers_en\u002Fdevelopers\u002Freference-library.md","Library and attachments","library",{"type":9,"value":10,"toc":44},"minimark",[11,16,33],[12,13,15],"h2",{"id":14},"review-and-send-a-library-entry","Review and send a Library entry",[17,18,19,20,24,25,28,29,32],"p",{},"Use ",[21,22,23],"code",{},"POST \u002Fv1\u002Flibrary\u002Flist"," for bounded discovery, then ",[21,26,27],{},"POST \u002Fv1\u002Flibrary\u002Fget"," to review the selected entry. Keep opaque references unchanged and send the reviewed revision with ",[21,30,31],{},"POST \u002Fv1\u002Flibrary\u002Fsend",". A changed entry must be reviewed again. Sending uses the current conversation and channel policy; a read permission alone does not permit sending.",[17,34,35,36,39,40,43],{},"Delivery is asynchronous. A partial or uncertain result requires reconciliation before another send. For web chat, a prepared response is retained for rendering instead of claiming provider delivery. Read that response with ",[21,37,38],{},"POST \u002Fv1\u002Flibrary\u002Fprepared",", preserve message order and resolve its exact attachment references with ",[21,41,42],{},"POST \u002Fv1\u002Fattachments\u002Fresolve"," only when separately authorized. References are temporary selections bound to the integration and team; they are not permanent asset identifiers.",{"title":45,"searchDepth":46,"depth":46,"links":47},"",3,[48],{"id":14,"depth":49,"text":15},2,"Discover permitted Library entries, review their revisions and deliver them through current channels.",false,"md","en",{},null,true,"91","\u002Fdevelopers\u002Freference-library","---\ntitle: Library and attachments\ndescription: Discover permitted Library entries, review their revisions and deliver them through current channels.\nsection: reference\norder: 91\ntranslationKey: reference-library\nlang: en\ndraft: false\napiTag: library\n---\n\n## Review and send a Library entry\n\nUse `POST \u002Fv1\u002Flibrary\u002Flist` for bounded discovery, then `POST \u002Fv1\u002Flibrary\u002Fget` to review the selected entry. Keep opaque references unchanged and send the reviewed revision with `POST \u002Fv1\u002Flibrary\u002Fsend`. A changed entry must be reviewed again. Sending uses the current conversation and channel policy; a read permission alone does not permit sending.\n\nDelivery is asynchronous. A partial or uncertain result requires reconciliation before another send. For web chat, a prepared response is retained for rendering instead of claiming provider delivery. Read that response with `POST \u002Fv1\u002Flibrary\u002Fprepared`, preserve message order and resolve its exact attachment references with `POST \u002Fv1\u002Fattachments\u002Fresolve` only when separately authorized. References are temporary selections bound to the integration and team; they are not permanent asset identifiers.\n","reference",{"title":6,"description":50},"developers\u002Freference-library","reference-library","fAo1Sw1OrXhEZ5XAxOGP3Lb8LQ4T_0gNKpXSwSXfLgU",[66,81,120,204],{"section":67,"items":68},"start",[69,73,77],{"path":70,"title":71,"description":72},"\u002Fdevelopers","Overview","Read CRM data and run authorized Totem actions with explicit permissions, private-content grants and observable operation results.",{"path":74,"title":75,"description":76},"\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":78,"title":79,"description":80},"\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":82,"items":83},"guides",[84,88,92,96,100,104,108,112,116],{"path":85,"title":86,"description":87},"\u002Fdevelopers\u002Ftypescript","TypeScript SDK","Use the official server-side TypeScript client for typed Totem requests, explicit business actions, pagination and safe outcome handling.",{"path":89,"title":90,"description":91},"\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":93,"title":94,"description":95},"\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":97,"title":98,"description":99},"\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":101,"title":102,"description":103},"\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":105,"title":106,"description":107},"\u002Fdevelopers\u002Fhighlevel","HighLevel connection","Connect CRM and use authorized Totem workflow actions and events in HighLevel, with separate permissions and clear release status.",{"path":109,"title":110,"description":111},"\u002Fdevelopers\u002Fcoverage","Data coverage","What Totem records, since when, and how to tell an empty value from a fact that was never recorded.",{"path":113,"title":114,"description":115},"\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":117,"title":118,"description":119},"\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":60,"items":121},[122,126,130,134,139,144,149,154,159,164,169,174,179,184,189,194,195,200],{"path":123,"title":124,"description":125},"\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":127,"title":128,"description":129},"\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":131,"title":132,"description":133},"\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":135,"title":136,"description":137,"apiTag":138},"\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":140,"title":141,"description":142,"apiTag":143},"\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":145,"title":146,"description":147,"apiTag":148},"\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":150,"title":151,"description":152,"apiTag":153},"\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":155,"title":156,"description":157,"apiTag":158},"\u002Fdevelopers\u002Freference-bookings","Bookings and services","List and fetch a team's bookings, and list the services its customers can book.","bookings",{"path":160,"title":161,"description":162,"apiTag":163},"\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":165,"title":166,"description":167,"apiTag":168},"\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":170,"title":171,"description":172,"apiTag":173},"\u002Fdevelopers\u002Freference-tasks","Tasks","Create and complete team tasks with explicit write permission.","tasks",{"path":175,"title":176,"description":177,"apiTag":178},"\u002Fdevelopers\u002Freference-operations","Operations","Observe an accepted asynchronous action and request cancellation safely.","operations",{"path":180,"title":181,"description":182,"apiTag":183},"\u002Fdevelopers\u002Freference-knowledge","Knowledge","Retrieve bounded passages from the selected team's indexed knowledge with explicit content access.","knowledge",{"path":185,"title":186,"description":187,"apiTag":188},"\u002Fdevelopers\u002Freference-assistants","Published assistants","Discover and run current published assistants without exporting their instructions.","assistants",{"path":190,"title":191,"description":192,"apiTag":193},"\u002Fdevelopers\u002Freference-sync","Changes feed","One endpoint that copies a team and then returns every change, page by page.","sync",{"path":58,"title":6,"description":50,"apiTag":7},{"path":196,"title":197,"description":198,"apiTag":199},"\u002Fdevelopers\u002Freference-catalog","Catalog","Search published products and send reviewed variants with current availability and prices.","catalog",{"path":201,"title":202,"description":203},"\u002Fdevelopers\u002Fobjects","All objects","Every object the API returns, field by field, with an example of each.",{"section":205,"items":206},"resources",[207,211,215,219],{"path":208,"title":209,"description":210},"\u002Fdevelopers\u002Fchangelog","Changelog","Changes to the Totem API, newest first, each under the date it shipped.",{"path":212,"title":213,"description":214},"\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":216,"title":217,"description":218},"\u002Fdevelopers\u002Fglossary","Glossary","The terms these docs use, defined in one place, each with a link to the page that explains it.",{"path":220,"title":221,"description":222},"\u002Fdevelopers\u002Ffaq","FAQ","Short answers to the questions developers ask most about the Totem API, with links to the details.","\u002Fdevelopers\u002Fes\u002Freference-library",{"ACTIVATION_MARGIN_MS":225,"ADMIN_ACCESS_DISCLOSURE_VERSION":226,"AUDIT_RETENTION_DAYS":227,"AUTH_FAILURE_LIMITS":228,"CAPTURE_LAG_FLOOR_MS":232,"CAPTURE_LAG_P99_MS":55,"CURSOR_MAX_AGE_DAYS":233,"DIRTY_TTL_DAYS":233,"FAMILY_TEAM_SCOPE":234,"FAMILY_TEAM_SCOPE_OPTIONS":235,"FEED_SETTLE_LAG_MS":237,"GATE_REFRESH_MS":225,"INTEGRATION_NAME_LENGTH":238,"INTEGRATION_PURPOSE_LENGTH":240,"KEY_CACHE_TTL_MS":243,"KEY_STATS_RETENTION_DAYS":244,"LEAD_RESPONSE_READ_BUDGET":245,"LIST_SCAN_MAX":248,"MAX_FAMILY_INTEGRATION_TEAMS":233,"MAX_INTEGRATIONS_PER_FAMILY":249,"MAX_IP_ALLOWLIST":230,"PAGE_LIMIT":250,"PLATFORM_CONFIG_TTL_MS":253,"REMOVAL_RETENTION_DAYS":254,"REQUEST_BODY_MAX_BYTES":255,"ROLL_GRACE_DEFAULT_HOURS":256,"ROLL_GRACE_HOURS":257,"SEARCH_MAX_RESULTS":249,"SENSITIVE_SECTOR_POLICY":260,"SENSITIVE_SECTOR_POLICY_OPTIONS":261,"SYNC_DAILY_BUDGET":263,"SYNC_VELOCITY":265,"TEAM_CACHE_TTL_MS":267},60000,"2026-10-17",365,{"perIpPerMinute":229,"perLookupIdPerMinute":230,"banMs":231},60,20,600000,300000,30,"explicit_list",[234,236],"all_family_teams",10000,{"min":49,"max":239},80,{"min":241,"max":242},1,280,5000,90,{"conversations":230,"messageReads":246,"calls":247},200,50,1000,10,{"default":251,"max":252},25,100,15000,45,131072,24,[258,241,256,259],0,168,"exclude",[260,262],"allow",{"floor":264,"recordsMultiplier":46},250000,{"perMinute":266,"burst":237},2000,30000,"1.0.0",{"operations":270,"schemas":779,"errors":938,"commonErrors":1089,"defaultStability":277,"policy":224,"problemExample":1090},[271,397,481,571,732],{"id":272,"method":273,"path":274,"summary":275,"description":276,"stability":277,"scopes":278,"rateClass":280,"tenantBinding":281,"authenticated":56,"parameters":282,"parametersByLocation":291,"body":295,"bodyDescription":45,"responseFields":326,"responseComponent":366,"listOf":55,"example":367,"successStatus":246,"pathExamples":377,"errors":378,"tag":7},"library.list","POST","\u002Fv1\u002Flibrary\u002Flist","List permitted library entries","Reads a bounded page of current permitted library content with an independent library-content grant. References bind the current source revision; raw file locations, provider identifiers and internal access lists stay private. Hosted discovery preserves the assistant library selection rules.","stable",[279],"library:read","read","team_header",[283],{"name":284,"type":285,"required":51,"description":286,"nullable":51,"typeLabel":285,"constraints":287,"conditional":56,"location":290},"Totem-Team","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":288},[289],"team_","header",{"path":292,"query":293,"header":294},[],[],[283],[296,301,309,314,321],{"name":297,"type":285,"required":51,"description":298,"nullable":51,"typeLabel":285,"constraints":299},"query","Optional discovery query; hosted assistant discovery retains its canonical selection rules.",{"maxLength":300},500,{"name":302,"type":303,"required":51,"description":304,"nullable":51,"typeLabel":285,"enumValues":305},"type","\"message\" | \"media\" | \"sequence\"","Restrict discovery to this entry type.",[306,307,308],"message","media","sequence",{"name":310,"type":285,"required":51,"description":311,"nullable":51,"typeLabel":285,"constraints":312},"language","Optional language filter.",{"maxLength":313},35,{"name":315,"type":285,"required":51,"description":316,"nullable":51,"typeLabel":285,"constraints":317},"cursor","Current server-issued opaque content reference; never parse or modify it.",{"pattern":318,"minLength":319,"maxLength":320},"^tcnt1\\.[A-Za-z0-9_-]+$",40,16384,{"name":322,"type":323,"required":51,"description":324,"nullable":51,"typeLabel":323,"constraints":325},"limit","integer","Maximum entries on this page, between one and fifty.",{"minimum":241,"maximum":247},[327,333,345,350,357,362],{"name":328,"type":329,"required":56,"description":330,"nullable":51,"typeLabel":285,"enumValues":331,"constant":56},"object","\"library_entry_list\"","Always library_entry_list.",[332],"library_entry_list",{"name":334,"type":335,"required":56,"description":336,"nullable":51,"typeLabel":335,"typeTokens":337,"ref":341,"constraints":344},"data","Array\u003CLibraryEntry>","Current permitted entries on this page.",[338,340,342],{"text":339},"Array\u003C",{"text":341,"ref":341},"LibraryEntry",{"text":343},">",{"maxItems":247},{"name":346,"type":347,"required":56,"description":348,"nullable":56,"typeLabel":285,"constraints":349},"next_cursor","string | null","Opaque next-page cursor, or null after the last page.",{"pattern":318,"minLength":319,"maxLength":320},{"name":351,"type":352,"required":56,"description":353,"nullable":51,"typeLabel":285,"enumValues":354},"coverage","\"page\" | \"complete\"","Whether more discovery pages remain or this result is complete.",[355,356],"page","complete",{"name":358,"type":359,"required":56,"description":360,"nullable":56,"typeLabel":323,"constraints":361},"total","integer | null","Total entries when established by the bounded discovery, otherwise null.",{"minimum":258},{"name":363,"type":323,"required":56,"description":364,"nullable":51,"typeLabel":323,"constraints":365},"matched_in_page","Number of entries matched within this returned page.",{"minimum":258},"LibraryEntryList",{"object":332,"data":368,"next_cursor":55,"coverage":356,"total":241,"matched_in_page":241},[369],{"object":370,"reference":371,"name":372,"description":373,"type":306,"revision":241,"part_count":241,"file_count":258,"preview":374,"language":53,"parts":375},"library_entry","tcnt1.aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","Example service guide","Fictitious public example","The first visit includes an initial assessment.",[376],{"kind":306,"text":374,"file_name":55,"media_type":55},{},[379,380,381,382,383,384,385,386,387,388,389,390,391,392,393,394,395,396],"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","resource_missing",{"id":398,"method":273,"path":399,"summary":400,"description":401,"stability":277,"scopes":402,"rateClass":280,"tenantBinding":281,"authenticated":56,"parameters":403,"parametersByLocation":407,"body":411,"bodyDescription":45,"responseFields":414,"responseComponent":341,"listOf":55,"example":476,"successStatus":246,"pathExamples":479,"errors":480,"tag":7},"library.get","\u002Fv1\u002Flibrary\u002Fget","Read a permitted library entry","Reads authorized text and file metadata for one current library reference. Current grant, source incarnation, revision and hosted assistant access are checked before content is read. It returns no raw media download location.",[279],[404],{"name":284,"type":285,"required":51,"description":286,"nullable":51,"typeLabel":285,"constraints":405,"conditional":56,"location":290},{"prefixes":406},[289],{"path":408,"query":409,"header":410},[],[],[404],[412],{"name":60,"type":285,"required":56,"description":316,"nullable":51,"typeLabel":285,"constraints":413},{"pattern":318,"minLength":319,"maxLength":320},[415,419,421,425,430,433,437,441,445,450,453,458,463,468,472],{"name":328,"type":416,"required":56,"description":417,"nullable":51,"typeLabel":285,"enumValues":418,"constant":56},"\"library_entry\"","Always library_entry.",[370],{"name":60,"type":285,"required":56,"description":316,"nullable":51,"typeLabel":285,"constraints":420},{"pattern":318,"minLength":319,"maxLength":320},{"name":422,"type":285,"required":56,"description":423,"nullable":51,"typeLabel":285,"constraints":424},"name","Current entry display name.",{"maxLength":266},{"name":426,"type":285,"required":56,"description":427,"nullable":51,"typeLabel":285,"constraints":428},"description","Current authored entry description.",{"maxLength":429},20000,{"name":302,"type":303,"required":56,"description":431,"nullable":51,"typeLabel":285,"enumValues":432},"A text message, media entry or ordered sequence.",[306,307,308],{"name":434,"type":323,"required":56,"description":435,"nullable":51,"typeLabel":323,"constraints":436},"revision","Current authored revision; sending requires the revision you reviewed.",{"minimum":258},{"name":438,"type":323,"required":56,"description":439,"nullable":51,"typeLabel":323,"constraints":440},"part_count","Number of sendable parts in this current entry.",{"minimum":258},{"name":442,"type":323,"required":56,"description":443,"nullable":51,"typeLabel":323,"constraints":444},"file_count","Number of files in this current entry.",{"minimum":258},{"name":446,"type":285,"required":56,"description":447,"nullable":51,"typeLabel":285,"constraints":448},"preview","Bounded authorized content preview.",{"maxLength":449},1200,{"name":310,"type":347,"required":56,"description":451,"nullable":56,"typeLabel":285,"constraints":452},"Configured entry language, or null.",{"maxLength":252},{"name":454,"type":455,"required":51,"description":456,"nullable":51,"typeLabel":455,"constraints":457},"parts","Array\u003Cobject>","Ordered authorized parts, included by the detail read.",{"maxItems":251},{"name":459,"type":460,"required":56,"description":461,"nullable":51,"typeLabel":285,"enumValues":462},"parts[].kind","\"message\" | \"media\"","Text or media part of this entry.",[306,307],{"name":464,"type":285,"required":56,"description":465,"nullable":51,"typeLabel":285,"constraints":466},"parts[].text","Authored message or media caption text.",{"maxLength":467},100000,{"name":469,"type":347,"required":56,"description":470,"nullable":56,"typeLabel":285,"constraints":471},"parts[].file_name","Stored file name when available, otherwise null.",{"maxLength":266},{"name":473,"type":347,"required":56,"description":474,"nullable":56,"typeLabel":285,"constraints":475},"parts[].media_type","Stored media type when available, otherwise null.",{"maxLength":252},{"object":370,"reference":371,"name":372,"description":373,"type":306,"revision":241,"part_count":241,"file_count":258,"preview":374,"language":53,"parts":477},[478],{"kind":306,"text":374,"file_name":55,"media_type":55},{},[379,380,381,382,383,384,385,386,387,388,389,390,391,392,393,394,395,396],{"id":482,"method":273,"path":483,"summary":484,"description":485,"stability":277,"scopes":486,"rateClass":280,"tenantBinding":281,"authenticated":56,"parameters":487,"parametersByLocation":491,"body":495,"bodyDescription":45,"responseFields":498,"responseComponent":563,"listOf":55,"example":564,"successStatus":246,"pathExamples":569,"errors":570,"tag":7},"library.prepared","\u002Fv1\u002Flibrary\u002Fprepared","Read a prepared library response","Resolves a current owned prepared-response reference to ordered persisted text and media descriptors. It rechecks the current source, revision and content permission; media locations remain separate opaque attachment references. Prepared content is not a provider delivery claim.",[279],[488],{"name":284,"type":285,"required":51,"description":286,"nullable":51,"typeLabel":285,"constraints":489,"conditional":56,"location":290},{"prefixes":490},[289],{"path":492,"query":493,"header":494},[],[],[488],[496],{"name":60,"type":285,"required":56,"description":316,"nullable":51,"typeLabel":285,"constraints":497},{"pattern":318,"minLength":319,"maxLength":320},[499,504,510,514,519,525,535,539,545,548,551,555,559],{"name":328,"type":500,"required":56,"description":501,"nullable":51,"typeLabel":285,"enumValues":502,"constant":56},"\"library_prepared_response\"","Always library_prepared_response.",[503],"library_prepared_response",{"name":505,"type":506,"required":56,"description":507,"nullable":51,"typeLabel":508,"enumValues":509,"constant":56},"version","1","Prepared visitor response format version, always one.","number",[241],{"name":511,"type":455,"required":56,"description":512,"nullable":51,"typeLabel":455,"constraints":513},"messages","Ordered persisted visitor messages; preserve this order when rendering.",{"maxItems":251},{"name":515,"type":285,"required":56,"description":516,"nullable":51,"typeLabel":285,"constraints":517},"messages[].id","Stable opaque prepared message identity for visitor rendering.",{"minLength":241,"maxLength":518},300,{"name":520,"type":521,"required":56,"description":522,"nullable":51,"typeLabel":285,"enumValues":523,"constant":56},"messages[].role","\"assistant\"","Always assistant.",[524],"assistant",{"name":526,"type":527,"required":56,"description":528,"nullable":51,"typeLabel":285,"enumValues":529},"messages[].kind","\"text\" | \"image\" | \"video\" | \"audio\" | \"document\"","Prepared visitor message type.",[530,531,532,533,534],"text","image","video","audio","document",{"name":536,"type":285,"required":51,"description":537,"nullable":51,"typeLabel":285,"constraints":538},"messages[].content","Prepared text or caption when present.",{"maxLength":467},{"name":540,"type":541,"required":56,"description":542,"nullable":51,"typeLabel":285,"constraints":543},"messages[].timestamp","string (date-time)","Persisted message time in UTC.",{"format":544},"date-time",{"name":546,"type":328,"required":51,"description":547,"nullable":51,"typeLabel":328},"messages[].media","File metadata and an opaque attachment reference; resolve it with its separate permission.",{"name":549,"type":285,"required":56,"description":316,"nullable":51,"typeLabel":285,"constraints":550},"messages[].media.attachment_reference",{"pattern":318,"minLength":319,"maxLength":320},{"name":552,"type":285,"required":56,"description":553,"nullable":51,"typeLabel":285,"constraints":554},"messages[].media.mime_type","Canonical file MIME type.",{"maxLength":246},{"name":556,"type":347,"required":56,"description":557,"nullable":56,"typeLabel":285,"constraints":558},"messages[].media.file_name","Canonical file name when known, otherwise null.",{"maxLength":266},{"name":560,"type":359,"required":56,"description":561,"nullable":56,"typeLabel":323,"constraints":562},"messages[].media.file_size","Known file size in bytes, otherwise null.",{"minimum":258},"LibraryPreparedResponse",{"object":503,"version":241,"messages":565},[566],{"id":567,"role":524,"kind":530,"content":374,"timestamp":568},"prepared_example","2026-10-01T09:30:00.000Z",{},[379,380,381,382,383,384,385,386,387,388,389,390,391,392,393,394,395,396],{"id":572,"method":273,"path":573,"summary":574,"description":575,"stability":277,"scopes":576,"rateClass":578,"tenantBinding":281,"authenticated":56,"parameters":579,"parametersByLocation":589,"body":593,"bodyDescription":45,"responseFields":610,"responseComponent":721,"listOf":55,"example":722,"successStatus":724,"pathExamples":725,"errors":726,"tag":7},"library.send","\u002Fv1\u002Flibrary\u002Fsend","Send a reviewed library entry","Starts a durable delivery of the current reviewed library revision to an owned retained conversation. Existing per-part progress, channel policy and uncertainty guards apply. Prepared web chat content is distinct from provider delivery; partial or uncertain delivery is never silently repeated.",[279,577],"messages:send","write",[580,583],{"name":284,"type":285,"required":51,"description":286,"nullable":51,"typeLabel":285,"constraints":581,"conditional":56,"location":290},{"prefixes":582},[289],{"name":584,"type":285,"required":56,"description":585,"nullable":51,"typeLabel":285,"constraints":586,"location":290},"Idempotency-Key","One unique visible-ASCII key per logical write; reuse exactly on retries and never retry outcome_unknown automatically.",{"pattern":587,"minLength":241,"maxLength":588},"^[\\x21-\\x7e]+$",255,{"path":590,"query":591,"header":592},[],[],[580,583],[594,596,599,605],{"name":60,"type":285,"required":56,"description":316,"nullable":51,"typeLabel":285,"constraints":595},{"pattern":318,"minLength":319,"maxLength":320},{"name":597,"type":323,"required":56,"description":435,"nullable":51,"typeLabel":323,"constraints":598},"expected_revision",{"minimum":258},{"name":600,"type":285,"required":51,"description":601,"nullable":51,"typeLabel":285,"constraints":602},"conversation_id","Current retained conversation. Required for a tenant key; hosted execution derives its exact source when omitted.",{"prefixes":603},[604],"conv_",{"name":606,"type":285,"required":51,"description":607,"nullable":51,"typeLabel":285,"constraints":608},"caption","Optional caption where the canonical entry and channel permit one.",{"maxLength":609},4000,[611,616,622,633,654,658,662,707,711],{"name":328,"type":612,"required":56,"description":613,"nullable":51,"typeLabel":285,"enumValues":614,"constant":56},"\"operation\"","Always operation.",[615],"operation",{"name":617,"type":285,"required":56,"description":618,"nullable":51,"typeLabel":285,"constraints":619},"id","Opaque durable operation id.",{"prefixes":620},[621],"op_",{"name":623,"type":624,"required":56,"description":625,"nullable":51,"typeLabel":285,"enumValues":626},"status","\"queued\" | \"running\" | \"succeeded\" | \"failed\" | \"cancelled\" | \"outcome_unknown\"","Durable operation state; outcome_unknown must be reconciled before repeating the effect.",[627,628,629,630,631,632],"queued","running","succeeded","failed","cancelled","outcome_unknown",{"name":634,"type":635,"required":56,"description":636,"nullable":51,"typeLabel":285,"enumValues":637},"endpoint","\"tasks.create\" | \"tasks.complete\" | \"notifications.create\" | \"decision_requests.create\" | \"decision_requests.cancel\" | \"bookings.create\" | \"bookings.cancel\" | \"bookings.reschedule\" | \"bookingPayments.sendLink\" | \"messages.send\" | \"messages.requestInfo\" | \"messages.prepareReply\" | \"calls.start\" | \"library.send\" | \"catalog.send\" | \"quotes.recordOutcome\" | \"assistants.run\"","The original endpoint executed by this operation.",[638,639,640,641,642,643,644,645,646,647,648,649,650,572,651,652,653],"tasks.create","tasks.complete","notifications.create","decision_requests.create","decision_requests.cancel","bookings.create","bookings.cancel","bookings.reschedule","bookingPayments.sendLink","messages.send","messages.requestInfo","messages.prepareReply","calls.start","catalog.send","quotes.recordOutcome","assistants.run",{"name":655,"type":541,"required":56,"description":656,"nullable":51,"typeLabel":285,"constraints":657},"created_at","When this operation was accepted, in UTC.",{"format":544},{"name":659,"type":541,"required":56,"description":660,"nullable":51,"typeLabel":285,"constraints":661},"updated_at","When its current state was recorded, in UTC.",{"format":544},{"name":663,"type":664,"required":56,"description":665,"nullable":56,"typeLabel":666,"typeTokens":667},"result","TaskReceipt | NotificationReceipt | DecisionRequestReceipt | BookingReceipt | BookingPaymentReceipt | MessageReceipt | RequestedInfoReceipt | FirstReplyReceipt | CallStartReceipt | QuoteOutcomeReceipt | AssistantRunReceipt | LibraryDeliveryReceipt | CatalogSendReceipt | null","Minimal public resource receipt after success, otherwise null.","TaskReceipt | NotificationReceipt | DecisionRequestReceipt | BookingReceipt | BookingPaymentReceipt | MessageReceipt | RequestedInfoReceipt | FirstReplyReceipt | CallStartReceipt | QuoteOutcomeReceipt | AssistantRunReceipt | LibraryDeliveryReceipt | CatalogSendReceipt",[668,670,672,674,675,677,678,680,681,683,684,686,687,689,690,692,693,695,696,698,699,701,702,704,705],{"text":669,"ref":669},"TaskReceipt",{"text":671}," | ",{"text":673,"ref":673},"NotificationReceipt",{"text":671},{"text":676,"ref":676},"DecisionRequestReceipt",{"text":671},{"text":679,"ref":679},"BookingReceipt",{"text":671},{"text":682,"ref":682},"BookingPaymentReceipt",{"text":671},{"text":685,"ref":685},"MessageReceipt",{"text":671},{"text":688,"ref":688},"RequestedInfoReceipt",{"text":671},{"text":691,"ref":691},"FirstReplyReceipt",{"text":671},{"text":694,"ref":694},"CallStartReceipt",{"text":671},{"text":697,"ref":697},"QuoteOutcomeReceipt",{"text":671},{"text":700,"ref":700},"AssistantRunReceipt",{"text":671},{"text":703,"ref":703},"LibraryDeliveryReceipt",{"text":671},{"text":706,"ref":706},"CatalogSendReceipt",{"name":708,"type":709,"required":56,"description":710,"nullable":56,"typeLabel":328},"error","object | null","Safe failure information, or null.",{"name":712,"type":713,"required":56,"description":714,"nullable":51,"typeLabel":285,"enumValues":715},"error.code","\"authorization_failed\" | \"configuration_missing\" | \"input_expired\" | \"invalid_input\" | \"resource_missing\" | \"execution_failed\" | \"outcome_unknown\"","Closed failure code without provider text, task content or credentials.",[716,717,718,719,396,720,632],"authorization_failed","configuration_missing","input_expired","invalid_input","execution_failed","Operation",{"object":615,"id":723,"status":627,"endpoint":572,"created_at":568,"updated_at":568,"result":55,"error":55},"op_m3yGe1tkVy6hn3m9LH9m7e640wg0O",202,{},[379,380,381,382,383,384,385,386,387,388,389,390,391,392,393,394,395,727,728,729,632,730,396,731],"idempotency_key_required","idempotency_key_reused","idempotency_in_progress","quota_exceeded","version_conflict",{"id":733,"method":273,"path":734,"summary":735,"description":736,"stability":277,"scopes":737,"rateClass":280,"tenantBinding":281,"authenticated":56,"parameters":739,"parametersByLocation":743,"body":747,"bodyDescription":45,"responseFields":750,"responseComponent":772,"listOf":55,"example":773,"successStatus":246,"pathExamples":777,"errors":778,"tag":7},"attachments.resolve","\u002Fv1\u002Fattachments\u002Fresolve","Resolve an authorized attachment","Intentionally discloses the current canonical application-bucket file URL and bounded file metadata under an independent attachment-content grant. Only the exact retained owned library file from a prepared response may resolve; provider, foreign-bucket and caller-supplied URLs are refused. Current source and permission are checked on each resolution.",[279,738],"attachments:read",[740],{"name":284,"type":285,"required":51,"description":286,"nullable":51,"typeLabel":285,"constraints":741,"conditional":56,"location":290},{"prefixes":742},[289],{"path":744,"query":745,"header":746},[],[],[740],[748],{"name":60,"type":285,"required":56,"description":316,"nullable":51,"typeLabel":285,"constraints":749},{"pattern":318,"minLength":319,"maxLength":320},[751,756,763,766,769],{"name":328,"type":752,"required":56,"description":753,"nullable":51,"typeLabel":285,"enumValues":754,"constant":56},"\"attachment\"","Always attachment.",[755],"attachment",{"name":757,"type":758,"required":56,"description":759,"nullable":51,"typeLabel":285,"constraints":760},"url","string (uri)","Intentionally disclosed canonical URL of the exact owned EU application-bucket file.",{"format":761,"maxLength":762},"uri",8192,{"name":764,"type":285,"required":56,"description":553,"nullable":51,"typeLabel":285,"constraints":765},"mime_type",{"maxLength":246},{"name":767,"type":347,"required":56,"description":557,"nullable":56,"typeLabel":285,"constraints":768},"file_name",{"maxLength":266},{"name":770,"type":359,"required":56,"description":561,"nullable":56,"typeLabel":323,"constraints":771},"file_size",{"minimum":258},"Attachment",{"object":755,"url":774,"mime_type":775,"file_name":776,"file_size":252},"https:\u002F\u002Fstorage.googleapis.com\u002Ftotem-402908-eu\u002Fteams\u002Fexample\u002Fmedia\u002Fexample\u002Fguide.pdf","application\u002Fpdf","guide.pdf",{},[379,380,381,382,383,384,385,386,387,388,389,390,391,392,393,394,395,396],[780,817,842,891,923],{"name":341,"description":45,"fields":781,"example":812,"variants":815,"sharedFields":816},[782,784,786,788,790,792,794,796,798,800,802,804,806,808,810],{"name":328,"type":416,"required":56,"description":417,"nullable":51,"typeLabel":285,"enumValues":783,"constant":56},[370],{"name":60,"type":285,"required":56,"description":316,"nullable":51,"typeLabel":285,"constraints":785},{"pattern":318,"minLength":319,"maxLength":320},{"name":422,"type":285,"required":56,"description":423,"nullable":51,"typeLabel":285,"constraints":787},{"maxLength":266},{"name":426,"type":285,"required":56,"description":427,"nullable":51,"typeLabel":285,"constraints":789},{"maxLength":429},{"name":302,"type":303,"required":56,"description":431,"nullable":51,"typeLabel":285,"enumValues":791},[306,307,308],{"name":434,"type":323,"required":56,"description":435,"nullable":51,"typeLabel":323,"constraints":793},{"minimum":258},{"name":438,"type":323,"required":56,"description":439,"nullable":51,"typeLabel":323,"constraints":795},{"minimum":258},{"name":442,"type":323,"required":56,"description":443,"nullable":51,"typeLabel":323,"constraints":797},{"minimum":258},{"name":446,"type":285,"required":56,"description":447,"nullable":51,"typeLabel":285,"constraints":799},{"maxLength":449},{"name":310,"type":347,"required":56,"description":451,"nullable":56,"typeLabel":285,"constraints":801},{"maxLength":252},{"name":454,"type":455,"required":51,"description":456,"nullable":51,"typeLabel":455,"constraints":803},{"maxItems":251},{"name":459,"type":460,"required":56,"description":461,"nullable":51,"typeLabel":285,"enumValues":805},[306,307],{"name":464,"type":285,"required":56,"description":465,"nullable":51,"typeLabel":285,"constraints":807},{"maxLength":467},{"name":469,"type":347,"required":56,"description":470,"nullable":56,"typeLabel":285,"constraints":809},{"maxLength":266},{"name":473,"type":347,"required":56,"description":474,"nullable":56,"typeLabel":285,"constraints":811},{"maxLength":252},{"object":370,"reference":371,"name":372,"description":373,"type":306,"revision":241,"part_count":241,"file_count":258,"preview":374,"language":53,"parts":813},[814],{"kind":306,"text":374,"file_name":55,"media_type":55},[],[],{"name":366,"description":45,"fields":818,"example":835,"variants":840,"sharedFields":841},[819,821,827,829,831,833],{"name":328,"type":329,"required":56,"description":330,"nullable":51,"typeLabel":285,"enumValues":820,"constant":56},[332],{"name":334,"type":335,"required":56,"description":336,"nullable":51,"typeLabel":335,"typeTokens":822,"ref":341,"constraints":826},[823,824,825],{"text":339},{"text":341,"ref":341},{"text":343},{"maxItems":247},{"name":346,"type":347,"required":56,"description":348,"nullable":56,"typeLabel":285,"constraints":828},{"pattern":318,"minLength":319,"maxLength":320},{"name":351,"type":352,"required":56,"description":353,"nullable":51,"typeLabel":285,"enumValues":830},[355,356],{"name":358,"type":359,"required":56,"description":360,"nullable":56,"typeLabel":323,"constraints":832},{"minimum":258},{"name":363,"type":323,"required":56,"description":364,"nullable":51,"typeLabel":323,"constraints":834},{"minimum":258},{"object":332,"data":836,"next_cursor":55,"coverage":356,"total":241,"matched_in_page":241},[837],{"object":370,"reference":371,"name":372,"description":373,"type":306,"revision":241,"part_count":241,"file_count":258,"preview":374,"language":53,"parts":838},[839],{"kind":306,"text":374,"file_name":55,"media_type":55},[],[],{"name":703,"description":45,"fields":843,"example":888,"variants":889,"sharedFields":890},[844,849,859,863,867,870,874],{"name":328,"type":845,"required":56,"description":846,"nullable":51,"typeLabel":285,"enumValues":847,"constant":56},"\"library_delivery_receipt\"","Always library_delivery_receipt.",[848],"library_delivery_receipt",{"name":623,"type":850,"required":56,"description":851,"nullable":51,"typeLabel":285,"enumValues":852},"\"sent\" | \"partial\" | \"uncertain\" | \"failed\" | \"held\" | \"in_progress\" | \"prepared\"","Current durable delivery state. Reconcile partial or uncertain delivery before repeating it.",[853,854,855,630,856,857,858],"sent","partial","uncertain","held","in_progress","prepared",{"name":860,"type":323,"required":56,"description":861,"nullable":51,"typeLabel":323,"constraints":862},"sent_parts","Parts with retained provider acceptance; prepared web chat parts are separate.",{"minimum":258},{"name":864,"type":323,"required":56,"description":865,"nullable":51,"typeLabel":323,"constraints":866},"total_parts","Total parts of this reviewed delivery.",{"minimum":258},{"name":858,"type":868,"required":56,"description":869,"nullable":51,"typeLabel":868},"boolean","True only for a persisted web chat response prepared for the caller to render.",{"name":871,"type":347,"required":56,"description":872,"nullable":56,"typeLabel":285,"constraints":873},"prepared_reference","Current source-bound prepared response reference, or null for other delivery states.",{"pattern":318,"minLength":319,"maxLength":320},{"name":875,"type":876,"required":56,"description":877,"nullable":51,"typeLabel":285,"enumValues":878},"reason","\"none\" | \"already_sent\" | \"resource_changed\" | \"conversation_changed\" | \"session_closed\" | \"delivery_refused\" | \"provider_outcome_unknown\" | \"content_erased\" | \"not_prepared\"","Closed delivery disposition without private provider errors.",[879,880,881,882,883,884,885,886,887],"none","already_sent","resource_changed","conversation_changed","session_closed","delivery_refused","provider_outcome_unknown","content_erased","not_prepared",{"object":848,"status":858,"sent_parts":258,"total_parts":241,"prepared":56,"prepared_reference":371,"reason":879},[],[],{"name":563,"description":45,"fields":892,"example":918,"variants":921,"sharedFields":922},[893,895,897,899,901,903,905,907,909,910,912,914,916],{"name":328,"type":500,"required":56,"description":501,"nullable":51,"typeLabel":285,"enumValues":894,"constant":56},[503],{"name":505,"type":506,"required":56,"description":507,"nullable":51,"typeLabel":508,"enumValues":896,"constant":56},[241],{"name":511,"type":455,"required":56,"description":512,"nullable":51,"typeLabel":455,"constraints":898},{"maxItems":251},{"name":515,"type":285,"required":56,"description":516,"nullable":51,"typeLabel":285,"constraints":900},{"minLength":241,"maxLength":518},{"name":520,"type":521,"required":56,"description":522,"nullable":51,"typeLabel":285,"enumValues":902,"constant":56},[524],{"name":526,"type":527,"required":56,"description":528,"nullable":51,"typeLabel":285,"enumValues":904},[530,531,532,533,534],{"name":536,"type":285,"required":51,"description":537,"nullable":51,"typeLabel":285,"constraints":906},{"maxLength":467},{"name":540,"type":541,"required":56,"description":542,"nullable":51,"typeLabel":285,"constraints":908},{"format":544},{"name":546,"type":328,"required":51,"description":547,"nullable":51,"typeLabel":328},{"name":549,"type":285,"required":56,"description":316,"nullable":51,"typeLabel":285,"constraints":911},{"pattern":318,"minLength":319,"maxLength":320},{"name":552,"type":285,"required":56,"description":553,"nullable":51,"typeLabel":285,"constraints":913},{"maxLength":246},{"name":556,"type":347,"required":56,"description":557,"nullable":56,"typeLabel":285,"constraints":915},{"maxLength":266},{"name":560,"type":359,"required":56,"description":561,"nullable":56,"typeLabel":323,"constraints":917},{"minimum":258},{"object":503,"version":241,"messages":919},[920],{"id":567,"role":524,"kind":530,"content":374,"timestamp":568},[],[],{"name":772,"description":45,"fields":924,"example":935,"variants":936,"sharedFields":937},[925,927,929,931,933],{"name":328,"type":752,"required":56,"description":753,"nullable":51,"typeLabel":285,"enumValues":926,"constant":56},[755],{"name":757,"type":758,"required":56,"description":759,"nullable":51,"typeLabel":285,"constraints":928},{"format":761,"maxLength":762},{"name":764,"type":285,"required":56,"description":553,"nullable":51,"typeLabel":285,"constraints":930},{"maxLength":246},{"name":767,"type":347,"required":56,"description":557,"nullable":56,"typeLabel":285,"constraints":932},{"maxLength":266},{"name":770,"type":359,"required":56,"description":561,"nullable":56,"typeLabel":323,"constraints":934},{"minimum":258},{"object":755,"url":774,"mime_type":775,"file_name":776,"file_size":252},[],[],[939,947,952,956,962,967,972,977,984,989,993,997,1001,1006,1010,1014,1020,1024,1028,1033,1037,1042,1048,1054,1060,1066,1071,1075,1080,1085],{"code":940,"status":941,"title":942,"wireTitle":942,"action":943,"description":944,"fix":945,"retryable":51,"retry":946},"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":727,"status":948,"title":949,"wireTitle":949,"action":943,"description":950,"fix":951,"retryable":51,"retry":946},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":728,"status":941,"title":953,"wireTitle":953,"action":943,"description":954,"fix":955,"retryable":51,"retry":946},"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":729,"status":941,"title":957,"wireTitle":957,"action":958,"description":959,"fix":960,"retryable":56,"retry":961},"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":632,"status":941,"title":963,"wireTitle":963,"action":964,"description":965,"fix":966,"retryable":51,"retry":946},"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":731,"status":968,"title":969,"wireTitle":969,"action":943,"description":970,"fix":971,"retryable":51,"retry":946},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":973,"status":941,"title":974,"wireTitle":974,"action":943,"description":975,"fix":976,"retryable":51,"retry":946},"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":978,"status":979,"title":980,"wireTitle":980,"action":981,"description":982,"fix":983,"retryable":51,"retry":946},"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":985,"status":979,"title":986,"wireTitle":986,"action":943,"description":987,"fix":988,"retryable":51,"retry":946},"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":379,"status":948,"title":990,"wireTitle":990,"action":943,"description":991,"fix":992,"retryable":51,"retry":946},"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":391,"status":948,"title":994,"wireTitle":994,"action":943,"description":995,"fix":996,"retryable":51,"retry":946},"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":380,"status":948,"title":998,"wireTitle":998,"action":943,"description":999,"fix":1000,"retryable":51,"retry":946},"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":381,"status":1002,"title":1003,"wireTitle":1003,"action":981,"description":1004,"fix":1005,"retryable":51,"retry":946},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":382,"status":1002,"title":1007,"wireTitle":1007,"action":981,"description":1008,"fix":1009,"retryable":51,"retry":946},"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":383,"status":979,"title":1011,"wireTitle":1011,"action":981,"description":1012,"fix":1013,"retryable":51,"retry":946},"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":384,"status":979,"title":1015,"wireTitle":1015,"action":1016,"description":1017,"fix":1018,"retryable":56,"retry":1019},"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":385,"status":979,"title":1021,"wireTitle":1021,"action":981,"description":1022,"fix":1023,"retryable":51,"retry":946},"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":393,"status":979,"title":1025,"wireTitle":1025,"action":1016,"description":1026,"fix":1027,"retryable":56,"retry":1019},"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":394,"status":979,"title":1029,"wireTitle":1029,"action":1016,"description":1030,"fix":1031,"retryable":51,"retry":1032},"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":386,"status":979,"title":1034,"wireTitle":1034,"action":1016,"description":1035,"fix":1036,"retryable":56,"retry":1019},"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":396,"status":1038,"title":1039,"wireTitle":1039,"action":943,"description":1040,"fix":1041,"retryable":51,"retry":946},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":392,"status":1038,"title":1043,"wireTitle":1043,"action":1044,"description":1045,"fix":1046,"retryable":51,"retry":1047},"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":1049,"status":941,"title":1050,"wireTitle":1050,"action":1051,"description":1052,"fix":1053,"retryable":51,"retry":946},"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":395,"status":941,"title":1055,"wireTitle":1055,"action":1056,"description":1057,"fix":1058,"retryable":56,"retry":1059},"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":1061,"status":1062,"title":1063,"wireTitle":1063,"action":1051,"description":1064,"fix":1065,"retryable":51,"retry":946},"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":387,"status":1067,"title":1068,"wireTitle":1068,"action":958,"description":1069,"fix":1070,"retryable":56,"retry":961},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":730,"status":1067,"title":1072,"wireTitle":1072,"action":958,"description":1073,"fix":1074,"retryable":56,"retry":961},"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":388,"status":300,"title":1076,"wireTitle":1076,"action":1077,"description":1078,"fix":1079,"retryable":56,"retry":1077},"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":389,"status":1081,"title":1082,"wireTitle":1082,"action":1077,"description":1083,"fix":1084,"retryable":56,"retry":1077},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":390,"status":1081,"title":1086,"wireTitle":1086,"action":1077,"description":1087,"fix":1088,"retryable":56,"retry":1077},"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.",[379,380,381,382,383,384,385,386,387,388,389,390],{"type":1091,"title":1039,"status":1038,"code":396,"request_id":1092,"doc_url":1091},"https:\u002F\u002Ftotemstudio.ai\u002Fdevelopers\u002Ferrors#resource_missing","req_0f6b2c1e-8d4a-4b7e-9c3f-5a2d1e7b9c40",[1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1104],{"id":14,"text":15,"depth":49},{"id":272,"text":275,"depth":49},{"id":398,"text":400,"depth":49},{"id":482,"text":484,"depth":49},{"id":572,"text":574,"depth":49},{"id":733,"text":735,"depth":49},{"id":341,"text":341,"depth":49},{"id":366,"text":366,"depth":49},{"id":703,"text":703,"depth":49},{"id":563,"text":563,"depth":49},{"id":772,"text":772,"depth":49},{"path":190,"title":191,"section":60},{"path":196,"title":197,"section":60},[1108,1109,1110,1111,1112],{"id":272,"method":273,"path":274,"summary":275},{"id":398,"method":273,"path":399,"summary":400},{"id":482,"method":273,"path":483,"summary":484},{"id":572,"method":273,"path":573,"summary":574},{"id":733,"method":273,"path":734,"summary":735},1796395410966,"6ece8729-dc31-4887-85ce-5a18e6f853a8"]