{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Mira Mace API","colors":{"primary":"#16A34A","light":"#07C983","dark":"#15803D"},"logo":{"light":"https://mintcdn.com/miramace/pW0OJIW7t4FiOXwi/logo/mira-light.svg?fit=max\u0026auto=format\u0026n=pW0OJIW7t4FiOXwi\u0026q=85\u0026s=fb442c5ddce096bcce0a04d469aee6ea","dark":"https://mintcdn.com/miramace/pW0OJIW7t4FiOXwi/logo/mira-dark.svg?fit=max\u0026auto=format\u0026n=pW0OJIW7t4FiOXwi\u0026q=85\u0026s=446d728cda78498364ec0d771e3e4a09"},"favicon":"https://mintcdn.com/miramace/pW0OJIW7t4FiOXwi/favicon.svg?fit=max\u0026auto=format\u0026n=pW0OJIW7t4FiOXwi\u0026q=85\u0026s=dafa14a1faa82123d59beec561c6cda6","navbar":{"links":[{"href":"mailto:victor@miramace.com","label":"Support"}]},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"miramace","hasAudioNarration":false,"actualSubdomain":"miramace","customDomains":["docs.miramace.com"],"gitSource":{"type":"github","owner":"mira-mace","repo":"mira","deployBranch":"main","contentDirectory":"api-docs","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6a98be03b5ebd4dbfc07404f","collectionId":"0f978fbb-9950-4e30-8d71-1ccb512f0cac","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6a98be03b5ebd4dbfc07404f"},"entitlements":{},"buildId":"6a98be03b5ebd4dbfc07404f","clientVersion":"0.0.4045","searchFilterCounts":[{"language":"default","tag":"API Reference","count":7},{"language":"default","tag":"API Documentation","count":3},{"language":"default","tag":"Patients","count":2},{"language":"default","tag":"Tasks","count":2}]},"assistantConfig":{},"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":false},"customCss":[],"page":{"pagePath":"api-reference/endpoint-tasks/create","slug":"/api-reference/endpoint-tasks/create","pageMetadata":{"title":"Create Task","openapi":"POST /v1/task","description":"Create a new task to be processed by the Mira platform. \n\nWe offer these task types out of the box:\n\n• Appointment Scheduling: Schedule or reschedule medical appointments with preferred providers and timing.\n\n• Insurance Verification: Check insurance coverage, benefits, and pre-authorization requirements.\n\n• Insurance Reimbursement: Process and track insurance reimbursement claims.\n\n• Custom Healthcare Tasks: Execute flexible, healthcare-related tasks with configurable workflows.\n\nNeed a custom task type for your specific workflow? We can spin one for you quickly, contact us","href":"/api-reference/endpoint-tasks/create"},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsx(_components.p, {\n children: \"Create a new task to be processed by the Mira platform.\"\n }), \"\\n\", _jsx(_components.p, {\n children: \"We offer these task types out of the box:\"\n }), \"\\n\", _jsx(_components.p, {\n children: \"• Appointment Scheduling: Schedule or reschedule medical appointments with preferred providers and timing.\"\n }), \"\\n\", _jsx(_components.p, {\n children: \"• Insurance Verification: Check insurance coverage, benefits, and pre-authorization requirements.\"\n }), \"\\n\", _jsx(_components.p, {\n children: \"• Insurance Reimbursement: Process and track insurance reimbursement claims.\"\n }), \"\\n\", _jsx(_components.p, {\n children: \"• Custom Healthcare Tasks: Execute flexible, healthcare-related tasks with configurable workflows.\"\n }), \"\\n\", _jsx(_components.p, {\n children: \"Need a custom task type for your specific workflow? We can spin one for you quickly, contact us\"\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":"Create Task","openapi":"POST /v1/task","description":"Create a new task to be processed by the Mira platform. \n\nWe offer these task types out of the box:\n\n• Appointment Scheduling: Schedule or reschedule medical appointments with preferred providers and timing.\n\n• Insurance Verification: Check insurance coverage, benefits, and pre-authorization requirements.\n\n• Insurance Reimbursement: Process and track insurance reimbursement claims.\n\n• Custom Healthcare Tasks: Execute flexible, healthcare-related tasks with configurable workflows.\n\nNeed a custom task type for your specific workflow? We can spin one for you quickly, contact us","href":"/api-reference/endpoint-tasks/create"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"create_task","summary":"Create a new task","description":"Create a new task to be processed by the Mira platform. \n\nWe offer these task types out of the box:\n\n• Appointment Scheduling: Schedule or reschedule medical appointments with preferred providers and timing.\n\n• Insurance Verification: Check insurance coverage, benefits, and pre-authorization requirements.\n\n• Insurance Reimbursement: Process and track insurance reimbursement claims.\n\n• Custom Healthcare Tasks: Execute flexible, healthcare-related tasks with configurable workflows.\n\nNeed a custom task type for your specific workflow? We can spin one for you quickly, contact us","x-codeSamples":[{"lang":"Python","label":"Appointment Scheduling","source":"import requests\n\nurl = 'https://api.miramace.com/v1/task'\nheaders = {\n 'Authorization': 'Bearer YOUR_API_KEY',\n 'Content-Type': 'application/json'\n}\npayload = {\n 'task_type': 'SCHEDULE_APPOINTMENT',\n 'task': 'Schedule a follow-up appointment with Dr. Smith for next week',\n 'phone_number': '+15555555555',\n 'project_id': '123e4567-e89b-12d3-a456-426614174000',\n 'patient_id': '123e4567-e89b-12d3-a456-426614174001',\n 'task_data': {\n 'timeframe_availability': 'Weekdays between 2-5pm',\n 'speciality_preferences': 'Orthopedic surgeon, preferably Dr. Smith',\n 'additional_context': 'Patient prefers afternoon appointments',\n 'previous_visits': [{\n 'purpose': 'Initial consultation for knee pain',\n 'date': '2024-03-15',\n 'outcome': 'Recommended physical therapy and follow-up'\n }],\n 'patient_status': 'existing',\n 'has_referral': true,\n 'referral': {\n 'name': 'Dr. Robert Johnson',\n 'npi': '0987654321',\n 'specialty': 'Primary Care',\n 'facility': 'SF Medical Group',\n 'address': {\n 'street_name': '456 Health Ave',\n 'city': 'San Francisco',\n 'state': 'CA',\n 'postal_code': '94105',\n 'country_code': 'US'\n },\n 'phone_number': '+14155555556'\n },\n 'is_rescheduling': false,\n 'existing_appointment': null,\n 'reschedule_reason': null\n }\n}\n\nresponse = requests.post(url, json=payload, headers=headers)\nprint(response.json())"},{"lang":"Python","label":"Verify Insurance","source":"import requests\n\nurl = 'https://api.miramace.com/v1/task'\nheaders = {\n 'Authorization': 'Bearer YOUR_API_KEY',\n 'Content-Type': 'application/json'\n}\npayload = {\n 'task_type': 'VERIFY_INSURANCE',\n 'task': 'Verify insurance coverage for MRI',\n 'phone_number': '+15555555555',\n 'project_id': 'proj_xyz789',\n 'patient_id': 'pat_abc123',\n 'task_data': {\n 'service': {\n 'description': 'MRI of right knee',\n 'cpt_codes': ['73721']\n },\n 'provider': {\n 'name': 'Dr. Jane Smith',\n 'npi': '1234567890',\n 'specialty': 'Radiology',\n 'facility': 'SF Medical Imaging',\n 'address': {\n 'street_name': '456 Health Ave',\n 'city': 'San Francisco',\n 'state': 'CA',\n 'postal_code': '94105',\n 'country_code': 'US'\n },\n 'phone_number': '+14155555556'\n },\n 'insurance': {\n 'company_name': 'Blue Cross Blue Shield',\n 'member_id': 'BCB123456789',\n 'group_number': 'GRP987654',\n 'plan_name': 'PPO Gold',\n 'phone_number': '+18005551234',\n 'relationship_to_subscriber': 'SELF',\n 'primary_subscriber': {\n 'first_name': 'Jane',\n 'last_name': 'Doe'\n }\n },\n 'additional_context': 'Patient may need pre-authorization'\n }\n}\n\nresponse = requests.post(url, json=payload, headers=headers)\nprint(response.json())"},{"lang":"Python","label":"Insurance Reimbursement","source":"import requests\n\nurl = 'https://api.miramace.com/v1/task'\nheaders = {\n 'Authorization': 'Bearer YOUR_API_KEY',\n 'Content-Type': 'application/json'\n}\npayload = {\n 'task_type': 'INSURANCE_REIMBURSEMENT',\n 'task': 'Follow up on reimbursement for ER visit',\n 'phone_number': '+15555555555',\n 'project_id': 'proj_xyz789',\n 'patient_id': 'pat_abc123',\n 'task_data': {\n 'case_info': {\n 'number': 'CASE-12345'\n },\n 'bill': {\n 'number': 'INV-12345',\n 'amount': '$1,250.00'\n },\n 'reimbursement_status': 'Pending',\n 'payment_details': 'Claim #12345 submitted on March 15, 2025',\n 'treatment_background': 'Emergency room visit for broken arm',\n 'treatment_data': 'X-ray and cast application',\n 'primary_insurance': {\n 'company_name': 'Blue Cross Blue Shield',\n 'member_id': 'BCB123456789',\n 'group_number': 'GRP987654',\n 'plan_name': 'PPO Gold',\n 'phone_number': '+18005551234',\n 'relationship_to_subscriber': 'SELF',\n 'primary_subscriber': {\n 'first_name': 'Jane',\n 'last_name': 'Doe'\n }\n },\n 'provider': {\n 'name': 'Dr. John Smith',\n 'npi': '1234567890',\n 'specialty': 'Emergency Medicine',\n 'facility': 'City General Hospital',\n 'address': {\n 'street_name': '123 Medical Center Dr',\n 'city': 'San Francisco',\n 'state': 'CA',\n 'postal_code': '94105',\n 'country_code': 'US'\n },\n 'phone_number': '+14155551234'\n },\n 'additional_context': 'Need to reach billing department for invoice question'\n }\n}\n\nresponse = requests.post(url, json=payload, headers=headers)\nprint(response.json())"},{"lang":"Python","label":"Custom Task","source":"import requests\n\nurl = 'https://api.miramace.com/v1/task'\nheaders = {\n 'Authorization': 'Bearer YOUR_API_KEY',\n 'Content-Type': 'application/json'\n}\npayload = {\n 'task_type': 'CUSTOM_TASK',\n 'task': 'Follow up on wheelchair delivery',\n 'phone_number': '+15555555555',\n 'project_id': 'proj_xyz789',\n 'patient_id': 'pat_abc123',\n 'task_data': {\n 'additional_context': 'Check if the member has received their recent wheelchair delivery and if they have any questions about it',\n 'questions_to_ask': [\n {\n 'index': 0,\n 'question': 'Have you received your wheelchair delivery?',\n 'answer': 'Yes, I received it last Tuesday'\n },\n {\n 'index': 1,\n 'question': 'Is the wheelchair meeting your needs?',\n 'answer': 'Yes, it's working well for me'\n }\n ]\n }\n}\n\nresponse = requests.post(url, headers=headers, json=payload)\nprint(response.json())"},{"lang":"JavaScript","label":"Appointment Scheduling","source":"const response = await fetch('https://api.miramace.com/v1/task', {\n method: 'POST',\n headers: {\n 'Authorization': 'Bearer YOUR_API_KEY',\n 'Content-Type': 'application/json',\n },\n body: JSON.stringify({\n task_type: 'SCHEDULE_APPOINTMENT',\n task: 'Schedule a follow-up appointment with Dr. Smith for next week',\n phone_number: '+15555555555',\n project_id: '123e4567-e89b-12d3-a456-426614174000',\n patient_id: '123e4567-e89b-12d3-a456-426614174001',\n task_data: {\n timeframe_availability: 'Weekdays between 2-5pm',\n speciality_preferences: 'Orthopedic surgeon, preferably Dr. Smith',\n additional_context: 'Patient prefers afternoon appointments',\n previous_visits: [{\n purpose: 'Initial consultation for knee pain',\n date: '2024-03-15',\n outcome: 'Recommended physical therapy and follow-up'\n }],\n patient_status: 'existing',\n has_referral: true,\n referral: {\n name: 'Dr. Robert Johnson',\n npi: '0987654321',\n specialty: 'Primary Care',\n facility: 'SF Medical Group',\n address: {\n street_name: '456 Health Ave',\n city: 'San Francisco',\n state: 'CA',\n postal_code: '94105',\n country_code: 'US'\n },\n phone_number: '+14155555556'\n },\n is_rescheduling: false,\n existing_appointment: null,\n reschedule_reason: null\n }\n })\n});\n\nconst data = await response.json();\nconsole.log(data);"},{"lang":"JavaScript","label":"Verify Insurance","source":"const response = await fetch('https://api.miramace.com/v1/task', {\n method: 'POST',\n headers: {\n 'Authorization': 'Bearer YOUR_API_KEY',\n 'Content-Type': 'application/json',\n },\n body: JSON.stringify({\n task_type: 'VERIFY_INSURANCE',\n task: 'Verify insurance coverage for MRI',\n phone_number: '+15555555555',\n project_id: 'proj_xyz789',\n patient_id: 'pat_abc123',\n task_data: {\n service: {\n description: 'MRI of right knee',\n cpt_codes: ['73721']\n },\n provider: {\n name: 'Dr. Jane Smith',\n npi: '1234567890',\n specialty: 'Radiology',\n facility: 'SF Medical Imaging',\n address: {\n street_name: '456 Health Ave',\n city: 'San Francisco',\n state: 'CA',\n postal_code: '94105',\n country_code: 'US'\n },\n phone_number: '+14155555556'\n },insurance: {\n company_name: 'Blue Cross Blue Shield',\n member_id: 'BCB123456789',\n group_number: 'GRP987654',\n plan_name: 'PPO Gold',\n phone_number: '+18005551234',\n relationship_to_subscriber: 'SELF',primary_subscriber: {\n first_name: 'Jane',\n last_name: 'Doe'\n }\n },additional_context: 'Patient may need pre-authorization'\n }\n })\n});\n\nconst data = await response.json();\nconsole.log(data);"},{"lang":"JavaScript","label":"Insurance Reimbursement","source":"const response = await fetch('https://api.miramace.com/v1/task', {\n method: 'POST',\"phone_number\": \"+15555555555\",\"project_id\": \"proj_xyz789\",\"patient_id\": \"pat_abc123\",\"task_data\": {\"case_info\": {\"number\": \"CASE-12345\"},\"bill\": {\"number\": \"INV-12345\",\"amount\": \"$1,250.00\"},\"reimbursement_status\": \"Pending\",\"payment_details\": \"Claim #12345 submitted on March 15, 2025\",\"treatment_background\": \"Emergency room visit for broken arm\",\"treatment_data\": \"X-ray and cast application\",\"primary_insurance\": {\"company_name\": \"Blue Cross Blue Shield\",\"member_id\": \"BCB123456789\",\"group_number\": \"GRP987654\",\"plan_name\": \"PPO Gold\",\"phone_number\": \"+18005551234\",\"relationship_to_subscriber\": \"SELF\",\"primary_subscriber\": {\"first_name\": \"Jane\",\"last_name\": \"Doe\"}},\"provider\": {\"name\": \"Dr. John Smith\",\"npi\": \"1234567890\",\"specialty\": \"Emergency Medicine\",\"facility\": \"City General Hospital\",\"address\": {\"street_name\": \"123 Medical Center Dr\",\"city\": \"San Francisco\",\"state\": \"CA\",\"postal_code\": \"94105\",\"country_code\": \"US\"},\"phone_number\": \"+14155551234\"},\"additional_context\": \"Need to reach billing department for invoice question\"}})\n});\n\nconst data = await response.json();\nconsole.log(data);"},{"lang":"cURL","label":"Appointment Scheduling","source":"curl --request POST \\\n --url https://api.miramace.com/v1/task \\\n --header 'Authorization: Bearer YOUR_API_KEY' \\\n --header 'Content-Type: application/json' \\\n --data '{\n \"task_type\": \"SCHEDULE_APPOINTMENT\",\n \"task\": \"Schedule a follow-up appointment with Dr. Smith for next week\",\n \"phone_number\": \"+15555555555\",\"patient_id\": \"123e4567-e89b-12d3-a456-426614174001\",\"task_data\": {\"timeframe_availability\": \"Weekdays between 2-5pm\",\"speciality_preferences\": \"Orthopedic surgeon, preferably Dr. Smith\",\"additional_context\": \"Patient prefers afternoon appointments\",\"previous_visits\": [{\n \"purpose\": \"Initial consultation for knee pain\",\"date\": \"2024-03-15\",\"outcome\": \"Recommended physical therapy and follow-up\"\n }],\"patient_status\": \"existing\",\"has_referral\": true,\"referral\": {\n \"name\": \"Dr. Robert Johnson\",\"npi\": \"0987654321\",\"specialty\": \"Primary Care\",\"facility\": \"SF Medical Group\",\"address\": {\"street_name\": \"456 Health Ave\",\"city\": \"San Francisco\",\"state\": \"CA\",\"postal_code\": \"94105\",\"country_code\": \"US\"},\"phone_number\": \"+14155555556\"\n },\"is_rescheduling\": false,\"existing_appointment\": null,\"reschedule_reason\": null}}'"},{"lang":"cURL","label":"Verify Insurance","source":"curl --request POST \\\n --url https://api.miramace.com/v1/task \\\n --header 'Authorization: Bearer YOUR_API_KEY' \\\n --header 'Content-Type: application/json' \\\n --data '{\n \"task_type\": \"VERIFY_INSURANCE\",\"task\": \"Verify insurance coverage for MRI\",\"phone_number\": \"+15555555555\",\"project_id\": \"proj_xyz789\",\"patient_id\": \"pat_abc123\",\"task_data\": {\"service\": {\"description\": \"MRI of right knee\",\"cpt_codes\": [\"73721\"]},\"provider\": {\"name\": \"Dr. Jane Smith\",\"npi\": \"1234567890\",\"specialty\": \"Radiology\",\"facility\": \"SF Medical Imaging\",\"address\": {\"street_name\": \"456 Health Ave\",\"city\": \"San Francisco\",\"state\": \"CA\",\"postal_code\": \"94105\",\"country_code\": \"US\"},\"phone_number\": \"+14155555556\"},\"insurance\": {\"company_name\": \"Blue Cross Blue Shield\",\"member_id\": \"BCB123456789\",\"group_number\": \"GRP987654\",\"plan_name\": \"PPO Gold\",\"phone_number\": \"+18005551234\",\"relationship_to_subscriber\": \"SELF\",\"primary_subscriber\": {\"first_name\": \"Jane\",\"last_name\": \"Doe\"}},\"additional_context\": \"Patient may need pre-authorization\"}}'"},{"lang":"cURL","source":"curl --request POST \\\n --url https://api.miramace.com/v1/task \\\n --header 'Authorization: Bearer YOUR_API_KEY' \\\n --header 'Content-Type: application/json' \\\n --data '{\n \"task_type\": \"INSURANCE_REIMBURSEMENT\",\"phone_number\": \"+15555555555\",\"project_id\": \"proj_xyz789\",\"patient_id\": \"pat_abc123\",\"task_data\": {\"case_info\": {\n \"number\": \"CASE-12345\"},\"bill\": {\n \"number\": \"INV-12345\",\"amount\": \"$1,250.00\"},\"reimbursement_status\": \"Pending\",\"payment_details\": \"Claim #12345 submitted on March 15, 2025\",\"treatment_background\": \"Emergency room visit for broken arm\",\"treatment_data\": \"X-ray and cast application\",\"primary_insurance\": {\n \"company_name\": \"Blue Cross Blue Shield\",\"member_id\": \"BCB123456789\",\"group_number\": \"GRP987654\",\"plan_name\": \"PPO Gold\",\"phone_number\": \"+18005551234\",\"relationship_to_subscriber\": \"SELF\",\"primary_subscriber\": {\n \"first_name\": \"Jane\",\"last_name\": \"Doe\"}},\"provider\": {\n \"name\": \"Dr. John Smith\",\"npi\": \"1234567890\",\"specialty\": \"Emergency Medicine\",\"facility\": \"City General Hospital\",\"address\": {\n \"street_name\": \"123 Medical Center Dr\",\"city\": \"San Francisco\",\"state\": \"CA\",\"postal_code\": \"94105\",\"country_code\": \"US\"},\"phone_number\": \"+14155551234\"},\"additional_context\": \"Need to reach billing department for invoice question\"}}'"},{"lang":"cURL","source":"curl --request POST \\\n --url https://api.miramace.com/v1/task \\\n --header 'Authorization: Bearer YOUR_API_KEY' \\\n --header 'Content-Type: application/json' \\\n --data '{\n \"task_type\": \"CUSTOM_TASK\",\"phone_number\": \"+15555555555\",\"project_id\": \"proj_xyz789\",\"patient_id\": \"pat_abc123\",\"task_data\": {\"additional_context\": \"Check if the member has received their recent wheelchair delivery and if they have any questions about it\",\"questions_to_ask\": [\n {\n \"index\": 0,\n \"question\": \"Have you received your wheelchair delivery?\",\n \"answer\": \"Yes, I received it last Tuesday\"\n },\n {\n \"index\": 1,\n \"question\": \"Is the wheelchair meeting your needs?\",\n \"answer\": \"Yes, it's working well for me\"\n }\n ]\n }}'"}],"requestBody":"a5cdace5-f4ef-4a01-9016-bc51c2fde1a8","responses":{"201":"c64f8343-5f09-4799-9342-8f94215874dc","400":"c09b710c-9636-4dbd-b913-1d3229dc1ff3","401":"ad65f4a6-d79b-4de5-a849-2eeead15199c"},"method":"post","type":"path","servers":[],"security":[],"path":"/v1/task","baseUrlOptions":[],"title":"Create a new task","codeSamples":[{"label":"Appointment Scheduling","lang":"Python","source":"import requests\n\nurl = 'https://api.miramace.com/v1/task'\nheaders = {\n 'Authorization': 'Bearer YOUR_API_KEY',\n 'Content-Type': 'application/json'\n}\npayload = {\n 'task_type': 'SCHEDULE_APPOINTMENT',\n 'task': 'Schedule a follow-up appointment with Dr. Smith for next week',\n 'phone_number': '+15555555555',\n 'project_id': '123e4567-e89b-12d3-a456-426614174000',\n 'patient_id': '123e4567-e89b-12d3-a456-426614174001',\n 'task_data': {\n 'timeframe_availability': 'Weekdays between 2-5pm',\n 'speciality_preferences': 'Orthopedic surgeon, preferably Dr. Smith',\n 'additional_context': 'Patient prefers afternoon appointments',\n 'previous_visits': [{\n 'purpose': 'Initial consultation for knee pain',\n 'date': '2024-03-15',\n 'outcome': 'Recommended physical therapy and follow-up'\n }],\n 'patient_status': 'existing',\n 'has_referral': true,\n 'referral': {\n 'name': 'Dr. Robert Johnson',\n 'npi': '0987654321',\n 'specialty': 'Primary Care',\n 'facility': 'SF Medical Group',\n 'address': {\n 'street_name': '456 Health Ave',\n 'city': 'San Francisco',\n 'state': 'CA',\n 'postal_code': '94105',\n 'country_code': 'US'\n },\n 'phone_number': '+14155555556'\n },\n 'is_rescheduling': false,\n 'existing_appointment': null,\n 'reschedule_reason': null\n }\n}\n\nresponse = requests.post(url, json=payload, headers=headers)\nprint(response.json())"},{"label":"Verify Insurance","lang":"Python","source":"import requests\n\nurl = 'https://api.miramace.com/v1/task'\nheaders = {\n 'Authorization': 'Bearer YOUR_API_KEY',\n 'Content-Type': 'application/json'\n}\npayload = {\n 'task_type': 'VERIFY_INSURANCE',\n 'task': 'Verify insurance coverage for MRI',\n 'phone_number': '+15555555555',\n 'project_id': 'proj_xyz789',\n 'patient_id': 'pat_abc123',\n 'task_data': {\n 'service': {\n 'description': 'MRI of right knee',\n 'cpt_codes': ['73721']\n },\n 'provider': {\n 'name': 'Dr. Jane Smith',\n 'npi': '1234567890',\n 'specialty': 'Radiology',\n 'facility': 'SF Medical Imaging',\n 'address': {\n 'street_name': '456 Health Ave',\n 'city': 'San Francisco',\n 'state': 'CA',\n 'postal_code': '94105',\n 'country_code': 'US'\n },\n 'phone_number': '+14155555556'\n },\n 'insurance': {\n 'company_name': 'Blue Cross Blue Shield',\n 'member_id': 'BCB123456789',\n 'group_number': 'GRP987654',\n 'plan_name': 'PPO Gold',\n 'phone_number': '+18005551234',\n 'relationship_to_subscriber': 'SELF',\n 'primary_subscriber': {\n 'first_name': 'Jane',\n 'last_name': 'Doe'\n }\n },\n 'additional_context': 'Patient may need pre-authorization'\n }\n}\n\nresponse = requests.post(url, json=payload, headers=headers)\nprint(response.json())"},{"label":"Insurance Reimbursement","lang":"Python","source":"import requests\n\nurl = 'https://api.miramace.com/v1/task'\nheaders = {\n 'Authorization': 'Bearer YOUR_API_KEY',\n 'Content-Type': 'application/json'\n}\npayload = {\n 'task_type': 'INSURANCE_REIMBURSEMENT',\n 'task': 'Follow up on reimbursement for ER visit',\n 'phone_number': '+15555555555',\n 'project_id': 'proj_xyz789',\n 'patient_id': 'pat_abc123',\n 'task_data': {\n 'case_info': {\n 'number': 'CASE-12345'\n },\n 'bill': {\n 'number': 'INV-12345',\n 'amount': '$1,250.00'\n },\n 'reimbursement_status': 'Pending',\n 'payment_details': 'Claim #12345 submitted on March 15, 2025',\n 'treatment_background': 'Emergency room visit for broken arm',\n 'treatment_data': 'X-ray and cast application',\n 'primary_insurance': {\n 'company_name': 'Blue Cross Blue Shield',\n 'member_id': 'BCB123456789',\n 'group_number': 'GRP987654',\n 'plan_name': 'PPO Gold',\n 'phone_number': '+18005551234',\n 'relationship_to_subscriber': 'SELF',\n 'primary_subscriber': {\n 'first_name': 'Jane',\n 'last_name': 'Doe'\n }\n },\n 'provider': {\n 'name': 'Dr. John Smith',\n 'npi': '1234567890',\n 'specialty': 'Emergency Medicine',\n 'facility': 'City General Hospital',\n 'address': {\n 'street_name': '123 Medical Center Dr',\n 'city': 'San Francisco',\n 'state': 'CA',\n 'postal_code': '94105',\n 'country_code': 'US'\n },\n 'phone_number': '+14155551234'\n },\n 'additional_context': 'Need to reach billing department for invoice question'\n }\n}\n\nresponse = requests.post(url, json=payload, headers=headers)\nprint(response.json())"},{"label":"Custom Task","lang":"Python","source":"import requests\n\nurl = 'https://api.miramace.com/v1/task'\nheaders = {\n 'Authorization': 'Bearer YOUR_API_KEY',\n 'Content-Type': 'application/json'\n}\npayload = {\n 'task_type': 'CUSTOM_TASK',\n 'task': 'Follow up on wheelchair delivery',\n 'phone_number': '+15555555555',\n 'project_id': 'proj_xyz789',\n 'patient_id': 'pat_abc123',\n 'task_data': {\n 'additional_context': 'Check if the member has received their recent wheelchair delivery and if they have any questions about it',\n 'questions_to_ask': [\n {\n 'index': 0,\n 'question': 'Have you received your wheelchair delivery?',\n 'answer': 'Yes, I received it last Tuesday'\n },\n {\n 'index': 1,\n 'question': 'Is the wheelchair meeting your needs?',\n 'answer': 'Yes, it's working well for me'\n }\n ]\n }\n}\n\nresponse = requests.post(url, headers=headers, json=payload)\nprint(response.json())"},{"label":"Appointment Scheduling","lang":"JavaScript","source":"const response = await fetch('https://api.miramace.com/v1/task', {\n method: 'POST',\n headers: {\n 'Authorization': 'Bearer YOUR_API_KEY',\n 'Content-Type': 'application/json',\n },\n body: JSON.stringify({\n task_type: 'SCHEDULE_APPOINTMENT',\n task: 'Schedule a follow-up appointment with Dr. Smith for next week',\n phone_number: '+15555555555',\n project_id: '123e4567-e89b-12d3-a456-426614174000',\n patient_id: '123e4567-e89b-12d3-a456-426614174001',\n task_data: {\n timeframe_availability: 'Weekdays between 2-5pm',\n speciality_preferences: 'Orthopedic surgeon, preferably Dr. Smith',\n additional_context: 'Patient prefers afternoon appointments',\n previous_visits: [{\n purpose: 'Initial consultation for knee pain',\n date: '2024-03-15',\n outcome: 'Recommended physical therapy and follow-up'\n }],\n patient_status: 'existing',\n has_referral: true,\n referral: {\n name: 'Dr. Robert Johnson',\n npi: '0987654321',\n specialty: 'Primary Care',\n facility: 'SF Medical Group',\n address: {\n street_name: '456 Health Ave',\n city: 'San Francisco',\n state: 'CA',\n postal_code: '94105',\n country_code: 'US'\n },\n phone_number: '+14155555556'\n },\n is_rescheduling: false,\n existing_appointment: null,\n reschedule_reason: null\n }\n })\n});\n\nconst data = await response.json();\nconsole.log(data);"},{"label":"Verify Insurance","lang":"JavaScript","source":"const response = await fetch('https://api.miramace.com/v1/task', {\n method: 'POST',\n headers: {\n 'Authorization': 'Bearer YOUR_API_KEY',\n 'Content-Type': 'application/json',\n },\n body: JSON.stringify({\n task_type: 'VERIFY_INSURANCE',\n task: 'Verify insurance coverage for MRI',\n phone_number: '+15555555555',\n project_id: 'proj_xyz789',\n patient_id: 'pat_abc123',\n task_data: {\n service: {\n description: 'MRI of right knee',\n cpt_codes: ['73721']\n },\n provider: {\n name: 'Dr. Jane Smith',\n npi: '1234567890',\n specialty: 'Radiology',\n facility: 'SF Medical Imaging',\n address: {\n street_name: '456 Health Ave',\n city: 'San Francisco',\n state: 'CA',\n postal_code: '94105',\n country_code: 'US'\n },\n phone_number: '+14155555556'\n },insurance: {\n company_name: 'Blue Cross Blue Shield',\n member_id: 'BCB123456789',\n group_number: 'GRP987654',\n plan_name: 'PPO Gold',\n phone_number: '+18005551234',\n relationship_to_subscriber: 'SELF',primary_subscriber: {\n first_name: 'Jane',\n last_name: 'Doe'\n }\n },additional_context: 'Patient may need pre-authorization'\n }\n })\n});\n\nconst data = await response.json();\nconsole.log(data);"},{"label":"Insurance Reimbursement","lang":"JavaScript","source":"const response = await fetch('https://api.miramace.com/v1/task', {\n method: 'POST',\"phone_number\": \"+15555555555\",\"project_id\": \"proj_xyz789\",\"patient_id\": \"pat_abc123\",\"task_data\": {\"case_info\": {\"number\": \"CASE-12345\"},\"bill\": {\"number\": \"INV-12345\",\"amount\": \"$1,250.00\"},\"reimbursement_status\": \"Pending\",\"payment_details\": \"Claim #12345 submitted on March 15, 2025\",\"treatment_background\": \"Emergency room visit for broken arm\",\"treatment_data\": \"X-ray and cast application\",\"primary_insurance\": {\"company_name\": \"Blue Cross Blue Shield\",\"member_id\": \"BCB123456789\",\"group_number\": \"GRP987654\",\"plan_name\": \"PPO Gold\",\"phone_number\": \"+18005551234\",\"relationship_to_subscriber\": \"SELF\",\"primary_subscriber\": {\"first_name\": \"Jane\",\"last_name\": \"Doe\"}},\"provider\": {\"name\": \"Dr. John Smith\",\"npi\": \"1234567890\",\"specialty\": \"Emergency Medicine\",\"facility\": \"City General Hospital\",\"address\": {\"street_name\": \"123 Medical Center Dr\",\"city\": \"San Francisco\",\"state\": \"CA\",\"postal_code\": \"94105\",\"country_code\": \"US\"},\"phone_number\": \"+14155551234\"},\"additional_context\": \"Need to reach billing department for invoice question\"}})\n});\n\nconst data = await response.json();\nconsole.log(data);"},{"label":"Appointment Scheduling","lang":"cURL","source":"curl --request POST \\\n --url https://api.miramace.com/v1/task \\\n --header 'Authorization: Bearer YOUR_API_KEY' \\\n --header 'Content-Type: application/json' \\\n --data '{\n \"task_type\": \"SCHEDULE_APPOINTMENT\",\n \"task\": \"Schedule a follow-up appointment with Dr. Smith for next week\",\n \"phone_number\": \"+15555555555\",\"patient_id\": \"123e4567-e89b-12d3-a456-426614174001\",\"task_data\": {\"timeframe_availability\": \"Weekdays between 2-5pm\",\"speciality_preferences\": \"Orthopedic surgeon, preferably Dr. Smith\",\"additional_context\": \"Patient prefers afternoon appointments\",\"previous_visits\": [{\n \"purpose\": \"Initial consultation for knee pain\",\"date\": \"2024-03-15\",\"outcome\": \"Recommended physical therapy and follow-up\"\n }],\"patient_status\": \"existing\",\"has_referral\": true,\"referral\": {\n \"name\": \"Dr. Robert Johnson\",\"npi\": \"0987654321\",\"specialty\": \"Primary Care\",\"facility\": \"SF Medical Group\",\"address\": {\"street_name\": \"456 Health Ave\",\"city\": \"San Francisco\",\"state\": \"CA\",\"postal_code\": \"94105\",\"country_code\": \"US\"},\"phone_number\": \"+14155555556\"\n },\"is_rescheduling\": false,\"existing_appointment\": null,\"reschedule_reason\": null}}'"},{"label":"Verify Insurance","lang":"cURL","source":"curl --request POST \\\n --url https://api.miramace.com/v1/task \\\n --header 'Authorization: Bearer YOUR_API_KEY' \\\n --header 'Content-Type: application/json' \\\n --data '{\n \"task_type\": \"VERIFY_INSURANCE\",\"task\": \"Verify insurance coverage for MRI\",\"phone_number\": \"+15555555555\",\"project_id\": \"proj_xyz789\",\"patient_id\": \"pat_abc123\",\"task_data\": {\"service\": {\"description\": \"MRI of right knee\",\"cpt_codes\": [\"73721\"]},\"provider\": {\"name\": \"Dr. Jane Smith\",\"npi\": \"1234567890\",\"specialty\": \"Radiology\",\"facility\": \"SF Medical Imaging\",\"address\": {\"street_name\": \"456 Health Ave\",\"city\": \"San Francisco\",\"state\": \"CA\",\"postal_code\": \"94105\",\"country_code\": \"US\"},\"phone_number\": \"+14155555556\"},\"insurance\": {\"company_name\": \"Blue Cross Blue Shield\",\"member_id\": \"BCB123456789\",\"group_number\": \"GRP987654\",\"plan_name\": \"PPO Gold\",\"phone_number\": \"+18005551234\",\"relationship_to_subscriber\": \"SELF\",\"primary_subscriber\": {\"first_name\": \"Jane\",\"last_name\": \"Doe\"}},\"additional_context\": \"Patient may need pre-authorization\"}}'"},{"lang":"cURL","source":"curl --request POST \\\n --url https://api.miramace.com/v1/task \\\n --header 'Authorization: Bearer YOUR_API_KEY' \\\n --header 'Content-Type: application/json' \\\n --data '{\n \"task_type\": \"INSURANCE_REIMBURSEMENT\",\"phone_number\": \"+15555555555\",\"project_id\": \"proj_xyz789\",\"patient_id\": \"pat_abc123\",\"task_data\": {\"case_info\": {\n \"number\": \"CASE-12345\"},\"bill\": {\n \"number\": \"INV-12345\",\"amount\": \"$1,250.00\"},\"reimbursement_status\": \"Pending\",\"payment_details\": \"Claim #12345 submitted on March 15, 2025\",\"treatment_background\": \"Emergency room visit for broken arm\",\"treatment_data\": \"X-ray and cast application\",\"primary_insurance\": {\n \"company_name\": \"Blue Cross Blue Shield\",\"member_id\": \"BCB123456789\",\"group_number\": \"GRP987654\",\"plan_name\": \"PPO Gold\",\"phone_number\": \"+18005551234\",\"relationship_to_subscriber\": \"SELF\",\"primary_subscriber\": {\n \"first_name\": \"Jane\",\"last_name\": \"Doe\"}},\"provider\": {\n \"name\": \"Dr. John Smith\",\"npi\": \"1234567890\",\"specialty\": \"Emergency Medicine\",\"facility\": \"City General Hospital\",\"address\": {\n \"street_name\": \"123 Medical Center Dr\",\"city\": \"San Francisco\",\"state\": \"CA\",\"postal_code\": \"94105\",\"country_code\": \"US\"},\"phone_number\": \"+14155551234\"},\"additional_context\": \"Need to reach billing department for invoice question\"}}'"},{"lang":"cURL","source":"curl --request POST \\\n --url https://api.miramace.com/v1/task \\\n --header 'Authorization: Bearer YOUR_API_KEY' \\\n --header 'Content-Type: application/json' \\\n --data '{\n \"task_type\": \"CUSTOM_TASK\",\"phone_number\": \"+15555555555\",\"project_id\": \"proj_xyz789\",\"patient_id\": \"pat_abc123\",\"task_data\": {\"additional_context\": \"Check if the member has received their recent wheelchair delivery and if they have any questions about it\",\"questions_to_ask\": [\n {\n \"index\": 0,\n \"question\": \"Have you received your wheelchair delivery?\",\n \"answer\": \"Yes, I received it last Tuesday\"\n },\n {\n \"index\": 1,\n \"question\": \"Is the wheelchair meeting your needs?\",\n \"answer\": \"Yes, it's working well for me\"\n }\n ]\n }}'"}],"requiredOnlyExamples":false,"requestExampleType":"codeSamples","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["task_type","task","phone_number","project_id","patient_id"],"properties":{"task_type":{"type":"string","enum":["SCHEDULE_APPOINTMENT","VERIFY_INSURANCE","REIMBURSEMENT","CUSTOM_TASK"],"description":"The type of task to be executed. \n \n Note: tasks need to be enabled at the project level","isRequired":true,"uniqueKey":"task_type","typeLabel":"enum\u003cstring>"},"task":{"type":"string","description":"Main task description with sufficient detail for the voice agent","example":"Schedule a follow-up appointment with Dr. Smith for next week","isRequired":true,"uniqueKey":"task","typeLabel":"string"},"phone_number":{"type":"string","description":"The phone number in E.164 format (e.g., +15555555555)","pattern":"^\\+[1-9]\\d{1,14}$","example":"+15555555555","isRequired":true,"uniqueKey":"phone_number","typeLabel":"string"},"project_id":{"type":"string","format":"uuid","description":"UUID of the project this task belongs to","example":"123e4567-e89b-12d3-a456-426614174000","isRequired":true,"uniqueKey":"project_id","typeLabel":"string\u003cuuid>"},"patient_id":{"type":"string","format":"uuid","description":"UUID of the patient that this task is about","example":"123e4567-e89b-12d3-a456-426614174001","isRequired":true,"uniqueKey":"patient_id","typeLabel":"string\u003cuuid>"},"task_data":{"oneOf":[{"type":"object","title":"Schedule Appointment Data","description":"Data specific to scheduling appointments","properties":{"timeframe_availability":{"type":"string","description":"Timeframe availability for the appointment","uniqueKey":"task_data.oneOf.0.timeframe_availability","typeLabel":"string"},"speciality_preferences":{"type":"string","description":"Speciality preferences for the appointment","uniqueKey":"task_data.oneOf.0.speciality_preferences","typeLabel":"string"},"additional_context":{"type":"string","description":"Additional context for the appointment","uniqueKey":"task_data.oneOf.0.additional_context","typeLabel":"string"},"previous_visits":{"type":"array","items":{"type":"object","properties":{"purpose":{"type":"string","description":"The purpose of the visit","example":"Initial consultation","uniqueKey":"task_data.oneOf.0.previous_visits.items.[INDEX].purpose","typeLabel":"string"},"date":{"type":"string","format":"date","description":"Date in ISO 8601 format (YYYY-MM-DD)","example":"1990-01-01","uniqueKey":"task_data.oneOf.0.previous_visits.items.[INDEX].date","typeLabel":"string\u003cdate>"},"outcome":{"type":"string","description":"The outcome of the visit","example":"Referred to specialist","uniqueKey":"task_data.oneOf.0.previous_visits.items.[INDEX].outcome","typeLabel":"string"}},"uniqueKey":"task_data.oneOf.0.previous_visits.items.[INDEX]","typeLabel":"object"},"uniqueKey":"task_data.oneOf.0.previous_visits","typeLabel":"object[]"},"patient_status":{"type":"string","description":"Status of the patient (new or existing)","uniqueKey":"task_data.oneOf.0.patient_status","typeLabel":"string"},"has_referral":{"type":"boolean","description":"Whether the patient has a referral","uniqueKey":"task_data.oneOf.0.has_referral","typeLabel":"boolean"},"referral":{"type":"object","properties":{"name":{"type":"string","description":"Name of the provider","example":"Dr. Jane Smith","uniqueKey":"task_data.oneOf.0.referral.name","typeLabel":"string"},"npi":{"type":"string","description":"National Provider Identifier","example":"1234567890","uniqueKey":"task_data.oneOf.0.referral.npi","typeLabel":"string"},"specialty":{"type":"string","description":"Provider's specialty","example":"Orthopedic Surgery","uniqueKey":"task_data.oneOf.0.referral.specialty","typeLabel":"string"},"facility":{"type":"string","description":"Healthcare facility name","example":"Bay Area Orthopedics","uniqueKey":"task_data.oneOf.0.referral.facility","typeLabel":"string"},"address":{"type":"object","required":["street_name","city","state","postal_code","country_code"],"properties":{"street_name":{"type":"string","description":"Street address","example":"123 Main St","isRequired":true,"uniqueKey":"task_data.oneOf.0.referral.address.street_name","typeLabel":"string"},"city":{"type":"string","description":"City","example":"San Francisco","isRequired":true,"uniqueKey":"task_data.oneOf.0.referral.address.city","typeLabel":"string"},"state":{"type":"string","description":"State/province","example":"CA","isRequired":true,"uniqueKey":"task_data.oneOf.0.referral.address.state","typeLabel":"string"},"postal_code":{"type":"string","description":"Postal/ZIP code","example":"94105","isRequired":true,"uniqueKey":"task_data.oneOf.0.referral.address.postal_code","typeLabel":"string"},"country_code":{"type":"string","description":"Two-letter country code","example":"US","isRequired":true,"uniqueKey":"task_data.oneOf.0.referral.address.country_code","typeLabel":"string"}},"uniqueKey":"task_data.oneOf.0.referral.address","typeLabel":"object"},"phone_number":{"type":"string","description":"The phone number in E.164 format (e.g., +15555555555)","pattern":"^\\+[1-9]\\d{1,14}$","example":"+15555555555","uniqueKey":"task_data.oneOf.0.referral.phone_number","typeLabel":"string"}},"uniqueKey":"task_data.oneOf.0.referral","typeLabel":"object"},"is_rescheduling":{"type":"boolean","description":"Whether this is a rescheduling","uniqueKey":"task_data.oneOf.0.is_rescheduling","typeLabel":"boolean"},"existing_appointment":{"type":"string","description":"Details of the existing appointment (for rescheduling)","uniqueKey":"task_data.oneOf.0.existing_appointment","typeLabel":"string"},"reschedule_reason":{"type":"string","description":"Reason for rescheduling","uniqueKey":"task_data.oneOf.0.reschedule_reason","typeLabel":"string"}},"uniqueKey":"task_data.oneOf.0","typeLabel":"Schedule Appointment Data · object"},{"type":"object","title":"Verify Insurance Data","description":"Data specific to insurance verification","properties":{"service":{"type":"object","properties":{"description":{"type":"string","description":"Description of the medical service","example":"MRI of right knee","uniqueKey":"task_data.oneOf.1.service.description","typeLabel":"string"},"cpt_codes":{"type":"array","items":{"type":"string","uniqueKey":"task_data.oneOf.1.service.cpt_codes.items.[INDEX]","typeLabel":"string"},"description":"List of CPT codes for the service","example":["73721"],"uniqueKey":"task_data.oneOf.1.service.cpt_codes","typeLabel":"string[]"}},"uniqueKey":"task_data.oneOf.1.service","typeLabel":"object"},"provider":{"type":"object","properties":{"name":{"type":"string","description":"Name of the provider","example":"Dr. Jane Smith","uniqueKey":"task_data.oneOf.1.provider.name","typeLabel":"string"},"npi":{"type":"string","description":"National Provider Identifier","example":"1234567890","uniqueKey":"task_data.oneOf.1.provider.npi","typeLabel":"string"},"specialty":{"type":"string","description":"Provider's specialty","example":"Orthopedic Surgery","uniqueKey":"task_data.oneOf.1.provider.specialty","typeLabel":"string"},"facility":{"type":"string","description":"Healthcare facility name","example":"Bay Area Orthopedics","uniqueKey":"task_data.oneOf.1.provider.facility","typeLabel":"string"},"address":{"type":"object","required":["street_name","city","state","postal_code","country_code"],"properties":{"street_name":{"type":"string","description":"Street address","example":"123 Main St","isRequired":true,"uniqueKey":"task_data.oneOf.1.provider.address.street_name","typeLabel":"string"},"city":{"type":"string","description":"City","example":"San Francisco","isRequired":true,"uniqueKey":"task_data.oneOf.1.provider.address.city","typeLabel":"string"},"state":{"type":"string","description":"State/province","example":"CA","isRequired":true,"uniqueKey":"task_data.oneOf.1.provider.address.state","typeLabel":"string"},"postal_code":{"type":"string","description":"Postal/ZIP code","example":"94105","isRequired":true,"uniqueKey":"task_data.oneOf.1.provider.address.postal_code","typeLabel":"string"},"country_code":{"type":"string","description":"Two-letter country code","example":"US","isRequired":true,"uniqueKey":"task_data.oneOf.1.provider.address.country_code","typeLabel":"string"}},"uniqueKey":"task_data.oneOf.1.provider.address","typeLabel":"object"},"phone_number":{"type":"string","description":"The phone number in E.164 format (e.g., +15555555555)","pattern":"^\\+[1-9]\\d{1,14}$","example":"+15555555555","uniqueKey":"task_data.oneOf.1.provider.phone_number","typeLabel":"string"}},"uniqueKey":"task_data.oneOf.1.provider","typeLabel":"object"},"insurance":{"type":"object","properties":{"company_name":{"type":"string","description":"The name of the insurance company","example":"Blue Cross Blue Shield","uniqueKey":"task_data.oneOf.1.insurance.company_name","typeLabel":"string"},"member_id":{"type":"string","description":"The member ID","example":"XYZ1234567","uniqueKey":"task_data.oneOf.1.insurance.member_id","typeLabel":"string"},"group_number":{"type":"string","description":"The group number","example":"GRP123456","uniqueKey":"task_data.oneOf.1.insurance.group_number","typeLabel":"string"},"plan_name":{"type":"string","description":"The plan name","example":"PPO Gold","uniqueKey":"task_data.oneOf.1.insurance.plan_name","typeLabel":"string"},"phone_number":{"oneOf":[{"type":"string","description":"The phone number in E.164 format (e.g., +15555555555)","pattern":"^\\+[1-9]\\d{1,14}$","example":"+15555555555","uniqueKey":"task_data.oneOf.1.insurance.phone_number.oneOf.0","typeLabel":"string"},{"type":"null","description":"The phone number in E.164 format (e.g., +15555555555)","pattern":"^\\+[1-9]\\d{1,14}$","example":"+15555555555","uniqueKey":"task_data.oneOf.1.insurance.phone_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"task_data.oneOf.1.insurance.phone_number","typeLabel":"string | null"},"relationship_to_subscriber":{"type":"string","enum":["RELATIONSHIP_TO_SUBSCRIBER_UNSPECIFIED","SELF","SPOUSE","DEPENDENT"],"description":"The relationship of the member to the primary subscriber","example":"SELF","uniqueKey":"task_data.oneOf.1.insurance.relationship_to_subscriber","typeLabel":"enum\u003cstring>"},"primary_subscriber":{"type":"object","properties":{"first_name":{"type":"string","description":"The first name of the primary subscriber","example":"John","uniqueKey":"task_data.oneOf.1.insurance.primary_subscriber.first_name","typeLabel":"string"},"last_name":{"type":"string","description":"The last name of the primary subscriber","example":"Doe","uniqueKey":"task_data.oneOf.1.insurance.primary_subscriber.last_name","typeLabel":"string"}},"uniqueKey":"task_data.oneOf.1.insurance.primary_subscriber","typeLabel":"object"}},"uniqueKey":"task_data.oneOf.1.insurance","typeLabel":"object"},"additional_context":{"type":"string","description":"Additional context for the insurance verification","example":"Patient may need pre-authorization","uniqueKey":"task_data.oneOf.1.additional_context","typeLabel":"string"}},"uniqueKey":"task_data.oneOf.1","typeLabel":"Verify Insurance Data · object"},{"type":"object","title":"Reimbursement Data","description":"Data specific to insurance reimbursement","properties":{"case_info":{"type":"object","properties":{"number":{"type":"string","description":"The number of the case","example":"CASE-12345","uniqueKey":"task_data.oneOf.2.case_info.number","typeLabel":"string"},"created_at":{"type":"string","format":"date","description":"A date in ISO 8601 format (YYYY-MM-DD)","example":"2025-03-15","uniqueKey":"task_data.oneOf.2.case_info.created_at","typeLabel":"string\u003cdate>"}},"uniqueKey":"task_data.oneOf.2.case_info","typeLabel":"object"},"bill":{"type":"object","properties":{"number":{"type":"string","description":"The number of the bill","example":"INV-12345","uniqueKey":"task_data.oneOf.2.bill.number","typeLabel":"string"},"amount":{"type":"string","description":"The amount of the bill","example":"$1,250.00","uniqueKey":"task_data.oneOf.2.bill.amount","typeLabel":"string"},"phone_number":{"type":"string","description":"The phone number to call in E.164 format (e.g., +15555555555)","pattern":"^\\+[1-9]\\d{1,14}$","example":"+15555555555","uniqueKey":"task_data.oneOf.2.bill.phone_number","typeLabel":"string"},"address":{"type":"object","properties":{"street":{"type":"string","description":"The street address (including unit)","example":"123 Main St, Apt 4B","uniqueKey":"task_data.oneOf.2.bill.address.street","typeLabel":"string"},"city":{"type":"string","description":"The city","example":"San Francisco","uniqueKey":"task_data.oneOf.2.bill.address.city","typeLabel":"string"},"state":{"type":"string","description":"The state","example":"CA","uniqueKey":"task_data.oneOf.2.bill.address.state","typeLabel":"string"},"zip_code":{"type":"string","description":"The ZIP code","example":"94105","uniqueKey":"task_data.oneOf.2.bill.address.zip_code","typeLabel":"string"},"country":{"type":"string","description":"The country","example":"USA","uniqueKey":"task_data.oneOf.2.bill.address.country","typeLabel":"string"}},"uniqueKey":"task_data.oneOf.2.bill.address","typeLabel":"object"}},"uniqueKey":"task_data.oneOf.2.bill","typeLabel":"object"},"reimbursement_status":{"type":"string","description":"The reimbursement status","example":"Pending","uniqueKey":"task_data.oneOf.2.reimbursement_status","typeLabel":"string"},"payment_details":{"type":"string","description":"The payment details","example":"Claim #12345 submitted on March 15, 2025","uniqueKey":"task_data.oneOf.2.payment_details","typeLabel":"string"},"treatment_background":{"type":"string","description":"The treatment background","example":"Emergency room visit for broken arm","uniqueKey":"task_data.oneOf.2.treatment_background","typeLabel":"string"},"treatment_data":{"type":"string","description":"The treatment data","example":"X-ray and cast application","uniqueKey":"task_data.oneOf.2.treatment_data","typeLabel":"string"},"primary_insurance":{"type":"object","properties":{"company_name":{"type":"string","description":"The name of the insurance company","example":"Blue Cross Blue Shield","uniqueKey":"task_data.oneOf.2.primary_insurance.company_name","typeLabel":"string"},"member_id":{"type":"string","description":"The member ID","example":"XYZ1234567","uniqueKey":"task_data.oneOf.2.primary_insurance.member_id","typeLabel":"string"},"group_number":{"type":"string","description":"The group number","example":"GRP123456","uniqueKey":"task_data.oneOf.2.primary_insurance.group_number","typeLabel":"string"},"plan_name":{"type":"string","description":"The plan name","example":"PPO Gold","uniqueKey":"task_data.oneOf.2.primary_insurance.plan_name","typeLabel":"string"},"phone_number":{"oneOf":[{"type":"string","description":"The phone number in E.164 format (e.g., +15555555555)","pattern":"^\\+[1-9]\\d{1,14}$","example":"+15555555555","uniqueKey":"task_data.oneOf.2.primary_insurance.phone_number.oneOf.0","typeLabel":"string"},{"type":"null","description":"The phone number in E.164 format (e.g., +15555555555)","pattern":"^\\+[1-9]\\d{1,14}$","example":"+15555555555","uniqueKey":"task_data.oneOf.2.primary_insurance.phone_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"task_data.oneOf.2.primary_insurance.phone_number","typeLabel":"string | null"},"relationship_to_subscriber":{"type":"string","enum":["RELATIONSHIP_TO_SUBSCRIBER_UNSPECIFIED","SELF","SPOUSE","DEPENDENT"],"description":"The relationship of the member to the primary subscriber","example":"SELF","uniqueKey":"task_data.oneOf.2.primary_insurance.relationship_to_subscriber","typeLabel":"enum\u003cstring>"},"primary_subscriber":{"type":"object","properties":{"first_name":{"type":"string","description":"The first name of the primary subscriber","example":"John","uniqueKey":"task_data.oneOf.2.primary_insurance.primary_subscriber.first_name","typeLabel":"string"},"last_name":{"type":"string","description":"The last name of the primary subscriber","example":"Doe","uniqueKey":"task_data.oneOf.2.primary_insurance.primary_subscriber.last_name","typeLabel":"string"}},"uniqueKey":"task_data.oneOf.2.primary_insurance.primary_subscriber","typeLabel":"object"}},"uniqueKey":"task_data.oneOf.2.primary_insurance","typeLabel":"object"},"secondary_insurance":{"type":"object","properties":{"company_name":{"type":"string","description":"The name of the insurance company","example":"Blue Cross Blue Shield","uniqueKey":"task_data.oneOf.2.secondary_insurance.company_name","typeLabel":"string"},"member_id":{"type":"string","description":"The member ID","example":"XYZ1234567","uniqueKey":"task_data.oneOf.2.secondary_insurance.member_id","typeLabel":"string"},"group_number":{"type":"string","description":"The group number","example":"GRP123456","uniqueKey":"task_data.oneOf.2.secondary_insurance.group_number","typeLabel":"string"},"plan_name":{"type":"string","description":"The plan name","example":"PPO Gold","uniqueKey":"task_data.oneOf.2.secondary_insurance.plan_name","typeLabel":"string"},"phone_number":{"oneOf":[{"type":"string","description":"The phone number in E.164 format (e.g., +15555555555)","pattern":"^\\+[1-9]\\d{1,14}$","example":"+15555555555","uniqueKey":"task_data.oneOf.2.secondary_insurance.phone_number.oneOf.0","typeLabel":"string"},{"type":"null","description":"The phone number in E.164 format (e.g., +15555555555)","pattern":"^\\+[1-9]\\d{1,14}$","example":"+15555555555","uniqueKey":"task_data.oneOf.2.secondary_insurance.phone_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"task_data.oneOf.2.secondary_insurance.phone_number","typeLabel":"string | null"},"relationship_to_subscriber":{"type":"string","enum":["RELATIONSHIP_TO_SUBSCRIBER_UNSPECIFIED","SELF","SPOUSE","DEPENDENT"],"description":"The relationship of the member to the primary subscriber","example":"SELF","uniqueKey":"task_data.oneOf.2.secondary_insurance.relationship_to_subscriber","typeLabel":"enum\u003cstring>"},"primary_subscriber":{"type":"object","properties":{"first_name":{"type":"string","description":"The first name of the primary subscriber","example":"John","uniqueKey":"task_data.oneOf.2.secondary_insurance.primary_subscriber.first_name","typeLabel":"string"},"last_name":{"type":"string","description":"The last name of the primary subscriber","example":"Doe","uniqueKey":"task_data.oneOf.2.secondary_insurance.primary_subscriber.last_name","typeLabel":"string"}},"uniqueKey":"task_data.oneOf.2.secondary_insurance.primary_subscriber","typeLabel":"object"}},"uniqueKey":"task_data.oneOf.2.secondary_insurance","typeLabel":"object"},"provider":{"type":"object","properties":{"name":{"type":"string","description":"Name of the provider","example":"Dr. Jane Smith","uniqueKey":"task_data.oneOf.2.provider.name","typeLabel":"string"},"npi":{"type":"string","description":"National Provider Identifier","example":"1234567890","uniqueKey":"task_data.oneOf.2.provider.npi","typeLabel":"string"},"specialty":{"type":"string","description":"Provider's specialty","example":"Orthopedic Surgery","uniqueKey":"task_data.oneOf.2.provider.specialty","typeLabel":"string"},"facility":{"type":"string","description":"Healthcare facility name","example":"Bay Area Orthopedics","uniqueKey":"task_data.oneOf.2.provider.facility","typeLabel":"string"},"address":{"type":"object","required":["street_name","city","state","postal_code","country_code"],"properties":{"street_name":{"type":"string","description":"Street address","example":"123 Main St","isRequired":true,"uniqueKey":"task_data.oneOf.2.provider.address.street_name","typeLabel":"string"},"city":{"type":"string","description":"City","example":"San Francisco","isRequired":true,"uniqueKey":"task_data.oneOf.2.provider.address.city","typeLabel":"string"},"state":{"type":"string","description":"State/province","example":"CA","isRequired":true,"uniqueKey":"task_data.oneOf.2.provider.address.state","typeLabel":"string"},"postal_code":{"type":"string","description":"Postal/ZIP code","example":"94105","isRequired":true,"uniqueKey":"task_data.oneOf.2.provider.address.postal_code","typeLabel":"string"},"country_code":{"type":"string","description":"Two-letter country code","example":"US","isRequired":true,"uniqueKey":"task_data.oneOf.2.provider.address.country_code","typeLabel":"string"}},"uniqueKey":"task_data.oneOf.2.provider.address","typeLabel":"object"},"phone_number":{"type":"string","description":"The phone number in E.164 format (e.g., +15555555555)","pattern":"^\\+[1-9]\\d{1,14}$","example":"+15555555555","uniqueKey":"task_data.oneOf.2.provider.phone_number","typeLabel":"string"}},"uniqueKey":"task_data.oneOf.2.provider","typeLabel":"object"},"additional_context":{"type":"string","description":"Additional context for the reimbursement","example":"Need to reach billing department for invoice question","uniqueKey":"task_data.oneOf.2.additional_context","typeLabel":"string"}},"uniqueKey":"task_data.oneOf.2","typeLabel":"Reimbursement Data · object"},{"type":"object","title":"Custom Task Data","description":"Data specific to custom tasks","properties":{"additional_context":{"type":"string","description":"Additional context for custom task","example":"Check if the member has received their recent wheelchair delivery and if they have any questions about it","uniqueKey":"task_data.oneOf.3.additional_context","typeLabel":"string"},"questions_to_ask":{"type":"array","description":"List of questions that the agent should ask during the custom task call","items":{"type":"object","properties":{"index":{"type":"integer","description":"The order in which the question should be asked","minimum":0,"example":0,"isRequired":true,"uniqueKey":"task_data.oneOf.3.questions_to_ask.items.[INDEX].index","typeLabel":"integer"},"question":{"type":"string","description":"The question to ask","example":"Have you received your wheelchair delivery?","isRequired":true,"uniqueKey":"task_data.oneOf.3.questions_to_ask.items.[INDEX].question","typeLabel":"string"},"answer":{"type":"string","description":"A reasonable answer to the question","example":"Yes, I received it last Tuesday","uniqueKey":"task_data.oneOf.3.questions_to_ask.items.[INDEX].answer","typeLabel":"string"}},"required":["index","question"],"uniqueKey":"task_data.oneOf.3.questions_to_ask.items.[INDEX]","typeLabel":"object"},"uniqueKey":"task_data.oneOf.3.questions_to_ask","typeLabel":"object[]"}},"uniqueKey":"task_data.oneOf.3","typeLabel":"Custom Task Data · object"}],"uniqueKey":"task_data","typeLabel":"Schedule Appointment Data · object | Verify Insurance Data · object | Reimbursement Data · object | Custom Task Data · object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"task":"Schedule a follow-up appointment with Dr. Smith for next week","phone_number":"+15555555555","project_id":"123e4567-e89b-12d3-a456-426614174000","patient_id":"123e4567-e89b-12d3-a456-426614174001","task_data":{"timeframe_availability":"\u003cstring>","speciality_preferences":"\u003cstring>","additional_context":"\u003cstring>","previous_visits":[{"purpose":"Initial consultation","date":"1990-01-01","outcome":"Referred to specialist"}],"patient_status":"\u003cstring>","has_referral":true,"referral":{"name":"Dr. Jane Smith","npi":"1234567890","specialty":"Orthopedic Surgery","facility":"Bay Area Orthopedics","phone_number":"+15555555555"},"is_rescheduling":true,"existing_appointment":"\u003cstring>","reschedule_reason":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"c64f8343-5f09-4799-9342-8f94215874dc":{"description":"Task created successfully","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"UUID of the created task","example":"123e4567-e89b-12d3-a456-426614174002","uniqueKey":"id","typeLabel":"string\u003cuuid>"}},"uniqueKey":"","typeLabel":"object"},"example":{"id":"123e4567-e89b-12d3-a456-426614174002"},"examples":{"Example":{"title":"Example","value":{"id":"123e4567-e89b-12d3-a456-426614174002"}}},"exampleType":"examples"}},"exampleType":"examples"},"c09b710c-9636-4dbd-b913-1d3229dc1ff3":{"description":"Bad request - missing required fields","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","example":"Missing required fields","uniqueKey":"detail","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"detail":"Missing required fields"}}},"exampleType":"generated"}},"exampleType":"generated"},"ad65f4a6-d79b-4de5-a849-2eeead15199c":{"description":"Unauthorized - Invalid API key","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","example":"Invalid API key","uniqueKey":"detail","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"detail":"Invalid API key"}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{},"servers":{}},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"miramace","siteName":"Mira Mace API","title":"Create Task - Mira Mace API","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-01-07T07:04:08.008Z","originalFileLocation":"api-reference/endpoint-tasks/create.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=\"Create a new task to be processed by the Mira platform. We offer these task types out of the box: • Appointment Scheduling: Schedule or reschedule medical appointments with preferred providers and timing. • Insurance Verification: Check insurance coverage, benefits, and pre-authorization requirements. • Insurance Reimbursement: Process and track insurance reimbursement claims. • Custom Healthcare Tasks: Execute flexible, healthcare-related tasks with configurable workflows. Need a custom task type for your specific workflow? We can spin one for you quickly, contact us\">\u003cmeta data-mint-head name=\"application-name\" content=\"Mira Mace API\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/miramace/CqvuJZhPIWFYlbpL/_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/miramace/CqvuJZhPIWFYlbpL/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/miramace/CqvuJZhPIWFYlbpL/_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/miramace/CqvuJZhPIWFYlbpL/_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/miramace/CqvuJZhPIWFYlbpL/_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/miramace/CqvuJZhPIWFYlbpL/_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/miramace/CqvuJZhPIWFYlbpL/_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/miramace/CqvuJZhPIWFYlbpL/_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/miramace/CqvuJZhPIWFYlbpL/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create Task - Mira Mace API\">\u003cmeta data-mint-head property=\"og:description\" content=\"Create a new task to be processed by the Mira platform. We offer these task types out of the box: • Appointment Scheduling: Schedule or reschedule medical appointments with preferred providers and timing. • Insurance Verification: Check insurance coverage, benefits, and pre-authorization requirements. • Insurance Reimbursement: Process and track insurance reimbursement claims. • Custom Healthcare Tasks: Execute flexible, healthcare-related tasks with configurable workflows. Need a custom task type for your specific workflow? We can spin one for you quickly, contact us\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Mira Mace API\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.miramace.com/api-reference/endpoint-tasks/create\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://miramace.mintlify.app/_mintlify/api/og/v2?division=Tasks\u0026amp;title=Create+Task\u0026amp;description=Create+a+new+task+to+be+processed+by+the+Mira+platform.++%0A%0AWe+offer+these+task+types+out+of+the+box%3A%0A%0A%E2%80%A2+Appointment+Scheduling%3A+Schedule+or+reschedule+medical+a\u0026amp;theme=4ef8bc252a8275dec41bbd4d\u0026amp;signature=3a6ae42b1d3f7bf0d9b165dbb0653fa6da231b5ff22eb59babc5d2fbabef1d33\">\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=\"Create Task - Mira Mace API\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Create a new task to be processed by the Mira platform. We offer these task types out of the box: • Appointment Scheduling: Schedule or reschedule medical appointments with preferred providers and timing. • Insurance Verification: Check insurance coverage, benefits, and pre-authorization requirements. • Insurance Reimbursement: Process and track insurance reimbursement claims. • Custom Healthcare Tasks: Execute flexible, healthcare-related tasks with configurable workflows. Need a custom task type for your specific workflow? We can spin one for you quickly, contact us\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://miramace.mintlify.app/_mintlify/api/og/v2?division=Tasks\u0026amp;title=Create+Task\u0026amp;description=Create+a+new+task+to+be+processed+by+the+Mira+platform.++%0A%0AWe+offer+these+task+types+out+of+the+box%3A%0A%0A%E2%80%A2+Appointment+Scheduling%3A+Schedule+or+reschedule+medical+a\u0026amp;theme=4ef8bc252a8275dec41bbd4d\u0026amp;signature=3a6ae42b1d3f7bf0d9b165dbb0653fa6da231b5ff22eb59babc5d2fbabef1d33\">\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/miramace/CqvuJZhPIWFYlbpL/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Mira Mace API\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#16A34A\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.miramace.com/api-reference/endpoint-tasks/create\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/endpoint-tasks/create.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.miramace.com/#organization\",\"name\":\"Mira Mace API\",\"url\":\"https://docs.miramace.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/miramace/pW0OJIW7t4FiOXwi/logo/mira-light.svg?fit=max\u0026auto=format\u0026n=pW0OJIW7t4FiOXwi\u0026q=85\u0026s=fb442c5ddce096bcce0a04d469aee6ea\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.miramace.com#website\",\"name\":\"Mira Mace API\",\"url\":\"https://docs.miramace.com\",\"publisher\":{\"@id\":\"https://docs.miramace.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.miramace.com/api-reference/endpoint-tasks/create#webpage\",\"url\":\"https://docs.miramace.com/api-reference/endpoint-tasks/create\",\"name\":\"Create Task\",\"description\":\"Create a new task to be processed by the Mira platform. We offer these task types out of the box: • Appointment Scheduling: Schedule or reschedule medical appointments with preferred providers and timing. • Insurance Verification: Check insurance coverage, benefits, and pre-authorization requirements. • Insurance Reimbursement: Process and track insurance reimbursement claims. • Custom Healthcare Tasks: Execute flexible, healthcare-related tasks with configurable workflows. Need a custom task type for your specific workflow? We can spin one for you quickly, contact us\",\"dateModified\":\"2026-01-07T07:04:08.008Z\",\"isPartOf\":{\"@id\":\"https://docs.miramace.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.miramace.com/api-reference/endpoint-tasks/create#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.miramace.com/api-reference/endpoint-tasks/create#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Mira Mace API\",\"item\":\"https://docs.miramace.com\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create Task\",\"item\":\"https://docs.miramace.com/api-reference/endpoint-tasks/create\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.miramace.com/api-reference/endpoint-tasks/create#apireference\",\"headline\":\"Create Task\",\"name\":\"Create Task\",\"description\":\"Create a new task to be processed by the Mira platform. We offer these task types out of the box: • Appointment Scheduling: Schedule or reschedule medical appointments with preferred providers and timing. • Insurance Verification: Check insurance coverage, benefits, and pre-authorization requirements. • Insurance Reimbursement: Process and track insurance reimbursement claims. • Custom Healthcare Tasks: Execute flexible, healthcare-related tasks with configurable workflows. Need a custom task type for your specific workflow? We can spin one for you quickly, contact us\",\"url\":\"https://docs.miramace.com/api-reference/endpoint-tasks/create\",\"mainEntityOfPage\":{\"@id\":\"https://docs.miramace.com/api-reference/endpoint-tasks/create#webpage\"},\"dateModified\":\"2026-01-07T07:04:08.008Z\",\"publisher\":{\"@id\":\"https://docs.miramace.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.miramace.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Mira Mace API\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Mira Mace API","nav":{"global":null,"tabs":[{"tab":"API Reference","groups":[{"group":"API Documentation","pages":[{"title":"Introduction","href":"/api-reference/introduction"},{"title":"Quick Start","href":"/api-reference/quick_start"},{"title":"Advanced Capabilities","href":"/api-reference/advanced_capabilities"}]},{"group":"Patients","pages":[{"title":"Create Patient","openapi":"POST /v1/patient","href":"/api-reference/endpoint-patients/create"},{"title":"Get Patient Details","openapi":"GET /v1/patient/{patient_id}","description":"Get detailed information about a patient","href":"/api-reference/endpoint-patients/get"}]},{"group":"Tasks","pages":[{"title":"Create Task","openapi":"POST /v1/task","href":"/api-reference/endpoint-tasks/create"},{"title":"Get Task Progress","openapi":"GET /v1/task/{task_id}","description":"Get detailed information about a task, including its current status and progress.","href":"/api-reference/endpoint-tasks/get"}]}]}]},"basePath":"","title":"Create Task - Mira Mace API","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"]}