The workflow run that created the task, when an automation did; createdBy names users only.
Show child attributes
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Leadstaker","colors":{"primary":"#FC0168","light":"#FC0168","dark":"#FC0168"},"logo":{"light":"https://mintcdn.com/leadstaker-dd00260d/l8zjB5_1VdOyFKK7/logo/light.svg?fit=max\u0026auto=format\u0026n=l8zjB5_1VdOyFKK7\u0026q=85\u0026s=7939348823ca91dcc74f9bea3928549e","dark":"https://mintcdn.com/leadstaker-dd00260d/l8zjB5_1VdOyFKK7/logo/dark.svg?fit=max\u0026auto=format\u0026n=l8zjB5_1VdOyFKK7\u0026q=85\u0026s=f7bfb7810bece1d6e60edf212be7ed8e"},"favicon":"https://mintcdn.com/leadstaker-dd00260d/l8zjB5_1VdOyFKK7/favicon.svg?fit=max\u0026auto=format\u0026n=l8zjB5_1VdOyFKK7\u0026q=85\u0026s=cdcda46f6c3fd00cb37cc0766061227f","navbar":{"links":[{"href":"https://leadstaker.com","label":"Home"},{"href":"https://app.leadstaker.com","label":"Sign In"}],"primary":{"type":"button","label":"Get Started","href":"https://app.leadstaker.com"}},"footer":{"socials":{"instagram":"https://www.instagram.com/leadstaker","website":"https://leadstaker.com"}},"fonts":{"family":"Mozilla Text"},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Documentation","icon":"book-open-cover","href":"/"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"leadstaker-dd00260d","hasAudioNarration":false,"actualSubdomain":"leadstaker-dd00260d","customDomains":["docs.leadstaker.com"],"gitSource":{"type":"github","owner":"leadstaker","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"chroma":{"latestBuiltDeploymentHistoryId":"6ae3c9467b048d685b85fbc8","collectionId":"fb71bc22-70e6-4086-95f1-d54f938e3a15","liveDeploymentHistoryId":"6ae3c9467b048d685b85fbc8","schemaVersion":"v3"},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6ae3c9467b048d685b85fbc8","clientVersion":"0.0.4044","searchFilterCounts":[{"language":"default","tag":"API Reference","count":75},{"language":"default","tag":"Endpoints","count":72},{"language":"default","tag":"Deals","count":7},{"language":"default","tag":"Notes","count":7},{"language":"default","tag":"Tasks","count":7},{"language":"default","tag":"Chats","count":5},{"language":"default","tag":"Contacts","count":5},{"language":"default","tag":"Field groups","count":5},{"language":"default","tag":"Fields","count":5},{"language":"default","tag":"Messages","count":5}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[],"googleFontsInlined":true},"customCss":[],"page":{"pagePath":"api-reference/tasks/list-the-tasks-of-a-deal","slug":"/api-reference/tasks/list-the-tasks-of-a-deal","pageMetadata":{"title":"List the tasks of a deal","description":"Answers with a bare array of the tasks attached to the deal, open and completed, ordered by `dueAt`.","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/deals/{dealId}/tasks","href":"/api-reference/tasks/list-the-tasks-of-a-deal","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_components.p, {\n children: [\"Answers with a bare array of the tasks attached to the deal, open and completed, ordered by \", _jsx(_components.code, {\n children: \"dueAt\"\n }), \".\"]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"List the tasks of a deal","description":"Answers with a bare array of the tasks attached to the deal, open and completed, ordered by `dueAt`.","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/deals/{dealId}/tasks","href":"/api-reference/tasks/list-the-tasks-of-a-deal","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["Tasks"],"summary":"List the tasks of a deal","operationId":"getDealsByDealIdTasks","security":["28605622-e719-48c6-b791-dcd5bc6a4717"],"parameters":["a372418f-fe5a-49f9-90d1-1a53f3fcf267","3f11d480-5df5-4ee9-a834-5579657d2419","6ff6ddc4-f906-42f4-9923-b6ea74e5310a","b5a3ffc8-d7b5-4f47-ba84-32bc6274167e"],"responses":{"200":"d266ab29-d9d8-4a5d-a7f0-42c4a2d5a6f1","401":"b0ca6f48-90ce-4ca1-a5b4-eb574f8ed1a9","404":"5dbfa071-79b8-49af-97bb-ca3adb941360"},"description":"Answers with a bare array of the tasks attached to the deal, open and completed, ordered by `dueAt`.","method":"get","type":"path","servers":["a5d19048-d18b-42f5-954b-0675d8f40749"],"path":"/v1/deals/{dealId}/tasks","baseUrlOptions":["https://n-api.leadstaker.com"],"title":"List the tasks of a deal","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"a372418f-fe5a-49f9-90d1-1a53f3fcf267":{"name":"dealId","in":"path","required":true,"schema":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"","typeLabel":"string"}},"3f11d480-5df5-4ee9-a834-5579657d2419":{"name":"[limit]","in":"query","required":false,"description":"How many records to return, at most 250.","schema":{"type":"integer","minimum":1,"maximum":250,"isRequired":false,"description":"How many records to return, at most 250.","uniqueKey":"","typeLabel":"integer"}},"6ff6ddc4-f906-42f4-9923-b6ea74e5310a":{"name":"[offset]","in":"query","required":false,"description":"How many records to skip.","schema":{"type":"integer","minimum":0,"isRequired":false,"description":"How many records to skip.","uniqueKey":"","typeLabel":"integer"}},"b5a3ffc8-d7b5-4f47-ba84-32bc6274167e":{"name":"[project]","in":"query","required":false,"description":"Comma-separated list of fields to return, e.g. `id,createdAt`.","schema":{"type":"string","minLength":1,"isRequired":false,"description":"Comma-separated list of fields to return, e.g. `id,createdAt`.","uniqueKey":"","typeLabel":"string"}}},"responses":{"d266ab29-d9d8-4a5d-a7f0-42c4a2d5a6f1":{"description":"Success","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"items.[INDEX].id","typeLabel":"string"},"createdAt":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"items.[INDEX].createdAt","typeLabel":"string\u003cdate-time>"},"updatedAt":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"items.[INDEX].updatedAt","typeLabel":"string\u003cdate-time>"},"projectId":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"items.[INDEX].projectId","typeLabel":"string"},"dealId":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"items.[INDEX].dealId","typeLabel":"string"},"title":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"items.[INDEX].title","typeLabel":"string"},"dueAt":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"items.[INDEX].dueAt","typeLabel":"string\u003cdate-time>"},"responsibleId":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"items.[INDEX].responsibleId","typeLabel":"string"},"result":{"type":"string","uniqueKey":"items.[INDEX].result","typeLabel":"string"},"completedAt":{"type":"string","format":"date-time","uniqueKey":"items.[INDEX].completedAt","typeLabel":"string\u003cdate-time>"},"completedBy":{"type":"string","minLength":1,"uniqueKey":"items.[INDEX].completedBy","typeLabel":"string"},"createdBy":{"type":"string","minLength":1,"uniqueKey":"items.[INDEX].createdBy","typeLabel":"string"},"createdByAutomation":{"type":"object","properties":{"workflowId":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"items.[INDEX].createdByAutomation.workflowId","typeLabel":"string"},"executionId":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"items.[INDEX].createdByAutomation.executionId","typeLabel":"string"}},"required":["workflowId","executionId"],"additionalProperties":false,"description":"The workflow run that created the task, when an automation did; `createdBy` names users only.","uniqueKey":"items.[INDEX].createdByAutomation","typeLabel":"object"}},"required":["id","createdAt","updatedAt","projectId","dealId","title","dueAt","responsibleId"],"additionalProperties":false,"uniqueKey":"items.[INDEX]","typeLabel":"object"},"uniqueKey":"","typeLabel":"object[]"},"example":[{"id":"68b8f1c2a4d3e50017b2c9a1","projectId":"665f1c2e8a94b70012d4e9a1","dealId":"6715be3a9c40aa0013d8e5c2","title":"Ligar para confirmar a proposta","dueAt":"2026-09-04T14:00:00.000Z","responsibleId":"664d9e0b7c83aa0010f1c2d3","createdBy":"664d9e0b7c83aa0010f1c2d3","createdAt":"2026-09-03T12:00:00.000Z","updatedAt":"2026-09-03T12:00:00.000Z"}],"examples":{"Example":{"title":"Example","value":[{"id":"68b8f1c2a4d3e50017b2c9a1","projectId":"665f1c2e8a94b70012d4e9a1","dealId":"6715be3a9c40aa0013d8e5c2","title":"Ligar para confirmar a proposta","dueAt":"2026-09-04T14:00:00.000Z","responsibleId":"664d9e0b7c83aa0010f1c2d3","createdBy":"664d9e0b7c83aa0010f1c2d3","createdAt":"2026-09-03T12:00:00.000Z","updatedAt":"2026-09-03T12:00:00.000Z"}]}},"exampleType":"examples"}},"exampleType":"examples"},"b0ca6f48-90ce-4ca1-a5b4-eb574f8ed1a9":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"type":"object","required":["errorCode","message","status"],"properties":{"errorCode":{"type":"string","isRequired":true,"uniqueKey":"errorCode","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"status":{"type":"integer","isRequired":true,"uniqueKey":"status","typeLabel":"integer"},"errors":{"type":"array","items":{"type":"object","required":["field","code","message"],"properties":{"field":{"type":"string","isRequired":true,"uniqueKey":"errors.items.[INDEX].field","typeLabel":"string"},"code":{"type":"string","isRequired":true,"uniqueKey":"errors.items.[INDEX].code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"errors.items.[INDEX].message","typeLabel":"string"}},"uniqueKey":"errors.items.[INDEX]","typeLabel":"object"},"uniqueKey":"errors","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"errorCode":"\u003cstring>","message":"\u003cstring>","status":123,"errors":[{"field":"\u003cstring>","code":"\u003cstring>","message":"\u003cstring>"}]}}},"exampleType":"generated"}},"exampleType":"generated"},"5dbfa071-79b8-49af-97bb-ca3adb941360":{"description":"Resource not found","content":{"application/json":{"schema":{"type":"object","required":["errorCode","message","status"],"properties":{"errorCode":{"type":"string","isRequired":true,"uniqueKey":"errorCode","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"status":{"type":"integer","isRequired":true,"uniqueKey":"status","typeLabel":"integer"},"errors":{"type":"array","items":{"type":"object","required":["field","code","message"],"properties":{"field":{"type":"string","isRequired":true,"uniqueKey":"errors.items.[INDEX].field","typeLabel":"string"},"code":{"type":"string","isRequired":true,"uniqueKey":"errors.items.[INDEX].code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"errors.items.[INDEX].message","typeLabel":"string"}},"uniqueKey":"errors.items.[INDEX]","typeLabel":"object"},"uniqueKey":"errors","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"errorCode":"\u003cstring>","message":"\u003cstring>","status":123,"errors":[{"field":"\u003cstring>","code":"\u003cstring>","message":"\u003cstring>"}]}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"28605622-e719-48c6-b791-dcd5bc6a4717":{"apiKey":{"type":"apiKey","in":"header","name":"x-api-key","scopes":[],"schemeName":"apiKey"}}},"servers":{"a5d19048-d18b-42f5-954b-0675d8f40749":{"url":"https://n-api.leadstaker.com","description":"Production"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"x-api-key","scopes":[],"schemeName":"apiKey"},"schema":{"title":"x-api-key","type":"string","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"apiKey","name":"x-api-key"}],"title":"apiKey"}]},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"leadstaker-dd00260d","siteName":"Leadstaker","title":"List the tasks of a deal - Leadstaker","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-29T22:31:43.662Z","originalFileLocation":"api-reference/tasks/list-the-tasks-of-a-deal.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Answers with a bare array of the tasks attached to the deal, open and completed, ordered by dueAt.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Leadstaker\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/leadstaker-dd00260d/BLMivFNWw25FmVgS/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/leadstaker-dd00260d/BLMivFNWw25FmVgS/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/leadstaker-dd00260d/BLMivFNWw25FmVgS/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/leadstaker-dd00260d/BLMivFNWw25FmVgS/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/leadstaker-dd00260d/BLMivFNWw25FmVgS/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/leadstaker-dd00260d/BLMivFNWw25FmVgS/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/leadstaker-dd00260d/BLMivFNWw25FmVgS/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/leadstaker-dd00260d/BLMivFNWw25FmVgS/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/leadstaker-dd00260d/BLMivFNWw25FmVgS/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"List the tasks of a deal - Leadstaker\">\u003cmeta data-mint-head property=\"og:description\" content=\"Answers with a bare array of the tasks attached to the deal, open and completed, ordered by dueAt.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Leadstaker\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.leadstaker.com/api-reference/tasks/list-the-tasks-of-a-deal\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://leadstaker-dd00260d.mintlify.app/_mintlify/api/og/v2?division=Tasks\u0026amp;title=List+the+tasks+of+a+deal\u0026amp;description=Answers+with+a+bare+array+of+the+tasks+attached+to+the+deal%2C+open+and+completed%2C+ordered+by+%60dueAt%60.\u0026amp;theme=c3cbc9809ce47beab54c5a87\u0026amp;signature=664e7f57183341a0569bbc3aef6f258602758505585dc2501faf7b2153ad9b5a\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"List the tasks of a deal - Leadstaker\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Answers with a bare array of the tasks attached to the deal, open and completed, ordered by dueAt.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://leadstaker-dd00260d.mintlify.app/_mintlify/api/og/v2?division=Tasks\u0026amp;title=List+the+tasks+of+a+deal\u0026amp;description=Answers+with+a+bare+array+of+the+tasks+attached+to+the+deal%2C+open+and+completed%2C+ordered+by+%60dueAt%60.\u0026amp;theme=c3cbc9809ce47beab54c5a87\u0026amp;signature=664e7f57183341a0569bbc3aef6f258602758505585dc2501faf7b2153ad9b5a\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/leadstaker-dd00260d/BLMivFNWw25FmVgS/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Leadstaker\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#FC0168\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.leadstaker.com/api-reference/tasks/list-the-tasks-of-a-deal\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/tasks/list-the-tasks-of-a-deal.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.leadstaker.com/#organization\",\"name\":\"Leadstaker\",\"url\":\"https://docs.leadstaker.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/leadstaker-dd00260d/l8zjB5_1VdOyFKK7/logo/light.svg?fit=max\u0026auto=format\u0026n=l8zjB5_1VdOyFKK7\u0026q=85\u0026s=7939348823ca91dcc74f9bea3928549e\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.leadstaker.com#website\",\"name\":\"Leadstaker\",\"url\":\"https://docs.leadstaker.com\",\"publisher\":{\"@id\":\"https://docs.leadstaker.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.leadstaker.com/api-reference/tasks/list-the-tasks-of-a-deal#webpage\",\"url\":\"https://docs.leadstaker.com/api-reference/tasks/list-the-tasks-of-a-deal\",\"name\":\"List the tasks of a deal\",\"description\":\"Answers with a bare array of the tasks attached to the deal, open and completed, ordered by dueAt.\",\"dateModified\":\"2026-10-29T22:31:43.662Z\",\"isPartOf\":{\"@id\":\"https://docs.leadstaker.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.leadstaker.com/api-reference/tasks/list-the-tasks-of-a-deal#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.leadstaker.com/api-reference/tasks/list-the-tasks-of-a-deal#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Endpoints\",\"item\":\"https://docs.leadstaker.com/api-reference/calls/post-a-call\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Tasks\",\"item\":\"https://docs.leadstaker.com/api-reference/tasks/list-tasks\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"List the tasks of a deal\",\"item\":\"https://docs.leadstaker.com/api-reference/tasks/list-the-tasks-of-a-deal\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.leadstaker.com/api-reference/tasks/list-the-tasks-of-a-deal#apireference\",\"headline\":\"List the tasks of a deal\",\"name\":\"List the tasks of a deal\",\"description\":\"Answers with a bare array of the tasks attached to the deal, open and completed, ordered by dueAt.\",\"url\":\"https://docs.leadstaker.com/api-reference/tasks/list-the-tasks-of-a-deal\",\"mainEntityOfPage\":{\"@id\":\"https://docs.leadstaker.com/api-reference/tasks/list-the-tasks-of-a-deal#webpage\"},\"dateModified\":\"2026-10-29T22:31:43.662Z\",\"publisher\":{\"@id\":\"https://docs.leadstaker.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.leadstaker.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Leadstaker\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Leadstaker","nav":{"global":{"anchors":[{"anchor":"Documentation","icon":"book-open-cover","href":"/"}]},"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":""}]},{"tab":"API Reference","icon":"brackets-curly","groups":[{"group":"Começar","pages":[{"title":"Autenticação","href":"/api-reference/authentication"},{"title":"Filtros, ordenação e paginação","href":"/api-reference/listing"},{"title":"Erros","href":"/api-reference/errors"}]},{"group":"Endpoints","pages":[{"group":"Calls","pages":[{"title":"Post a call","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/calls","href":"/api-reference/calls/post-a-call"},{"title":"List the calls of a deal","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/deals/{dealId}/calls","href":"/api-reference/calls/list-the-calls-of-a-deal"},{"title":"List the calls of a contact","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/contacts/{contactId}/calls","href":"/api-reference/calls/list-the-calls-of-a-contact"},{"title":"Transcribe a call","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/telephony/calls/{id}/transcription","href":"/api-reference/calls/transcribe-a-call"}]},{"group":"Chats","pages":[{"title":"List chats","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/chats","href":"/api-reference/chats/list-chats"},{"title":"Get a chat by id","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/chats/{id}","href":"/api-reference/chats/get-a-chat-by-id"},{"title":"Delete a chat","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/chats/{id}","href":"/api-reference/chats/delete-a-chat"},{"title":"Close a chat","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /v1/chats/{id}/close","href":"/api-reference/chats/close-a-chat"},{"title":"Turn the AI agent on or off for a chat, or switch it","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /v1/chats/{id}/agent","href":"/api-reference/chats/turn-the-ai-agent-on-or-off-for-a-chat-or-switch-it"}]},{"group":"Contacts","pages":[{"title":"List contacts","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/contacts","href":"/api-reference/contacts/list-contacts"},{"title":"Create a contact","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/contacts","href":"/api-reference/contacts/create-a-contact"},{"title":"Get a contact by id","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/contacts/{id}","href":"/api-reference/contacts/get-a-contact-by-id"},{"title":"Delete a contact","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/contacts/{id}","href":"/api-reference/contacts/delete-a-contact"},{"title":"Update a contact","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /v1/contacts/{id}","href":"/api-reference/contacts/update-a-contact"}]},{"group":"Deals","pages":[{"title":"List deals","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/deals","href":"/api-reference/deals/list-deals"},{"title":"Create a deal","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/deals","href":"/api-reference/deals/create-a-deal"},{"title":"Get a deal by id","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/deals/{id}","href":"/api-reference/deals/get-a-deal-by-id"},{"title":"Delete a deal","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/deals/{id}","href":"/api-reference/deals/delete-a-deal"},{"title":"Update a deal","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /v1/deals/{id}","href":"/api-reference/deals/update-a-deal"},{"title":"Attach tags to a deal","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/deals/{dealId}/tags","href":"/api-reference/deals/attach-tags-to-a-deal"},{"title":"Detach a tag from a deal","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/deals/{dealId}/tags/{tagId}","href":"/api-reference/deals/detach-a-tag-from-a-deal"}]},{"group":"Field groups","pages":[{"title":"List field groups","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/field-groups","href":"/api-reference/field-groups/list-field-groups"},{"title":"Create a field group","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/field-groups","href":"/api-reference/field-groups/create-a-field-group"},{"title":"Get a field group by id","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/field-groups/{id}","href":"/api-reference/field-groups/get-a-field-group-by-id"},{"title":"Delete a field group","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/field-groups/{id}","href":"/api-reference/field-groups/delete-a-field-group"},{"title":"Update a field group","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /v1/field-groups/{id}","href":"/api-reference/field-groups/update-a-field-group"}]},{"group":"Fields","pages":[{"title":"List fields","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/fields","href":"/api-reference/fields/list-fields"},{"title":"Create a field","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/fields","href":"/api-reference/fields/create-a-field"},{"title":"Get a field by id","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/fields/{id}","href":"/api-reference/fields/get-a-field-by-id"},{"title":"Delete a field","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/fields/{id}","href":"/api-reference/fields/delete-a-field"},{"title":"Update a field","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /v1/fields/{id}","href":"/api-reference/fields/update-a-field"}]},{"group":"Leads","pages":[{"title":"List leads","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/leads","href":"/api-reference/leads/list-leads"},{"title":"Get a lead by id","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/leads/{id}","href":"/api-reference/leads/get-a-lead-by-id"}]},{"group":"Loss reasons","pages":[{"title":"List loss reasons","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/loss-reasons","href":"/api-reference/loss-reasons/list-loss-reasons"},{"title":"Create a loss reason","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/loss-reasons","href":"/api-reference/loss-reasons/create-a-loss-reason"},{"title":"Delete a loss reason","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/loss-reasons/{id}","href":"/api-reference/loss-reasons/delete-a-loss-reason"},{"title":"Update a loss reason","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /v1/loss-reasons/{id}","href":"/api-reference/loss-reasons/update-a-loss-reason"}]},{"group":"Messages","pages":[{"title":"List the messages of a chat","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/chats/{chatId}/messages","href":"/api-reference/messages/list-the-messages-of-a-chat"},{"title":"Send a message to a chat","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/chats/{chatId}/messages","href":"/api-reference/messages/send-a-message-to-a-chat"},{"title":"Get a message by id","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/messages/{id}","href":"/api-reference/messages/get-a-message-by-id"},{"title":"Delete a message","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/messages/{id}","href":"/api-reference/messages/delete-a-message"},{"title":"Send a message to a phone number","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/messages/send-by-phone","href":"/api-reference/messages/send-a-message-to-a-phone-number"}]},{"group":"Notes","pages":[{"title":"List notes","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/notes","href":"/api-reference/notes/list-notes"},{"title":"Create a note","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/notes","href":"/api-reference/notes/create-a-note"},{"title":"List the notes of a deal","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/deals/{dealId}/notes","href":"/api-reference/notes/list-the-notes-of-a-deal"},{"title":"List the notes of a contact","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/contacts/{contactId}/notes","href":"/api-reference/notes/list-the-notes-of-a-contact"},{"title":"List the notes of a chat","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/chats/{chatId}/notes","href":"/api-reference/notes/list-the-notes-of-a-chat"},{"title":"Delete a note","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/notes/{id}","href":"/api-reference/notes/delete-a-note"},{"title":"Update a note","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /v1/notes/{id}","href":"/api-reference/notes/update-a-note"}]},{"group":"Pipelines","pages":[{"title":"List pipelines","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/pipelines","href":"/api-reference/pipelines/list-pipelines"},{"title":"Create a pipeline","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/pipelines","href":"/api-reference/pipelines/create-a-pipeline"},{"title":"Get a pipeline by id","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/pipelines/{id}","href":"/api-reference/pipelines/get-a-pipeline-by-id"},{"title":"Delete a pipeline","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/pipelines/{id}","href":"/api-reference/pipelines/delete-a-pipeline"},{"title":"Update a pipeline","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /v1/pipelines/{id}","href":"/api-reference/pipelines/update-a-pipeline"}]},{"group":"Stages","pages":[{"title":"List stages","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/pipelines/{id}/stages","href":"/api-reference/stages/list-stages"},{"title":"Create a stage","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/pipelines/{id}/stages","href":"/api-reference/stages/create-a-stage"},{"title":"Get a stage by id","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/pipelines/{id}/stages/{stageId}","href":"/api-reference/stages/get-a-stage-by-id"},{"title":"Delete a stage","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/pipelines/{id}/stages/{stageId}","href":"/api-reference/stages/delete-a-stage"},{"title":"Update a stage","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /v1/pipelines/{id}/stages/{stageId}","href":"/api-reference/stages/update-a-stage"}]},{"group":"Tags","pages":[{"title":"List tags","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/tags","href":"/api-reference/tags/list-tags"},{"title":"Create a tag","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/tags","href":"/api-reference/tags/create-a-tag"},{"title":"Delete a tag","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/tags/{id}","href":"/api-reference/tags/delete-a-tag"},{"title":"Update a tag","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /v1/tags/{id}","href":"/api-reference/tags/update-a-tag"}]},{"group":"Tasks","pages":[{"title":"List tasks","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/tasks","href":"/api-reference/tasks/list-tasks"},{"title":"Create a task","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/tasks","href":"/api-reference/tasks/create-a-task"},{"title":"Get a task by id","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/tasks/{id}","href":"/api-reference/tasks/get-a-task-by-id"},{"title":"Delete a task","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/tasks/{id}","href":"/api-reference/tasks/delete-a-task"},{"title":"Update a task","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /v1/tasks/{id}","href":"/api-reference/tasks/update-a-task"},{"title":"Complete a task","description":"Records `completedAt` and the `result`, which is required and holds at most 2000 characters. `completedBy` is filled only when a user completes the task, so it stays absent for an API key. Completing an already completed task changes nothing and answers the task as stored.","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/tasks/{id}/complete","href":"/api-reference/tasks/complete-a-task"},{"title":"List the tasks of a deal","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/deals/{dealId}/tasks","href":"/api-reference/tasks/list-the-tasks-of-a-deal"}]},{"group":"Touchpoints","pages":[{"title":"List the touchpoints of a deal","description":"Answers with a bare array of touchpoints, the latest first and at most the latest 100, without an envelope or pagination fields. A touchpoint is one time the lead reached the business, traced as far as it can be: an ad click that opened a WhatsApp conversation, a form or chatbot session with its UTMs and click ids, a call, a spreadsheet import, or a deal someone added by hand. They are written moments after the deal they go to, an ad click by its own job and, for a deal nothing traced, a default one about two minutes later, so a deal read right after it is created may not have them yet. Only the touchpoints that created or fed this deal come back; `isFirstTouch` and `isLastTouch` mark its first and latest ones.","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/deals/{dealId}/touchpoints","href":"/api-reference/touchpoints/list-the-touchpoints-of-a-deal"},{"title":"List the touchpoints of a contact","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/contacts/{contactId}/touchpoints","href":"/api-reference/touchpoints/list-the-touchpoints-of-a-contact"}]}]}]}]},"basePath":"","title":"List the tasks of a deal - Leadstaker","buildId":"dpl_DeHjVRGfFnhYQwHnfC2pjeXXv8h9","deploymentId":"dpl_DeHjVRGfFnhYQwHnfC2pjeXXv8h9","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CS552b7R.js","utils-DDTCYAF2.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-De8ttokP.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-DrwRDvAh.js","snippetPresets-DtAN0nWx.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-D5rWArI6.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-O2i12wsz.js","shallow-DV8xABTt.js","getApiPlaygroundDisplay-DBZ0B5Jx.js","CodeSnippet-BVi0tPUX.js","CodeSnippets-CqASbIwY.js","Page-m07pfKpT.js","getPastedJson-DG9vsMS8.js","icon-CXzRSCr8.js","MethodPill-BdKVtEuX.js","DuplicateIcon-CZlmBrJI.js","createIcon-biFEUKPL.js","DynamicMarkdown-B54_zNBF.js","SectionHeading-DwwHK3Pt.js","axios-vUo_bRtp.js","Markdown-DfhCTwyA.js","clsx-xpJZXxdP.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-BTZUMDnx.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-DqdKa2R4.js"]}