{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Smooth","colors":{"primary":"#0081ff","light":"#0081ff","dark":"#0081ff"},"logo":{"light":"https://mintcdn.com/circlemind/Mu7wQpBuZpaA5aGS/logo/light.svg?fit=max\u0026auto=format\u0026n=Mu7wQpBuZpaA5aGS\u0026q=85\u0026s=3ef2856d16446bbb39913daec1ee01ea","dark":"https://mintcdn.com/circlemind/Mu7wQpBuZpaA5aGS/logo/dark.svg?fit=max\u0026auto=format\u0026n=Mu7wQpBuZpaA5aGS\u0026q=85\u0026s=04b4f3599eac0bf914ed1e5f0b55fac1"},"favicon":"/favicon.svg","navbar":{"links":[{"href":"mailto:hi@circlemind.co","label":"Support"}],"primary":{"type":"button","label":"Get an API key","href":"https://app.smooth.sh"}},"footer":{"socials":{"x":"https://x.com/circlemind_ai","github":"https://github.com/orgs/circlemind-ai/repositories","linkedin":"https://linkedin.com/company/circlemindai","discord":"https://discord.com/invite/zFcCZ2eZ6N"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Playground","icon":"play","href":"https://app.smooth.sh"},{"anchor":"Community","icon":"discord","href":"https://discord.gg/VcdgMwUmMG"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"circlemind","hasAudioNarration":false,"actualSubdomain":"circlemind","customDomains":["docs.smooth.sh"],"gitSource":{"type":"github","owner":"circlemind-ai","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6ae922543e9b7a540d5114f4:success","clientVersion":"0.0.4124","searchFilterCounts":[{"language":"default","tag":"Documentation","count":38},{"language":"default","tag":"API reference","count":18},{"language":"default","tag":"Features","count":15},{"language":"default","tag":"Endpoints","count":14},{"language":"default","tag":"CLI Browser","count":13},{"language":"default","tag":"Use cases","count":10},{"language":"default","tag":"Automation SDK","count":7},{"language":"default","tag":"Tools","count":6},{"language":"default","tag":"Getting Started","count":5},{"language":"default","tag":"Session Workflow","count":5}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","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":"rbac-expansion","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":"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":"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":"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":"editor-metadata","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},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","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}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/task/get-task","slug":"/api-reference/task/get-task","pageMetadata":{"title":"Get Task","description":"Returns the status and result of a task by its ID. Use `event_t` parameter for polling to receive only new events since the given timestamp.","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /task/{task_id}","href":"/api-reference/task/get-task","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: [\"Returns the status and result of a task by its ID. Use \", _jsx(_components.code, {\n children: \"event_t\"\n }), \" parameter for polling to receive only new events since the given timestamp.\"]\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 Task","description":"Returns the status and result of a task by its ID. Use `event_t` parameter for polling to receive only new events since the given timestamp.","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /task/{task_id}","href":"/api-reference/task/get-task","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"summary":"Get Task","description":"Returns the status and result of a task by its ID. Use `event_t` parameter for polling to receive only new events since the given timestamp.","tags":["Task"],"operationId":"get_task","parameters":["5850df37-3e2f-46f9-bd4d-cba95060074a","10db37df-a3f3-406f-9acb-d3bf383fbdea","6b051a22-6f65-436a-a28d-33b293b80b39"],"responses":{"200":"60128f09-7bc5-4484-b986-a5dedec4d335","202":"5422e36e-a243-4df9-b978-7e63087d04c6","404":"548813bb-6b89-4857-8a6e-dafff5a4c320"},"x-codeSamples":[{"lang":"curl","label":"cURL","source":"curl -X GET \"https://api.smooth.sh/api/v1/task/YOUR_TASK_ID\" \\\n -H \"apikey: YOUR_API_KEY\""},{"lang":"curl","label":"cURL (polling with event_t)","source":"# Poll for new events since timestamp 1699999999999\ncurl -X GET \"https://api.smooth.sh/api/v1/task/YOUR_TASK_ID?event_t=1699999999999\" \\\n -H \"apikey: YOUR_API_KEY\""},{"lang":"python","label":"Python","source":"# The SDK handles polling automatically via task_handle.result()\nfrom smooth import SmoothClient\n\nclient = SmoothClient(api_key=\"YOUR_API_KEY\")\ntask_handle = client.run(task=\"Go to google.com\")\n\n# This polls internally until the task completes\nresult = task_handle.result()\nprint(f\"Status: {result.status}\")\nprint(f\"Output: {result.output}\")"},{"lang":"javascript","label":"JavaScript","source":"const apiKey = 'YOUR_API_KEY';\nconst taskId = 'YOUR_TASK_ID';\n\nasync function pollTask() {\n let eventT = 0;\n \n while (true) {\n const response = await fetch(\n `https://api.smooth.sh/api/v1/task/${taskId}?event_t=${eventT}`,\n { headers: { 'apikey': apiKey } }\n );\n \n const data = await response.json();\n const task = data.r;\n \n if (task.status === 'done' || task.status === 'failed') {\n console.log('Final output:', task.output);\n break;\n }\n \n // Update eventT for next poll\n if (task.events \u0026\u0026 task.events.length > 0) {\n eventT = task.events[task.events.length - 1].timestamp;\n }\n \n await new Promise(r => setTimeout(r, 1000));\n }\n}\n\npollTask();"}],"method":"get","type":"path","servers":["3b9db505-2902-467b-9e38-cc451da8704a"],"security":["6eb7f4e0-74b9-4860-9477-e266a1c63af2"],"path":"/task/{task_id}","baseUrlOptions":["https://api.smooth.sh/api/v1"],"title":"Get Task","codeSamples":[{"label":"cURL","lang":"curl","source":"curl -X GET \"https://api.smooth.sh/api/v1/task/YOUR_TASK_ID\" \\\n -H \"apikey: YOUR_API_KEY\""},{"label":"cURL (polling with event_t)","lang":"curl","source":"# Poll for new events since timestamp 1699999999999\ncurl -X GET \"https://api.smooth.sh/api/v1/task/YOUR_TASK_ID?event_t=1699999999999\" \\\n -H \"apikey: YOUR_API_KEY\""},{"label":"Python","lang":"python","source":"# The SDK handles polling automatically via task_handle.result()\nfrom smooth import SmoothClient\n\nclient = SmoothClient(api_key=\"YOUR_API_KEY\")\ntask_handle = client.run(task=\"Go to google.com\")\n\n# This polls internally until the task completes\nresult = task_handle.result()\nprint(f\"Status: {result.status}\")\nprint(f\"Output: {result.output}\")"},{"label":"JavaScript","lang":"javascript","source":"const apiKey = 'YOUR_API_KEY';\nconst taskId = 'YOUR_TASK_ID';\n\nasync function pollTask() {\n let eventT = 0;\n \n while (true) {\n const response = await fetch(\n `https://api.smooth.sh/api/v1/task/${taskId}?event_t=${eventT}`,\n { headers: { 'apikey': apiKey } }\n );\n \n const data = await response.json();\n const task = data.r;\n \n if (task.status === 'done' || task.status === 'failed') {\n console.log('Final output:', task.output);\n break;\n }\n \n // Update eventT for next poll\n if (task.events \u0026\u0026 task.events.length > 0) {\n eventT = task.events[task.events.length - 1].timestamp;\n }\n \n await new Promise(r => setTimeout(r, 1000));\n }\n}\n\npollTask();"}],"requiredOnlyExamples":false,"requestExampleType":"codeSamples","responseExampleType":"generated"},"dependencies":{"parameters":{"5850df37-3e2f-46f9-bd4d-cba95060074a":{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id","isRequired":true,"uniqueKey":"","typeLabel":"string"}},"10db37df-a3f3-406f-9acb-d3bf383fbdea":{"name":"event_t","in":"query","required":false,"schema":{"type":"integer","default":0,"description":"Timestamp of last event received. Only events after this timestamp will be returned.","isRequired":false,"uniqueKey":"","typeLabel":"integer"}},"6b051a22-6f65-436a-a28d-33b293b80b39":{"name":"downloads","in":"query","required":false,"schema":{"type":"boolean","default":false,"description":"Whether to include the download URL for files downloaded during the task.","isRequired":false,"uniqueKey":"","typeLabel":"boolean"}}},"responses":{"60128f09-7bc5-4484-b986-a5dedec4d335":{"description":"Task has completed (status is 'done', 'failed', or 'cancelled').","content":{"application/json":{"schema":{"type":"object","properties":{"r":{"type":"object","properties":{"id":{"type":"string","description":"The unique ID of the task.","title":"ID","isRequired":true,"uniqueKey":"r.id","typeLabel":"string"},"status":{"type":"string","enum":["waiting","running","done","failed","cancelled"],"description":"The current status of the task.","title":"Status","isRequired":true,"uniqueKey":"r.status","typeLabel":"enum\u003cstring>"},"output":{"oneOf":[{"title":"Output","description":"The output of the task. If `response_model` was provided, this matches the specified schema.","uniqueKey":"r.output.oneOf.0","typeLabel":"any"},{"type":"null","title":"Output","description":"The output of the task. If `response_model` was provided, this matches the specified schema.","uniqueKey":"r.output.oneOf.1","typeLabel":"null"}],"uniqueKey":"r.output","typeLabel":"any | null"},"credits_used":{"oneOf":[{"type":"integer","title":"Credits Used","description":"Number of credits used. 1 credit = $0.01.","uniqueKey":"r.credits_used.oneOf.0","typeLabel":"integer"},{"type":"null","title":"Credits Used","description":"Number of credits used. 1 credit = $0.01.","uniqueKey":"r.credits_used.oneOf.1","typeLabel":"null"}],"uniqueKey":"r.credits_used","typeLabel":"integer | null"},"device":{"oneOf":[{"type":"string","title":"Device","description":"The device type used for the task.","enum":["desktop","mobile","desktop-lg"],"uniqueKey":"r.device.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","title":"Device","description":"The device type used for the task.","uniqueKey":"r.device.oneOf.1","typeLabel":"null"}],"uniqueKey":"r.device","typeLabel":"enum\u003cstring> | null"},"live_url":{"oneOf":[{"type":"string","title":"Live URL","description":"URL to view the task execution in real-time.","uniqueKey":"r.live_url.oneOf.0","typeLabel":"string"},{"type":"null","title":"Live URL","description":"URL to view the task execution in real-time.","uniqueKey":"r.live_url.oneOf.1","typeLabel":"null"}],"uniqueKey":"r.live_url","typeLabel":"string | null"},"recording_url":{"oneOf":[{"type":"string","title":"Recording URL","description":"URL to download the video recording (available after task completes).","uniqueKey":"r.recording_url.oneOf.0","typeLabel":"string"},{"type":"null","title":"Recording URL","description":"URL to download the video recording (available after task completes).","uniqueKey":"r.recording_url.oneOf.1","typeLabel":"null"}],"uniqueKey":"r.recording_url","typeLabel":"string | null"},"downloads_url":{"oneOf":[{"type":"string","title":"Downloads URL","description":"URL to download files created during the task.","uniqueKey":"r.downloads_url.oneOf.0","typeLabel":"string"},{"type":"null","title":"Downloads URL","description":"URL to download files created during the task.","uniqueKey":"r.downloads_url.oneOf.1","typeLabel":"null"}],"uniqueKey":"r.downloads_url","typeLabel":"string | null"},"created_at":{"oneOf":[{"type":"integer","title":"Created At","description":"Unix timestamp when the task was created.","uniqueKey":"r.created_at.oneOf.0","typeLabel":"integer"},{"type":"null","title":"Created At","description":"Unix timestamp when the task was created.","uniqueKey":"r.created_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"r.created_at","typeLabel":"integer | null"},"events":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"Event type: `browser_action`, `session_action`, or `tool_call`.","title":"Name","isRequired":true,"uniqueKey":"r.events.oneOf.0.items.[INDEX].name","typeLabel":"string"},"payload":{"type":"object","description":"Event payload. For actions: `{name, input}`. For tool responses: `{code, output}`.","title":"Payload","isRequired":true,"uniqueKey":"r.events.oneOf.0.items.[INDEX].payload","typeLabel":"Payload · object"},"id":{"oneOf":[{"type":"string","title":"ID","description":"Unique event ID. Used to match responses to requests.","uniqueKey":"r.events.oneOf.0.items.[INDEX].id.oneOf.0","typeLabel":"string"},{"type":"null","title":"ID","description":"Unique event ID. Used to match responses to requests.","uniqueKey":"r.events.oneOf.0.items.[INDEX].id.oneOf.1","typeLabel":"null"}],"uniqueKey":"r.events.oneOf.0.items.[INDEX].id","typeLabel":"string | null"},"timestamp":{"oneOf":[{"type":"integer","title":"Timestamp","description":"Unix timestamp of the event.","uniqueKey":"r.events.oneOf.0.items.[INDEX].timestamp.oneOf.0","typeLabel":"integer"},{"type":"null","title":"Timestamp","description":"Unix timestamp of the event.","uniqueKey":"r.events.oneOf.0.items.[INDEX].timestamp.oneOf.1","typeLabel":"null"}],"uniqueKey":"r.events.oneOf.0.items.[INDEX].timestamp","typeLabel":"integer | null"}},"required":["name","payload"],"title":"TaskEvent","description":"Event model for sending actions to running tasks.","uniqueKey":"r.events.oneOf.0.items.[INDEX]","typeLabel":"TaskEvent · object"},"title":"Events","description":"List of new events fired since last poll (when using `event_t` parameter).","uniqueKey":"r.events.oneOf.0","typeLabel":"TaskEvent · object[]"},{"type":"null","title":"Events","description":"List of new events fired since last poll (when using `event_t` parameter).","uniqueKey":"r.events.oneOf.1","typeLabel":"null"}],"uniqueKey":"r.events","typeLabel":"TaskEvent · object[] | null"}},"required":["id","status"],"title":"TaskResponse","description":"Response model for task operations.","isRequired":true,"uniqueKey":"r","typeLabel":"TaskResponse · object"}},"required":["r"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"r":{"id":"\u003cstring>","status":"waiting","output":"\u003cunknown>","credits_used":123,"device":"desktop","live_url":"\u003cstring>","recording_url":"\u003cstring>","downloads_url":"\u003cstring>","created_at":123,"events":[{"name":"\u003cstring>","payload":{},"id":"\u003cstring>","timestamp":123}]}}}},"exampleType":"generated"}},"exampleType":"generated"},"5422e36e-a243-4df9-b978-7e63087d04c6":{"description":"Task is still running (status is 'waiting' or 'running').","content":{"application/json":{"schema":{"type":"object","properties":{"r":{"type":"object","properties":{"id":{"type":"string","description":"The unique ID of the task.","title":"ID","isRequired":true,"uniqueKey":"r.id","typeLabel":"string"},"status":{"type":"string","enum":["waiting","running","done","failed","cancelled"],"description":"The current status of the task.","title":"Status","isRequired":true,"uniqueKey":"r.status","typeLabel":"enum\u003cstring>"},"output":{"oneOf":[{"title":"Output","description":"The output of the task. If `response_model` was provided, this matches the specified schema.","uniqueKey":"r.output.oneOf.0","typeLabel":"any"},{"type":"null","title":"Output","description":"The output of the task. If `response_model` was provided, this matches the specified schema.","uniqueKey":"r.output.oneOf.1","typeLabel":"null"}],"uniqueKey":"r.output","typeLabel":"any | null"},"credits_used":{"oneOf":[{"type":"integer","title":"Credits Used","description":"Number of credits used. 1 credit = $0.01.","uniqueKey":"r.credits_used.oneOf.0","typeLabel":"integer"},{"type":"null","title":"Credits Used","description":"Number of credits used. 1 credit = $0.01.","uniqueKey":"r.credits_used.oneOf.1","typeLabel":"null"}],"uniqueKey":"r.credits_used","typeLabel":"integer | null"},"device":{"oneOf":[{"type":"string","title":"Device","description":"The device type used for the task.","enum":["desktop","mobile","desktop-lg"],"uniqueKey":"r.device.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","title":"Device","description":"The device type used for the task.","uniqueKey":"r.device.oneOf.1","typeLabel":"null"}],"uniqueKey":"r.device","typeLabel":"enum\u003cstring> | null"},"live_url":{"oneOf":[{"type":"string","title":"Live URL","description":"URL to view the task execution in real-time.","uniqueKey":"r.live_url.oneOf.0","typeLabel":"string"},{"type":"null","title":"Live URL","description":"URL to view the task execution in real-time.","uniqueKey":"r.live_url.oneOf.1","typeLabel":"null"}],"uniqueKey":"r.live_url","typeLabel":"string | null"},"recording_url":{"oneOf":[{"type":"string","title":"Recording URL","description":"URL to download the video recording (available after task completes).","uniqueKey":"r.recording_url.oneOf.0","typeLabel":"string"},{"type":"null","title":"Recording URL","description":"URL to download the video recording (available after task completes).","uniqueKey":"r.recording_url.oneOf.1","typeLabel":"null"}],"uniqueKey":"r.recording_url","typeLabel":"string | null"},"downloads_url":{"oneOf":[{"type":"string","title":"Downloads URL","description":"URL to download files created during the task.","uniqueKey":"r.downloads_url.oneOf.0","typeLabel":"string"},{"type":"null","title":"Downloads URL","description":"URL to download files created during the task.","uniqueKey":"r.downloads_url.oneOf.1","typeLabel":"null"}],"uniqueKey":"r.downloads_url","typeLabel":"string | null"},"created_at":{"oneOf":[{"type":"integer","title":"Created At","description":"Unix timestamp when the task was created.","uniqueKey":"r.created_at.oneOf.0","typeLabel":"integer"},{"type":"null","title":"Created At","description":"Unix timestamp when the task was created.","uniqueKey":"r.created_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"r.created_at","typeLabel":"integer | null"},"events":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"Event type: `browser_action`, `session_action`, or `tool_call`.","title":"Name","isRequired":true,"uniqueKey":"r.events.oneOf.0.items.[INDEX].name","typeLabel":"string"},"payload":{"type":"object","description":"Event payload. For actions: `{name, input}`. For tool responses: `{code, output}`.","title":"Payload","isRequired":true,"uniqueKey":"r.events.oneOf.0.items.[INDEX].payload","typeLabel":"Payload · object"},"id":{"oneOf":[{"type":"string","title":"ID","description":"Unique event ID. Used to match responses to requests.","uniqueKey":"r.events.oneOf.0.items.[INDEX].id.oneOf.0","typeLabel":"string"},{"type":"null","title":"ID","description":"Unique event ID. Used to match responses to requests.","uniqueKey":"r.events.oneOf.0.items.[INDEX].id.oneOf.1","typeLabel":"null"}],"uniqueKey":"r.events.oneOf.0.items.[INDEX].id","typeLabel":"string | null"},"timestamp":{"oneOf":[{"type":"integer","title":"Timestamp","description":"Unix timestamp of the event.","uniqueKey":"r.events.oneOf.0.items.[INDEX].timestamp.oneOf.0","typeLabel":"integer"},{"type":"null","title":"Timestamp","description":"Unix timestamp of the event.","uniqueKey":"r.events.oneOf.0.items.[INDEX].timestamp.oneOf.1","typeLabel":"null"}],"uniqueKey":"r.events.oneOf.0.items.[INDEX].timestamp","typeLabel":"integer | null"}},"required":["name","payload"],"title":"TaskEvent","description":"Event model for sending actions to running tasks.","uniqueKey":"r.events.oneOf.0.items.[INDEX]","typeLabel":"TaskEvent · object"},"title":"Events","description":"List of new events fired since last poll (when using `event_t` parameter).","uniqueKey":"r.events.oneOf.0","typeLabel":"TaskEvent · object[]"},{"type":"null","title":"Events","description":"List of new events fired since last poll (when using `event_t` parameter).","uniqueKey":"r.events.oneOf.1","typeLabel":"null"}],"uniqueKey":"r.events","typeLabel":"TaskEvent · object[] | null"}},"required":["id","status"],"title":"TaskResponse","description":"Response model for task operations.","isRequired":true,"uniqueKey":"r","typeLabel":"TaskResponse · object"}},"required":["r"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"r":{"id":"\u003cstring>","status":"waiting","output":"\u003cunknown>","credits_used":123,"device":"desktop","live_url":"\u003cstring>","recording_url":"\u003cstring>","downloads_url":"\u003cstring>","created_at":123,"events":[{"name":"\u003cstring>","payload":{},"id":"\u003cstring>","timestamp":123}]}}}},"exampleType":"generated"}},"exampleType":"generated"},"548813bb-6b89-4857-8a6e-dafff5a4c320":{"description":"Task not found","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}}},"security":{"6eb7f4e0-74b9-4860-9477-e266a1c63af2":{"APIKeyHeader":{"type":"apiKey","in":"header","name":"apikey","scopes":[]}}},"servers":{"3b9db505-2902-467b-9e38-cc451da8704a":{"url":"https://api.smooth.sh/api/v1"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"apikey","scopes":[]},"schema":{"title":"apikey","type":"string","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"APIKeyHeader","name":"apikey"}],"title":"APIKeyHeader"}]},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"circlemind","siteName":"Smooth","title":"Get Task - Smooth","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-03-25T00:29:45.098Z","originalFileLocation":"api-reference/task/get-task.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=\"Returns the status and result of a task by its ID. Use event_t parameter for polling to receive only new events since the given timestamp.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Smooth\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/circlemind/pxoXaTBb-CzVy2Ki/_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/circlemind/pxoXaTBb-CzVy2Ki/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/circlemind/pxoXaTBb-CzVy2Ki/_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/circlemind/pxoXaTBb-CzVy2Ki/_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/circlemind/pxoXaTBb-CzVy2Ki/_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/circlemind/pxoXaTBb-CzVy2Ki/_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/circlemind/pxoXaTBb-CzVy2Ki/_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/circlemind/pxoXaTBb-CzVy2Ki/_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/circlemind/pxoXaTBb-CzVy2Ki/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Get Task - Smooth\">\u003cmeta data-mint-head property=\"og:description\" content=\"Returns the status and result of a task by its ID. Use event_t parameter for polling to receive only new events since the given timestamp.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Smooth\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.smooth.sh/api-reference/task/get-task\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://circlemind.mintlify.site/_mintlify/api/og/v2?division=Task\u0026amp;title=Get+Task\u0026amp;description=Returns+the+status+and+result+of+a+task+by+its+ID.+Use+%60event_t%60+parameter+for+polling+to+receive+only+new+events+since+the+given+timestamp.\u0026amp;theme=19f17e9a7292a020747028fe\u0026amp;signature=0379c78418eb0f976ebdee93e01190fa2c43bd32fc26bf37672960a312c2e22f\">\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 Task - Smooth\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Returns the status and result of a task by its ID. Use event_t parameter for polling to receive only new events since the given timestamp.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://circlemind.mintlify.site/_mintlify/api/og/v2?division=Task\u0026amp;title=Get+Task\u0026amp;description=Returns+the+status+and+result+of+a+task+by+its+ID.+Use+%60event_t%60+parameter+for+polling+to+receive+only+new+events+since+the+given+timestamp.\u0026amp;theme=19f17e9a7292a020747028fe\u0026amp;signature=0379c78418eb0f976ebdee93e01190fa2c43bd32fc26bf37672960a312c2e22f\">\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/circlemind/pxoXaTBb-CzVy2Ki/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Smooth\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0081ff\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.smooth.sh/api-reference/task/get-task\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/task/get-task.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.smooth.sh/#organization\",\"name\":\"Smooth\",\"url\":\"https://docs.smooth.sh\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/circlemind/Mu7wQpBuZpaA5aGS/logo/light.svg?fit=max\u0026auto=format\u0026n=Mu7wQpBuZpaA5aGS\u0026q=85\u0026s=3ef2856d16446bbb39913daec1ee01ea\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.smooth.sh#website\",\"name\":\"Smooth\",\"url\":\"https://docs.smooth.sh\",\"publisher\":{\"@id\":\"https://docs.smooth.sh/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.smooth.sh/api-reference/task/get-task#webpage\",\"url\":\"https://docs.smooth.sh/api-reference/task/get-task\",\"name\":\"Get Task\",\"description\":\"Returns the status and result of a task by its ID. Use event_t parameter for polling to receive only new events since the given timestamp.\",\"dateModified\":\"2026-03-25T00:29:45.098Z\",\"isPartOf\":{\"@id\":\"https://docs.smooth.sh#website\"},\"breadcrumb\":{\"@id\":\"https://docs.smooth.sh/api-reference/task/get-task#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.smooth.sh/api-reference/task/get-task#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Endpoints\",\"item\":\"https://docs.smooth.sh/api-reference/task/list-tasks\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Task\",\"item\":\"https://docs.smooth.sh/api-reference/task/list-tasks\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Get Task\",\"item\":\"https://docs.smooth.sh/api-reference/task/get-task\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.smooth.sh/api-reference/task/get-task#apireference\",\"headline\":\"Get Task\",\"name\":\"Get Task\",\"description\":\"Returns the status and result of a task by its ID. Use event_t parameter for polling to receive only new events since the given timestamp.\",\"url\":\"https://docs.smooth.sh/api-reference/task/get-task\",\"mainEntityOfPage\":{\"@id\":\"https://docs.smooth.sh/api-reference/task/get-task#webpage\"},\"dateModified\":\"2026-03-25T00:29:45.098Z\",\"publisher\":{\"@id\":\"https://docs.smooth.sh/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.smooth.sh#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Smooth\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Smooth\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/task/get-task.md","siteName":"Smooth","nav":{"global":{"anchors":[{"anchor":"Playground","icon":"play","href":"https://app.smooth.sh"},{"anchor":"Community","icon":"discord","href":"https://discord.gg/VcdgMwUmMG"}]},"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":""}]},{"tab":"CLI Browser","pages":[{"title":"CLI Browser","href":"/cli/overview"}]},{"tab":"API reference","groups":[{"group":"Getting Started","pages":[{"title":"API Overview","href":"/api-reference/introduction"}]},{"group":"Guides","pages":[{"title":"Session Workflow","href":"/api-reference/sessions"},{"title":"Custom Tools","href":"/api-reference/custom-tools"},{"title":"Polling Mechanism","href":"/api-reference/polling"}]},{"group":"Endpoints","pages":[{"group":"Task","pages":[{"title":"List Tasks","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /task","href":"/api-reference/task/list-tasks"},{"title":"Submit Task","description":"Submits a task to be executed by the Smooth agent. If `task` is `null`, opens a browser session that waits for actions via the Event endpoint.","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /task","href":"/api-reference/task/submit-task"},{"title":"Get Task","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /task/{task_id}","href":"/api-reference/task/get-task"},{"title":"Cancel Task","description":"Cancel a running task by its ID.","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /task/{task_id}","href":"/api-reference/task/cancel-task"}]},{"group":"Event","pages":[{"title":"Send Event","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /task/{task_id}/event","href":"/api-reference/event/send-event"}]},{"group":"Profile","pages":[{"title":"List Profiles","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /profile","href":"/api-reference/profile/list-profiles"},{"title":"Create Profile","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /profile","href":"/api-reference/profile/create-profile"},{"title":"Delete Profile","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /profile/{profile_id}","href":"/api-reference/profile/delete-profile"},{"title":"Open Browser Session (Deprecated)","deprecated":true,"version":null,"openapi":"/api-reference/openapi.json post /browser/session","href":"/api-reference/profile/open-browser-session-deprecated"}]},{"group":"File","pages":[{"title":"Upload File","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /file","href":"/api-reference/file/upload-file"},{"title":"Delete File","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /file/{file_id}","href":"/api-reference/file/delete-file"}]},{"group":"Extension","pages":[{"title":"List Extensions","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /extension","href":"/api-reference/extension/list-extensions"},{"title":"Upload Extension","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /extension","href":"/api-reference/extension/upload-extension"},{"title":"Delete Extension","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /browser/extension/{extension_id}","href":"/api-reference/extension/delete-extension"}]}]}]}]},"basePath":"","title":"Get Task - Smooth","buildId":"dpl_8hoxaqFTU7hTr6A2fUraxAyjuiZo","deploymentId":"dpl_8hoxaqFTU7hTr6A2fUraxAyjuiZo","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CDiBsYGW.js","utils-KF9rPlmF.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-C26urKTX.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-BdjmJAC1.js","snippetPresets-3IpDBjt3.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-D4x_2vvo.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-BIWdc5Pa.js","shallow-LQqfiMNd.js","getApiPlaygroundDisplay-DryzlOZG.js","CodeSnippet-tcJujU4r.js","CodeSnippets-BHp0nVLL.js","Page-1CZdsdAn.js","getPastedJson-DU-1ayUv.js","icon-CZK2hPr4.js","MethodPill-DOaqmTFC.js","DuplicateIcon-B5-nUxxl.js","createIcon-CDP_U77G.js","DynamicMarkdown-GHvayGOn.js","SectionHeading-BYvpkmUD.js","axios-vUo_bRtp.js","Markdown-uxhlayGT.js","clsx-B35qUV0p.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-BvrGG8gU.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-CAf0yVYe.js"]}