[{"data":1,"prerenderedAt":1338,"buildId":1339},["ShallowReactive",2],{"developers:\u002Fdevelopers\u002Freference-decisions":3},{"doc":4,"lang":340,"nav":352,"alternatePath":507,"policy":508,"specVersion":552,"reference":553,"layout":347,"toc":1322,"prev":1332,"next":1333,"operations":1334,"overview":342,"heroExample":342},{"id":5,"title":6,"apiTag":7,"body":8,"description":337,"draft":338,"extension":339,"lang":340,"meta":341,"navTitle":342,"navigation":343,"order":344,"path":345,"rawbody":346,"section":347,"seo":348,"stem":349,"translationKey":350,"version":342,"__hash__":351},"developers_en\u002Fdevelopers\u002Freference-decisions.md","Decision requests","decision_requests",{"type":9,"value":10,"toc":328},"minimark",[11,16,25,53,56,79,83,121,201,212,216,261,309,313],[12,13,15],"h2",{"id":14},"overview","Overview",[17,18,19,20,24],"p",{},"A ",[21,22,23],"strong",{},"decision request"," asks named people on the team for a decision with a deadline. It has two shapes:",[26,27,28,40],"ul",{},[29,30,31,34,35,39],"li",{},[21,32,33],{},"Approval"," (",[36,37,38],"code",{},"preset: approval","): approve or reject. The first answer decides. Use it for a quote before it reaches the customer, a discount or a booking exception. The reviewer may correct editable values and the outgoing email before approving.",[29,41,42,34,45,48,49,52],{},[21,43,44],{},"Job offer",[36,46,47],{},"preset: assignment","): accept or decline. A decline or silence moves the request to the next person; with ",[36,50,51],{},"escalate_to_admins"," the team's admins are asked last. Use it to offer an incident to the technicians of a department one at a time.",[17,54,55],{},"Totem alerts each person in the app, and through the team's alert plan by WhatsApp, call or email with a signed answer link. People who only receive alerts, such as outside technicians, answer from that link. Your integration never sees responder phone numbers or links.",[17,57,58,59,62,63,66,67,70,71,74,75,78],{},"Create an integration with the ",[36,60,61],{},"operations"," profile to authorize ",[36,64,65],{},"decisions:write"," and ",[36,68,69],{},"decisions:read","; rotating an older key does not add them. Select the team with ",[36,72,73],{},"Totem-Team"," and use a new ",[36,76,77],{},"Idempotency-Key"," for each request you create.",[12,80,82],{"id":81},"create-a-request","Create a request",[17,84,85,92,93,97,98,100,101,104,105,108,109,112,113,116,117,120],{},[86,87,89],"a",{"href":88},"\u002Fdevelopers\u002Freference-decisions#decision_requests.create",[36,90,91],{},"POST \u002Fv1\u002Fdecision-requests"," accepts the request as an ",[86,94,96],{"href":95},"\u002Fdevelopers\u002Freference-operations","operation",". One ",[36,99,77],{}," creates at most one request: retry with the same key and body after an uncertain answer. Wait for ",[36,102,103],{},"status: succeeded","; the result is a ",[36,106,107],{},"decision_request_receipt"," with the opaque ",[36,110,111],{},"drq_"," id, its ",[36,114,115],{},"state"," and its ",[36,118,119],{},"resolution",".",[26,122,123,142,181,195],{},[29,124,125,126,129,130,133,134,137,138,141],{},"With ",[36,127,128],{},"type_id",", the type configured in ",[21,131,132],{},"Settings › Automations › Approvals and job offers"," decides who is asked, routing, deadline, alert plan and effects. A type that decides by policy, such as one that only asks when ",[36,135,136],{},"m2 > 100",", can already be ",[36,139,140],{},"resolved"," in the receipt.",[29,143,144,145,148,149,148,152,155,156,159,160,163,164,170,171,66,174,177,178,180],{},"Without a type, set ",[36,146,147],{},"preset",", ",[36,150,151],{},"type_name",[36,153,154],{},"responders"," (a ",[36,157,158],{},"department_id",", or ",[36,161,162],{},"member_ids"," from ",[86,165,167],{"href":166},"\u002Fdevelopers\u002Freference-account#members.list",[36,168,169],{},"GET \u002Fv1\u002Fmembers","), ",[36,172,173],{},"routing",[36,175,176],{},"expires_hours",". Without ",[36,179,154],{}," the team's admins are asked.",[29,182,183,186,187,190,191,194],{},[36,184,185],{},"fields"," are the values the person sees, and may correct when ",[36,188,189],{},"editable",". ",[36,192,193],{},"message"," is the email Totem sends to the lead from the team's automation mailbox when the request is approved.",[29,196,197,200],{},[36,198,199],{},"metadata"," holds up to 20 of your own string values, such as your quote id. Totem returns them unchanged and never shows them to people.",[17,202,203,204,207,208,211],{},"Files travel inline in ",[36,205,206],{},"attachments",", base64-encoded: PDF, PNG, JPEG, WEBP, plain text or CSV, up to five. The whole JSON body is limited to 128 KiB and base64 grows a file by a third, so in practice the files share about 90 KB before encoding. Send a larger document as a link in ",[36,209,210],{},"summary"," instead.",[12,213,215],{"id":214},"react-to-the-outcome","React to the outcome",[17,217,218,219,222,223,229,230,233,234,236,237,240,241,148,244,148,247,148,250,148,253,256,257,260],{},"When the request ends, Totem records ",[36,220,221],{},"decision_request.resolved"," for the integration that created it. Read it from ",[86,224,226],{"href":225},"\u002Fdevelopers\u002Freference-sync#events.list",[36,227,228],{},"GET \u002Fv1\u002Fevents",": ",[36,231,232],{},"resource_id"," is the ",[36,235,111],{}," id and ",[36,238,239],{},"status"," is the resolution, one of ",[36,242,243],{},"approved",[36,245,246],{},"rejected",[36,248,249],{},"accepted",[36,251,252],{},"unanswered",[36,254,255],{},"expired"," or ",[36,258,259],{},"cancelled",". The n8n Events trigger reads the same feed.",[17,262,263,264,270,271,274,275,148,278,256,281,284,285,66,288,291,292,66,295,298,299,302,303,305,306,120],{},"Then call ",[86,265,267],{"href":266},"\u002Fdevelopers\u002Freference-decisions#decision_requests.get",[36,268,269],{},"GET \u002Fv1\u002Fdecision-requests\u002F{id}",". It returns who decided (",[36,272,273],{},"decided_by",": a member id, ",[36,276,277],{},"policy",[36,279,280],{},"system",[36,282,283],{},"integration","), the deciding answer's ",[36,286,287],{},"comment",[36,289,290],{},"via",", the ",[36,293,294],{},"final_fields",[36,296,297],{},"final_message"," when approved or accepted, what Totem did afterwards in ",[36,300,301],{},"effects",", and your ",[36,304,199],{},". Only the integration that created a request can read it; any other request answers ",[36,307,308],{},"404 resource_missing",[12,310,312],{"id":311},"cancel-a-request","Cancel a request",[17,314,315,321,322,324,325,327],{},[86,316,318],{"href":317},"\u002Fdevelopers\u002Freference-decisions#decision_requests.cancel",[36,319,320],{},"POST \u002Fv1\u002Fdecision-requests\u002F{id}\u002Fcancel"," takes an empty JSON object and returns an operation. Totem withdraws the pending alerts and records ",[36,323,221],{}," with ",[36,326,259],{},". Cancelling a request that already ended is safe; the receipt shows how it ended.",{"title":329,"searchDepth":330,"depth":330,"links":331},"",3,[332,334,335,336],{"id":14,"depth":333,"text":15},2,{"id":81,"depth":333,"text":82},{"id":214,"depth":333,"text":215},{"id":311,"depth":333,"text":312},"Ask named people on the team to approve something or take a job, with a deadline, and react to the outcome.",false,"md","en",{},null,true,"84","\u002Fdevelopers\u002Freference-decisions","---\ntitle: Decision requests\ndescription: Ask named people on the team to approve something or take a job, with a deadline, and react to the outcome.\nsection: reference\norder: 84\ntranslationKey: reference-decisions\nlang: en\ndraft: false\napiTag: decision_requests\n---\n\n## Overview\n\nA **decision request** asks named people on the team for a decision with a deadline. It has two shapes:\n\n- **Approval** (`preset: approval`): approve or reject. The first answer decides. Use it for a quote before it reaches the customer, a discount or a booking exception. The reviewer may correct editable values and the outgoing email before approving.\n- **Job offer** (`preset: assignment`): accept or decline. A decline or silence moves the request to the next person; with `escalate_to_admins` the team's admins are asked last. Use it to offer an incident to the technicians of a department one at a time.\n\nTotem alerts each person in the app, and through the team's alert plan by WhatsApp, call or email with a signed answer link. People who only receive alerts, such as outside technicians, answer from that link. Your integration never sees responder phone numbers or links.\n\nCreate an integration with the `operations` profile to authorize `decisions:write` and `decisions:read`; rotating an older key does not add them. Select the team with `Totem-Team` and use a new `Idempotency-Key` for each request you create.\n\n## Create a request\n\n[`POST \u002Fv1\u002Fdecision-requests`](\u002Fdevelopers\u002Freference-decisions#decision_requests.create) accepts the request as an [operation](\u002Fdevelopers\u002Freference-operations). One `Idempotency-Key` creates at most one request: retry with the same key and body after an uncertain answer. Wait for `status: succeeded`; the result is a `decision_request_receipt` with the opaque `drq_` id, its `state` and its `resolution`.\n\n- With `type_id`, the type configured in **Settings › Automations › Approvals and job offers** decides who is asked, routing, deadline, alert plan and effects. A type that decides by policy, such as one that only asks when `m2 > 100`, can already be `resolved` in the receipt.\n- Without a type, set `preset`, `type_name`, `responders` (a `department_id`, or `member_ids` from [`GET \u002Fv1\u002Fmembers`](\u002Fdevelopers\u002Freference-account#members.list)), `routing` and `expires_hours`. Without `responders` the team's admins are asked.\n- `fields` are the values the person sees, and may correct when `editable`. `message` is the email Totem sends to the lead from the team's automation mailbox when the request is approved.\n- `metadata` holds up to 20 of your own string values, such as your quote id. Totem returns them unchanged and never shows them to people.\n\nFiles travel inline in `attachments`, base64-encoded: PDF, PNG, JPEG, WEBP, plain text or CSV, up to five. The whole JSON body is limited to 128 KiB and base64 grows a file by a third, so in practice the files share about 90 KB before encoding. Send a larger document as a link in `summary` instead.\n\n## React to the outcome\n\nWhen the request ends, Totem records `decision_request.resolved` for the integration that created it. Read it from [`GET \u002Fv1\u002Fevents`](\u002Fdevelopers\u002Freference-sync#events.list): `resource_id` is the `drq_` id and `status` is the resolution, one of `approved`, `rejected`, `accepted`, `unanswered`, `expired` or `cancelled`. The n8n Events trigger reads the same feed.\n\nThen call [`GET \u002Fv1\u002Fdecision-requests\u002F{id}`](\u002Fdevelopers\u002Freference-decisions#decision_requests.get). It returns who decided (`decided_by`: a member id, `policy`, `system` or `integration`), the deciding answer's `comment` and `via`, the `final_fields` and `final_message` when approved or accepted, what Totem did afterwards in `effects`, and your `metadata`. Only the integration that created a request can read it; any other request answers `404 resource_missing`.\n\n## Cancel a request\n\n[`POST \u002Fv1\u002Fdecision-requests\u002F{id}\u002Fcancel`](\u002Fdevelopers\u002Freference-decisions#decision_requests.cancel) takes an empty JSON object and returns an operation. Totem withdraws the pending alerts and records `decision_request.resolved` with `cancelled`. Cancelling a request that already ended is safe; the receipt shows how it ended.\n","reference",{"title":6,"description":337},"developers\u002Freference-decisions","reference-decisions","KhqygSqdJPdMCqHx2Mo5B1FMLut2uRGXAB8K2oQSTzQ",[353,367,406,488],{"section":354,"items":355},"start",[356,359,363],{"path":357,"title":15,"description":358},"\u002Fdevelopers","Read CRM data and run authorized Totem actions with explicit permissions, private-content grants and observable operation results.",{"path":360,"title":361,"description":362},"\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":364,"title":365,"description":366},"\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":368,"items":369},"guides",[370,374,378,382,386,390,394,398,402],{"path":371,"title":372,"description":373},"\u002Fdevelopers\u002Ftypescript","TypeScript SDK","Use the official server-side TypeScript client for typed Totem requests, explicit business actions, pagination and safe outcome handling.",{"path":375,"title":376,"description":377},"\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":379,"title":380,"description":381},"\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":383,"title":384,"description":385},"\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":387,"title":388,"description":389},"\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":391,"title":392,"description":393},"\u002Fdevelopers\u002Fhighlevel","HighLevel connection","Connect CRM and use authorized Totem workflow actions and events in HighLevel, with separate permissions and clear release status.",{"path":395,"title":396,"description":397},"\u002Fdevelopers\u002Fcoverage","Data coverage","What Totem records, since when, and how to tell an empty value from a fact that was never recorded.",{"path":399,"title":400,"description":401},"\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":403,"title":404,"description":405},"\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":347,"items":407},[408,412,416,420,425,430,435,440,445,446,451,456,459,464,469,474,479,484],{"path":409,"title":410,"description":411},"\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":413,"title":414,"description":415},"\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":417,"title":418,"description":419},"\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":421,"title":422,"description":423,"apiTag":424},"\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":426,"title":427,"description":428,"apiTag":429},"\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":431,"title":432,"description":433,"apiTag":434},"\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":436,"title":437,"description":438,"apiTag":439},"\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":441,"title":442,"description":443,"apiTag":444},"\u002Fdevelopers\u002Freference-bookings","Bookings and services","List and fetch a team's bookings, and list the services its customers can book.","bookings",{"path":345,"title":6,"description":337,"apiTag":7},{"path":447,"title":448,"description":449,"apiTag":450},"\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":452,"title":453,"description":454,"apiTag":455},"\u002Fdevelopers\u002Freference-tasks","Tasks","Create and complete team tasks with explicit write permission.","tasks",{"path":95,"title":457,"description":458,"apiTag":61},"Operations","Observe an accepted asynchronous action and request cancellation safely.",{"path":460,"title":461,"description":462,"apiTag":463},"\u002Fdevelopers\u002Freference-knowledge","Knowledge","Retrieve bounded passages from the selected team's indexed knowledge with explicit content access.","knowledge",{"path":465,"title":466,"description":467,"apiTag":468},"\u002Fdevelopers\u002Freference-assistants","Published assistants","Discover and run current published assistants without exporting their instructions.","assistants",{"path":470,"title":471,"description":472,"apiTag":473},"\u002Fdevelopers\u002Freference-sync","Changes feed","One endpoint that copies a team and then returns every change, page by page.","sync",{"path":475,"title":476,"description":477,"apiTag":478},"\u002Fdevelopers\u002Freference-library","Library and attachments","Discover permitted Library entries, review their revisions and deliver them through current channels.","library",{"path":480,"title":481,"description":482,"apiTag":483},"\u002Fdevelopers\u002Freference-catalog","Catalog","Search published products and send reviewed variants with current availability and prices.","catalog",{"path":485,"title":486,"description":487},"\u002Fdevelopers\u002Fobjects","All objects","Every object the API returns, field by field, with an example of each.",{"section":489,"items":490},"resources",[491,495,499,503],{"path":492,"title":493,"description":494},"\u002Fdevelopers\u002Fchangelog","Changelog","Changes to the Totem API, newest first, each under the date it shipped.",{"path":496,"title":497,"description":498},"\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":500,"title":501,"description":502},"\u002Fdevelopers\u002Fglossary","Glossary","The terms these docs use, defined in one place, each with a link to the page that explains it.",{"path":504,"title":505,"description":506},"\u002Fdevelopers\u002Ffaq","FAQ","Short answers to the questions developers ask most about the Totem API, with links to the details.","\u002Fdevelopers\u002Fes\u002Freference-decisions",{"ACTIVATION_MARGIN_MS":509,"ADMIN_ACCESS_DISCLOSURE_VERSION":510,"AUDIT_RETENTION_DAYS":511,"AUTH_FAILURE_LIMITS":512,"CAPTURE_LAG_FLOOR_MS":516,"CAPTURE_LAG_P99_MS":342,"CURSOR_MAX_AGE_DAYS":517,"DIRTY_TTL_DAYS":517,"FAMILY_TEAM_SCOPE":518,"FAMILY_TEAM_SCOPE_OPTIONS":519,"FEED_SETTLE_LAG_MS":521,"GATE_REFRESH_MS":509,"INTEGRATION_NAME_LENGTH":522,"INTEGRATION_PURPOSE_LENGTH":524,"KEY_CACHE_TTL_MS":527,"KEY_STATS_RETENTION_DAYS":528,"LEAD_RESPONSE_READ_BUDGET":529,"LIST_SCAN_MAX":532,"MAX_FAMILY_INTEGRATION_TEAMS":517,"MAX_INTEGRATIONS_PER_FAMILY":533,"MAX_IP_ALLOWLIST":514,"PAGE_LIMIT":534,"PLATFORM_CONFIG_TTL_MS":537,"REMOVAL_RETENTION_DAYS":538,"REQUEST_BODY_MAX_BYTES":539,"ROLL_GRACE_DEFAULT_HOURS":540,"ROLL_GRACE_HOURS":541,"SEARCH_MAX_RESULTS":533,"SENSITIVE_SECTOR_POLICY":544,"SENSITIVE_SECTOR_POLICY_OPTIONS":545,"SYNC_DAILY_BUDGET":547,"SYNC_VELOCITY":549,"TEAM_CACHE_TTL_MS":551},60000,"2026-10-17",365,{"perIpPerMinute":513,"perLookupIdPerMinute":514,"banMs":515},60,20,600000,300000,30,"explicit_list",[518,520],"all_family_teams",10000,{"min":333,"max":523},80,{"min":525,"max":526},1,280,5000,90,{"conversations":514,"messageReads":530,"calls":531},200,50,1000,10,{"default":535,"max":536},25,100,15000,45,131072,24,[542,525,540,543],0,168,"exclude",[544,546],"allow",{"floor":548,"recordsMultiplier":330},250000,{"perMinute":550,"burst":521},2000,30000,"1.0.0",{"operations":554,"schemas":1094,"errors":1165,"commonErrors":1318,"defaultStability":561,"policy":508,"problemExample":1319},[555,888,1027],{"id":556,"method":557,"path":558,"summary":559,"description":560,"stability":561,"scopes":562,"rateClass":563,"tenantBinding":564,"authenticated":343,"parameters":565,"parametersByLocation":578,"body":582,"bodyDescription":748,"responseFields":749,"responseComponent":860,"listOf":342,"example":861,"successStatus":864,"pathExamples":865,"errors":866,"tag":7},"decision_requests.create","POST","\u002Fv1\u002Fdecision-requests","Ask the team for a decision","Accepts a decision request (an approval, or a job offered one person at a time) as a durable operation; the receipt carries its opaque `drq_` id. Totem alerts the responders, moves on when they decline or stay silent, and emits `decision_request.resolved` to this integration when it ends. One Idempotency-Key creates at most one request; the type, responders and lead are checked again before it is created.","stable",[65],"write","team_header",[566,573],{"name":73,"type":567,"required":338,"description":568,"nullable":338,"typeLabel":567,"constraints":569,"conditional":343,"location":572},"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":570},[571],"team_","header",{"name":77,"type":567,"required":343,"description":574,"nullable":338,"typeLabel":567,"constraints":575,"location":572},"One unique visible-ASCII key per logical write; reuse exactly on retries and never retry outcome_unknown automatically.",{"pattern":576,"minLength":525,"maxLength":577},"^[\\x21-\\x7e]+$",255,{"path":579,"query":580,"header":581},[],[],[566,573],[583,587,593,596,600,604,607,613,617,622,626,630,639,643,646,649,654,659,662,665,669,674,685,691,693,698,705,707,714,720,723,726,730,735,737,740,743,746],{"name":128,"type":567,"required":338,"description":584,"nullable":338,"typeLabel":567,"constraints":585},"A request type configured in Settings › Automations › Approvals and job offers. The type decides its kind, who is asked, routing, deadline, alert plan and effects; omit it to describe all of that in this request.",{"pattern":586},"^[a-z0-9][a-z0-9_-]{0,47}$",{"name":147,"type":588,"required":338,"description":589,"nullable":338,"typeLabel":567,"enumValues":590},"\"approval\" | \"assignment\"","Only without type_id: approval (approve or reject, the first answer decides) or assignment (accept or decline, a decline or silence moves on to the next person). Defaults to approval.",[591,592],"approval","assignment",{"name":151,"type":567,"required":338,"description":594,"nullable":338,"typeLabel":567,"constraints":595},"Only without type_id: the label responders see, such as \"Quote\", up to 60 characters.",{"minLength":525,"maxLength":513},{"name":597,"type":567,"required":343,"description":598,"nullable":338,"typeLabel":567,"constraints":599},"title","What must be decided, up to 200 characters.",{"minLength":525,"maxLength":530},{"name":210,"type":567,"required":338,"description":601,"nullable":338,"typeLabel":567,"constraints":602},"Context for the responder, up to 4,000 characters.",{"maxLength":603},4000,{"name":347,"type":567,"required":338,"description":605,"nullable":338,"typeLabel":567,"constraints":606},"Your short reference, such as a quote or incident number, up to 80 characters.",{"maxLength":523},{"name":608,"type":567,"required":338,"description":609,"nullable":338,"typeLabel":567,"constraints":610},"lead_id","A current lead of the selected team the decision is about. Its outcome note and the approved email use it; responders never see its contact details.",{"prefixes":611},[612],"lead_",{"name":185,"type":614,"required":338,"description":615,"nullable":338,"typeLabel":614,"constraints":616},"Array\u003Cobject>","Up to 24 values with unique keys.",{"maxItems":540},{"name":618,"type":567,"required":343,"description":619,"nullable":338,"typeLabel":567,"constraints":620},"fields[].key","Stable key of the value, unique in this request, up to 64 characters without surrounding spaces. A type condition such as `m2 > 100` reads it.",{"minLength":525,"maxLength":621},64,{"name":623,"type":567,"required":343,"description":624,"nullable":338,"typeLabel":567,"constraints":625},"fields[].label","What the responder sees beside the value, up to 80 characters.",{"minLength":525,"maxLength":523},{"name":627,"type":567,"required":343,"description":628,"nullable":338,"typeLabel":567,"constraints":629},"fields[].value","The value as text, up to 2,000 characters.",{"maxLength":550},{"name":631,"type":632,"required":338,"description":633,"nullable":338,"typeLabel":567,"enumValues":634},"fields[].kind","\"text\" | \"longtext\" | \"number\" | \"money\"","How the value is shown and validated when edited; defaults to text.",[635,636,637,638],"text","longtext","number","money",{"name":640,"type":641,"required":338,"description":642,"nullable":338,"typeLabel":641},"fields[].editable","boolean","The responder may correct this value before a positive answer; defaults to false.",{"name":644,"type":641,"required":338,"description":645,"nullable":338,"typeLabel":641},"fields[].required","An editable value the responder must fill before a positive answer; ignored unless editable.",{"name":193,"type":647,"required":338,"description":648,"nullable":338,"typeLabel":647},"object","The email Totem sends to the lead from the team's automation mailbox when the request is approved and its email effect is on.",{"name":650,"type":567,"required":343,"description":651,"nullable":338,"typeLabel":567,"constraints":652},"message.subject","Email subject, up to 300 characters.",{"minLength":525,"maxLength":653},300,{"name":655,"type":567,"required":343,"description":656,"nullable":338,"typeLabel":567,"constraints":657},"message.body","Email body as plain text, up to 20,000 characters.",{"minLength":525,"maxLength":658},20000,{"name":660,"type":641,"required":338,"description":661,"nullable":338,"typeLabel":641},"message.editable","The responder may rewrite subject and body before approving; defaults to true.",{"name":663,"type":641,"required":338,"description":664,"nullable":338,"typeLabel":641},"message.attach_files","Attach this request's files to that email; defaults to true.",{"name":206,"type":614,"required":338,"description":666,"nullable":338,"typeLabel":614,"constraints":667},"Up to 5 files sent inline. The whole JSON body is limited to 128 KiB and base64 grows a file by a third, so in practice the files share about 90 KB before encoding.",{"maxItems":668},5,{"name":670,"type":567,"required":343,"description":671,"nullable":338,"typeLabel":567,"constraints":672},"attachments[].name","File name shown to the responder, up to 120 characters.",{"minLength":525,"maxLength":673},120,{"name":675,"type":676,"required":343,"description":677,"nullable":338,"typeLabel":567,"enumValues":678},"attachments[].content_type","\"application\u002Fpdf\" | \"image\u002Fpng\" | \"image\u002Fjpeg\" | \"image\u002Fwebp\" | \"text\u002Fplain\" | \"text\u002Fcsv\"","PDF, PNG, JPEG, WEBP, plain text or CSV.",[679,680,681,682,683,684],"application\u002Fpdf","image\u002Fpng","image\u002Fjpeg","image\u002Fwebp","text\u002Fplain","text\u002Fcsv",{"name":686,"type":567,"required":343,"description":687,"nullable":338,"typeLabel":567,"constraints":688},"attachments[].content_base64","The file, base64-encoded with padding.",{"pattern":689,"minLength":690,"maxLength":539},"^(?:[A-Za-z0-9+\u002F]{4})*(?:[A-Za-z0-9+\u002F]{2}==|[A-Za-z0-9+\u002F]{3}=)?$",4,{"name":154,"type":647,"required":338,"description":692,"nullable":338,"typeLabel":647},"Who is asked when the type lets each request choose, or there is no type. Without it, the team's admins are asked.",{"name":694,"type":567,"required":338,"description":695,"nullable":338,"typeLabel":567,"constraints":696},"responders.department_id","A notification department of the team (`general` is the call-transfer team); its people are asked in its order. Takes precedence over member_ids.",{"minLength":525,"maxLength":697},128,{"name":699,"type":700,"required":338,"description":701,"nullable":338,"typeLabel":700,"constraints":702},"responders.member_ids","Array\u003Cstring>","Up to 30 current members, asked in this order.",{"minItems":525,"maxItems":517,"prefixes":703},[704],"mem_",{"name":173,"type":647,"required":338,"description":706,"nullable":338,"typeLabel":647},"Overrides of the type's routing, or the routing of a request without a type.",{"name":708,"type":709,"required":338,"description":710,"nullable":338,"typeLabel":567,"enumValues":711},"routing.mode","\"one_by_one\" | \"everyone\"","one_by_one asks each responder in turn; everyone asks them all at once and the first answer counts.",[712,713],"one_by_one","everyone",{"name":715,"type":716,"required":338,"description":717,"nullable":338,"typeLabel":716,"constraints":718},"routing.step_minutes","integer","Minutes each turn waits, 1 to 10080.",{"minimum":525,"maximum":719},10080,{"name":721,"type":641,"required":338,"description":722,"nullable":338,"typeLabel":641},"routing.escalate_to_admins","After every responder passed, ask the team's admins once more.",{"name":724,"type":641,"required":338,"description":725,"nullable":338,"typeLabel":641},"routing.rotate","one_by_one with a type only: start after whoever accepted the last request of that type.",{"name":176,"type":716,"required":338,"description":727,"nullable":338,"typeLabel":716,"constraints":728},"The whole request ends as expired after this many hours, 1 to 720.",{"minimum":525,"maximum":729},720,{"name":731,"type":567,"required":338,"description":732,"nullable":338,"typeLabel":567,"constraints":733},"alert_plan_id","A team alert plan (WhatsApp, call, email steps) used to reach responders beyond the app.",{"pattern":734},"^[A-Za-z0-9_-]{1,64}$",{"name":301,"type":647,"required":338,"description":736,"nullable":338,"typeLabel":647},"Overrides of what Totem does after the request ends.",{"name":738,"type":641,"required":338,"description":739,"nullable":338,"typeLabel":641},"effects.note_on_lead","Write the outcome as a note on the lead.",{"name":741,"type":641,"required":338,"description":742,"nullable":338,"typeLabel":641},"effects.email_on_approval","Send message to the lead when approved.",{"name":744,"type":641,"required":338,"description":745,"nullable":338,"typeLabel":641},"effects.alert_when_unanswered","Alert the team's admins in the app when nobody answered or the request expired.",{"name":199,"type":647,"required":338,"description":747,"nullable":338,"typeLabel":647},"Up to 20 of your own string values, returned unchanged by decision_requests.get. Keys use letters, digits, dot, dash and underscore; values up to 500 characters. Never put secrets or contact data here.","Ask named people on the selected team for a decision with a deadline. Source and actor are set by the server; member, department and lead ids must belong to the selected team.",[750,754,760,769,790,796,800,845,849],{"name":647,"type":751,"required":343,"description":752,"nullable":338,"typeLabel":567,"enumValues":753,"constant":343},"\"operation\"","Always operation.",[96],{"name":755,"type":567,"required":343,"description":756,"nullable":338,"typeLabel":567,"constraints":757},"id","Opaque durable operation id.",{"prefixes":758},[759],"op_",{"name":239,"type":761,"required":343,"description":762,"nullable":338,"typeLabel":567,"enumValues":763},"\"queued\" | \"running\" | \"succeeded\" | \"failed\" | \"cancelled\" | \"outcome_unknown\"","Durable operation state; outcome_unknown must be reconciled before repeating the effect.",[764,765,766,767,259,768],"queued","running","succeeded","failed","outcome_unknown",{"name":770,"type":771,"required":343,"description":772,"nullable":338,"typeLabel":567,"enumValues":773},"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.",[774,775,776,556,777,778,779,780,781,782,783,784,785,786,787,788,789],"tasks.create","tasks.complete","notifications.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",{"name":791,"type":792,"required":343,"description":793,"nullable":338,"typeLabel":567,"constraints":794},"created_at","string (date-time)","When this operation was accepted, in UTC.",{"format":795},"date-time",{"name":797,"type":792,"required":343,"description":798,"nullable":338,"typeLabel":567,"constraints":799},"updated_at","When its current state was recorded, in UTC.",{"format":795},{"name":801,"type":802,"required":343,"description":803,"nullable":343,"typeLabel":804,"typeTokens":805},"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",[806,808,810,812,813,815,816,818,819,821,822,824,825,827,828,830,831,833,834,836,837,839,840,842,843],{"text":807,"ref":807},"TaskReceipt",{"text":809}," | ",{"text":811,"ref":811},"NotificationReceipt",{"text":809},{"text":814,"ref":814},"DecisionRequestReceipt",{"text":809},{"text":817,"ref":817},"BookingReceipt",{"text":809},{"text":820,"ref":820},"BookingPaymentReceipt",{"text":809},{"text":823,"ref":823},"MessageReceipt",{"text":809},{"text":826,"ref":826},"RequestedInfoReceipt",{"text":809},{"text":829,"ref":829},"FirstReplyReceipt",{"text":809},{"text":832,"ref":832},"CallStartReceipt",{"text":809},{"text":835,"ref":835},"QuoteOutcomeReceipt",{"text":809},{"text":838,"ref":838},"AssistantRunReceipt",{"text":809},{"text":841,"ref":841},"LibraryDeliveryReceipt",{"text":809},{"text":844,"ref":844},"CatalogSendReceipt",{"name":846,"type":847,"required":343,"description":848,"nullable":343,"typeLabel":647},"error","object | null","Safe failure information, or null.",{"name":850,"type":851,"required":343,"description":852,"nullable":338,"typeLabel":567,"enumValues":853},"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.",[854,855,856,857,858,859,768],"authorization_failed","configuration_missing","input_expired","invalid_input","resource_missing","execution_failed","Operation",{"object":96,"id":862,"status":764,"endpoint":556,"created_at":863,"updated_at":863,"result":342,"error":342},"op_m3yGe1tkVy6hn3m9LH9m7e640wg0O","2026-10-01T09:30:00.000Z",202,{},[867,868,869,870,871,872,873,874,875,876,877,878,879,880,881,882,883,884,885,886,768,887],"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","idempotency_key_required","idempotency_key_reused","idempotency_in_progress","quota_exceeded",{"id":889,"method":890,"path":891,"summary":892,"description":893,"stability":561,"scopes":894,"rateClass":895,"tenantBinding":564,"authenticated":343,"parameters":896,"parametersByLocation":905,"body":909,"bodyDescription":329,"responseFields":910,"responseComponent":1006,"listOf":342,"example":1007,"successStatus":530,"pathExamples":1025,"errors":1026,"tag":7},"decision_requests.get","GET","\u002Fv1\u002Fdecision-requests\u002F{id}","Get a decision request","Returns a decision request this integration created in the selected team: its state, resolution, who decided and how, the final values and email when approved or accepted, what Totem did afterwards and your metadata. Requests created by people or by another integration answer `404 resource_missing`. It never returns lead contact data, responder phone numbers or answer links.",[69],"read",[897,902],{"name":755,"type":567,"required":343,"description":898,"nullable":338,"typeLabel":567,"constraints":899,"location":901},"The decision request's public id.",{"prefixes":900},[111],"path",{"name":73,"type":567,"required":338,"description":568,"nullable":338,"typeLabel":567,"constraints":903,"conditional":343,"location":572},{"prefixes":904},[571],{"path":906,"query":907,"header":908},[897],[],[902],[],[911,916,920,923,925,928,930,932,937,941,944,948,953,958,964,966,974,976,978,981,984,986,995,999,1004],{"name":647,"type":912,"required":343,"description":913,"nullable":338,"typeLabel":567,"enumValues":914,"constant":343},"\"decision_request\"","Always decision_request.",[915],"decision_request",{"name":755,"type":567,"required":343,"description":917,"nullable":338,"typeLabel":567,"constraints":918},"Opaque decision request id bound to its team and incarnation; never parse it.",{"prefixes":919},[111],{"name":128,"type":921,"required":343,"description":922,"nullable":343,"typeLabel":567},"string | null","The request type, or null without one.",{"name":151,"type":567,"required":343,"description":924,"nullable":338,"typeLabel":567},"The label responders saw.",{"name":147,"type":588,"required":343,"description":926,"nullable":338,"typeLabel":567,"enumValues":927},"approval or assignment.",[591,592],{"name":597,"type":567,"required":343,"description":929,"nullable":338,"typeLabel":567},"What had to be decided.",{"name":347,"type":921,"required":343,"description":931,"nullable":343,"typeLabel":567},"Your reference, or null.",{"name":115,"type":933,"required":343,"description":934,"nullable":338,"typeLabel":567,"enumValues":935},"\"open\" | \"resolved\"","open while people are being asked; resolved once it ended.",[936,140],"open",{"name":119,"type":938,"required":343,"description":939,"nullable":343,"typeLabel":567,"enumValues":940},"\"approved\" | \"rejected\" | \"accepted\" | \"unanswered\" | \"expired\" | \"cancelled\" | null","How it ended: approved, rejected, accepted, unanswered (everyone declined or stayed silent), expired or cancelled; null while open.",[243,246,249,252,255,259],{"name":791,"type":792,"required":343,"description":942,"nullable":338,"typeLabel":567,"constraints":943},"When the request was created, in UTC.",{"format":795},{"name":945,"type":792,"required":343,"description":946,"nullable":338,"typeLabel":567,"constraints":947},"expires_at","When the request ends as expired if nobody decided, in UTC.",{"format":795},{"name":949,"type":950,"required":343,"description":951,"nullable":343,"typeLabel":567,"constraints":952},"resolved_at","string (date-time) | null","When it ended, in UTC; null while open.",{"format":795},{"name":954,"type":921,"required":343,"description":955,"nullable":343,"typeLabel":567,"constraints":956},"assignee","Assignment only: the member who accepted the job (or whom the type's policy picked); otherwise null.",{"prefixes":957},[704],{"name":273,"type":959,"required":343,"description":960,"nullable":343,"typeLabel":567,"enumValues":961,"constraints":962},"string | \"policy\" | \"system\" | \"integration\" | null","Who ended it: the deciding member, policy (the type decided alone), system (deadlines, nobody left to ask) or integration (cancelled through the API); null while open.",[277,280,283],{"prefixes":963},[704],{"name":287,"type":921,"required":343,"description":965,"nullable":343,"typeLabel":567},"The deciding answer's comment, or null.",{"name":290,"type":967,"required":343,"description":968,"nullable":343,"typeLabel":567,"enumValues":969},"\"app\" | \"link\" | \"admin\" | \"call\" | null","Where the deciding answer came from: the app, the signed response link, an admin answering for the team, or the alert call; null when no person decided.",[970,971,972,973],"app","link","admin","call",{"name":294,"type":847,"required":343,"description":975,"nullable":343,"typeLabel":647},"Approved or accepted only: every field key with its final value, including the responder's corrections; otherwise null.",{"name":297,"type":847,"required":343,"description":977,"nullable":343,"typeLabel":647},"Approved or accepted only, with a message: the email as approved; otherwise null.",{"name":979,"type":567,"required":343,"description":980,"nullable":338,"typeLabel":567},"final_message.subject","Final email subject.",{"name":982,"type":567,"required":343,"description":983,"nullable":338,"typeLabel":567},"final_message.body","Final email body.",{"name":301,"type":647,"required":343,"description":985,"nullable":338,"typeLabel":647},"What Totem did after the request ended.",{"name":987,"type":988,"required":343,"description":989,"nullable":338,"typeLabel":567,"enumValues":990},"effects.lead_note","\"pending\" | \"done\" | \"skipped\" | \"needs_review\"","The outcome note on the lead.",[991,992,993,994],"pending","done","skipped","needs_review",{"name":996,"type":988,"required":343,"description":997,"nullable":338,"typeLabel":567,"enumValues":998},"effects.email","The approved email to the lead; done means sent, needs_review means a person must send it.",[991,992,993,994],{"name":1000,"type":921,"required":343,"description":1001,"nullable":343,"typeLabel":567,"constraints":1002},"effects.email_review_reason","Why the email needs review, such as email_missing_address or email_opted_out; otherwise null.",{"pattern":1003},"^[a-z0-9_]{1,64}$",{"name":199,"type":647,"required":343,"description":1005,"nullable":338,"typeLabel":647},"The metadata this integration sent, unchanged.","DecisionRequest",{"object":915,"id":1008,"type_id":1009,"type_name":1010,"preset":591,"title":1011,"reference":1012,"state":140,"resolution":243,"created_at":863,"expires_at":1013,"resolved_at":1014,"assignee":342,"decided_by":1015,"comment":1016,"via":970,"final_fields":1017,"final_message":1020,"effects":1023,"metadata":1024},"drq_m423Xy70UYKA7qToV8ptXW80qS9cm","quote","Quote","Approve the lawn quote for 120 m²","Q-1042","2026-10-08T09:30:00.000Z","2026-10-01T10:05:00.000Z","mem_h548E7UiYhutHhucVrQCzkM0eaea0","Rounded the price down.",{"m2":1018,"total":1019},"120","2350",{"subject":1021,"body":1022},"Your lawn quote","Hello, here is your quote for 120 m².",{"lead_note":992,"email":992,"email_review_reason":342},{"quote_id":1012},{"id":1008},[867,868,869,870,871,872,873,874,875,876,877,878,879,880,881,882,883,858],{"id":777,"method":557,"path":1028,"summary":1029,"description":1030,"stability":561,"scopes":1031,"rateClass":563,"tenantBinding":564,"authenticated":343,"parameters":1032,"parametersByLocation":1041,"body":1045,"bodyDescription":1046,"responseFields":1047,"responseComponent":860,"listOf":342,"example":1091,"successStatus":864,"pathExamples":1092,"errors":1093,"tag":7},"\u002Fv1\u002Fdecision-requests\u002F{id}\u002Fcancel","Cancel a decision request","Accepts cancellation of an open decision request this integration created, as a durable operation. Its pending alerts are withdrawn and `decision_request.resolved` follows with `cancelled`. Cancelling a request that already ended is safe and changes nothing; the receipt shows how it ended.",[65],[1033,1036,1039],{"name":755,"type":567,"required":343,"description":898,"nullable":338,"typeLabel":567,"constraints":1034,"location":901},{"prefixes":1035},[111],{"name":73,"type":567,"required":338,"description":568,"nullable":338,"typeLabel":567,"constraints":1037,"conditional":343,"location":572},{"prefixes":1038},[571],{"name":77,"type":567,"required":343,"description":574,"nullable":338,"typeLabel":567,"constraints":1040,"location":572},{"pattern":576,"minLength":525,"maxLength":577},{"path":1042,"query":1043,"header":1044},[1033],[],[1036,1039],[],"Cancel the open decision request named in the path. The JSON body is empty.",[1048,1050,1053,1055,1057,1059,1061,1088,1089],{"name":647,"type":751,"required":343,"description":752,"nullable":338,"typeLabel":567,"enumValues":1049,"constant":343},[96],{"name":755,"type":567,"required":343,"description":756,"nullable":338,"typeLabel":567,"constraints":1051},{"prefixes":1052},[759],{"name":239,"type":761,"required":343,"description":762,"nullable":338,"typeLabel":567,"enumValues":1054},[764,765,766,767,259,768],{"name":770,"type":771,"required":343,"description":772,"nullable":338,"typeLabel":567,"enumValues":1056},[774,775,776,556,777,778,779,780,781,782,783,784,785,786,787,788,789],{"name":791,"type":792,"required":343,"description":793,"nullable":338,"typeLabel":567,"constraints":1058},{"format":795},{"name":797,"type":792,"required":343,"description":798,"nullable":338,"typeLabel":567,"constraints":1060},{"format":795},{"name":801,"type":802,"required":343,"description":803,"nullable":343,"typeLabel":804,"typeTokens":1062},[1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087],{"text":807,"ref":807},{"text":809},{"text":811,"ref":811},{"text":809},{"text":814,"ref":814},{"text":809},{"text":817,"ref":817},{"text":809},{"text":820,"ref":820},{"text":809},{"text":823,"ref":823},{"text":809},{"text":826,"ref":826},{"text":809},{"text":829,"ref":829},{"text":809},{"text":832,"ref":832},{"text":809},{"text":835,"ref":835},{"text":809},{"text":838,"ref":838},{"text":809},{"text":841,"ref":841},{"text":809},{"text":844,"ref":844},{"name":846,"type":847,"required":343,"description":848,"nullable":343,"typeLabel":647},{"name":850,"type":851,"required":343,"description":852,"nullable":338,"typeLabel":567,"enumValues":1090},[854,855,856,857,858,859,768],{"object":96,"id":862,"status":764,"endpoint":777,"created_at":863,"updated_at":863,"result":342,"error":342},{"id":1008},[867,868,869,870,871,872,873,874,875,876,877,878,879,880,881,882,883,884,885,886,768,887,858],[1095,1148],{"name":1006,"description":1096,"fields":1097,"example":1141,"variants":1146,"sharedFields":1147},"A decision request this integration created, without lead contact data, responder phone numbers or answer links.",[1098,1100,1103,1104,1105,1107,1108,1109,1111,1113,1115,1117,1119,1122,1126,1127,1129,1130,1131,1132,1133,1134,1136,1138,1140],{"name":647,"type":912,"required":343,"description":913,"nullable":338,"typeLabel":567,"enumValues":1099,"constant":343},[915],{"name":755,"type":567,"required":343,"description":917,"nullable":338,"typeLabel":567,"constraints":1101},{"prefixes":1102},[111],{"name":128,"type":921,"required":343,"description":922,"nullable":343,"typeLabel":567},{"name":151,"type":567,"required":343,"description":924,"nullable":338,"typeLabel":567},{"name":147,"type":588,"required":343,"description":926,"nullable":338,"typeLabel":567,"enumValues":1106},[591,592],{"name":597,"type":567,"required":343,"description":929,"nullable":338,"typeLabel":567},{"name":347,"type":921,"required":343,"description":931,"nullable":343,"typeLabel":567},{"name":115,"type":933,"required":343,"description":934,"nullable":338,"typeLabel":567,"enumValues":1110},[936,140],{"name":119,"type":938,"required":343,"description":939,"nullable":343,"typeLabel":567,"enumValues":1112},[243,246,249,252,255,259],{"name":791,"type":792,"required":343,"description":942,"nullable":338,"typeLabel":567,"constraints":1114},{"format":795},{"name":945,"type":792,"required":343,"description":946,"nullable":338,"typeLabel":567,"constraints":1116},{"format":795},{"name":949,"type":950,"required":343,"description":951,"nullable":343,"typeLabel":567,"constraints":1118},{"format":795},{"name":954,"type":921,"required":343,"description":955,"nullable":343,"typeLabel":567,"constraints":1120},{"prefixes":1121},[704],{"name":273,"type":959,"required":343,"description":960,"nullable":343,"typeLabel":567,"enumValues":1123,"constraints":1124},[277,280,283],{"prefixes":1125},[704],{"name":287,"type":921,"required":343,"description":965,"nullable":343,"typeLabel":567},{"name":290,"type":967,"required":343,"description":968,"nullable":343,"typeLabel":567,"enumValues":1128},[970,971,972,973],{"name":294,"type":847,"required":343,"description":975,"nullable":343,"typeLabel":647},{"name":297,"type":847,"required":343,"description":977,"nullable":343,"typeLabel":647},{"name":979,"type":567,"required":343,"description":980,"nullable":338,"typeLabel":567},{"name":982,"type":567,"required":343,"description":983,"nullable":338,"typeLabel":567},{"name":301,"type":647,"required":343,"description":985,"nullable":338,"typeLabel":647},{"name":987,"type":988,"required":343,"description":989,"nullable":338,"typeLabel":567,"enumValues":1135},[991,992,993,994],{"name":996,"type":988,"required":343,"description":997,"nullable":338,"typeLabel":567,"enumValues":1137},[991,992,993,994],{"name":1000,"type":921,"required":343,"description":1001,"nullable":343,"typeLabel":567,"constraints":1139},{"pattern":1003},{"name":199,"type":647,"required":343,"description":1005,"nullable":338,"typeLabel":647},{"object":915,"id":1008,"type_id":1009,"type_name":1010,"preset":591,"title":1011,"reference":1012,"state":140,"resolution":243,"created_at":863,"expires_at":1013,"resolved_at":1014,"assignee":342,"decided_by":1015,"comment":1016,"via":970,"final_fields":1142,"final_message":1143,"effects":1144,"metadata":1145},{"m2":1018,"total":1019},{"subject":1021,"body":1022},{"lead_note":992,"email":992,"email_review_reason":342},{"quote_id":1012},[],[],{"name":814,"description":1149,"fields":1150,"example":1162,"variants":1163,"sharedFields":1164},"Minimal decision request receipt, as the operation recorded it. A type that decides by policy is already resolved here.",[1151,1155,1158,1160],{"name":647,"type":1152,"required":343,"description":1153,"nullable":338,"typeLabel":567,"enumValues":1154,"constant":343},"\"decision_request_receipt\"","Always decision_request_receipt.",[107],{"name":755,"type":567,"required":343,"description":917,"nullable":338,"typeLabel":567,"constraints":1156},{"prefixes":1157},[111],{"name":115,"type":933,"required":343,"description":934,"nullable":338,"typeLabel":567,"enumValues":1159},[936,140],{"name":119,"type":938,"required":343,"description":939,"nullable":343,"typeLabel":567,"enumValues":1161},[243,246,249,252,255,259],{"object":107,"id":1008,"state":936,"resolution":342},[],[],[1166,1174,1179,1183,1189,1194,1200,1205,1212,1217,1221,1225,1229,1234,1238,1242,1248,1252,1256,1261,1265,1270,1276,1282,1288,1294,1299,1303,1309,1314],{"code":1167,"status":1168,"title":1169,"wireTitle":1169,"action":1170,"description":1171,"fix":1172,"retryable":338,"retry":1173},"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":884,"status":1175,"title":1176,"wireTitle":1176,"action":1170,"description":1177,"fix":1178,"retryable":338,"retry":1173},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":885,"status":1168,"title":1180,"wireTitle":1180,"action":1170,"description":1181,"fix":1182,"retryable":338,"retry":1173},"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":886,"status":1168,"title":1184,"wireTitle":1184,"action":1185,"description":1186,"fix":1187,"retryable":343,"retry":1188},"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":768,"status":1168,"title":1190,"wireTitle":1190,"action":1191,"description":1192,"fix":1193,"retryable":338,"retry":1173},"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":1195,"status":1196,"title":1197,"wireTitle":1197,"action":1170,"description":1198,"fix":1199,"retryable":338,"retry":1173},"version_conflict",412,"Lead version conflict","The strong If-Match validator no longer names the current public version of this lead.","Read the lead again, reconcile your intended changes, then send its new ETag in If-Match.",{"code":1201,"status":1168,"title":1202,"wireTitle":1202,"action":1170,"description":1203,"fix":1204,"retryable":338,"retry":1173},"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":1206,"status":1207,"title":1208,"wireTitle":1208,"action":1209,"description":1210,"fix":1211,"retryable":338,"retry":1173},"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":1213,"status":1207,"title":1214,"wireTitle":1214,"action":1170,"description":1215,"fix":1216,"retryable":338,"retry":1173},"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":867,"status":1175,"title":1218,"wireTitle":1218,"action":1170,"description":1219,"fix":1220,"retryable":338,"retry":1173},"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":879,"status":1175,"title":1222,"wireTitle":1222,"action":1170,"description":1223,"fix":1224,"retryable":338,"retry":1173},"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":868,"status":1175,"title":1226,"wireTitle":1226,"action":1170,"description":1227,"fix":1228,"retryable":338,"retry":1173},"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":869,"status":1230,"title":1231,"wireTitle":1231,"action":1209,"description":1232,"fix":1233,"retryable":338,"retry":1173},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":870,"status":1230,"title":1235,"wireTitle":1235,"action":1209,"description":1236,"fix":1237,"retryable":338,"retry":1173},"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":871,"status":1207,"title":1239,"wireTitle":1239,"action":1209,"description":1240,"fix":1241,"retryable":338,"retry":1173},"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":872,"status":1207,"title":1243,"wireTitle":1243,"action":1244,"description":1245,"fix":1246,"retryable":343,"retry":1247},"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":873,"status":1207,"title":1249,"wireTitle":1249,"action":1209,"description":1250,"fix":1251,"retryable":338,"retry":1173},"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":881,"status":1207,"title":1253,"wireTitle":1253,"action":1244,"description":1254,"fix":1255,"retryable":343,"retry":1247},"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":882,"status":1207,"title":1257,"wireTitle":1257,"action":1244,"description":1258,"fix":1259,"retryable":338,"retry":1260},"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":874,"status":1207,"title":1262,"wireTitle":1262,"action":1244,"description":1263,"fix":1264,"retryable":343,"retry":1247},"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":858,"status":1266,"title":1267,"wireTitle":1267,"action":1170,"description":1268,"fix":1269,"retryable":338,"retry":1173},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":880,"status":1266,"title":1271,"wireTitle":1271,"action":1272,"description":1273,"fix":1274,"retryable":338,"retry":1275},"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":1277,"status":1168,"title":1278,"wireTitle":1278,"action":1279,"description":1280,"fix":1281,"retryable":338,"retry":1173},"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":883,"status":1168,"title":1283,"wireTitle":1283,"action":1284,"description":1285,"fix":1286,"retryable":343,"retry":1287},"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":1289,"status":1290,"title":1291,"wireTitle":1291,"action":1279,"description":1292,"fix":1293,"retryable":338,"retry":1173},"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":875,"status":1295,"title":1296,"wireTitle":1296,"action":1185,"description":1297,"fix":1298,"retryable":343,"retry":1188},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":887,"status":1295,"title":1300,"wireTitle":1300,"action":1185,"description":1301,"fix":1302,"retryable":343,"retry":1188},"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":876,"status":1304,"title":1305,"wireTitle":1305,"action":1306,"description":1307,"fix":1308,"retryable":343,"retry":1306},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":877,"status":1310,"title":1311,"wireTitle":1311,"action":1306,"description":1312,"fix":1313,"retryable":343,"retry":1306},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":878,"status":1310,"title":1315,"wireTitle":1315,"action":1306,"description":1316,"fix":1317,"retryable":343,"retry":1306},"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.",[867,868,869,870,871,872,873,874,875,876,877,878],{"type":1320,"title":1267,"status":1266,"code":858,"request_id":1321,"doc_url":1320},"https:\u002F\u002Ftotemstudio.ai\u002Fdevelopers\u002Ferrors#resource_missing","req_0f6b2c1e-8d4a-4b7e-9c3f-5a2d1e7b9c40",[1323,1324,1325,1326,1327,1328,1329,1330,1331],{"id":14,"text":15,"depth":333},{"id":81,"text":82,"depth":333},{"id":214,"text":215,"depth":333},{"id":311,"text":312,"depth":333},{"id":556,"text":559,"depth":333},{"id":889,"text":892,"depth":333},{"id":777,"text":1029,"depth":333},{"id":1006,"text":1006,"depth":333},{"id":814,"text":814,"depth":333},{"path":441,"title":442,"section":347},{"path":447,"title":448,"section":347},[1335,1336,1337],{"id":556,"method":557,"path":558,"summary":559},{"id":889,"method":890,"path":891,"summary":892},{"id":777,"method":557,"path":1028,"summary":1029},1796395410838,"6ece8729-dc31-4887-85ce-5a18e6f853a8"]