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.4045","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":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":true},"customCss":[],"page":{"pagePath":"api-reference/tasks/get-a-task-by-id","slug":"/api-reference/tasks/get-a-task-by-id","pageMetadata":{"title":"Get a task by id","description":"Answers 404 when the id does not exist or belongs to another project.","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/tasks/{id}","href":"/api-reference/tasks/get-a-task-by-id","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Answers 404 when the id does not exist or belongs to another project.\"\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":"Get a task by id","description":"Answers 404 when the id does not exist or belongs to another project.","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/tasks/{id}","href":"/api-reference/tasks/get-a-task-by-id","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["Tasks"],"summary":"Get a task by id","operationId":"getTasksById","security":["de749d29-cc87-4b4a-8830-ec208959825a"],"parameters":["a1c9a9dd-aad3-438d-be16-2c0c01472385"],"responses":{"200":"bd6428cd-3fa9-4bbf-ab00-bcfa35710260","401":"23b1b464-2843-477c-9b5c-387b8e0c0c1d","404":"60093bc7-d1c4-4d7a-a2a6-d8d6a65133be"},"description":"Answers 404 when the id does not exist or belongs to another project.","method":"get","type":"path","servers":["a5d19048-d18b-42f5-954b-0675d8f40749"],"path":"/v1/tasks/{id}","baseUrlOptions":["https://n-api.leadstaker.com"],"title":"Get a task by id","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"a1c9a9dd-aad3-438d-be16-2c0c01472385":{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"","typeLabel":"string"}}},"responses":{"bd6428cd-3fa9-4bbf-ab00-bcfa35710260":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"id","typeLabel":"string"},"createdAt":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"createdAt","typeLabel":"string\u003cdate-time>"},"updatedAt":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"updatedAt","typeLabel":"string\u003cdate-time>"},"projectId":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"projectId","typeLabel":"string"},"dealId":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"dealId","typeLabel":"string"},"title":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"title","typeLabel":"string"},"dueAt":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"dueAt","typeLabel":"string\u003cdate-time>"},"responsibleId":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"responsibleId","typeLabel":"string"},"result":{"type":"string","uniqueKey":"result","typeLabel":"string"},"completedAt":{"type":"string","format":"date-time","uniqueKey":"completedAt","typeLabel":"string\u003cdate-time>"},"completedBy":{"type":"string","minLength":1,"uniqueKey":"completedBy","typeLabel":"string"},"createdBy":{"type":"string","minLength":1,"uniqueKey":"createdBy","typeLabel":"string"},"createdByAutomation":{"type":"object","properties":{"workflowId":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"createdByAutomation.workflowId","typeLabel":"string"},"executionId":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"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":"createdByAutomation","typeLabel":"object"}},"required":["id","createdAt","updatedAt","projectId","dealId","title","dueAt","responsibleId"],"additionalProperties":false,"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"},"23b1b464-2843-477c-9b5c-387b8e0c0c1d":{"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"},"60093bc7-d1c4-4d7a-a2a6-d8d6a65133be":{"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":{"de749d29-cc87-4b4a-8830-ec208959825a":{"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":"Get a task by id - Leadstaker","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-29T22:31:43.620Z","originalFileLocation":"api-reference/tasks/get-a-task-by-id.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 404 when the id does not exist or belongs to another project.\">\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=\"Get a task by id - Leadstaker\">\u003cmeta data-mint-head property=\"og:description\" content=\"Answers 404 when the id does not exist or belongs to another project.\">\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/get-a-task-by-id\">\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=Get+a+task+by+id\u0026amp;description=Answers+404+when+the+id+does+not+exist+or+belongs+to+another+project.\u0026amp;theme=c3cbc9809ce47beab54c5a87\u0026amp;signature=e67cb58378b3e047bb4602ecfa9f3bfb557541ea0dc74815e70b8ba6f6ef60b8\">\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=\"Get a task by id - Leadstaker\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Answers 404 when the id does not exist or belongs to another project.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://leadstaker-dd00260d.mintlify.app/_mintlify/api/og/v2?division=Tasks\u0026amp;title=Get+a+task+by+id\u0026amp;description=Answers+404+when+the+id+does+not+exist+or+belongs+to+another+project.\u0026amp;theme=c3cbc9809ce47beab54c5a87\u0026amp;signature=e67cb58378b3e047bb4602ecfa9f3bfb557541ea0dc74815e70b8ba6f6ef60b8\">\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/get-a-task-by-id\">\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/get-a-task-by-id.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/get-a-task-by-id#webpage\",\"url\":\"https://docs.leadstaker.com/api-reference/tasks/get-a-task-by-id\",\"name\":\"Get a task by id\",\"description\":\"Answers 404 when the id does not exist or belongs to another project.\",\"dateModified\":\"2026-10-29T22:31:43.620Z\",\"isPartOf\":{\"@id\":\"https://docs.leadstaker.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.leadstaker.com/api-reference/tasks/get-a-task-by-id#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.leadstaker.com/api-reference/tasks/get-a-task-by-id#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\":\"Get a task by id\",\"item\":\"https://docs.leadstaker.com/api-reference/tasks/get-a-task-by-id\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.leadstaker.com/api-reference/tasks/get-a-task-by-id#apireference\",\"headline\":\"Get a task by id\",\"name\":\"Get a task by id\",\"description\":\"Answers 404 when the id does not exist or belongs to another project.\",\"url\":\"https://docs.leadstaker.com/api-reference/tasks/get-a-task-by-id\",\"mainEntityOfPage\":{\"@id\":\"https://docs.leadstaker.com/api-reference/tasks/get-a-task-by-id#webpage\"},\"dateModified\":\"2026-10-29T22:31:43.620Z\",\"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","description":"Creates the task in the project of the API key and answers 201 with the created record. `dueAt` is an ISO 8601 instant and needs an explicit offset (`Z` or `±hh:mm`), so a local time with no offset is rejected. `createdBy` is filled only when a user creates the task, so it stays absent for an API key. `responsibleId` may name another user only when the caller is a project owner or admin: any other user must send their own id, otherwise answers 403 `UNAUTHORIZED_ACCESS`. An API key is not restricted. Answers 404 `DEAL` when `dealId` is not in the project.","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","description":"The task is deleted. Answers 204 with no body.","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","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","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":"Get a task by id - Leadstaker","buildId":"dpl_36EDyZCDfRuoUD9af5CH4M1bqY2h","deploymentId":"dpl_36EDyZCDfRuoUD9af5CH4M1bqY2h","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-DCDCdBVX.js","utils-ME8dDnLe.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-0e84ACsd.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-wgRBj-ia.js","snippetPresets-C11Sgb-o.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-C0lapOpP.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-ZeRQV8fF.js","shallow-BupWh095.js","getApiPlaygroundDisplay-BnYQO2Ss.js","CodeSnippet-RKKOc8c_.js","CodeSnippets-Drf_m8wS.js","Page-Bevw23-4.js","getPastedJson-u6QiPzNZ.js","icon-Bb-CBSxO.js","MethodPill-F7l5AI7V.js","DuplicateIcon-IiAXkdSg.js","createIcon-FliI8EBc.js","DynamicMarkdown-B62XqCSI.js","SectionHeading-Dj31pT03.js","axios-vUo_bRtp.js","Markdown-BOgQCTwD.js","clsx-BIWXJmsZ.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-DKZWslLH.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-UDqbR6xh.js"]}