[{"data":1,"prerenderedAt":730},["ShallowReactive",2],{"developers:\u002Fdevelopers\u002Freference-calls":3},{"doc":4,"lang":236,"nav":248,"alternatePath":351,"policy":352,"specVersion":396,"reference":397,"layout":243,"toc":720,"prev":725,"next":726,"operations":727,"overview":238,"heroExample":238},{"id":5,"title":6,"apiTag":7,"body":8,"description":233,"draft":234,"extension":235,"lang":236,"meta":237,"navTitle":238,"navigation":239,"order":240,"path":241,"rawbody":242,"section":243,"seo":244,"stem":245,"translationKey":246,"version":238,"__hash__":247},"developers_en\u002Fdevelopers\u002Freference-calls.md","Calls","calls",{"type":9,"value":10,"toc":227},"minimark",[11,16,30,64,148,184,201],[12,13,15],"h2",{"id":14},"overview","Overview",[17,18,19,20,24,25,29],"p",{},"A ",[21,22,23],"strong",{},"call"," is the metadata of a phone call, or of a web voice session, linked to a lead: its ",[26,27,28],"code",{},"direction",", when it started, how long it lasted, and how it ended. Recordings, transcripts and summaries are never exported. The caller's name and number travel on the linked lead, not on the call.",[17,31,32,35,36,39,40,39,43,39,46,39,49,39,52,55,56,59,60,63],{},[26,33,34],{},"outcome"," says how the call ended: ",[26,37,38],{},"answered_human",", ",[26,41,42],{},"answered_ai",[26,44,45],{},"voicemail",[26,47,48],{},"no_answer",[26,50,51],{},"busy",[26,53,54],{},"failed",", or ",[26,57,58],{},"unknown"," when the call is still live or nothing shows who answered. Read it together with ",[26,61,62],{},"outcome_basis",", which names the evidence behind it:",[65,66,67,81],"table",{},[68,69,70],"thead",{},[71,72,73,78],"tr",{},[74,75,76],"th",{},[26,77,62],{},[74,79,80],{},"The outcome rests on",[82,83,84,95,105,115,128,138],"tbody",{},[71,85,86,92],{},[87,88,89],"td",{},[26,90,91],{},"inbound_verdict",[87,93,94],{},"Totem's classification of an inbound call.",[71,96,97,102],{},[87,98,99],{},[26,100,101],{},"ai_analysis",[87,103,104],{},"Totem's classification of the status, end reason and length that Retell reports.",[71,106,107,112],{},[87,108,109],{},[26,110,111],{},"duration_floor",[87,113,114],{},"The length of a call on a human line: one of at least 10 seconds counts as answered.",[71,116,117,122],{},[87,118,119],{},[26,120,121],{},"carrier_answer_only",[87,123,124,125,127],{},"Only the carrier's answer signal. It never counts as answered, so a connected call reads ",[26,126,58],{},".",[71,129,130,135],{},[87,131,132],{},[26,133,134],{},"browser_session",[87,136,137],{},"A web voice session with the assistant.",[71,139,140,145],{},[87,141,142],{},[26,143,144],{},"none",[87,146,147],{},"No evidence.",[17,149,150,151,55,153,155,156,158,159,161,162,164,165,167,168,170,171,173,174,177,178,180,181,183],{},"Which basis a call gets depends on how it was placed. Inbound calls on Totem's phone lines get ",[26,152,91],{},[26,154,121],{}," when Totem has not classified them. Every outbound call on Totem's phone lines, whether the AI or a person made it, gets ",[26,157,121],{},", so a connected outbound call reads ",[26,160,58],{},". Calls handled through the Retell voice platform get ",[26,163,101],{},", and calls on a connected Zadarma PBX get ",[26,166,111],{},". A web voice session gets ",[26,169,134],{},", and a call that is still live gets ",[26,172,144],{},". A lead's ",[26,175,176],{},"last_answered_call_at"," counts only ",[26,179,38],{}," and ",[26,182,42],{},", so it leaves out connected outbound calls on Totem's phone lines.",[17,185,186,189,190,193,194,197,198,200],{},[26,187,188],{},"duration_seconds"," is rounded down to whole seconds, and is ",[26,191,192],{},"null"," while the call is still live. ",[26,195,196],{},"lead"," is ",[26,199,192],{}," when the call is not linked to a lead, or when the lead no longer exists.",[17,202,203,204,180,211,217,218,221,222,226],{},"Use ",[205,206,208],"a",{"href":207},"\u002Fdevelopers\u002Freference-calls#calls.list",[26,209,210],{},"GET \u002Fv1\u002Fcalls",[205,212,214],{"href":213},"\u002Fdevelopers\u002Freference-calls#calls.get",[26,215,216],{},"GET \u002Fv1\u002Fcalls\u002F{id}"," to look calls up; ",[26,219,220],{},"GET \u002Fv1\u002Fcalls?lead="," lists one lead's calls. To keep a copy, follow the changes feed, which delivers every new call and every change: ",[205,223,225],{"href":224},"\u002Fdevelopers\u002Fsync","Keep a copy in sync"," explains it.",{"title":228,"searchDepth":229,"depth":229,"links":230},"",3,[231],{"id":14,"depth":232,"text":15},2,"List and fetch a team's calls, with their direction, timing and a normalized outcome. No recordings or transcripts.",false,"md","en",{},null,true,"60","\u002Fdevelopers\u002Freference-calls","---\ntitle: Calls\ndescription: List and fetch a team's calls, with their direction, timing and a normalized outcome. No recordings or transcripts.\nsection: reference\norder: 60\ntranslationKey: reference-calls\nlang: en\ndraft: false\napiTag: calls\n---\n\n## Overview\n\nA **call** is the metadata of a phone call, or of a web voice session, linked to a lead: its `direction`, when it started, how long it lasted, and how it ended. Recordings, transcripts and summaries are never exported. The caller's name and number travel on the linked lead, not on the call.\n\n`outcome` says how the call ended: `answered_human`, `answered_ai`, `voicemail`, `no_answer`, `busy`, `failed`, or `unknown` when the call is still live or nothing shows who answered. Read it together with `outcome_basis`, which names the evidence behind it:\n\n| `outcome_basis` | The outcome rests on |\n|---|---|\n| `inbound_verdict` | Totem's classification of an inbound call. |\n| `ai_analysis` | Totem's classification of the status, end reason and length that Retell reports. |\n| `duration_floor` | The length of a call on a human line: one of at least 10 seconds counts as answered. |\n| `carrier_answer_only` | Only the carrier's answer signal. It never counts as answered, so a connected call reads `unknown`. |\n| `browser_session` | A web voice session with the assistant. |\n| `none` | No evidence. |\n\nWhich basis a call gets depends on how it was placed. Inbound calls on Totem's phone lines get `inbound_verdict`, or `carrier_answer_only` when Totem has not classified them. Every outbound call on Totem's phone lines, whether the AI or a person made it, gets `carrier_answer_only`, so a connected outbound call reads `unknown`. Calls handled through the Retell voice platform get `ai_analysis`, and calls on a connected Zadarma PBX get `duration_floor`. A web voice session gets `browser_session`, and a call that is still live gets `none`. A lead's `last_answered_call_at` counts only `answered_human` and `answered_ai`, so it leaves out connected outbound calls on Totem's phone lines.\n\n`duration_seconds` is rounded down to whole seconds, and is `null` while the call is still live. `lead` is `null` when the call is not linked to a lead, or when the lead no longer exists.\n\nUse [`GET \u002Fv1\u002Fcalls`](\u002Fdevelopers\u002Freference-calls#calls.list) and [`GET \u002Fv1\u002Fcalls\u002F{id}`](\u002Fdevelopers\u002Freference-calls#calls.get) to look calls up; `GET \u002Fv1\u002Fcalls?lead=` lists one lead's calls. To keep a copy, follow the changes feed, which delivers every new call and every change: [Keep a copy in sync](\u002Fdevelopers\u002Fsync) explains it.\n","reference",{"title":6,"description":233},"developers\u002Freference-calls","reference-calls","ZxpQhaSj92PagBxYSwpas2PT_IPFjevVhvfrQpzlXCQ",[249,263,288,332],{"section":250,"items":251},"start",[252,255,259],{"path":253,"title":15,"description":254},"\u002Fdevelopers","Read the leads, calls, conversations and bookings of your Totem teams from your own systems, and keep a copy in sync.",{"path":256,"title":257,"description":258},"\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":260,"title":261,"description":262},"\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":264,"items":265},"guides",[266,270,272,276,280,284],{"path":267,"title":268,"description":269},"\u002Fdevelopers\u002Ftypescript","TypeScript SDK","Use the official TypeScript client to read your Totem data, paginate lists and handle API errors from your server.",{"path":224,"title":225,"description":271},"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":273,"title":274,"description":275},"\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":277,"title":278,"description":279},"\u002Fdevelopers\u002Fcoverage","Data coverage","What Totem records, since when, and how to tell an empty value from a fact that was never recorded.",{"path":281,"title":282,"description":283},"\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":285,"title":286,"description":287},"\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":243,"items":289},[290,294,298,302,307,312,313,318,323,328],{"path":291,"title":292,"description":293},"\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":295,"title":296,"description":297},"\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":299,"title":300,"description":301},"\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":303,"title":304,"description":305,"apiTag":306},"\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":308,"title":309,"description":310,"apiTag":311},"\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":241,"title":6,"description":233,"apiTag":7},{"path":314,"title":315,"description":316,"apiTag":317},"\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":319,"title":320,"description":321,"apiTag":322},"\u002Fdevelopers\u002Freference-bookings","Bookings and services","List and fetch a team's bookings, and list the services its customers can book.","bookings",{"path":324,"title":325,"description":326,"apiTag":327},"\u002Fdevelopers\u002Freference-sync","Changes feed","One endpoint that copies a team and then returns every change, page by page.","sync",{"path":329,"title":330,"description":331},"\u002Fdevelopers\u002Fobjects","All objects","Every object the API returns, field by field, with an example of each.",{"section":333,"items":334},"resources",[335,339,343,347],{"path":336,"title":337,"description":338},"\u002Fdevelopers\u002Fchangelog","Changelog","Changes to the Totem API, newest first, each under the date it shipped.",{"path":340,"title":341,"description":342},"\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":344,"title":345,"description":346},"\u002Fdevelopers\u002Fglossary","Glossary","The terms these docs use, defined in one place, each with a link to the page that explains it.",{"path":348,"title":349,"description":350},"\u002Fdevelopers\u002Ffaq","FAQ","Short answers to the questions developers ask most about the Totem API, with links to the details.","\u002Fdevelopers\u002Fes\u002Freference-calls",{"ACTIVATION_MARGIN_MS":353,"ADMIN_ACCESS_DISCLOSURE_VERSION":354,"AUDIT_RETENTION_DAYS":355,"AUTH_FAILURE_LIMITS":356,"CAPTURE_LAG_FLOOR_MS":360,"CAPTURE_LAG_P99_MS":238,"CURSOR_MAX_AGE_DAYS":361,"DIRTY_TTL_DAYS":361,"FAMILY_TEAM_SCOPE":362,"FAMILY_TEAM_SCOPE_OPTIONS":363,"FEED_SETTLE_LAG_MS":365,"GATE_REFRESH_MS":353,"INTEGRATION_NAME_LENGTH":366,"INTEGRATION_PURPOSE_LENGTH":368,"KEY_CACHE_TTL_MS":371,"KEY_STATS_RETENTION_DAYS":372,"LEAD_RESPONSE_READ_BUDGET":373,"LIST_SCAN_MAX":376,"MAX_FAMILY_INTEGRATION_TEAMS":361,"MAX_INTEGRATIONS_PER_FAMILY":377,"MAX_IP_ALLOWLIST":358,"PAGE_LIMIT":378,"PLATFORM_CONFIG_TTL_MS":381,"REMOVAL_RETENTION_DAYS":382,"REQUEST_BODY_MAX_BYTES":383,"ROLL_GRACE_DEFAULT_HOURS":384,"ROLL_GRACE_HOURS":385,"SEARCH_MAX_RESULTS":377,"SENSITIVE_SECTOR_POLICY":388,"SENSITIVE_SECTOR_POLICY_OPTIONS":389,"SYNC_DAILY_BUDGET":391,"SYNC_VELOCITY":393,"TEAM_CACHE_TTL_MS":395},60000,"2026-10-17",365,{"perIpPerMinute":357,"perLookupIdPerMinute":358,"banMs":359},60,20,600000,300000,30,"explicit_list",[362,364],"all_family_teams",10000,{"min":232,"max":367},80,{"min":369,"max":370},1,280,5000,90,{"conversations":358,"messageReads":374,"calls":375},200,50,1000,10,{"default":379,"max":380},25,100,15000,45,16384,24,[386,369,384,387],0,168,"exclude",[388,390],"allow",{"floor":392,"recordsMultiplier":229},250000,{"perMinute":394,"burst":365},2000,30000,"1.0a",{"operations":398,"schemas":572,"errors":605,"commonErrors":716,"defaultStability":405,"policy":352,"problemExample":717},[399,495],{"id":400,"method":401,"path":402,"summary":403,"description":404,"stability":405,"scopes":406,"rateClass":327,"tenantBinding":408,"authenticated":239,"parameters":409,"parametersByLocation":434,"body":438,"bodyDescription":228,"responseFields":439,"responseComponent":465,"listOf":454,"example":466,"errors":476,"tag":7},"calls.list","GET","\u002Fv1\u002Fcalls","List calls","Returns a page of the team's calls, each with its direction, start time, duration and a normalized outcome, and linked to its lead when there is one. Pass `lead` for one lead's calls. Recordings and transcripts are not exported.","beta",[407],"calls:read","team_header",[410,416,422,427],{"name":411,"type":412,"required":234,"description":413,"nullable":234,"typeLabel":412,"constraints":414,"location":415},"limit","integer","Items per page, 1–100. Defaults to 25.",{"minimum":369,"maximum":380,"default":379},"query",{"name":417,"type":418,"required":234,"description":419,"nullable":234,"typeLabel":418,"constraints":420,"location":415},"cursor","string","The `next_cursor` of the previous page. Omit it for the first page.",{"minLength":369,"maxLength":421},512,{"name":196,"type":418,"required":234,"description":423,"nullable":234,"typeLabel":418,"constraints":424,"location":415},"Only the calls linked to this lead: every item's `lead` is this id. A lead of another team, or one that does not exist, matches nothing.",{"prefixes":425},[426],"lead_",{"name":428,"type":418,"required":234,"description":429,"nullable":234,"typeLabel":418,"constraints":430,"conditional":239,"location":433},"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":431},[432],"team_","header",{"path":435,"query":436,"header":437},[],[410,416,422],[427],[],[440,446,457,461],{"name":441,"type":442,"required":239,"description":443,"nullable":234,"typeLabel":418,"enumValues":444,"constant":239},"object","\"list\"","Always `list`.",[445],"list",{"name":447,"type":448,"required":239,"description":449,"nullable":234,"typeLabel":448,"typeTokens":450,"ref":454},"data","Array\u003CCall>","The items of this page.",[451,453,455],{"text":452},"Array\u003C",{"text":454,"ref":454},"Call",{"text":456},">",{"name":458,"type":459,"required":239,"description":460,"nullable":234,"typeLabel":459},"has_more","boolean","`true` when another page follows: fetch it with `next_cursor`, even if this page holds fewer items than `limit`.",{"name":462,"type":463,"required":239,"description":464,"nullable":239,"typeLabel":418},"next_cursor","string | null","Opaque cursor for the next page, or null on the last page. Never parse it.","CallList",{"object":445,"data":467,"has_more":234,"next_cursor":238},[468],{"id":469,"object":23,"livemode":234,"team":470,"lead":471,"direction":472,"started_at":473,"duration_seconds":474,"outcome":42,"outcome_basis":91,"version":232,"updated_at":475},"call_m2kUbFcayHlZ5Lgs9xZNmDS3c3Jvk","team_r9uYrIW4gSFJJ6hZQ9ip1UIpPaAD1CF7NR","lead_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMXKSF0QbLS8CiUKJpEP34LFQG","inbound","2026-09-28T10:17:00.000Z",184,"2026-09-28T10:21:04.010Z",[477,478,479,480,481,482,483,484,485,486,487,488,489,490,491,492,493,494],"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",{"id":496,"method":401,"path":497,"summary":498,"description":499,"stability":405,"scopes":500,"rateClass":501,"tenantBinding":502,"authenticated":239,"parameters":503,"parametersByLocation":511,"body":515,"bodyDescription":228,"responseFields":516,"responseComponent":454,"listOf":238,"example":569,"errors":570,"tag":7},"calls.get","\u002Fv1\u002Fcalls\u002F{id}","Get a call","Returns one call by its id. A call this key cannot read, or one that was removed, answers `404 resource_missing`.",[407],"read","resource_id",[504],{"name":505,"type":418,"required":239,"description":506,"nullable":234,"typeLabel":418,"constraints":507,"location":510},"id","The call's public id.",{"prefixes":508},[509],"call_","path",{"path":512,"query":513,"header":514},[504],[],[],[],[517,521,525,528,533,537,542,548,552,556,560,564],{"name":505,"type":418,"required":239,"description":518,"nullable":234,"typeLabel":418,"constraints":519},"Public id of the record.",{"prefixes":520},[509],{"name":441,"type":522,"required":239,"description":523,"nullable":234,"typeLabel":418,"enumValues":524,"constant":239},"\"call\"","Always `call`.",[23],{"name":526,"type":459,"required":239,"description":527,"nullable":234,"typeLabel":459},"livemode","`true` for real data; `false` in example data.",{"name":529,"type":418,"required":239,"description":530,"nullable":234,"typeLabel":418,"constraints":531},"team","The team this record belongs to.",{"prefixes":532},[432],{"name":196,"type":463,"required":239,"description":534,"nullable":239,"typeLabel":418,"constraints":535},"The lead this call is linked to, or null when it is unlinked or the lead no longer exists. Identity (name, phone) travels on the lead only.",{"prefixes":536},[426],{"name":28,"type":538,"required":239,"description":539,"nullable":239,"typeLabel":418,"enumValues":540},"\"inbound\" | \"outbound\" | null","`inbound` or `outbound`; null when not stored.",[472,541],"outbound",{"name":543,"type":544,"required":239,"description":545,"nullable":239,"typeLabel":418,"constraints":546},"started_at","string (date-time) | null","When the call started (UTC), or when it was recorded if the provider gave no start time.",{"format":547},"date-time",{"name":188,"type":549,"required":239,"description":550,"nullable":239,"typeLabel":412,"constraints":551},"integer | null","Whole seconds of the call (rounded down); null while the call is still live, or when not stored.",{"minimum":386},{"name":34,"type":553,"required":239,"description":554,"nullable":234,"typeLabel":418,"enumValues":555},"\"answered_human\" | \"answered_ai\" | \"voicemail\" | \"no_answer\" | \"busy\" | \"failed\" | \"unknown\"","How the call ended: `answered_human`, `answered_ai`, `voicemail`, `no_answer`, `busy`, `failed`, or `unknown` (still live, or no evidence of who answered). Read it with `outcome_basis`.",[38,42,45,48,51,54,58],{"name":62,"type":557,"required":239,"description":558,"nullable":234,"typeLabel":418,"enumValues":559},"\"inbound_verdict\" | \"ai_analysis\" | \"duration_floor\" | \"carrier_answer_only\" | \"browser_session\" | \"none\"","The evidence behind `outcome`: `inbound_verdict` (Totem's classification of an inbound call on its phone lines), `ai_analysis` (Totem's classification of the status, end reason and length that Retell reports), `duration_floor` (a call on a connected Zadarma PBX, where at least 10 seconds counts as answered), `carrier_answer_only` (only the carrier's answer signal, which never counts as answered, so a connected call reads `unknown`: every outbound call on Totem's phone lines, made by the AI or by a person, and an inbound one Totem has not classified), `browser_session` (a web voice session with the assistant), or `none` (no evidence, as for a call that is still live).",[91,101,111,121,134,144],{"name":561,"type":412,"required":239,"description":562,"nullable":234,"typeLabel":412,"constraints":563},"version","Increases every time one of the record's exported fields changes. Apply a change only when its version is greater than the one you hold.",{"minimum":369},{"name":565,"type":566,"required":239,"description":567,"nullable":234,"typeLabel":418,"constraints":568},"updated_at","string (date-time)","When Totem recorded this version (UTC). It is not the time the business event happened.",{"format":547},{"id":469,"object":23,"livemode":234,"team":470,"lead":471,"direction":472,"started_at":473,"duration_seconds":474,"outcome":42,"outcome_basis":91,"version":232,"updated_at":475},[477,478,479,480,481,482,483,484,485,486,487,488,571,491,492,493],"resource_missing",[573],{"name":454,"description":574,"fields":575,"example":602,"variants":603,"sharedFields":604},"A call: its direction, timing and a normalized outcome. No recording or transcript.",[576,579,581,582,585,588,590,592,594,596,598,600],{"name":505,"type":418,"required":239,"description":518,"nullable":234,"typeLabel":418,"constraints":577},{"prefixes":578},[509],{"name":441,"type":522,"required":239,"description":523,"nullable":234,"typeLabel":418,"enumValues":580,"constant":239},[23],{"name":526,"type":459,"required":239,"description":527,"nullable":234,"typeLabel":459},{"name":529,"type":418,"required":239,"description":530,"nullable":234,"typeLabel":418,"constraints":583},{"prefixes":584},[432],{"name":196,"type":463,"required":239,"description":534,"nullable":239,"typeLabel":418,"constraints":586},{"prefixes":587},[426],{"name":28,"type":538,"required":239,"description":539,"nullable":239,"typeLabel":418,"enumValues":589},[472,541],{"name":543,"type":544,"required":239,"description":545,"nullable":239,"typeLabel":418,"constraints":591},{"format":547},{"name":188,"type":549,"required":239,"description":550,"nullable":239,"typeLabel":412,"constraints":593},{"minimum":386},{"name":34,"type":553,"required":239,"description":554,"nullable":234,"typeLabel":418,"enumValues":595},[38,42,45,48,51,54,58],{"name":62,"type":557,"required":239,"description":558,"nullable":234,"typeLabel":418,"enumValues":597},[91,101,111,121,134,144],{"name":561,"type":412,"required":239,"description":562,"nullable":234,"typeLabel":412,"constraints":599},{"minimum":369},{"name":565,"type":566,"required":239,"description":567,"nullable":234,"typeLabel":418,"constraints":601},{"format":547},{"id":469,"object":23,"livemode":234,"team":470,"lead":471,"direction":472,"started_at":473,"duration_seconds":474,"outcome":42,"outcome_basis":91,"version":232,"updated_at":475},[],[],[606,613,617,621,627,631,637,643,647,651,656,660,665,671,678,684,690,697,701,707,712],{"code":477,"status":607,"title":608,"wireTitle":608,"action":609,"description":610,"fix":611,"retryable":234,"retry":612},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":489,"status":607,"title":614,"wireTitle":614,"action":609,"description":615,"fix":616,"retryable":234,"retry":612},"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":478,"status":607,"title":618,"wireTitle":618,"action":609,"description":619,"fix":620,"retryable":234,"retry":612},"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":479,"status":622,"title":623,"wireTitle":623,"action":624,"description":625,"fix":626,"retryable":234,"retry":612},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":480,"status":622,"title":628,"wireTitle":628,"action":624,"description":629,"fix":630,"retryable":234,"retry":612},"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":481,"status":632,"title":633,"wireTitle":633,"action":634,"description":635,"fix":636,"retryable":234,"retry":612},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":482,"status":632,"title":638,"wireTitle":638,"action":639,"description":640,"fix":641,"retryable":239,"retry":642},"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":483,"status":632,"title":644,"wireTitle":644,"action":624,"description":645,"fix":646,"retryable":234,"retry":612},"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":491,"status":632,"title":648,"wireTitle":648,"action":639,"description":649,"fix":650,"retryable":239,"retry":642},"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":492,"status":632,"title":652,"wireTitle":652,"action":639,"description":653,"fix":654,"retryable":234,"retry":655},"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":484,"status":632,"title":657,"wireTitle":657,"action":639,"description":658,"fix":659,"retryable":239,"retry":642},"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":571,"status":661,"title":662,"wireTitle":662,"action":609,"description":663,"fix":664,"retryable":234,"retry":612},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":490,"status":661,"title":666,"wireTitle":666,"action":667,"description":668,"fix":669,"retryable":234,"retry":670},"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":672,"status":673,"title":674,"wireTitle":674,"action":675,"description":676,"fix":677,"retryable":234,"retry":612},"resync_required",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":493,"status":673,"title":679,"wireTitle":679,"action":680,"description":681,"fix":682,"retryable":239,"retry":683},"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":685,"status":686,"title":687,"wireTitle":687,"action":675,"description":688,"fix":689,"retryable":234,"retry":612},"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":485,"status":691,"title":692,"wireTitle":692,"action":693,"description":694,"fix":695,"retryable":239,"retry":696},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":494,"status":691,"title":698,"wireTitle":698,"action":693,"description":699,"fix":700,"retryable":239,"retry":696},"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":486,"status":702,"title":703,"wireTitle":703,"action":704,"description":705,"fix":706,"retryable":239,"retry":704},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":487,"status":708,"title":709,"wireTitle":709,"action":704,"description":710,"fix":711,"retryable":239,"retry":704},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":488,"status":708,"title":713,"wireTitle":713,"action":704,"description":714,"fix":715,"retryable":239,"retry":704},"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.",[477,478,479,480,481,482,483,484,485,486,487,488],{"type":718,"title":662,"status":661,"code":571,"request_id":719,"doc_url":718},"https:\u002F\u002Ftotemstudio.ai\u002Fdevelopers\u002Ferrors#resource_missing","req_0f6b2c1e-8d4a-4b7e-9c3f-5a2d1e7b9c40",[721,722,723,724],{"id":14,"text":15,"depth":232},{"id":400,"text":403,"depth":232},{"id":496,"text":498,"depth":232},{"id":454,"text":454,"depth":232},{"path":308,"title":309,"section":243},{"path":314,"title":315,"section":243},[728,729],{"id":400,"method":401,"path":402,"summary":403},{"id":496,"method":401,"path":497,"summary":498},1792502789657]