[{"data":1,"prerenderedAt":607},["ShallowReactive",2],{"developers:\u002Fdevelopers\u002Freference-sync":3},{"doc":4,"lang":68,"nav":80,"alternatePath":183,"policy":184,"specVersion":228,"reference":229,"layout":75,"toc":599,"prev":603,"next":604,"operations":605,"overview":70,"heroExample":70},{"id":5,"title":6,"apiTag":7,"body":8,"description":65,"draft":66,"extension":67,"lang":68,"meta":69,"navTitle":70,"navigation":71,"order":72,"path":73,"rawbody":74,"section":75,"seo":76,"stem":77,"translationKey":78,"version":70,"__hash__":79},"developers_en\u002Fdevelopers\u002Freference-sync.md","Changes feed","sync",{"type":9,"value":10,"toc":59},"minimark",[11,16,40,51],[12,13,15],"h2",{"id":14},"overview","Overview",[17,18,19,27,28,31,32,35,36,39],"p",{},[20,21,23],"a",{"href":22},"\u002Fdevelopers\u002Freference-sync#sync.changes",[24,25,26],"code",{},"GET \u002Fv1\u002Fsync\u002Fchanges"," returns a team's changes, page by page, in the order Totem recorded them. Without ",[24,29,30],{},"cursor",", it starts an initial sync of every record. With the ",[24,33,34],{},"next_cursor"," of your last page, it returns what changed since. Each item is the current state of one record, or a removal that tells you to delete it. New kinds of record can appear in the feed in any version: store or skip an item whose ",[24,37,38],{},"kind"," you do not know, and keep syncing.",[17,41,42,43,45,46,50],{},"Store ",[24,44,34],{}," after you apply each page, even an empty one, and send it on your next request. A cursor expires ",[47,48],"api-const",{"name":49},"CURSOR_MAX_AGE_DAYS"," days after the point in the feed it reached; a team you poll every few minutes never gets there.",[17,52,53,54,58],{},"This page is the reference: the parameters, the item object and the errors. ",[20,55,57],{"href":56},"\u002Fdevelopers\u002Fsync","Keep a copy in sync"," is the guide: how to apply a page, recover from each error, and run a sync client that Totem tests.",{"title":60,"searchDepth":61,"depth":61,"links":62},"",3,[63],{"id":14,"depth":64,"text":15},2,"One endpoint that copies a team and then returns every change, page by page.",false,"md","en",{},null,true,"90","\u002Fdevelopers\u002Freference-sync","---\ntitle: Changes feed\ndescription: One endpoint that copies a team and then returns every change, page by page.\nsection: reference\norder: 90\ntranslationKey: reference-sync\nlang: en\ndraft: false\napiTag: sync\n---\n\n## Overview\n\n[`GET \u002Fv1\u002Fsync\u002Fchanges`](\u002Fdevelopers\u002Freference-sync#sync.changes) returns a team's changes, page by page, in the order Totem recorded them. Without `cursor`, it starts an initial sync of every record. With the `next_cursor` of your last page, it returns what changed since. Each item is the current state of one record, or a removal that tells you to delete it. New kinds of record can appear in the feed in any version: store or skip an item whose `kind` you do not know, and keep syncing.\n\nStore `next_cursor` after you apply each page, even an empty one, and send it on your next request. A cursor expires :api-const{name=\"CURSOR_MAX_AGE_DAYS\"} days after the point in the feed it reached; a team you poll every few minutes never gets there.\n\nThis page is the reference: the parameters, the item object and the errors. [Keep a copy in sync](\u002Fdevelopers\u002Fsync) is the guide: how to apply a page, recover from each error, and run a sync client that Totem tests.\n","reference",{"title":6,"description":65},"developers\u002Freference-sync","reference-sync","QpdSWK_9X_sxMia43GkfMqAuJzo-BoU3gq2zk_3bZ1E",[81,95,120,164],{"section":82,"items":83},"start",[84,87,91],{"path":85,"title":15,"description":86},"\u002Fdevelopers","Read the leads, calls, conversations and bookings of your Totem teams from your own systems, and keep a copy in sync.",{"path":88,"title":89,"description":90},"\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":92,"title":93,"description":94},"\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":96,"items":97},"guides",[98,102,104,108,112,116],{"path":99,"title":100,"description":101},"\u002Fdevelopers\u002Ftypescript","TypeScript SDK","Use the official TypeScript client to read your Totem data, paginate lists and handle API errors from your server.",{"path":56,"title":57,"description":103},"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":105,"title":106,"description":107},"\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":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":75,"items":121},[122,126,130,134,139,144,149,154,159,160],{"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. No recordings or transcripts.","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. Never message content.","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":73,"title":6,"description":65,"apiTag":7},{"path":161,"title":162,"description":163},"\u002Fdevelopers\u002Fobjects","All objects","Every object the API returns, field by field, with an example of each.",{"section":165,"items":166},"resources",[167,171,175,179],{"path":168,"title":169,"description":170},"\u002Fdevelopers\u002Fchangelog","Changelog","Changes to the Totem API, newest first, each under the date it shipped.",{"path":172,"title":173,"description":174},"\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":176,"title":177,"description":178},"\u002Fdevelopers\u002Fglossary","Glossary","The terms these docs use, defined in one place, each with a link to the page that explains it.",{"path":180,"title":181,"description":182},"\u002Fdevelopers\u002Ffaq","FAQ","Short answers to the questions developers ask most about the Totem API, with links to the details.","\u002Fdevelopers\u002Fes\u002Freference-sync",{"ACTIVATION_MARGIN_MS":185,"ADMIN_ACCESS_DISCLOSURE_VERSION":186,"AUDIT_RETENTION_DAYS":187,"AUTH_FAILURE_LIMITS":188,"CAPTURE_LAG_FLOOR_MS":192,"CAPTURE_LAG_P99_MS":70,"CURSOR_MAX_AGE_DAYS":193,"DIRTY_TTL_DAYS":193,"FAMILY_TEAM_SCOPE":194,"FAMILY_TEAM_SCOPE_OPTIONS":195,"FEED_SETTLE_LAG_MS":197,"GATE_REFRESH_MS":185,"INTEGRATION_NAME_LENGTH":198,"INTEGRATION_PURPOSE_LENGTH":200,"KEY_CACHE_TTL_MS":203,"KEY_STATS_RETENTION_DAYS":204,"LEAD_RESPONSE_READ_BUDGET":205,"LIST_SCAN_MAX":208,"MAX_FAMILY_INTEGRATION_TEAMS":193,"MAX_INTEGRATIONS_PER_FAMILY":209,"MAX_IP_ALLOWLIST":190,"PAGE_LIMIT":210,"PLATFORM_CONFIG_TTL_MS":213,"REMOVAL_RETENTION_DAYS":214,"REQUEST_BODY_MAX_BYTES":215,"ROLL_GRACE_DEFAULT_HOURS":216,"ROLL_GRACE_HOURS":217,"SEARCH_MAX_RESULTS":209,"SENSITIVE_SECTOR_POLICY":220,"SENSITIVE_SECTOR_POLICY_OPTIONS":221,"SYNC_DAILY_BUDGET":223,"SYNC_VELOCITY":225,"TEAM_CACHE_TTL_MS":227},60000,"2026-10-17",365,{"perIpPerMinute":189,"perLookupIdPerMinute":190,"banMs":191},60,20,600000,300000,30,"explicit_list",[194,196],"all_family_teams",10000,{"min":64,"max":199},80,{"min":201,"max":202},1,280,5000,90,{"conversations":190,"messageReads":206,"calls":207},200,50,1000,10,{"default":211,"max":212},25,100,15000,45,16384,24,[218,201,216,219],0,168,"exclude",[220,222],"allow",{"floor":224,"recordsMultiplier":61},250000,{"perMinute":226,"burst":197},2000,30000,"1.0a",{"operations":230,"schemas":362,"errors":485,"commonErrors":595,"defaultStability":237,"policy":184,"problemExample":596},[231],{"id":232,"method":233,"path":234,"summary":235,"description":236,"stability":237,"scopes":238,"rateClass":7,"tenantBinding":243,"authenticated":71,"parameters":244,"parametersByLocation":263,"body":267,"bodyDescription":60,"responseFields":268,"responseComponent":292,"listOf":283,"example":293,"errors":341,"tag":7},"sync.changes","GET","\u002Fv1\u002Fsync\u002Fchanges","Read the changes feed of one team","Returns the next page of one team's changes, in the order Totem recorded them: each item is a record's current state or its removal. Without `cursor` it starts an initial sync of every record; after applying each page, store its `next_cursor` and send it on the next call, even when the page is empty. A cursor expires 30 days after the point in the feed it reached or, while an initial sync is still running, 30 days after that sync started.","beta",[239,240,241,242],"crm:read","calls:read","messages:read","calendar:read","team_header",[245,251,256],{"name":30,"type":246,"required":66,"description":247,"nullable":66,"typeLabel":246,"constraints":248,"location":250},"string","The `next_cursor` of the previous page. Omit it to start an initial sync from the beginning.",{"minLength":201,"maxLength":249},512,"query",{"name":252,"type":253,"required":66,"description":254,"nullable":66,"typeLabel":253,"constraints":255,"location":250},"limit","integer","Items per page, 1–100. Defaults to 25.",{"minimum":201,"maximum":212,"default":211},{"name":257,"type":246,"required":66,"description":258,"nullable":66,"typeLabel":246,"constraints":259,"conditional":71,"location":262},"Totem-Team","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":260},[261],"team_","header",{"path":264,"query":265,"header":266},[],[245,251],[256],[],[269,275,286,290],{"name":270,"type":271,"required":71,"description":272,"nullable":66,"typeLabel":246,"enumValues":273,"constant":71},"object","\"list\"","Always `list`.",[274],"list",{"name":276,"type":277,"required":71,"description":278,"nullable":66,"typeLabel":277,"typeTokens":279,"ref":283},"data","Array\u003CFeedItem>","Changes in the order Totem recorded them. A record can appear more than once during an initial sync.",[280,282,284],{"text":281},"Array\u003C",{"text":283,"ref":283},"FeedItem",{"text":285},">",{"name":287,"type":288,"required":71,"description":289,"nullable":66,"typeLabel":288},"has_more","boolean","`true` when more changes are ready now; `false` once you have caught up.",{"name":34,"type":246,"required":71,"description":291,"nullable":66,"typeLabel":246},"Always present, even on an empty page. Store it after applying the page and send it on the next call.","FeedPage",{"object":274,"data":294,"has_more":66,"next_cursor":340},[295,322,328],{"kind":296,"id":297,"version":61,"object":298},"lead","lead_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMXKSF0QbLS8CiUKJpEP34LFQG",{"id":297,"object":296,"livemode":66,"team":299,"record_kind":296,"name":300,"surname":301,"email":302,"company":303,"phone":304,"phone_status":305,"status":306,"status_set_by":307,"archive_reason":70,"archived_from_status":70,"contact_permissions":308,"merged_into":70,"transferred_to":70,"revived_at":70,"pipeline_cleared":66,"converted_at":70,"value_at_conversion":70,"priority":310,"tags":311,"board":313,"stage":314,"assignees":315,"estimated_value":317,"estimated_value_currency":70,"source":318,"source_channel":70,"source_detail":70,"source_provenance":319,"created_at":320,"version":61,"updated_at":321},"team_r9uYrIW4gSFJJ6hZQ9ip1UIpPaAD1CF7NR","Alex","Rivera","alex.rivera@example.com","Example Dental","+12025550123","valid","contacted","ai",{"do_not_contact":66,"email_opt_out":66,"email_opt_out_at":70,"whatsapp_consent":70,"provenance":309},{"do_not_contact":70,"email_opt_out":70,"whatsapp_consent":70},"high",[312],"spring-check-up","brd_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMX3trzsVUZQuHcMSuDh1aRIst","stg_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMXWBYWcKwVTY3CRZlVS3oYvs0",[316],"mem_h548E7UiYhutHhucVrQCzkM0eaea0",1200,"meta_lead_ads","member_editable","2026-09-28T10:15:00.000Z","2026-09-28T10:20:01.250Z",{"kind":323,"id":324,"version":325,"removed":326},"call","call_m1pf4APjJWVi3Z7ulyNaW8y3lUi7V",5,{"reason":327},"deleted",{"kind":329,"id":297,"version":330,"object":331},"lead_response",7,{"id":297,"object":329,"livemode":66,"team":299,"last_inbound_at":332,"last_outbound_at":333,"awaiting_reply":66,"last_answered_call_at":334,"last_whatsapp_delivery_status":335,"coverage":336,"version":330,"updated_at":339},"2026-10-01T08:58:00.000Z","2026-10-01T08:59:30.000Z","2026-09-28T10:17:00.000Z","read",{"conversations":64,"calls":201,"channels_without_delivery_data":337,"truncated":66},[338],"email","2026-10-01T08:59:31.040Z","eyJ2IjoxLCJ0ZWFtIjoidGVhbV9yOXVZcklXNGdTRkpKNmhaUTlpcDFVSXBQYUFEMUNGN05SIiwiZXBvY2giOjAsInQiOnsicyI6MTc5MDg0NTE3MSwibnMiOjQwMDAwMDAwfSwibiI6IjVkMjJhMTVlM2E5MmNmYTE4NzUzZTVmYzkyZmVjNzI0MjQyNjIzZDE2MGIxZTUxMzRiYTM1ODE5MmUzNzM0ZjEiLCJicyI6bnVsbH01ZPX02",[342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361],"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","quota_exceeded","resync_required","sync_cursor_expired",[363],{"name":283,"description":364,"fields":365,"example":427,"variants":433,"sharedFields":480},"One change: the record's current state, or its removal.",[366,375,386,390,418,421],{"name":38,"type":367,"required":71,"description":368,"nullable":66,"typeLabel":246,"enumValues":369},"\"lead\" | \"lead_attribution\" | \"lead_response\" | \"activity\" | \"call\" | \"conversation\" | \"booking\" | \"board\"","The kind of the record, such as `lead` or `call`.",[296,370,329,371,323,372,373,374],"lead_attribution","activity","conversation","booking","board",{"name":376,"type":246,"required":71,"description":377,"nullable":66,"typeLabel":246,"constraints":378},"id","Public id of the record; the facets `lead_attribution` and `lead_response` use their lead's id. Public id of the removed record.",{"prefixes":379},[380,381,382,383,384,385],"lead_","act_","call_","conv_","bkg_","brd_",{"name":387,"type":253,"required":71,"description":388,"nullable":66,"typeLabel":253,"constraints":389},"version","The record's version. Apply the item only when it is greater than the version you hold.",{"minimum":201},{"name":270,"type":391,"required":66,"description":392,"nullable":66,"typeLabel":391,"typeTokens":393,"conditional":71},"Lead | LeadAttribution | LeadResponse | Activity | Call | Conversation | Booking | Board","The record as it is now.",[394,396,398,400,401,403,404,406,407,409,410,412,413,415,416],{"text":395,"ref":395},"Lead",{"text":397}," | ",{"text":399,"ref":399},"LeadAttribution",{"text":397},{"text":402,"ref":402},"LeadResponse",{"text":397},{"text":405,"ref":405},"Activity",{"text":397},{"text":408,"ref":408},"Call",{"text":397},{"text":411,"ref":411},"Conversation",{"text":397},{"text":414,"ref":414},"Booking",{"text":397},{"text":417,"ref":417},"Board",{"name":419,"type":270,"required":66,"description":420,"nullable":66,"typeLabel":270,"conditional":71},"removed","Present only on a removal.",{"name":422,"type":423,"required":71,"description":424,"nullable":66,"typeLabel":246,"enumValues":425},"removed.reason","\"erased\" | \"deleted\"","`erased` after an erasure, which is also what deleting a lead, call or conversation in Totem does: erasing a lead erases its calls, conversations and merged duplicates too, while its bookings stay with `lead` set to `null`. `deleted` for any other removal. Either way, delete your copy and keep this version, so an older copy delivered later is ignored.",[426,327],"erased",{"kind":296,"id":297,"version":61,"object":428},{"id":297,"object":296,"livemode":66,"team":299,"record_kind":296,"name":300,"surname":301,"email":302,"company":303,"phone":304,"phone_status":305,"status":306,"status_set_by":307,"archive_reason":70,"archived_from_status":70,"contact_permissions":429,"merged_into":70,"transferred_to":70,"revived_at":70,"pipeline_cleared":66,"converted_at":70,"value_at_conversion":70,"priority":310,"tags":431,"board":313,"stage":314,"assignees":432,"estimated_value":317,"estimated_value_currency":70,"source":318,"source_channel":70,"source_detail":70,"source_provenance":319,"created_at":320,"version":61,"updated_at":321},{"do_not_contact":66,"email_opt_out":66,"email_opt_out_at":70,"whatsapp_consent":70,"provenance":430},{"do_not_contact":70,"email_opt_out":70,"whatsapp_consent":70},[312],[316],[434,469],{"key":435,"title":60,"description":60,"discriminator":70,"distinct":436,"ownFields":437},"with-object",[270],[438,442],{"name":376,"type":246,"required":71,"description":439,"nullable":66,"typeLabel":246,"constraints":440},"Public id of the record; the facets `lead_attribution` and `lead_response` use their lead's id.",{"prefixes":441},[380,381,382,383,384,385],{"name":270,"type":391,"required":71,"description":392,"nullable":66,"typeLabel":391,"typeTokens":443,"discriminatedBy":459},[444,445,446,447,448,449,450,451,452,453,454,455,456,457,458],{"text":395,"ref":395},{"text":397},{"text":399,"ref":399},{"text":397},{"text":402,"ref":402},{"text":397},{"text":405,"ref":405},{"text":397},{"text":408,"ref":408},{"text":397},{"text":411,"ref":411},{"text":397},{"text":414,"ref":414},{"text":397},{"text":417,"ref":417},{"key":38,"cases":460},[461,462,463,464,465,466,467,468],{"value":296,"typeLabel":395,"ref":395},{"value":370,"typeLabel":399,"ref":399},{"value":329,"typeLabel":402,"ref":402},{"value":371,"typeLabel":405,"ref":405},{"value":323,"typeLabel":408,"ref":408},{"value":372,"typeLabel":411,"ref":411},{"value":373,"typeLabel":414,"ref":414},{"value":374,"typeLabel":417,"ref":417},{"key":470,"title":60,"description":60,"discriminator":70,"distinct":471,"ownFields":472},"with-removed",[419],[473,477,478],{"name":376,"type":246,"required":71,"description":474,"nullable":66,"typeLabel":246,"constraints":475},"Public id of the removed record.",{"prefixes":476},[380,381,382,383,384,385],{"name":419,"type":270,"required":71,"description":420,"nullable":66,"typeLabel":270},{"name":422,"type":423,"required":71,"description":424,"nullable":66,"typeLabel":246,"enumValues":479},[426,327],[481,483],{"name":38,"type":367,"required":71,"description":368,"nullable":66,"typeLabel":246,"enumValues":482},[296,370,329,371,323,372,373,374],{"name":387,"type":253,"required":71,"description":388,"nullable":66,"typeLabel":253,"constraints":484},{"minimum":201},[486,493,497,501,507,511,517,523,527,531,536,540,546,552,558,564,569,576,580,586,591],{"code":342,"status":487,"title":488,"wireTitle":488,"action":489,"description":490,"fix":491,"retryable":66,"retry":492},400,"Invalid request","fix_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.","no",{"code":354,"status":487,"title":494,"wireTitle":494,"action":489,"description":495,"fix":496,"retryable":66,"retry":492},"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":343,"status":487,"title":498,"wireTitle":498,"action":489,"description":499,"fix":500,"retryable":66,"retry":492},"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":344,"status":502,"title":503,"wireTitle":503,"action":504,"description":505,"fix":506,"retryable":66,"retry":492},401,"Invalid credentials","check_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":345,"status":502,"title":508,"wireTitle":508,"action":504,"description":509,"fix":510,"retryable":66,"retry":492},"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":346,"status":512,"title":513,"wireTitle":513,"action":514,"description":515,"fix":516,"retryable":66,"retry":492},403,"Insufficient scope","contact_support","The key lacks a permission this endpoint needs. Every v1.0a key holds the full read set, so this should not happen.","Contact support and quote the `Totem-Request-Id` of the response.",{"code":347,"status":512,"title":518,"wireTitle":518,"action":519,"description":520,"fix":521,"retryable":71,"retry":522},"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":348,"status":512,"title":524,"wireTitle":524,"action":504,"description":525,"fix":526,"retryable":66,"retry":492},"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":356,"status":512,"title":528,"wireTitle":528,"action":519,"description":529,"fix":530,"retryable":71,"retry":522},"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":357,"status":512,"title":532,"wireTitle":532,"action":519,"description":533,"fix":534,"retryable":66,"retry":535},"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":349,"status":512,"title":537,"wireTitle":537,"action":519,"description":538,"fix":539,"retryable":71,"retry":522},"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":541,"status":542,"title":543,"wireTitle":543,"action":489,"description":544,"fix":545,"retryable":66,"retry":492},"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":355,"status":542,"title":547,"wireTitle":547,"action":548,"description":549,"fix":550,"retryable":66,"retry":551},"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":360,"status":553,"title":554,"wireTitle":554,"action":555,"description":556,"fix":557,"retryable":66,"retry":492},409,"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":358,"status":553,"title":559,"wireTitle":559,"action":560,"description":561,"fix":562,"retryable":71,"retry":563},"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":361,"status":565,"title":566,"wireTitle":566,"action":555,"description":567,"fix":568,"retryable":66,"retry":492},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":350,"status":570,"title":571,"wireTitle":571,"action":572,"description":573,"fix":574,"retryable":71,"retry":575},429,"Rate limited","retry_after","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.","after",{"code":359,"status":570,"title":577,"wireTitle":577,"action":572,"description":578,"fix":579,"retryable":71,"retry":575},"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":351,"status":581,"title":582,"wireTitle":582,"action":583,"description":584,"fix":585,"retryable":71,"retry":583},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":352,"status":587,"title":588,"wireTitle":588,"action":583,"description":589,"fix":590,"retryable":71,"retry":583},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":353,"status":587,"title":592,"wireTitle":592,"action":583,"description":593,"fix":594,"retryable":71,"retry":583},"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.",[342,343,344,345,346,347,348,349,350,351,352,353],{"type":597,"title":543,"status":542,"code":541,"request_id":598,"doc_url":597},"https:\u002F\u002Ftotemstudio.ai\u002Fdevelopers\u002Ferrors#resource_missing","req_0f6b2c1e-8d4a-4b7e-9c3f-5a2d1e7b9c40",[600,601,602],{"id":14,"text":15,"depth":64},{"id":232,"text":235,"depth":64},{"id":283,"text":283,"depth":64},{"path":155,"title":156,"section":75},{"path":161,"title":162,"section":75},[606],{"id":232,"method":233,"path":234,"summary":235},1792502789807]