{"components":{"responses":{},"schemas":{"ReportUpdateRequest":{"additionalProperties":false,"properties":{"data":{"additionalProperties":false,"properties":{"attributes":{"additionalProperties":false,"properties":{"configuration":{"additionalProperties":true,"nullable":true,"type":"object"},"description":{"nullable":true,"type":"string"},"is_shared":{"nullable":true,"type":"boolean"},"name":{"nullable":true,"type":"string"},"report_type":{"nullable":true,"type":"string"}},"type":"object"},"id":{"format":"uuid","type":"string"},"type":{"type":"string"}},"required":["attributes"],"type":"object"}},"required":["data"],"title":"ReportUpdateRequest","type":"object"},"KeyDateResponse":{"properties":{"data":{"$ref":"#/components/schemas/KeyDateResource"},"meta":{"$ref":"#/components/schemas/ResourceMeta"}},"title":"KeyDateResponse","type":"object"},"InvoiceListResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/InvoiceResource"},"type":"array"},"links":{"$ref":"#/components/schemas/PaginationLinks"},"meta":{"$ref":"#/components/schemas/PaginationMeta"}},"title":"InvoiceListResponse","type":"object"},"MatterCreateRequest":{"additionalProperties":false,"properties":{"data":{"additionalProperties":false,"properties":{"attributes":{"additionalProperties":false,"properties":{"assigned_to_id":{"format":"uuid","nullable":true,"type":"string"},"description":{"nullable":true,"type":"string"},"jurisdiction_country":{"enum":["AU"],"nullable":true,"type":"string"},"jurisdiction_region":{"enum":["NSW","VIC","QLD","SA","WA","TAS","ACT","NT"],"type":"string"},"matter_type_id":{"format":"uuid","type":"string"},"name":{"type":"string"},"priority":{"enum":["low","normal","high","urgent"],"nullable":true,"type":"string"},"tags":{"items":{"type":"string"},"nullable":true,"type":"array"},"team_id":{"format":"uuid","nullable":true,"type":"string"}},"required":["name","matter_type_id","jurisdiction_region"],"type":"object"},"id":{"format":"uuid","type":"string"},"type":{"type":"string"}},"required":["attributes"],"type":"object"}},"required":["data"],"title":"MatterCreateRequest","type":"object"},"MatterListResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/MatterResource"},"type":"array"},"links":{"$ref":"#/components/schemas/PaginationLinks"},"meta":{"$ref":"#/components/schemas/PaginationMeta"}},"title":"MatterListResponse","type":"object"},"AutomationAttributes":{"properties":{"actions":{"items":{"$ref":"#/components/schemas/AutomationActionAttributes"},"type":"array"},"conditions":{"items":{"$ref":"#/components/schemas/AutomationCondition"},"type":"array"},"description":{"nullable":true,"type":"string"},"inserted_at":{"format":"date-time","type":"string"},"is_active":{"type":"boolean"},"matter_type_id":{"format":"uuid","nullable":true,"type":"string"},"name":{"type":"string"},"position":{"type":"integer"},"trigger_config":{"additionalProperties":true,"type":"object"},"trigger_type":{"type":"string"},"updated_at":{"format":"date-time","type":"string"}},"title":"AutomationAttributes","type":"object"},"AvailableTransitionsResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/AvailableTransitionResource"},"type":"array"}},"title":"AvailableTransitionsResponse","type":"object"},"LeadContactCreateRequest":{"additionalProperties":false,"properties":{"data":{"additionalProperties":false,"properties":{"attributes":{"additionalProperties":false,"properties":{"contact_id":{"format":"uuid","type":"string"},"is_primary":{"type":"boolean"},"role":{"nullable":true,"type":"string"}},"required":["contact_id"],"type":"object"},"id":{"format":"uuid","type":"string"},"type":{"type":"string"}},"required":["attributes"],"type":"object"}},"required":["data"],"title":"LeadContactCreateRequest","type":"object"},"LeadContactAttributes":{"properties":{"contact_id":{"format":"uuid","type":"string"},"inserted_at":{"format":"date-time","type":"string"},"is_primary":{"type":"boolean"},"lead_id":{"format":"uuid","type":"string"},"role":{"nullable":true,"type":"string"},"updated_at":{"format":"date-time","type":"string"}},"title":"LeadContactAttributes","type":"object"},"TaskTemplateUpdateRequest":{"additionalProperties":false,"properties":{"data":{"additionalProperties":false,"properties":{"attributes":{"additionalProperties":false,"properties":{"assignments":{"items":{"additionalProperties":true,"type":"object"},"nullable":true,"type":"array"},"category":{"nullable":true,"type":"string"},"default_assignee":{"nullable":true,"type":"string"},"description":{"nullable":true,"type":"string"},"due_date_mode":{"nullable":true,"type":"string"},"due_key_date_type_id":{"format":"uuid","nullable":true,"type":"string"},"due_offset_days":{"nullable":true,"type":"integer"},"is_active":{"nullable":true,"type":"boolean"},"is_compliance":{"nullable":true,"type":"boolean"},"is_portal_visible":{"nullable":true,"type":"boolean"},"name":{"nullable":true,"type":"string"},"position":{"nullable":true,"type":"integer"},"priority":{"nullable":true,"type":"string"}},"type":"object"},"id":{"format":"uuid","type":"string"},"type":{"type":"string"}},"required":["attributes"],"type":"object"}},"required":["data"],"title":"TaskTemplateUpdateRequest","type":"object"},"TaskTemplateResource":{"properties":{"attributes":{"$ref":"#/components/schemas/TaskTemplateAttributes"},"id":{"format":"uuid","type":"string"},"type":{"enum":["task_templates"],"type":"string"}},"required":["id","type","attributes"],"title":"TaskTemplateResource","type":"object"},"CalendarEventUpdateRequest":{"additionalProperties":false,"properties":{"data":{"additionalProperties":false,"properties":{"attributes":{"additionalProperties":false,"properties":{"attendee_ids":{"items":{"format":"uuid","type":"string"},"nullable":true,"type":"array"},"color":{"nullable":true,"type":"string"},"contact_ids":{"items":{"format":"uuid","type":"string"},"nullable":true,"type":"array"},"description":{"nullable":true,"type":"string"},"end_at":{"format":"date-time","nullable":true,"type":"string"},"is_all_day":{"nullable":true,"type":"boolean"},"location":{"nullable":true,"type":"string"},"matter_id":{"format":"uuid","nullable":true,"type":"string"},"start_at":{"format":"date-time","nullable":true,"type":"string"},"title":{"nullable":true,"type":"string"}},"type":"object"},"id":{"format":"uuid","type":"string"},"type":{"type":"string"}},"required":["attributes"],"type":"object"}},"required":["data"],"title":"CalendarEventUpdateRequest","type":"object"},"ContactTypeResource":{"properties":{"attributes":{"$ref":"#/components/schemas/ContactTypeAttributes"},"id":{"format":"uuid","type":"string"},"type":{"enum":["contact_types"],"type":"string"}},"required":["id","type","attributes"],"title":"ContactTypeResource","type":"object"},"StepHistoryAttributes":{"properties":{"changed_by_name":{"nullable":true,"type":"string"},"duration_seconds":{"nullable":true,"type":"integer"},"from_reporting_step_id":{"format":"uuid","nullable":true,"type":"string"},"from_reporting_step_label":{"nullable":true,"type":"string"},"from_step_name":{"nullable":true,"type":"string"},"inserted_at":{"format":"date-time","type":"string"},"reason":{"nullable":true,"type":"string"},"reporting_transition":{"type":"boolean"},"to_reporting_step_id":{"format":"uuid","nullable":true,"type":"string"},"to_reporting_step_label":{"nullable":true,"type":"string"},"to_step_name":{"type":"string"}},"title":"StepHistoryAttributes","type":"object"},"ReportAttributes":{"properties":{"configuration":{"additionalProperties":true,"nullable":true,"type":"object"},"created_by_id":{"format":"uuid","nullable":true,"type":"string"},"description":{"nullable":true,"type":"string"},"inserted_at":{"format":"date-time","nullable":true,"type":"string"},"is_shared":{"nullable":true,"type":"boolean"},"is_system":{"nullable":true,"type":"boolean"},"name":{"nullable":true,"type":"string"},"report_type":{"nullable":true,"type":"string"},"updated_at":{"format":"date-time","nullable":true,"type":"string"}},"title":"ReportAttributes","type":"object"},"DocumentAttributes":{"properties":{"ai_analyzed_at":{"format":"date-time","nullable":true,"type":"string"},"ai_classification":{"nullable":true,"type":"string"},"ai_summary":{"nullable":true,"type":"string"},"archived_at":{"format":"date-time","nullable":true,"type":"string"},"archived_by_id":{"format":"uuid","nullable":true,"type":"string"},"category":{"nullable":true,"type":"string"},"contact_id":{"format":"uuid","nullable":true,"type":"string"},"content_type":{"nullable":true,"type":"string"},"description":{"nullable":true,"type":"string"},"file_size":{"nullable":true,"type":"integer"},"filename":{"nullable":true,"type":"string"},"folder_id":{"format":"uuid","nullable":true,"type":"string"},"inserted_at":{"format":"date-time","nullable":true,"type":"string"},"is_current":{"nullable":true,"type":"boolean"},"is_portal_visible":{"nullable":true,"type":"boolean"},"matter_id":{"format":"uuid","nullable":true,"type":"string"},"retention_expires_at":{"format":"date-time","nullable":true,"type":"string"},"tags":{"items":{"type":"string"},"nullable":true,"type":"array"},"updated_at":{"format":"date-time","nullable":true,"type":"string"},"uploaded_by_id":{"format":"uuid","nullable":true,"type":"string"},"version":{"nullable":true,"type":"integer"}},"title":"DocumentAttributes","type":"object"},"LeadCloseLostRequest":{"additionalProperties":false,"properties":{"data":{"additionalProperties":false,"properties":{"attributes":{"additionalProperties":false,"properties":{"reason":{"nullable":true,"type":"string"}},"type":"object"},"id":{"format":"uuid","type":"string"},"type":{"type":"string"}},"type":"object"}},"title":"LeadCloseLostRequest","type":"object"},"FieldGroupRequest":{"additionalProperties":false,"properties":{"data":{"additionalProperties":false,"properties":{"attributes":{"additionalProperties":false,"properties":{"code":{"type":"string"},"description":{"nullable":true,"type":"string"},"icon":{"nullable":true,"type":"string"},"is_active":{"nullable":true,"type":"boolean"},"matter_type_ids":{"items":{"format":"uuid","type":"string"},"nullable":true,"type":"array"},"name":{"type":"string"},"position":{"nullable":true,"type":"integer"}},"required":["name","code"],"type":"object"},"id":{"format":"uuid","type":"string"},"type":{"type":"string"}},"required":["attributes"],"type":"object"}},"required":["data"],"title":"FieldGroupRequest","type":"object"},"ReportResponse":{"properties":{"data":{"$ref":"#/components/schemas/ReportResource"},"meta":{"$ref":"#/components/schemas/ResourceMeta"}},"title":"ReportResponse","type":"object"},"NoteResponse":{"properties":{"data":{"$ref":"#/components/schemas/NoteResource"},"meta":{"$ref":"#/components/schemas/ResourceMeta"}},"title":"NoteResponse","type":"object"},"FolderRequest":{"additionalProperties":false,"properties":{"data":{"additionalProperties":false,"properties":{"attributes":{"additionalProperties":false,"properties":{"contact_id":{"format":"uuid","nullable":true,"type":"string"},"matter_id":{"format":"uuid","type":"string"},"name":{"type":"string"},"parent_id":{"format":"uuid","nullable":true,"type":"string"},"position":{"nullable":true,"type":"integer"}},"required":["name","matter_id"],"type":"object"},"id":{"format":"uuid","type":"string"},"type":{"type":"string"}},"required":["attributes"],"type":"object"}},"required":["data"],"title":"FolderRequest","type":"object"},"CalendarEventResource":{"properties":{"attributes":{"$ref":"#/components/schemas/CalendarEventAttributes"},"id":{"format":"uuid","type":"string"},"type":{"enum":["calendar_events"],"type":"string"}},"required":["id","type","attributes"],"title":"CalendarEventResource","type":"object"},"DocumentRequestTemplateListResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/DocumentRequestTemplateResource"},"type":"array"},"meta":{"$ref":"#/components/schemas/CollectionMeta"}},"title":"DocumentRequestTemplateListResponse","type":"object"},"DocumentUploadUrlResponse":{"properties":{"data":{"properties":{"attributes":{"properties":{"expires_in":{"description":"URL lifetime in seconds.","type":"integer"},"headers":{"additionalProperties":{"type":"string"},"description":"Headers the client must send with the PUT request.","type":"object"},"method":{"enum":["PUT"],"type":"string"},"upload_key":{"type":"string"},"upload_url":{"format":"uri","type":"string"}},"required":["upload_key","upload_url","method","headers","expires_in"],"type":"object"},"type":{"enum":["document-uploads"],"type":"string"}},"required":["type","attributes"],"type":"object"}},"required":["data"],"title":"DocumentUploadUrlResponse","type":"object"},"FieldGroupResource":{"properties":{"attributes":{"$ref":"#/components/schemas/FieldGroupAttributes"},"id":{"format":"uuid","type":"string"},"type":{"enum":["field_groups"],"type":"string"}},"required":["id","type","attributes"],"title":"FieldGroupResource","type":"object"},"EmailTemplateResponse":{"properties":{"data":{"$ref":"#/components/schemas/EmailTemplateResource"},"meta":{"$ref":"#/components/schemas/ResourceMeta"}},"title":"EmailTemplateResponse","type":"object"},"MatterAttributes":{"properties":{"archived_at":{"format":"date-time","nullable":true,"type":"string"},"assigned_to_id":{"format":"uuid","nullable":true,"type":"string"},"cancelled_at":{"format":"date-time","nullable":true,"type":"string"},"closed_at":{"format":"date-time","nullable":true,"type":"string"},"completed_at":{"format":"date-time","nullable":true,"type":"string"},"conflict_checks":{"description":"Present on the single-matter endpoint (GET /matters/{id}) only; omitted from the list response.","items":{"$ref":"#/components/schemas/MatterConflictCheckAttributes"},"nullable":true,"type":"array"},"current_reporting_step_id":{"format":"uuid","nullable":true,"type":"string"},"current_step_id":{"format":"uuid","nullable":true,"type":"string"},"description":{"nullable":true,"type":"string"},"inserted_at":{"format":"date-time","nullable":true,"type":"string"},"is_blocked":{"nullable":true,"type":"boolean"},"jurisdiction_country":{"enum":["AU"],"nullable":true,"type":"string"},"jurisdiction_country_label":{"nullable":true,"type":"string"},"jurisdiction_region":{"enum":["NSW","VIC","QLD","SA","WA","TAS","ACT","NT"],"nullable":true,"type":"string"},"jurisdiction_region_label":{"nullable":true,"type":"string"},"matter_type_id":{"format":"uuid","nullable":true,"type":"string"},"metadata":{"additionalProperties":true,"nullable":true,"type":"object"},"name":{"nullable":true,"type":"string"},"opened_at":{"format":"date-time","nullable":true,"type":"string"},"priority":{"enum":["low","normal","high","urgent"],"nullable":true,"type":"string"},"reference":{"description":"Auto-generated reference code","nullable":true,"type":"string"},"status":{"enum":["open","on_hold","closed","archived","cancelled","completed"],"nullable":true,"type":"string"},"tags":{"items":{"type":"string"},"nullable":true,"type":"array"},"team_id":{"format":"uuid","nullable":true,"type":"string"},"updated_at":{"format":"date-time","nullable":true,"type":"string"}},"title":"MatterAttributes","type":"object"},"KeyDateTypeResource":{"properties":{"attributes":{"$ref":"#/components/schemas/KeyDateTypeAttributes"},"id":{"format":"uuid","type":"string"},"type":{"enum":["key_date_types"],"type":"string"}},"required":["id","type","attributes"],"title":"KeyDateTypeResource","type":"object"},"PaginationLinks":{"properties":{"first":{"format":"uri","type":"string"},"last":{"format":"uri","type":"string"},"next":{"format":"uri","nullable":true,"type":"string"},"prev":{"format":"uri","nullable":true,"type":"string"},"self":{"format":"uri","type":"string"}},"title":"PaginationLinks","type":"object"},"ContactAttributes":{"properties":{"abn":{"nullable":true,"type":"string"},"acn":{"nullable":true,"type":"string"},"address_line_1":{"nullable":true,"type":"string"},"address_line_2":{"nullable":true,"type":"string"},"avatar_url":{"nullable":true,"type":"string"},"company_name":{"nullable":true,"type":"string"},"contact_type_id":{"format":"uuid","nullable":true,"type":"string"},"country":{"nullable":true,"type":"string"},"custom_fields":{"additionalProperties":true,"nullable":true,"type":"object"},"date_of_birth":{"format":"date","nullable":true,"type":"string"},"email":{"nullable":true,"type":"string"},"first_name":{"nullable":true,"type":"string"},"inserted_at":{"format":"date-time","nullable":true,"type":"string"},"is_archived":{"nullable":true,"type":"boolean"},"is_company":{"nullable":true,"type":"boolean"},"last_name":{"nullable":true,"type":"string"},"mobile":{"nullable":true,"type":"string"},"notes":{"nullable":true,"type":"string"},"phone":{"nullable":true,"type":"string"},"position":{"nullable":true,"type":"string"},"postcode":{"nullable":true,"type":"string"},"preferred_name":{"nullable":true,"type":"string"},"source":{"nullable":true,"type":"string"},"state":{"nullable":true,"type":"string"},"suburb":{"nullable":true,"type":"string"},"tags":{"items":{"type":"string"},"nullable":true,"type":"array"},"updated_at":{"format":"date-time","nullable":true,"type":"string"}},"title":"ContactAttributes","type":"object"},"StepListResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/StepResource"},"type":"array"},"links":{"$ref":"#/components/schemas/PaginationLinks"},"meta":{"$ref":"#/components/schemas/PaginationMeta"}},"title":"StepListResponse","type":"object"},"DocumentRequestTemplateResource":{"properties":{"attributes":{"$ref":"#/components/schemas/DocumentRequestTemplateAttributes"},"id":{"format":"uuid","type":"string"},"type":{"enum":["document_request_templates"],"type":"string"}},"required":["id","type","attributes"],"title":"DocumentRequestTemplateResource","type":"object"},"WorkflowCloneRequest":{"additionalProperties":false,"properties":{"name":{"type":"string"}},"required":["name"],"title":"WorkflowCloneRequest","type":"object"},"EmailResource":{"properties":{"attributes":{"$ref":"#/components/schemas/EmailAttributes"},"id":{"format":"uuid","type":"string"},"type":{"enum":["emails"],"type":"string"}},"required":["id","type","attributes"],"title":"EmailResource","type":"object"},"EmailTemplateListResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/EmailTemplateResource"},"type":"array"},"links":{"$ref":"#/components/schemas/PaginationLinks"},"meta":{"$ref":"#/components/schemas/PaginationMeta"}},"title":"EmailTemplateListResponse","type":"object"},"FieldGroupResponse":{"properties":{"data":{"$ref":"#/components/schemas/FieldGroupResource"},"meta":{"$ref":"#/components/schemas/ResourceMeta"}},"title":"FieldGroupResponse","type":"object"},"TaskTemplateResponse":{"properties":{"data":{"$ref":"#/components/schemas/TaskTemplateResource"},"meta":{"$ref":"#/components/schemas/ResourceMeta"}},"title":"TaskTemplateResponse","type":"object"},"AutomationActionRequest":{"additionalProperties":false,"properties":{"data":{"additionalProperties":false,"properties":{"attributes":{"additionalProperties":false,"properties":{"action_type":{"type":"string"},"configuration":{"additionalProperties":true,"type":"object"},"continue_on_error":{"type":"boolean"},"delay_seconds":{"type":"integer"},"position":{"type":"integer"}},"required":["action_type"],"type":"object"},"id":{"format":"uuid","type":"string"},"type":{"type":"string"}},"required":["attributes"],"type":"object"}},"required":["data"],"title":"AutomationActionRequest","type":"object"},"ReportRunRequest":{"additionalProperties":false,"properties":{"parameters":{"additionalProperties":true,"type":"object"}},"title":"ReportRunRequest","type":"object"},"DocumentUploadUpdateRequest":{"additionalProperties":false,"properties":{"data":{"additionalProperties":false,"properties":{"attributes":{"additionalProperties":false,"properties":{"category":{"nullable":true,"type":"string"},"contact_id":{"format":"uuid","nullable":true,"type":"string"},"content_type":{"nullable":true,"type":"string"},"description":{"nullable":true,"type":"string"},"file_size":{"nullable":true,"type":"integer"},"filename":{"nullable":true,"type":"string"},"folder_id":{"format":"uuid","nullable":true,"type":"string"},"matter_id":{"format":"uuid","nullable":true,"type":"string"},"tags":{"items":{"type":"string"},"nullable":true,"type":"array"}},"type":"object"},"id":{"format":"uuid","type":"string"},"type":{"type":"string"}},"required":["attributes"],"type":"object"}},"required":["data"],"title":"DocumentUploadUpdateRequest","type":"object"},"CalendarEventAttributes":{"properties":{"attendee_ids":{"items":{"format":"uuid","type":"string"},"nullable":true,"type":"array"},"color":{"nullable":true,"type":"string"},"contact_ids":{"items":{"format":"uuid","type":"string"},"nullable":true,"type":"array"},"created_by_id":{"format":"uuid","nullable":true,"type":"string"},"description":{"nullable":true,"type":"string"},"end_at":{"format":"date-time","nullable":true,"type":"string"},"inserted_at":{"format":"date-time","nullable":true,"type":"string"},"is_all_day":{"nullable":true,"type":"boolean"},"location":{"nullable":true,"type":"string"},"matter_id":{"format":"uuid","nullable":true,"type":"string"},"start_at":{"format":"date-time","nullable":true,"type":"string"},"title":{"nullable":true,"type":"string"},"updated_at":{"format":"date-time","nullable":true,"type":"string"}},"title":"CalendarEventAttributes","type":"object"},"ReportRunResponse":{"properties":{"data":{"additionalProperties":true,"type":"object"}},"title":"ReportRunResponse","type":"object"},"DisbursementListResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/DisbursementResource"},"type":"array"},"links":{"$ref":"#/components/schemas/PaginationLinks"},"meta":{"$ref":"#/components/schemas/PaginationMeta"}},"title":"DisbursementListResponse","type":"object"},"KeyDateTypeRequest":{"additionalProperties":false,"properties":{"data":{"additionalProperties":false,"properties":{"attributes":{"additionalProperties":false,"properties":{"auto_complete":{"nullable":true,"type":"boolean"},"code":{"type":"string"},"color":{"nullable":true,"type":"string"},"default_reminder_days":{"nullable":true,"type":"integer"},"description":{"nullable":true,"type":"string"},"icon":{"nullable":true,"type":"string"},"is_milestone":{"nullable":true,"type":"boolean"},"matter_type_ids":{"items":{"format":"uuid","type":"string"},"nullable":true,"type":"array"},"name":{"type":"string"},"position":{"nullable":true,"type":"integer"}},"required":["name","code"],"type":"object"},"id":{"format":"uuid","type":"string"},"type":{"type":"string"}},"required":["attributes"],"type":"object"}},"required":["data"],"title":"KeyDateTypeRequest","type":"object"},"MatterTypeResponse":{"properties":{"data":{"$ref":"#/components/schemas/MatterTypeResource"},"meta":{"$ref":"#/components/schemas/ResourceMeta"}},"title":"MatterTypeResponse","type":"object"},"MatterRoleUpdateRequest":{"additionalProperties":false,"properties":{"data":{"additionalProperties":false,"properties":{"attributes":{"additionalProperties":false,"properties":{"contact_id":{"format":"uuid","nullable":true,"type":"string"},"is_primary":{"nullable":true,"type":"boolean"},"matter_id":{"format":"uuid","nullable":true,"type":"string"},"notes":{"nullable":true,"type":"string"},"role_name":{"nullable":true,"type":"string"},"source":{"nullable":true,"type":"string"}},"type":"object"},"id":{"format":"uuid","type":"string"},"type":{"type":"string"}},"required":["attributes"],"type":"object"}},"required":["data"],"title":"MatterRoleUpdateRequest","type":"object"},"EmailResponse":{"properties":{"data":{"$ref":"#/components/schemas/EmailResource"},"meta":{"$ref":"#/components/schemas/ResourceMeta"}},"title":"EmailResponse","type":"object"},"PaginationMeta":{"properties":{"page":{"description":"Current page number","type":"integer"},"page_size":{"description":"Records per page","type":"integer"},"total":{"description":"Total record count","type":"integer"},"total_pages":{"description":"Total pages","type":"integer"}},"title":"PaginationMeta","type":"object"},"RoleTemplateResponse":{"properties":{"data":{"$ref":"#/components/schemas/RoleTemplateResource"},"meta":{"$ref":"#/components/schemas/ResourceMeta"}},"title":"RoleTemplateResponse","type":"object"},"DocumentListResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/DocumentResource"},"type":"array"},"links":{"$ref":"#/components/schemas/PaginationLinks"},"meta":{"$ref":"#/components/schemas/PaginationMeta"}},"title":"DocumentListResponse","type":"object"},"FieldDefinitionUpdateRequest":{"additionalProperties":false,"properties":{"data":{"additionalProperties":false,"properties":{"attributes":{"additionalProperties":false,"properties":{"code":{"nullable":true,"type":"string"},"default_value":{"nullable":true,"type":"string"},"description":{"nullable":true,"type":"string"},"field_group_id":{"format":"uuid","nullable":true,"type":"string"},"field_type":{"nullable":true,"type":"string"},"is_required":{"nullable":true,"type":"boolean"},"name":{"nullable":true,"type":"string"},"options":{"items":{"additionalProperties":true,"type":"object"},"nullable":true,"type":"array"},"placeholder":{"nullable":true,"type":"string"},"position":{"nullable":true,"type":"integer"},"validation_rules":{"additionalProperties":true,"nullable":true,"type":"object"}},"type":"object"},"id":{"format":"uuid","type":"string"},"type":{"type":"string"}},"required":["attributes"],"type":"object"}},"required":["data"],"title":"FieldDefinitionUpdateRequest","type":"object"},"LeadListResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/LeadResource"},"type":"array"},"links":{"$ref":"#/components/schemas/PaginationLinks"},"meta":{"$ref":"#/components/schemas/PaginationMeta"}},"title":"LeadListResponse","type":"object"},"KeyDateTypeResponse":{"properties":{"data":{"$ref":"#/components/schemas/KeyDateTypeResource"},"meta":{"$ref":"#/components/schemas/ResourceMeta"}},"title":"KeyDateTypeResponse","type":"object"},"EmailTemplateAttributes":{"properties":{"body_html":{"nullable":true,"type":"string"},"body_text":{"nullable":true,"type":"string"},"category":{"nullable":true,"type":"string"},"editor_design":{"additionalProperties":true,"nullable":true,"type":"object"},"inserted_at":{"format":"date-time","nullable":true,"type":"string"},"is_active":{"nullable":true,"type":"boolean"},"is_system":{"nullable":true,"type":"boolean"},"matter_type_id":{"format":"uuid","nullable":true,"type":"string"},"name":{"nullable":true,"type":"string"},"step_id":{"format":"uuid","nullable":true,"type":"string"},"subject":{"nullable":true,"type":"string"},"system_key":{"nullable":true,"type":"string"},"updated_at":{"format":"date-time","nullable":true,"type":"string"}},"title":"EmailTemplateAttributes","type":"object"},"DocumentRequestTemplateResponse":{"properties":{"data":{"$ref":"#/components/schemas/DocumentRequestTemplateResource"},"meta":{"$ref":"#/components/schemas/ResourceMeta"}},"title":"DocumentRequestTemplateResponse","type":"object"},"FieldGroupListResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/FieldGroupResource"},"type":"array"},"links":{"$ref":"#/components/schemas/PaginationLinks"},"meta":{"$ref":"#/components/schemas/PaginationMeta"}},"title":"FieldGroupListResponse","type":"object"},"WorkflowUpdateRequest":{"additionalProperties":false,"properties":{"data":{"additionalProperties":false,"properties":{"attributes":{"additionalProperties":false,"properties":{"description":{"nullable":true,"type":"string"},"is_active":{"nullable":true,"type":"boolean"},"is_template":{"nullable":true,"type":"boolean"},"name":{"nullable":true,"type":"string"}},"type":"object"},"id":{"format":"uuid","type":"string"},"type":{"type":"string"}},"required":["attributes"],"type":"object"}},"required":["data"],"title":"WorkflowUpdateRequest","type":"object"},"RoleTemplateAttributes":{"properties":{"inserted_at":{"format":"date-time","nullable":true,"type":"string"},"is_primary":{"nullable":true,"type":"boolean"},"is_required":{"nullable":true,"type":"boolean"},"matter_type_ids":{"items":{"format":"uuid","type":"string"},"nullable":true,"type":"array"},"max_count":{"nullable":true,"type":"integer"},"position":{"nullable":true,"type":"integer"},"role_name":{"nullable":true,"type":"string"},"updated_at":{"format":"date-time","nullable":true,"type":"string"}},"title":"RoleTemplateAttributes","type":"object"},"ReportRequest":{"additionalProperties":false,"properties":{"data":{"additionalProperties":false,"properties":{"attributes":{"additionalProperties":false,"properties":{"configuration":{"additionalProperties":true,"nullable":true,"type":"object"},"description":{"nullable":true,"type":"string"},"is_shared":{"nullable":true,"type":"boolean"},"name":{"type":"string"},"report_type":{"type":"string"}},"required":["name","report_type"],"type":"object"},"id":{"format":"uuid","type":"string"},"type":{"type":"string"}},"required":["attributes"],"type":"object"}},"required":["data"],"title":"ReportRequest","type":"object"},"ContactMergeRequest":{"additionalProperties":false,"properties":{"field_selections":{"additionalProperties":true,"type":"object"},"secondary_id":{"format":"uuid","type":"string"}},"required":["secondary_id"],"title":"ContactMergeRequest","type":"object"},"DocumentRequestResource":{"properties":{"attributes":{"$ref":"#/components/schemas/DocumentRequestAttributes"},"id":{"format":"uuid","type":"string"},"type":{"enum":["document-requests"],"type":"string"}},"required":["id","type","attributes"],"title":"DocumentRequestResource","type":"object"},"MatterUpdateRequest":{"additionalProperties":false,"properties":{"data":{"additionalProperties":false,"properties":{"attributes":{"additionalProperties":false,"properties":{"assigned_to_id":{"format":"uuid","nullable":true,"type":"string"},"description":{"nullable":true,"type":"string"},"jurisdiction_country":{"enum":["AU"],"nullable":true,"type":"string"},"jurisdiction_region":{"enum":["NSW","VIC","QLD","SA","WA","TAS","ACT","NT"],"nullable":true,"type":"string"},"metadata":{"additionalProperties":true,"nullable":true,"type":"object"},"name":{"nullable":true,"type":"string"},"priority":{"enum":["low","normal","high","urgent"],"nullable":true,"type":"string"},"status":{"enum":["open","on_hold","closed","archived","cancelled","completed"],"nullable":true,"type":"string"},"tags":{"items":{"type":"string"},"nullable":true,"type":"array"},"team_id":{"format":"uuid","nullable":true,"type":"string"}},"type":"object"},"id":{"format":"uuid","type":"string"},"type":{"type":"string"}},"required":["attributes"],"type":"object"}},"required":["data"],"title":"MatterUpdateRequest","type":"object"},"ContactTypeResponse":{"properties":{"data":{"$ref":"#/components/schemas/ContactTypeResource"},"meta":{"$ref":"#/components/schemas/ResourceMeta"}},"title":"ContactTypeResponse","type":"object"},"DisbursementRequest":{"additionalProperties":false,"properties":{"data":{"additionalProperties":false,"properties":{"attributes":{"additionalProperties":false,"properties":{"amount_cents":{"type":"integer"},"category":{"nullable":true,"type":"string"},"date":{"format":"date","type":"string"},"description":{"type":"string"},"is_billable":{"nullable":true,"type":"boolean"},"matter_id":{"format":"uuid","type":"string"},"user_id":{"format":"uuid","nullable":true,"type":"string"}},"required":["description","amount_cents","date","matter_id"],"type":"object"},"id":{"format":"uuid","type":"string"},"type":{"type":"string"}},"required":["attributes"],"type":"object"}},"required":["data"],"title":"DisbursementRequest","type":"object"},"LeadContactResource":{"properties":{"attributes":{"$ref":"#/components/schemas/LeadContactAttributes"},"id":{"format":"uuid","type":"string"},"type":{"enum":["lead-contacts"],"type":"string"}},"required":["id","type","attributes"],"title":"LeadContactResource","type":"object"},"DocumentResponse":{"properties":{"data":{"$ref":"#/components/schemas/DocumentResource"},"meta":{"$ref":"#/components/schemas/ResourceMeta"}},"title":"DocumentResponse","type":"object"},"TimeEntryRequest":{"additionalProperties":false,"properties":{"data":{"additionalProperties":false,"properties":{"attributes":{"additionalProperties":false,"properties":{"category":{"nullable":true,"type":"string"},"date":{"format":"date","type":"string"},"description":{"type":"string"},"duration_minutes":{"type":"integer"},"is_billable":{"nullable":true,"type":"boolean"},"matter_id":{"format":"uuid","nullable":true,"type":"string"},"rate_cents":{"nullable":true,"type":"integer"},"tags":{"items":{"type":"string"},"nullable":true,"type":"array"},"user_id":{"format":"uuid","nullable":true,"type":"string"}},"required":["description","date","duration_minutes"],"type":"object"},"id":{"format":"uuid","type":"string"},"type":{"type":"string"}},"required":["attributes"],"type":"object"}},"required":["data"],"title":"TimeEntryRequest","type":"object"},"KeyDateRequest":{"additionalProperties":false,"properties":{"data":{"additionalProperties":false,"properties":{"attributes":{"additionalProperties":false,"properties":{"date":{"format":"date","type":"string"},"is_all_day":{"nullable":true,"type":"boolean"},"key_date_type_id":{"format":"uuid","nullable":true,"type":"string"},"matter_id":{"format":"uuid","type":"string"},"name":{"type":"string"},"notes":{"nullable":true,"type":"string"},"status":{"nullable":true,"type":"string"},"time":{"nullable":true,"type":"string"}},"required":["name","date","matter_id"],"type":"object"},"id":{"format":"uuid","type":"string"},"type":{"type":"string"}},"required":["attributes"],"type":"object"}},"required":["data"],"title":"KeyDateRequest","type":"object"},"StepResponse":{"properties":{"data":{"$ref":"#/components/schemas/StepResource"},"meta":{"$ref":"#/components/schemas/ResourceMeta"}},"title":"StepResponse","type":"object"},"TimeEntryUpdateRequest":{"additionalProperties":false,"properties":{"data":{"additionalProperties":false,"properties":{"attributes":{"additionalProperties":false,"properties":{"category":{"nullable":true,"type":"string"},"date":{"format":"date","nullable":true,"type":"string"},"description":{"nullable":true,"type":"string"},"duration_minutes":{"nullable":true,"type":"integer"},"is_billable":{"nullable":true,"type":"boolean"},"matter_id":{"format":"uuid","nullable":true,"type":"string"},"rate_cents":{"nullable":true,"type":"integer"},"tags":{"items":{"type":"string"},"nullable":true,"type":"array"}},"type":"object"},"id":{"format":"uuid","type":"string"},"type":{"type":"string"}},"required":["attributes"],"type":"object"}},"required":["data"],"title":"TimeEntryUpdateRequest","type":"object"},"AutomationResource":{"properties":{"attributes":{"$ref":"#/components/schemas/AutomationAttributes"},"id":{"format":"uuid","type":"string"},"type":{"enum":["automations"],"type":"string"}},"required":["id","type","attributes"],"title":"AutomationResource","type":"object"},"FolderAttributes":{"properties":{"contact_id":{"format":"uuid","nullable":true,"type":"string"},"inserted_at":{"format":"date-time","nullable":true,"type":"string"},"is_system":{"nullable":true,"type":"boolean"},"matter_id":{"format":"uuid","nullable":true,"type":"string"},"name":{"nullable":true,"type":"string"},"parent_id":{"format":"uuid","nullable":true,"type":"string"},"position":{"nullable":true,"type":"integer"},"updated_at":{"format":"date-time","nullable":true,"type":"string"}},"title":"FolderAttributes","type":"object"},"DisbursementResponse":{"properties":{"data":{"$ref":"#/components/schemas/DisbursementResource"},"meta":{"$ref":"#/components/schemas/ResourceMeta"}},"title":"DisbursementResponse","type":"object"},"TimeEntryListResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/TimeEntryResource"},"type":"array"},"links":{"$ref":"#/components/schemas/PaginationLinks"},"meta":{"$ref":"#/components/schemas/PaginationMeta"}},"title":"TimeEntryListResponse","type":"object"},"WorkflowRequest":{"additionalProperties":false,"properties":{"data":{"additionalProperties":false,"properties":{"attributes":{"additionalProperties":false,"properties":{"description":{"nullable":true,"type":"string"},"is_active":{"nullable":true,"type":"boolean"},"is_template":{"nullable":true,"type":"boolean"},"name":{"type":"string"}},"required":["name"],"type":"object"},"id":{"format":"uuid","type":"string"},"type":{"type":"string"}},"required":["attributes"],"type":"object"}},"required":["data"],"title":"WorkflowRequest","type":"object"},"InvoiceResponse":{"properties":{"data":{"$ref":"#/components/schemas/InvoiceResource"},"meta":{"$ref":"#/components/schemas/ResourceMeta"}},"title":"InvoiceResponse","type":"object"},"RoleTemplateRequest":{"additionalProperties":false,"properties":{"data":{"additionalProperties":false,"properties":{"attributes":{"additionalProperties":false,"properties":{"is_primary":{"nullable":true,"type":"boolean"},"is_required":{"nullable":true,"type":"boolean"},"matter_type_ids":{"items":{"format":"uuid","type":"string"},"nullable":true,"type":"array"},"max_count":{"nullable":true,"type":"integer"},"position":{"nullable":true,"type":"integer"},"role_name":{"type":"string"}},"required":["role_name"],"type":"object"},"id":{"format":"uuid","type":"string"},"type":{"type":"string"}},"required":["attributes"],"type":"object"}},"required":["data"],"title":"RoleTemplateRequest","type":"object"},"TaskTemplateAttributes":{"properties":{"assignments":{"items":{"additionalProperties":true,"type":"object"},"nullable":true,"type":"array"},"category":{"nullable":true,"type":"string"},"default_assignee":{"nullable":true,"type":"string"},"description":{"nullable":true,"type":"string"},"due_date_mode":{"nullable":true,"type":"string"},"due_key_date_type_id":{"format":"uuid","nullable":true,"type":"string"},"due_offset_days":{"nullable":true,"type":"integer"},"inserted_at":{"format":"date-time","nullable":true,"type":"string"},"is_active":{"nullable":true,"type":"boolean"},"is_compliance":{"nullable":true,"type":"boolean"},"is_portal_visible":{"nullable":true,"type":"boolean"},"name":{"nullable":true,"type":"string"},"position":{"nullable":true,"type":"integer"},"priority":{"nullable":true,"type":"string"},"updated_at":{"format":"date-time","nullable":true,"type":"string"}},"title":"TaskTemplateAttributes","type":"object"},"MatterTypeAttributes":{"properties":{"code":{"nullable":true,"type":"string"},"color":{"nullable":true,"type":"string"},"default_tags":{"items":{"type":"string"},"nullable":true,"type":"array"},"description":{"nullable":true,"type":"string"},"icon":{"nullable":true,"type":"string"},"inserted_at":{"format":"date-time","nullable":true,"type":"string"},"is_active":{"nullable":true,"type":"boolean"},"name":{"nullable":true,"type":"string"},"reference_format":{"nullable":true,"type":"string"},"required_contact_types":{"items":{"type":"string"},"nullable":true,"type":"array"},"settings":{"additionalProperties":true,"nullable":true,"type":"object"},"updated_at":{"format":"date-time","nullable":true,"type":"string"},"workflow_id":{"format":"uuid","nullable":true,"type":"string"}},"title":"MatterTypeAttributes","type":"object"},"WorkflowListResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/WorkflowResource"},"type":"array"},"links":{"$ref":"#/components/schemas/PaginationLinks"},"meta":{"$ref":"#/components/schemas/PaginationMeta"}},"title":"WorkflowListResponse","type":"object"},"DisbursementAttributes":{"properties":{"amount_cents":{"nullable":true,"type":"integer"},"category":{"nullable":true,"type":"string"},"date":{"format":"date","nullable":true,"type":"string"},"description":{"nullable":true,"type":"string"},"inserted_at":{"format":"date-time","nullable":true,"type":"string"},"invoice_id":{"format":"uuid","nullable":true,"type":"string"},"is_billable":{"nullable":true,"type":"boolean"},"matter_id":{"format":"uuid","nullable":true,"type":"string"},"receipt_document_id":{"format":"uuid","nullable":true,"type":"string"},"status":{"nullable":true,"type":"string"},"updated_at":{"format":"date-time","nullable":true,"type":"string"},"user_id":{"format":"uuid","nullable":true,"type":"string"}},"title":"DisbursementAttributes","type":"object"},"ContactTypeRequest":{"additionalProperties":false,"properties":{"data":{"additionalProperties":false,"properties":{"attributes":{"additionalProperties":false,"properties":{"code":{"type":"string"},"color":{"nullable":true,"type":"string"},"icon":{"nullable":true,"type":"string"},"is_active":{"nullable":true,"type":"boolean"},"name":{"type":"string"}},"required":["name","code"],"type":"object"},"id":{"format":"uuid","type":"string"},"type":{"type":"string"}},"required":["attributes"],"type":"object"}},"required":["data"],"title":"ContactTypeRequest","type":"object"},"MatterConflictCheckAttributes":{"properties":{"acknowledged_at":{"format":"date-time","nullable":true,"type":"string"},"acknowledged_by":{"format":"uuid","nullable":true,"type":"string"},"check_type":{"enum":["new_matter","new_party","new_lead","lead_conversion","matter_reopen","periodic","lateral_hire","manual"],"type":"string"},"clearance_reason":{"nullable":true,"type":"string"},"cleared_at":{"format":"date-time","nullable":true,"type":"string"},"cleared_by_user_id":{"format":"uuid","nullable":true,"type":"string"},"conflict_type":{"enum":["same_party","opposing_party","related","related_party","identifier","former_client"],"nullable":true,"type":"string"},"conflicting_matter_id":{"format":"uuid","nullable":true,"type":"string"},"conflicting_matter_name":{"nullable":true,"type":"string"},"conflicting_matter_reference":{"nullable":true,"type":"string"},"contact_id":{"format":"uuid","nullable":true,"type":"string"},"contact_name":{"nullable":true,"type":"string"},"disclosure_redacted":{"nullable":false,"type":"boolean"},"highest_score":{"description":"Combined match confidence, 0.0 to 1.0.","format":"float","nullable":true,"type":"number"},"id":{"format":"uuid","type":"string"},"inserted_at":{"format":"date-time","type":"string"},"rechecked_at":{"format":"date-time","nullable":true,"type":"string"},"status":{"enum":["pending","flagged","blocked","cleared","waived","escalated","acknowledged","resolved"],"type":"string"},"subject_name":{"nullable":true,"type":"string"},"updated_at":{"format":"date-time","type":"string"}},"title":"MatterConflictCheckAttributes","type":"object"},"MatterRoleRequest":{"additionalProperties":false,"properties":{"data":{"additionalProperties":false,"properties":{"attributes":{"additionalProperties":false,"properties":{"contact_id":{"format":"uuid","type":"string"},"is_primary":{"nullable":true,"type":"boolean"},"matter_id":{"format":"uuid","nullable":true,"type":"string"},"notes":{"nullable":true,"type":"string"},"role_name":{"type":"string"},"source":{"nullable":true,"type":"string"}},"required":["role_name","contact_id"],"type":"object"},"id":{"format":"uuid","type":"string"},"type":{"type":"string"}},"required":["attributes"],"type":"object"}},"required":["data"],"title":"MatterRoleRequest","type":"object"},"TaskCreateRequest":{"additionalProperties":false,"properties":{"data":{"additionalProperties":false,"properties":{"attributes":{"additionalProperties":false,"properties":{"assigned_to_id":{"format":"uuid","nullable":true,"type":"string"},"category":{"nullable":true,"type":"string"},"description":{"nullable":true,"type":"string"},"due_date":{"format":"date","nullable":true,"type":"string"},"matter_id":{"format":"uuid","nullable":true,"type":"string"},"name":{"type":"string"},"parent_task_id":{"format":"uuid","nullable":true,"type":"string"},"priority":{"enum":["low","normal","high","urgent"],"nullable":true,"type":"string"},"status":{"enum":["pending","in_progress","completed","cancelled","blocked"],"nullable":true,"type":"string"},"tags":{"items":{"type":"string"},"nullable":true,"type":"array"}},"required":["name"],"type":"object"},"id":{"format":"uuid","type":"string"},"type":{"type":"string"}},"required":["attributes"],"type":"object"}},"required":["data"],"title":"TaskCreateRequest","type":"object"},"StepRequest":{"additionalProperties":false,"properties":{"data":{"additionalProperties":false,"properties":{"attributes":{"additionalProperties":false,"properties":{"color":{"nullable":true,"type":"string"},"description":{"nullable":true,"type":"string"},"icon":{"nullable":true,"type":"string"},"is_initial":{"nullable":true,"type":"boolean"},"is_terminal":{"nullable":true,"type":"boolean"},"name":{"type":"string"},"position":{"type":"integer"},"reporting_step_id":{"format":"uuid","nullable":true,"type":"string"},"settings":{"additionalProperties":true,"nullable":true,"type":"object"},"step_type":{"enum":["sequential","conditional"],"nullable":true,"type":"string"},"workflow_id":{"format":"uuid","nullable":true,"type":"string"}},"required":["name","position"],"type":"object"},"id":{"format":"uuid","type":"string"},"type":{"type":"string"}},"required":["attributes"],"type":"object"}},"required":["data"],"title":"StepRequest","type":"object"},"DocumentCollectionResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/DocumentResource"},"type":"array"},"meta":{"$ref":"#/components/schemas/CollectionMeta"}},"title":"DocumentCollectionResponse","type":"object"},"MatterResponse":{"properties":{"data":{"$ref":"#/components/schemas/MatterResource"},"meta":{"$ref":"#/components/schemas/ResourceMeta"}},"title":"MatterResponse","type":"object"},"FieldDefinitionListResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/FieldDefinitionResource"},"type":"array"},"links":{"$ref":"#/components/schemas/PaginationLinks"},"meta":{"$ref":"#/components/schemas/PaginationMeta"}},"title":"FieldDefinitionListResponse","type":"object"},"FieldValueIndexMeta":{"properties":{"record_id":{"format":"uuid","nullable":true,"type":"string"}},"title":"FieldValueIndexMeta","type":"object"},"NoteResource":{"properties":{"attributes":{"$ref":"#/components/schemas/NoteAttributes"},"id":{"format":"uuid","type":"string"},"type":{"enum":["notes"],"type":"string"}},"required":["id","type","attributes"],"title":"NoteResource","type":"object"},"FieldGroupAttributes":{"properties":{"code":{"nullable":true,"type":"string"},"description":{"nullable":true,"type":"string"},"icon":{"nullable":true,"type":"string"},"inserted_at":{"format":"date-time","nullable":true,"type":"string"},"is_active":{"nullable":true,"type":"boolean"},"is_system":{"nullable":true,"type":"boolean"},"matter_type_ids":{"items":{"format":"uuid","type":"string"},"nullable":true,"type":"array"},"name":{"nullable":true,"type":"string"},"position":{"nullable":true,"type":"integer"},"updated_at":{"format":"date-time","nullable":true,"type":"string"}},"title":"FieldGroupAttributes","type":"object"},"NoteRequest":{"additionalProperties":false,"properties":{"data":{"additionalProperties":false,"properties":{"attributes":{"additionalProperties":false,"properties":{"body":{"type":"string"},"mentioned_user_ids":{"items":{"format":"uuid","type":"string"},"type":"array"},"task_id":{"format":"uuid","type":"string"}},"required":["body"],"type":"object"},"id":{"format":"uuid","type":"string"},"type":{"type":"string"}},"required":["attributes"],"type":"object"}},"required":["data"],"title":"NoteRequest","type":"object"},"EmailTemplateUpdateRequest":{"additionalProperties":false,"properties":{"data":{"additionalProperties":false,"properties":{"attributes":{"additionalProperties":false,"properties":{"body_html":{"nullable":true,"type":"string"},"body_text":{"nullable":true,"type":"string"},"category":{"nullable":true,"type":"string"},"editor_design":{"additionalProperties":true,"nullable":true,"type":"object"},"matter_type_id":{"format":"uuid","nullable":true,"type":"string"},"name":{"nullable":true,"type":"string"},"step_id":{"format":"uuid","nullable":true,"type":"string"},"subject":{"nullable":true,"type":"string"}},"type":"object"},"id":{"format":"uuid","type":"string"},"type":{"type":"string"}},"required":["attributes"],"type":"object"}},"required":["data"],"title":"EmailTemplateUpdateRequest","type":"object"},"KeyDateTypeUpdateRequest":{"additionalProperties":false,"properties":{"data":{"additionalProperties":false,"properties":{"attributes":{"additionalProperties":false,"properties":{"auto_complete":{"nullable":true,"type":"boolean"},"code":{"nullable":true,"type":"string"},"color":{"nullable":true,"type":"string"},"default_reminder_days":{"nullable":true,"type":"integer"},"description":{"nullable":true,"type":"string"},"icon":{"nullable":true,"type":"string"},"is_milestone":{"nullable":true,"type":"boolean"},"matter_type_ids":{"items":{"format":"uuid","type":"string"},"nullable":true,"type":"array"},"name":{"nullable":true,"type":"string"},"position":{"nullable":true,"type":"integer"}},"type":"object"},"id":{"format":"uuid","type":"string"},"type":{"type":"string"}},"required":["attributes"],"type":"object"}},"required":["data"],"title":"KeyDateTypeUpdateRequest","type":"object"},"CalendarEventRequest":{"additionalProperties":false,"properties":{"data":{"additionalProperties":false,"properties":{"attributes":{"additionalProperties":false,"properties":{"attendee_ids":{"items":{"format":"uuid","type":"string"},"nullable":true,"type":"array"},"color":{"nullable":true,"type":"string"},"contact_ids":{"items":{"format":"uuid","type":"string"},"nullable":true,"type":"array"},"description":{"nullable":true,"type":"string"},"end_at":{"format":"date-time","type":"string"},"is_all_day":{"nullable":true,"type":"boolean"},"location":{"nullable":true,"type":"string"},"matter_id":{"format":"uuid","nullable":true,"type":"string"},"start_at":{"format":"date-time","type":"string"},"title":{"type":"string"}},"required":["title","start_at","end_at"],"type":"object"},"id":{"format":"uuid","type":"string"},"type":{"type":"string"}},"required":["attributes"],"type":"object"}},"required":["data"],"title":"CalendarEventRequest","type":"object"},"InvoiceResource":{"properties":{"attributes":{"$ref":"#/components/schemas/InvoiceAttributes"},"id":{"format":"uuid","type":"string"},"type":{"enum":["invoices"],"type":"string"}},"required":["id","type","attributes"],"title":"InvoiceResource","type":"object"},"ChangeStepRequest":{"additionalProperties":false,"properties":{"reason":{"description":"Optional reason for step change","nullable":true,"type":"string"},"to_step_id":{"description":"Target step ID","format":"uuid","type":"string"}},"required":["to_step_id"],"title":"ChangeStepRequest","type":"object"},"NoteListResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/NoteResource"},"type":"array"},"meta":{"$ref":"#/components/schemas/CollectionMeta"}},"title":"NoteListResponse","type":"object"},"InvoiceUpdateRequest":{"additionalProperties":false,"properties":{"data":{"additionalProperties":false,"properties":{"attributes":{"additionalProperties":false,"properties":{"contact_id":{"format":"uuid","nullable":true,"type":"string"},"matter_id":{"format":"uuid","nullable":true,"type":"string"},"notes":{"nullable":true,"type":"string"},"payment_terms":{"nullable":true,"type":"string"}},"type":"object"},"id":{"format":"uuid","type":"string"},"type":{"type":"string"}},"required":["attributes"],"type":"object"}},"required":["data"],"title":"InvoiceUpdateRequest","type":"object"},"NoteUpdateRequest":{"additionalProperties":false,"properties":{"data":{"additionalProperties":false,"properties":{"attributes":{"additionalProperties":false,"properties":{"body":{"type":"string"},"mentioned_user_ids":{"items":{"format":"uuid","type":"string"},"type":"array"},"task_id":{"format":"uuid","type":"string"}},"type":"object"},"id":{"format":"uuid","type":"string"},"type":{"type":"string"}},"required":["attributes"],"type":"object"}},"required":["data"],"title":"NoteUpdateRequest","type":"object"},"MatterTypeRequest":{"additionalProperties":false,"properties":{"data":{"additionalProperties":false,"properties":{"attributes":{"additionalProperties":false,"properties":{"code":{"type":"string"},"color":{"nullable":true,"type":"string"},"default_tags":{"items":{"type":"string"},"nullable":true,"type":"array"},"description":{"nullable":true,"type":"string"},"icon":{"nullable":true,"type":"string"},"is_active":{"nullable":true,"type":"boolean"},"name":{"type":"string"},"reference_format":{"nullable":true,"type":"string"},"settings":{"additionalProperties":true,"nullable":true,"type":"object"},"workflow_id":{"format":"uuid","nullable":true,"type":"string"}},"required":["name","code"],"type":"object"},"id":{"format":"uuid","type":"string"},"type":{"type":"string"}},"required":["attributes"],"type":"object"}},"required":["data"],"title":"MatterTypeRequest","type":"object"},"RoleTemplateResource":{"properties":{"attributes":{"$ref":"#/components/schemas/RoleTemplateAttributes"},"id":{"format":"uuid","type":"string"},"type":{"enum":["role_templates"],"type":"string"}},"required":["id","type","attributes"],"title":"RoleTemplateResource","type":"object"},"MatterTypeUpdateRequest":{"additionalProperties":false,"properties":{"data":{"additionalProperties":false,"properties":{"attributes":{"additionalProperties":false,"properties":{"code":{"nullable":true,"type":"string"},"color":{"nullable":true,"type":"string"},"default_tags":{"items":{"type":"string"},"nullable":true,"type":"array"},"description":{"nullable":true,"type":"string"},"icon":{"nullable":true,"type":"string"},"is_active":{"nullable":true,"type":"boolean"},"name":{"nullable":true,"type":"string"},"reference_format":{"nullable":true,"type":"string"},"settings":{"additionalProperties":true,"nullable":true,"type":"object"},"workflow_id":{"format":"uuid","nullable":true,"type":"string"}},"type":"object"},"id":{"format":"uuid","type":"string"},"type":{"type":"string"}},"required":["attributes"],"type":"object"}},"required":["data"],"title":"MatterTypeUpdateRequest","type":"object"},"KeyDateAttributes":{"properties":{"completed_at":{"format":"date-time","nullable":true,"type":"string"},"completed_by_id":{"format":"uuid","nullable":true,"type":"string"},"date":{"format":"date","nullable":true,"type":"string"},"inserted_at":{"format":"date-time","nullable":true,"type":"string"},"is_all_day":{"nullable":true,"type":"boolean"},"key_date_type_id":{"format":"uuid","nullable":true,"type":"string"},"matter_id":{"format":"uuid","nullable":true,"type":"string"},"name":{"nullable":true,"type":"string"},"notes":{"nullable":true,"type":"string"},"source":{"nullable":true,"type":"string"},"source_id":{"format":"uuid","nullable":true,"type":"string"},"status":{"nullable":true,"type":"string"},"time":{"nullable":true,"type":"string"},"updated_at":{"format":"date-time","nullable":true,"type":"string"}},"title":"KeyDateAttributes","type":"object"},"ResourceMeta":{"properties":{"timestamp":{"format":"date-time","type":"string"}},"title":"ResourceMeta","type":"object"},"ContactResponse":{"properties":{"data":{"$ref":"#/components/schemas/ContactResource"},"meta":{"$ref":"#/components/schemas/ResourceMeta"}},"title":"ContactResponse","type":"object"},"CalendarEventResponse":{"properties":{"data":{"$ref":"#/components/schemas/CalendarEventResource"},"meta":{"$ref":"#/components/schemas/ResourceMeta"}},"title":"CalendarEventResponse","type":"object"},"DocumentRequestResponse":{"properties":{"data":{"$ref":"#/components/schemas/DocumentRequestResource"},"meta":{"$ref":"#/components/schemas/ResourceMeta"}},"title":"DocumentRequestResponse","type":"object"},"AuditLogListResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/AuditLogResource"},"type":"array"},"links":{"$ref":"#/components/schemas/PaginationLinks"},"meta":{"$ref":"#/components/schemas/PaginationMeta"}},"title":"AuditLogListResponse","type":"object"},"DocumentRequestAttributes":{"properties":{"closed_at":{"format":"date-time","nullable":true,"type":"string"},"completed_at":{"format":"date-time","nullable":true,"type":"string"},"contact_id":{"format":"uuid","nullable":true,"type":"string"},"email_id":{"format":"uuid","nullable":true,"type":"string"},"expires_at":{"format":"date-time","type":"string"},"folder_id":{"format":"uuid","nullable":true,"type":"string"},"inserted_at":{"format":"date-time","type":"string"},"instructions":{"nullable":true,"type":"string"},"items":{"items":{"$ref":"#/components/schemas/DocumentRequestItemAttributes"},"type":"array"},"matter_id":{"format":"uuid","type":"string"},"recipient_email":{"type":"string"},"recipient_name":{"type":"string"},"requested_by_id":{"format":"uuid","nullable":true,"type":"string"},"sent_at":{"format":"date-time","nullable":true,"type":"string"},"status":{"type":"string"},"subject":{"type":"string"},"updated_at":{"format":"date-time","type":"string"},"uploads_count":{"type":"integer"}},"title":"DocumentRequestAttributes","type":"object"},"TimeEntryResponse":{"properties":{"data":{"$ref":"#/components/schemas/TimeEntryResource"},"meta":{"$ref":"#/components/schemas/ResourceMeta"}},"title":"TimeEntryResponse","type":"object"},"FieldValueUpdateRequest":{"additionalProperties":false,"properties":{"data":{"additionalProperties":false,"properties":{"attributes":{"additionalProperties":false,"properties":{"field_definition_id":{"format":"uuid","type":"string"},"field_record_id":{"format":"uuid","type":"string"},"value":{"description":"The field value — type depends on the field definition"}},"required":["value","field_record_id","field_definition_id"],"type":"object"},"id":{"format":"uuid","type":"string"},"type":{"type":"string"}},"required":["attributes"],"type":"object"}},"required":["data"],"title":"FieldValueUpdateRequest","type":"object"},"CalendarEventListResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/CalendarEventResource"},"type":"array"},"links":{"$ref":"#/components/schemas/PaginationLinks"},"meta":{"$ref":"#/components/schemas/PaginationMeta"}},"title":"CalendarEventListResponse","type":"object"},"AutomationListResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/AutomationResource"},"type":"array"},"meta":{"$ref":"#/components/schemas/CollectionMeta"}},"title":"AutomationListResponse","type":"object"},"AutomationActionResponse":{"properties":{"data":{"$ref":"#/components/schemas/AutomationActionResource"},"meta":{"$ref":"#/components/schemas/ResourceMeta"}},"title":"AutomationActionResponse","type":"object"},"MatterRoleAttributes":{"properties":{"contact_id":{"format":"uuid","nullable":true,"type":"string"},"inserted_at":{"format":"date-time","nullable":true,"type":"string"},"is_primary":{"nullable":true,"type":"boolean"},"matter_id":{"format":"uuid","nullable":true,"type":"string"},"notes":{"nullable":true,"type":"string"},"role_name":{"nullable":true,"type":"string"},"source":{"nullable":true,"type":"string"},"updated_at":{"format":"date-time","nullable":true,"type":"string"}},"title":"MatterRoleAttributes","type":"object"},"EmailListResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/EmailResource"},"type":"array"},"links":{"$ref":"#/components/schemas/PaginationLinks"},"meta":{"$ref":"#/components/schemas/PaginationMeta"}},"title":"EmailListResponse","type":"object"},"FieldValueIndexResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/FieldValueResource"},"type":"array"},"meta":{"$ref":"#/components/schemas/FieldValueIndexMeta"}},"title":"FieldValueIndexResponse","type":"object"},"RoleTemplateUpdateRequest":{"additionalProperties":false,"properties":{"data":{"additionalProperties":false,"properties":{"attributes":{"additionalProperties":false,"properties":{"is_primary":{"nullable":true,"type":"boolean"},"is_required":{"nullable":true,"type":"boolean"},"matter_type_ids":{"items":{"format":"uuid","type":"string"},"nullable":true,"type":"array"},"max_count":{"nullable":true,"type":"integer"},"position":{"nullable":true,"type":"integer"},"role_name":{"nullable":true,"type":"string"}},"type":"object"},"id":{"format":"uuid","type":"string"},"type":{"type":"string"}},"required":["attributes"],"type":"object"}},"required":["data"],"title":"RoleTemplateUpdateRequest","type":"object"},"ContactTypeAttributes":{"properties":{"code":{"nullable":true,"type":"string"},"color":{"nullable":true,"type":"string"},"icon":{"nullable":true,"type":"string"},"inserted_at":{"format":"date-time","nullable":true,"type":"string"},"is_active":{"nullable":true,"type":"boolean"},"is_system":{"nullable":true,"type":"boolean"},"name":{"nullable":true,"type":"string"},"position":{"nullable":true,"type":"integer"},"updated_at":{"format":"date-time","nullable":true,"type":"string"}},"title":"ContactTypeAttributes","type":"object"},"DocumentRequestListResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/DocumentRequestResource"},"type":"array"},"links":{"$ref":"#/components/schemas/PaginationLinks"},"meta":{"$ref":"#/components/schemas/PaginationMeta"}},"title":"DocumentRequestListResponse","type":"object"},"ContactListResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/ContactResource"},"type":"array"},"links":{"$ref":"#/components/schemas/PaginationLinks"},"meta":{"$ref":"#/components/schemas/PaginationMeta"}},"title":"ContactListResponse","type":"object"},"AutomationCondition":{"additionalProperties":false,"properties":{"field":{"description":"Condition field path, for example matter.jurisdiction_region","type":"string"},"operator":{"enum":["equals","not_equals","contains","starts_with","in","not_in","greater_than","less_than","between","is_empty","is_not_empty","older_than","newer_than"],"type":"string"},"type":{"enum":["field","field_value","role_exists","step","time"],"type":"string"},"value":{"nullable":true,"oneOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"items":{"type":"string"},"type":"array"}]}},"required":["field","operator"],"title":"AutomationCondition","type":"object"},"InvoiceAttributes":{"properties":{"accounting_provider":{"nullable":true,"type":"string"},"accounting_sync_status":{"nullable":true,"type":"string"},"balance_cents":{"nullable":true,"type":"integer"},"contact_id":{"format":"uuid","nullable":true,"type":"string"},"currency":{"nullable":true,"type":"string"},"delivered_at":{"format":"date-time","nullable":true,"type":"string"},"delivery_status":{"nullable":true,"type":"string"},"due_date":{"format":"date","nullable":true,"type":"string"},"inserted_at":{"format":"date-time","nullable":true,"type":"string"},"invoice_number":{"nullable":true,"type":"string"},"invoice_type":{"nullable":true,"type":"string"},"issue_date":{"format":"date","nullable":true,"type":"string"},"issued_at":{"format":"date-time","nullable":true,"type":"string"},"last_sync_error":{"nullable":true,"type":"string"},"matter_id":{"format":"uuid","nullable":true,"type":"string"},"notes":{"nullable":true,"type":"string"},"paid_at":{"format":"date-time","nullable":true,"type":"string"},"paid_cents":{"nullable":true,"type":"integer"},"payment_mode":{"nullable":true,"type":"string"},"payment_provider":{"nullable":true,"type":"string"},"payment_status":{"nullable":true,"type":"string"},"payment_terms":{"nullable":true,"type":"string"},"sent_at":{"format":"date-time","nullable":true,"type":"string"},"status":{"nullable":true,"type":"string"},"subtotal_cents":{"nullable":true,"type":"integer"},"tax_cents":{"nullable":true,"type":"integer"},"total_cents":{"nullable":true,"type":"integer"},"updated_at":{"format":"date-time","nullable":true,"type":"string"},"voided_at":{"format":"date-time","nullable":true,"type":"string"}},"title":"InvoiceAttributes","type":"object"},"FieldDefinitionAttributes":{"properties":{"code":{"nullable":true,"type":"string"},"default_value":{"nullable":true,"type":"string"},"description":{"nullable":true,"type":"string"},"field_group_id":{"format":"uuid","nullable":true,"type":"string"},"field_type":{"nullable":true,"type":"string"},"inserted_at":{"format":"date-time","nullable":true,"type":"string"},"is_readonly":{"nullable":true,"type":"boolean"},"is_required":{"nullable":true,"type":"boolean"},"name":{"nullable":true,"type":"string"},"options":{"items":{"additionalProperties":true,"type":"object"},"nullable":true,"type":"array"},"placeholder":{"nullable":true,"type":"string"},"position":{"nullable":true,"type":"integer"},"settings":{"additionalProperties":true,"nullable":true,"type":"object"},"updated_at":{"format":"date-time","nullable":true,"type":"string"},"validation_rules":{"additionalProperties":true,"nullable":true,"type":"object"}},"title":"FieldDefinitionAttributes","type":"object"},"StepHistoryResource":{"properties":{"attributes":{"$ref":"#/components/schemas/StepHistoryAttributes"},"id":{"format":"uuid","type":"string"},"type":{"enum":["step_changes"],"type":"string"}},"required":["id","type","attributes"],"title":"StepHistoryResource","type":"object"},"FieldValueResource":{"properties":{"attributes":{"$ref":"#/components/schemas/FieldValueAttributes"},"id":{"format":"uuid","type":"string"},"type":{"enum":["field_values"],"type":"string"}},"required":["id","type","attributes"],"title":"FieldValueResource","type":"object"},"LeadCreateRequest":{"additionalProperties":false,"properties":{"data":{"additionalProperties":false,"properties":{"attributes":{"additionalProperties":false,"properties":{"jurisdiction_country":{"nullable":true,"pattern":"^[Aa][Uu]$","type":"string"},"jurisdiction_region":{"nullable":true,"pattern":"^(?i:NSW|VIC|QLD|SA|WA|TAS|ACT|NT)$","type":"string"},"matter_type_id":{"format":"uuid","nullable":true,"type":"string"},"metadata":{"additionalProperties":true,"nullable":true,"type":"object"},"name":{"type":"string"},"owner_id":{"format":"uuid","nullable":true,"type":"string"},"priority":{"enum":["low","normal","high","urgent"],"nullable":true,"type":"string"},"referral_source":{"nullable":true,"type":"string"},"source":{"enum":["portal","intake_forms","email","chat","manual","api","import","referral"],"nullable":true,"type":"string"},"source_detail":{"nullable":true,"type":"string"},"summary":{"nullable":true,"type":"string"}},"required":["name"],"type":"object"},"id":{"format":"uuid","type":"string"},"type":{"type":"string"}},"required":["attributes"],"type":"object"}},"required":["data"],"title":"LeadCreateRequest","type":"object"},"DocumentRequestTemplateRequest":{"additionalProperties":false,"properties":{"data":{"additionalProperties":false,"properties":{"attributes":{"additionalProperties":false,"properties":{"description":{"nullable":true,"type":"string"},"instructions":{"nullable":true,"type":"string"},"is_active":{"type":"boolean"},"matter_type_id":{"format":"uuid","nullable":true,"type":"string"},"name":{"type":"string"},"requested_items":{"type":"string"},"subject":{"nullable":true,"type":"string"}},"required":["name","requested_items"],"type":"object"},"id":{"format":"uuid","type":"string"},"type":{"type":"string"}},"required":["attributes"],"type":"object"}},"required":["data"],"title":"DocumentRequestTemplateRequest","type":"object"},"AutomationActionAttributes":{"properties":{"action_type":{"type":"string"},"automation_id":{"format":"uuid","type":"string"},"conditions":{"description":"Shortcut mirror of configuration.conditions","items":{"$ref":"#/components/schemas/AutomationCondition"},"type":"array"},"configuration":{"additionalProperties":true,"description":"Action configuration. Include conditions for action-level conditional execution.","type":"object"},"continue_on_error":{"type":"boolean"},"delay_seconds":{"type":"integer"},"inserted_at":{"format":"date-time","type":"string"},"position":{"type":"integer"},"updated_at":{"format":"date-time","type":"string"}},"title":"AutomationActionAttributes","type":"object"},"AuditLogAttributes":{"properties":{"action":{"enum":["create","update","delete"],"type":"string"},"changed_fields":{"items":{"type":"string"},"type":"array"},"inserted_at":{"format":"date-time","type":"string"},"metadata":{"additionalProperties":true,"type":"object"},"resource_id":{"format":"uuid","type":"string"},"resource_type":{"type":"string"},"user_id":{"format":"uuid","nullable":true,"type":"string"}},"title":"AuditLogAttributes","type":"object"},"LeadResponse":{"properties":{"data":{"$ref":"#/components/schemas/LeadResource"},"meta":{"$ref":"#/components/schemas/ResourceMeta"}},"title":"LeadResponse","type":"object"},"LeadUpdateRequest":{"additionalProperties":false,"properties":{"data":{"additionalProperties":false,"properties":{"attributes":{"additionalProperties":false,"properties":{"jurisdiction_country":{"nullable":true,"pattern":"^[Aa][Uu]$","type":"string"},"jurisdiction_region":{"nullable":true,"pattern":"^(?i:NSW|VIC|QLD|SA|WA|TAS|ACT|NT)$","type":"string"},"matter_type_id":{"format":"uuid","nullable":true,"type":"string"},"metadata":{"additionalProperties":true,"nullable":true,"type":"object"},"name":{"nullable":true,"type":"string"},"owner_id":{"format":"uuid","nullable":true,"type":"string"},"pipeline_stage_id":{"format":"uuid","nullable":true,"type":"string"},"priority":{"enum":["low","normal","high","urgent"],"nullable":true,"type":"string"},"referral_source":{"nullable":true,"type":"string"},"source":{"enum":["portal","intake_forms","email","chat","manual","api","import","referral"],"nullable":true,"type":"string"},"source_detail":{"nullable":true,"type":"string"},"status":{"enum":["open","qualified","won","lost","deferred","archived"],"nullable":true,"type":"string"},"summary":{"nullable":true,"type":"string"}},"type":"object"},"id":{"format":"uuid","type":"string"},"type":{"type":"string"}},"required":["attributes"],"type":"object"}},"required":["data"],"title":"LeadUpdateRequest","type":"object"},"DisbursementUpdateRequest":{"additionalProperties":false,"properties":{"data":{"additionalProperties":false,"properties":{"attributes":{"additionalProperties":false,"properties":{"amount_cents":{"nullable":true,"type":"integer"},"category":{"nullable":true,"type":"string"},"date":{"format":"date","nullable":true,"type":"string"},"description":{"nullable":true,"type":"string"},"is_billable":{"nullable":true,"type":"boolean"},"matter_id":{"format":"uuid","nullable":true,"type":"string"},"user_id":{"format":"uuid","nullable":true,"type":"string"}},"type":"object"},"id":{"format":"uuid","type":"string"},"type":{"type":"string"}},"required":["attributes"],"type":"object"}},"required":["data"],"title":"DisbursementUpdateRequest","type":"object"},"TaskAttributes":{"properties":{"assigned_to_id":{"format":"uuid","nullable":true,"type":"string"},"category":{"nullable":true,"type":"string"},"completed_at":{"format":"date-time","nullable":true,"type":"string"},"completed_by_id":{"format":"uuid","nullable":true,"type":"string"},"completed_by_portal_user_id":{"format":"uuid","nullable":true,"type":"string"},"created_by_id":{"format":"uuid","nullable":true,"type":"string"},"description":{"nullable":true,"type":"string"},"due_date":{"format":"date","nullable":true,"type":"string"},"due_time":{"nullable":true,"type":"string"},"elapsed_seconds":{"nullable":true,"type":"integer"},"estimated_minutes":{"nullable":true,"type":"integer"},"finished_at":{"format":"date-time","nullable":true,"type":"string"},"inserted_at":{"format":"date-time","nullable":true,"type":"string"},"is_portal_visible":{"nullable":true,"type":"boolean"},"is_recurring":{"nullable":true,"type":"boolean"},"matter_id":{"format":"uuid","nullable":true,"type":"string"},"name":{"nullable":true,"type":"string"},"parent_task_id":{"format":"uuid","nullable":true,"type":"string"},"position":{"nullable":true,"type":"integer"},"priority":{"enum":["low","normal","high","urgent"],"nullable":true,"type":"string"},"recurrence_rule":{"additionalProperties":true,"nullable":true,"type":"object"},"source":{"nullable":true,"type":"string"},"started_at":{"format":"date-time","nullable":true,"type":"string"},"status":{"enum":["pending","in_progress","completed","cancelled","blocked"],"nullable":true,"type":"string"},"step_id":{"format":"uuid","nullable":true,"type":"string"},"tags":{"items":{"type":"string"},"nullable":true,"type":"array"},"updated_at":{"format":"date-time","nullable":true,"type":"string"}},"title":"TaskAttributes","type":"object"},"DocumentRequestTemplateUpdateRequest":{"additionalProperties":false,"properties":{"data":{"additionalProperties":false,"properties":{"attributes":{"additionalProperties":false,"properties":{"description":{"nullable":true,"type":"string"},"instructions":{"nullable":true,"type":"string"},"is_active":{"type":"boolean"},"matter_type_id":{"format":"uuid","nullable":true,"type":"string"},"name":{"type":"string"},"requested_items":{"type":"string"},"subject":{"nullable":true,"type":"string"}},"type":"object"},"id":{"format":"uuid","type":"string"},"type":{"type":"string"}},"required":["attributes"],"type":"object"}},"required":["data"],"title":"DocumentRequestTemplateUpdateRequest","type":"object"},"MatterRoleListResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/MatterRoleResource"},"type":"array"},"links":{"$ref":"#/components/schemas/PaginationLinks"},"meta":{"$ref":"#/components/schemas/PaginationMeta"}},"title":"MatterRoleListResponse","type":"object"},"LeadResource":{"properties":{"attributes":{"$ref":"#/components/schemas/LeadAttributes"},"id":{"format":"uuid","type":"string"},"type":{"enum":["leads"],"type":"string"}},"required":["id","type","attributes"],"title":"LeadResource","type":"object"},"DocumentRequestTemplateAttributes":{"properties":{"description":{"nullable":true,"type":"string"},"inserted_at":{"format":"date-time","type":"string"},"instructions":{"nullable":true,"type":"string"},"is_active":{"type":"boolean"},"items":{"items":{"properties":{"name":{"type":"string"}},"required":["name"],"type":"object"},"type":"array"},"matter_type_id":{"format":"uuid","nullable":true,"type":"string"},"name":{"type":"string"},"requested_items":{"type":"string"},"subject":{"nullable":true,"type":"string"},"updated_at":{"format":"date-time","type":"string"}},"title":"DocumentRequestTemplateAttributes","type":"object"},"FieldDefinitionResponse":{"properties":{"data":{"$ref":"#/components/schemas/FieldDefinitionResource"},"meta":{"$ref":"#/components/schemas/ResourceMeta"}},"title":"FieldDefinitionResponse","type":"object"},"StepAttributes":{"properties":{"color":{"nullable":true,"type":"string"},"description":{"nullable":true,"type":"string"},"icon":{"nullable":true,"type":"string"},"inserted_at":{"format":"date-time","nullable":true,"type":"string"},"is_initial":{"nullable":true,"type":"boolean"},"is_terminal":{"nullable":true,"type":"boolean"},"name":{"nullable":true,"type":"string"},"position":{"nullable":true,"type":"integer"},"reporting_step_id":{"format":"uuid","nullable":true,"type":"string"},"settings":{"additionalProperties":true,"nullable":true,"type":"object"},"step_type":{"enum":["sequential","conditional"],"nullable":true,"type":"string"},"updated_at":{"format":"date-time","nullable":true,"type":"string"},"workflow_id":{"format":"uuid","nullable":true,"type":"string"}},"title":"StepAttributes","type":"object"},"DocumentUploadRequest":{"additionalProperties":false,"properties":{"data":{"additionalProperties":false,"properties":{"attributes":{"additionalProperties":false,"properties":{"category":{"nullable":true,"type":"string"},"contact_id":{"format":"uuid","nullable":true,"type":"string"},"content_type":{"type":"string"},"description":{"nullable":true,"type":"string"},"filename":{"type":"string"},"folder_id":{"format":"uuid","nullable":true,"type":"string"},"matter_id":{"format":"uuid","nullable":true,"type":"string"},"tags":{"items":{"type":"string"},"nullable":true,"type":"array"},"upload_key":{"type":"string"}},"required":["upload_key","filename","content_type"],"type":"object"},"id":{"format":"uuid","type":"string"},"type":{"type":"string"}},"required":["attributes"],"type":"object"}},"required":["data"],"title":"DocumentUploadRequest","type":"object"},"TaskTemplateRequest":{"additionalProperties":false,"properties":{"data":{"additionalProperties":false,"properties":{"attributes":{"additionalProperties":false,"properties":{"assignments":{"items":{"additionalProperties":true,"type":"object"},"nullable":true,"type":"array"},"category":{"nullable":true,"type":"string"},"default_assignee":{"nullable":true,"type":"string"},"description":{"nullable":true,"type":"string"},"due_date_mode":{"nullable":true,"type":"string"},"due_key_date_type_id":{"format":"uuid","nullable":true,"type":"string"},"due_offset_days":{"nullable":true,"type":"integer"},"is_active":{"nullable":true,"type":"boolean"},"is_compliance":{"nullable":true,"type":"boolean"},"is_portal_visible":{"nullable":true,"type":"boolean"},"name":{"type":"string"},"position":{"nullable":true,"type":"integer"},"priority":{"nullable":true,"type":"string"}},"required":["name"],"type":"object"},"id":{"format":"uuid","type":"string"},"type":{"type":"string"}},"required":["attributes"],"type":"object"}},"required":["data"],"title":"TaskTemplateRequest","type":"object"},"TaskResponse":{"properties":{"data":{"$ref":"#/components/schemas/TaskResource"},"meta":{"$ref":"#/components/schemas/ResourceMeta"}},"title":"TaskResponse","type":"object"},"LeadConversionMeta":{"properties":{"conversion":{"properties":{"matter_id":{"format":"uuid","type":"string"},"matter_name":{"type":"string"}},"required":["matter_id","matter_name"],"type":"object"}},"title":"LeadConversionMeta","type":"object"},"EmailTemplateResource":{"properties":{"attributes":{"$ref":"#/components/schemas/EmailTemplateAttributes"},"id":{"format":"uuid","type":"string"},"type":{"enum":["email_templates"],"type":"string"}},"required":["id","type","attributes"],"title":"EmailTemplateResource","type":"object"},"RoleTemplateListResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/RoleTemplateResource"},"type":"array"},"links":{"$ref":"#/components/schemas/PaginationLinks"},"meta":{"$ref":"#/components/schemas/PaginationMeta"}},"title":"RoleTemplateListResponse","type":"object"},"FieldValueResponse":{"properties":{"data":{"$ref":"#/components/schemas/FieldValueResource"}},"title":"FieldValueResponse","type":"object"},"FolderUpdateRequest":{"additionalProperties":false,"properties":{"data":{"additionalProperties":false,"properties":{"attributes":{"additionalProperties":false,"properties":{"contact_id":{"format":"uuid","nullable":true,"type":"string"},"matter_id":{"format":"uuid","nullable":true,"type":"string"},"name":{"nullable":true,"type":"string"},"parent_id":{"format":"uuid","nullable":true,"type":"string"},"position":{"nullable":true,"type":"integer"}},"type":"object"},"id":{"format":"uuid","type":"string"},"type":{"type":"string"}},"required":["attributes"],"type":"object"}},"required":["data"],"title":"FolderUpdateRequest","type":"object"},"AuditLogResource":{"properties":{"attributes":{"$ref":"#/components/schemas/AuditLogAttributes"},"id":{"format":"uuid","type":"string"},"type":{"enum":["audit_logs"],"type":"string"}},"required":["id","type","attributes"],"title":"AuditLogResource","type":"object"},"KeyDateUpdateRequest":{"additionalProperties":false,"properties":{"data":{"additionalProperties":false,"properties":{"attributes":{"additionalProperties":false,"properties":{"date":{"format":"date","nullable":true,"type":"string"},"is_all_day":{"nullable":true,"type":"boolean"},"key_date_type_id":{"format":"uuid","nullable":true,"type":"string"},"matter_id":{"format":"uuid","nullable":true,"type":"string"},"name":{"nullable":true,"type":"string"},"notes":{"nullable":true,"type":"string"},"status":{"nullable":true,"type":"string"},"time":{"nullable":true,"type":"string"}},"type":"object"},"id":{"format":"uuid","type":"string"},"type":{"type":"string"}},"required":["attributes"],"type":"object"}},"required":["data"],"title":"KeyDateUpdateRequest","type":"object"},"FieldGroupUpdateRequest":{"additionalProperties":false,"properties":{"data":{"additionalProperties":false,"properties":{"attributes":{"additionalProperties":false,"properties":{"code":{"nullable":true,"type":"string"},"description":{"nullable":true,"type":"string"},"icon":{"nullable":true,"type":"string"},"is_active":{"nullable":true,"type":"boolean"},"matter_type_ids":{"items":{"format":"uuid","type":"string"},"nullable":true,"type":"array"},"name":{"nullable":true,"type":"string"},"position":{"nullable":true,"type":"integer"}},"type":"object"},"id":{"format":"uuid","type":"string"},"type":{"type":"string"}},"required":["attributes"],"type":"object"}},"required":["data"],"title":"FieldGroupUpdateRequest","type":"object"},"MatterRoleResource":{"properties":{"attributes":{"$ref":"#/components/schemas/MatterRoleAttributes"},"id":{"format":"uuid","type":"string"},"type":{"enum":["matter_roles"],"type":"string"}},"required":["id","type","attributes"],"title":"MatterRoleResource","type":"object"},"DocumentRequestCreateRequest":{"additionalProperties":false,"properties":{"data":{"additionalProperties":false,"properties":{"attributes":{"additionalProperties":false,"properties":{"contact_id":{"format":"uuid","nullable":true,"type":"string"},"expires_at":{"format":"date-time","nullable":true,"type":"string"},"folder_id":{"format":"uuid","nullable":true,"type":"string"},"instructions":{"nullable":true,"type":"string"},"items":{"items":{"additionalProperties":false,"properties":{"description":{"nullable":true,"type":"string"},"name":{"type":"string"}},"required":["name"],"type":"object"},"type":"array"},"matter_id":{"format":"uuid","type":"string"},"metadata":{"additionalProperties":true,"type":"object"},"recipient_email":{"type":"string"},"recipient_name":{"type":"string"},"subject":{"nullable":true,"type":"string"}},"required":["matter_id","recipient_email"],"type":"object"},"id":{"format":"uuid","type":"string"},"type":{"type":"string"}},"required":["attributes"],"type":"object"}},"required":["data"],"title":"DocumentRequestCreateRequest","type":"object"},"ContactCreateRequest":{"additionalProperties":false,"properties":{"data":{"additionalProperties":false,"properties":{"attributes":{"additionalProperties":false,"properties":{"abn":{"nullable":true,"type":"string"},"acn":{"nullable":true,"type":"string"},"address_line_1":{"nullable":true,"type":"string"},"address_line_2":{"nullable":true,"type":"string"},"company_name":{"nullable":true,"type":"string"},"contact_type_id":{"format":"uuid","nullable":true,"type":"string"},"country":{"nullable":true,"type":"string"},"date_of_birth":{"format":"date","nullable":true,"type":"string"},"email":{"nullable":true,"type":"string"},"first_name":{"nullable":true,"type":"string"},"is_company":{"nullable":true,"type":"boolean"},"last_name":{"nullable":true,"type":"string"},"mobile":{"nullable":true,"type":"string"},"notes":{"nullable":true,"type":"string"},"phone":{"nullable":true,"type":"string"},"postcode":{"nullable":true,"type":"string"},"preferred_name":{"nullable":true,"type":"string"},"state":{"nullable":true,"type":"string"},"suburb":{"nullable":true,"type":"string"},"tags":{"items":{"type":"string"},"nullable":true,"type":"array"}},"type":"object"},"id":{"format":"uuid","type":"string"},"type":{"type":"string"}},"required":["attributes"],"type":"object"}},"required":["data"],"title":"ContactCreateRequest","type":"object"},"AvailableTransitionResource":{"properties":{"id":{"format":"uuid","type":"string"},"name":{"type":"string"},"step_type":{"nullable":true,"type":"string"}},"required":["id","name"],"title":"AvailableTransitionResource","type":"object"},"FieldValueAttributes":{"properties":{"field_definition_id":{"format":"uuid","type":"string"},"field_record_id":{"format":"uuid","type":"string"},"inserted_at":{"format":"date-time","type":"string"},"updated_at":{"format":"date-time","type":"string"},"value_boolean":{"nullable":true,"type":"boolean"},"value_contact_id":{"format":"uuid","nullable":true,"type":"string"},"value_date":{"format":"date","nullable":true,"type":"string"},"value_datetime":{"format":"date-time","nullable":true,"type":"string"},"value_json":{"additionalProperties":true,"nullable":true,"type":"object"},"value_number":{"nullable":true,"type":"number"},"value_text":{"nullable":true,"type":"string"}},"title":"FieldValueAttributes","type":"object"},"DocumentUploadUrlRequest":{"additionalProperties":false,"properties":{"data":{"additionalProperties":false,"properties":{"attributes":{"additionalProperties":false,"properties":{"byte_size":{"type":"integer"},"content_type":{"type":"string"},"filename":{"type":"string"}},"required":["filename","content_type","byte_size"],"type":"object"},"id":{"format":"uuid","type":"string"},"type":{"type":"string"}},"required":["attributes"],"type":"object"}},"required":["data"],"title":"DocumentUploadUrlRequest","type":"object"},"InvoiceCreateRequest":{"additionalProperties":false,"properties":{"data":{"additionalProperties":false,"properties":{"attributes":{"additionalProperties":false,"properties":{"contact_id":{"format":"uuid","nullable":true,"type":"string"},"matter_id":{"format":"uuid","type":"string"},"notes":{"nullable":true,"type":"string"},"payment_terms":{"nullable":true,"type":"string"},"tax_rate":{"nullable":true,"type":"string"}},"required":["matter_id"],"type":"object"},"id":{"format":"uuid","type":"string"},"type":{"type":"string"}},"required":["attributes"],"type":"object"}},"required":["data"],"title":"InvoiceCreateRequest","type":"object"},"ReportResource":{"properties":{"attributes":{"$ref":"#/components/schemas/ReportAttributes"},"id":{"format":"uuid","type":"string"},"type":{"enum":["reports"],"type":"string"}},"required":["id","type","attributes"],"title":"ReportResource","type":"object"},"DisbursementResource":{"properties":{"attributes":{"$ref":"#/components/schemas/DisbursementAttributes"},"id":{"format":"uuid","type":"string"},"type":{"enum":["disbursements"],"type":"string"}},"required":["id","type","attributes"],"title":"DisbursementResource","type":"object"},"ContactResource":{"properties":{"attributes":{"$ref":"#/components/schemas/ContactAttributes"},"id":{"format":"uuid","type":"string"},"type":{"enum":["contacts"],"type":"string"}},"required":["id","type","attributes"],"title":"ContactResource","type":"object"},"KeyDateTypeListResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/KeyDateTypeResource"},"type":"array"},"links":{"$ref":"#/components/schemas/PaginationLinks"},"meta":{"$ref":"#/components/schemas/PaginationMeta"}},"title":"KeyDateTypeListResponse","type":"object"},"FolderResponse":{"properties":{"data":{"$ref":"#/components/schemas/FolderResource"},"meta":{"$ref":"#/components/schemas/ResourceMeta"}},"title":"FolderResponse","type":"object"},"CollectionMeta":{"properties":{"count":{"type":"integer"},"timestamp":{"format":"date-time","type":"string"}},"title":"CollectionMeta","type":"object"},"StepHistoryListResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/StepHistoryResource"},"type":"array"},"meta":{"$ref":"#/components/schemas/CollectionMeta"}},"title":"StepHistoryListResponse","type":"object"},"MatterTypeListResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/MatterTypeResource"},"type":"array"},"links":{"$ref":"#/components/schemas/PaginationLinks"},"meta":{"$ref":"#/components/schemas/PaginationMeta"}},"title":"MatterTypeListResponse","type":"object"},"ContactTypeUpdateRequest":{"additionalProperties":false,"properties":{"data":{"additionalProperties":false,"properties":{"attributes":{"additionalProperties":false,"properties":{"code":{"nullable":true,"type":"string"},"color":{"nullable":true,"type":"string"},"icon":{"nullable":true,"type":"string"},"is_active":{"nullable":true,"type":"boolean"},"name":{"nullable":true,"type":"string"}},"type":"object"},"id":{"format":"uuid","type":"string"},"type":{"type":"string"}},"required":["attributes"],"type":"object"}},"required":["data"],"title":"ContactTypeUpdateRequest","type":"object"},"MatterResource":{"properties":{"attributes":{"$ref":"#/components/schemas/MatterAttributes"},"id":{"format":"uuid","type":"string"},"type":{"enum":["matters"],"type":"string"}},"required":["id","type","attributes"],"title":"MatterResource","type":"object"},"StepUpdateRequest":{"additionalProperties":false,"properties":{"data":{"additionalProperties":false,"properties":{"attributes":{"additionalProperties":false,"properties":{"color":{"nullable":true,"type":"string"},"description":{"nullable":true,"type":"string"},"icon":{"nullable":true,"type":"string"},"is_initial":{"nullable":true,"type":"boolean"},"is_terminal":{"nullable":true,"type":"boolean"},"name":{"nullable":true,"type":"string"},"position":{"nullable":true,"type":"integer"},"reporting_step_id":{"format":"uuid","nullable":true,"type":"string"},"settings":{"additionalProperties":true,"nullable":true,"type":"object"},"step_type":{"enum":["sequential","conditional"],"nullable":true,"type":"string"},"workflow_id":{"format":"uuid","nullable":true,"type":"string"}},"type":"object"},"id":{"format":"uuid","type":"string"},"type":{"type":"string"}},"required":["attributes"],"type":"object"}},"required":["data"],"title":"StepUpdateRequest","type":"object"},"DocumentRequestItemAttributes":{"properties":{"description":{"nullable":true,"type":"string"},"id":{"format":"uuid","type":"string"},"name":{"type":"string"},"position":{"type":"integer"},"received_at":{"format":"date-time","nullable":true,"type":"string"},"status":{"type":"string"}},"title":"DocumentRequestItemAttributes","type":"object"},"ContactTypeListResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/ContactTypeResource"},"type":"array"},"links":{"$ref":"#/components/schemas/PaginationLinks"},"meta":{"$ref":"#/components/schemas/PaginationMeta"}},"title":"ContactTypeListResponse","type":"object"},"LeadContactResponse":{"properties":{"data":{"$ref":"#/components/schemas/LeadContactResource"},"meta":{"$ref":"#/components/schemas/ResourceMeta"}},"title":"LeadContactResponse","type":"object"},"LeadConversionResponse":{"properties":{"data":{"$ref":"#/components/schemas/LeadResource"},"meta":{"$ref":"#/components/schemas/LeadConversionMeta"}},"title":"LeadConversionResponse","type":"object"},"ErrorResponse":{"properties":{"errors":{"items":{"properties":{"detail":{"type":"string"},"source":{"properties":{"pointer":{"type":"string"}},"type":"object"},"status":{"description":"HTTP status code as a string","type":"string"},"title":{"description":"Short, human-readable summary of the error","type":"string"}},"type":"object"},"type":"array"}},"title":"ErrorResponse","type":"object"},"AutomationActionUpdateRequest":{"additionalProperties":false,"properties":{"data":{"additionalProperties":false,"properties":{"attributes":{"additionalProperties":false,"properties":{"action_type":{"type":"string"},"configuration":{"additionalProperties":true,"type":"object"},"continue_on_error":{"type":"boolean"},"delay_seconds":{"type":"integer"},"position":{"type":"integer"}},"type":"object"},"id":{"format":"uuid","type":"string"},"type":{"type":"string"}},"required":["attributes"],"type":"object"}},"required":["data"],"title":"AutomationActionUpdateRequest","type":"object"},"FieldDefinitionRequest":{"additionalProperties":false,"properties":{"data":{"additionalProperties":false,"properties":{"attributes":{"additionalProperties":false,"properties":{"code":{"type":"string"},"default_value":{"nullable":true,"type":"string"},"description":{"nullable":true,"type":"string"},"field_group_id":{"format":"uuid","nullable":true,"type":"string"},"field_type":{"type":"string"},"is_required":{"nullable":true,"type":"boolean"},"name":{"type":"string"},"options":{"items":{"additionalProperties":true,"type":"object"},"nullable":true,"type":"array"},"placeholder":{"nullable":true,"type":"string"},"position":{"nullable":true,"type":"integer"},"validation_rules":{"additionalProperties":true,"nullable":true,"type":"object"}},"required":["name","code","field_type"],"type":"object"},"id":{"format":"uuid","type":"string"},"type":{"type":"string"}},"required":["attributes"],"type":"object"}},"required":["data"],"title":"FieldDefinitionRequest","type":"object"},"LeadConvertRequest":{"additionalProperties":false,"properties":{"data":{"additionalProperties":false,"properties":{"attributes":{"additionalProperties":false,"properties":{"assigned_to_id":{"format":"uuid","nullable":true,"type":"string"},"jurisdiction_country":{"nullable":true,"pattern":"^[Aa][Uu]$","type":"string"},"jurisdiction_region":{"nullable":true,"pattern":"^(?i:NSW|VIC|QLD|SA|WA|TAS|ACT|NT)$","type":"string"},"matter_type_id":{"format":"uuid","nullable":true,"type":"string"},"team_id":{"format":"uuid","nullable":true,"type":"string"}},"type":"object"},"id":{"format":"uuid","type":"string"},"type":{"type":"string"}},"type":"object"}},"title":"LeadConvertRequest","type":"object"},"WorkflowAttributes":{"properties":{"description":{"nullable":true,"type":"string"},"inserted_at":{"format":"date-time","nullable":true,"type":"string"},"is_active":{"nullable":true,"type":"boolean"},"is_template":{"nullable":true,"type":"boolean"},"name":{"nullable":true,"type":"string"},"updated_at":{"format":"date-time","nullable":true,"type":"string"},"version":{"nullable":true,"type":"integer"}},"title":"WorkflowAttributes","type":"object"},"MatterTypeResource":{"properties":{"attributes":{"$ref":"#/components/schemas/MatterTypeAttributes"},"id":{"format":"uuid","type":"string"},"type":{"enum":["matter_types"],"type":"string"}},"required":["id","type","attributes"],"title":"MatterTypeResource","type":"object"},"WorkflowResource":{"properties":{"attributes":{"$ref":"#/components/schemas/WorkflowAttributes"},"id":{"format":"uuid","type":"string"},"type":{"enum":["workflows"],"type":"string"}},"required":["id","type","attributes"],"title":"WorkflowResource","type":"object"},"AutomationActionResource":{"properties":{"attributes":{"$ref":"#/components/schemas/AutomationActionAttributes"},"id":{"format":"uuid","type":"string"},"type":{"enum":["automation_actions"],"type":"string"}},"required":["id","type","attributes"],"title":"AutomationActionResource","type":"object"},"NoteAttributes":{"properties":{"body":{"type":"string"},"inserted_at":{"format":"date-time","type":"string"},"mentioned_user_ids":{"items":{"format":"uuid","type":"string"},"type":"array"},"task_id":{"format":"uuid","type":"string"},"updated_at":{"format":"date-time","type":"string"},"user_id":{"format":"uuid","nullable":true,"type":"string"}},"title":"NoteAttributes","type":"object"},"TimeEntryAttributes":{"properties":{"amount_cents":{"nullable":true,"type":"integer"},"category":{"nullable":true,"type":"string"},"date":{"format":"date","nullable":true,"type":"string"},"description":{"nullable":true,"type":"string"},"duration_minutes":{"nullable":true,"type":"integer"},"end_time":{"format":"date-time","nullable":true,"type":"string"},"inserted_at":{"format":"date-time","nullable":true,"type":"string"},"invoice_id":{"format":"uuid","nullable":true,"type":"string"},"is_billable":{"nullable":true,"type":"boolean"},"matter_id":{"format":"uuid","nullable":true,"type":"string"},"rate_cents":{"nullable":true,"type":"integer"},"source":{"nullable":true,"type":"string"},"start_time":{"format":"date-time","nullable":true,"type":"string"},"status":{"nullable":true,"type":"string"},"tags":{"items":{"type":"string"},"nullable":true,"type":"array"},"updated_at":{"format":"date-time","nullable":true,"type":"string"},"user_id":{"format":"uuid","nullable":true,"type":"string"}},"title":"TimeEntryAttributes","type":"object"},"MatterRoleResponse":{"properties":{"data":{"$ref":"#/components/schemas/MatterRoleResource"},"meta":{"$ref":"#/components/schemas/ResourceMeta"}},"title":"MatterRoleResponse","type":"object"},"ContactUpdateRequest":{"additionalProperties":false,"properties":{"data":{"additionalProperties":false,"properties":{"attributes":{"additionalProperties":false,"properties":{"abn":{"nullable":true,"type":"string"},"acn":{"nullable":true,"type":"string"},"address_line_1":{"nullable":true,"type":"string"},"address_line_2":{"nullable":true,"type":"string"},"company_name":{"nullable":true,"type":"string"},"contact_type_id":{"format":"uuid","nullable":true,"type":"string"},"country":{"nullable":true,"type":"string"},"date_of_birth":{"format":"date","nullable":true,"type":"string"},"email":{"nullable":true,"type":"string"},"first_name":{"nullable":true,"type":"string"},"is_company":{"nullable":true,"type":"boolean"},"last_name":{"nullable":true,"type":"string"},"mobile":{"nullable":true,"type":"string"},"notes":{"nullable":true,"type":"string"},"phone":{"nullable":true,"type":"string"},"postcode":{"nullable":true,"type":"string"},"preferred_name":{"nullable":true,"type":"string"},"state":{"nullable":true,"type":"string"},"suburb":{"nullable":true,"type":"string"},"tags":{"items":{"type":"string"},"nullable":true,"type":"array"}},"type":"object"},"id":{"format":"uuid","type":"string"},"type":{"type":"string"}},"required":["attributes"],"type":"object"}},"required":["data"],"title":"ContactUpdateRequest","type":"object"},"AutomationRequest":{"additionalProperties":false,"properties":{"data":{"additionalProperties":false,"properties":{"attributes":{"additionalProperties":false,"properties":{"conditions":{"items":{"$ref":"#/components/schemas/AutomationCondition"},"type":"array"},"description":{"nullable":true,"type":"string"},"is_active":{"type":"boolean"},"matter_type_id":{"format":"uuid","nullable":true,"type":"string"},"name":{"type":"string"},"position":{"type":"integer"},"trigger_config":{"additionalProperties":true,"type":"object"},"trigger_type":{"type":"string"}},"required":["name","trigger_type"],"type":"object"},"id":{"format":"uuid","type":"string"},"type":{"type":"string"}},"required":["attributes"],"type":"object"}},"required":["data"],"title":"AutomationRequest","type":"object"},"TaskTemplateListResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/TaskTemplateResource"},"type":"array"},"links":{"$ref":"#/components/schemas/PaginationLinks"},"meta":{"$ref":"#/components/schemas/PaginationMeta"}},"title":"TaskTemplateListResponse","type":"object"},"EmailTemplateRequest":{"additionalProperties":false,"properties":{"data":{"additionalProperties":false,"properties":{"attributes":{"additionalProperties":false,"properties":{"body_html":{"type":"string"},"body_text":{"nullable":true,"type":"string"},"category":{"nullable":true,"type":"string"},"editor_design":{"additionalProperties":true,"nullable":true,"type":"object"},"matter_type_id":{"format":"uuid","nullable":true,"type":"string"},"name":{"type":"string"},"step_id":{"format":"uuid","nullable":true,"type":"string"},"subject":{"type":"string"}},"required":["name","subject","body_html"],"type":"object"},"id":{"format":"uuid","type":"string"},"type":{"type":"string"}},"required":["attributes"],"type":"object"}},"required":["data"],"title":"EmailTemplateRequest","type":"object"},"LeadAttributes":{"properties":{"consultation_scheduled_at":{"format":"date-time","nullable":true,"type":"string"},"conversion_matter_id":{"format":"uuid","nullable":true,"type":"string"},"converted_at":{"format":"date-time","nullable":true,"type":"string"},"current_reporting_step_id":{"format":"uuid","nullable":true,"type":"string"},"inserted_at":{"format":"date-time","nullable":true,"type":"string"},"jurisdiction_country":{"nullable":true,"pattern":"^[Aa][Uu]$","type":"string"},"jurisdiction_region":{"nullable":true,"pattern":"^(?i:NSW|VIC|QLD|SA|WA|TAS|ACT|NT)$","type":"string"},"last_contacted_at":{"format":"date-time","nullable":true,"type":"string"},"lost_at":{"format":"date-time","nullable":true,"type":"string"},"lost_reason":{"nullable":true,"type":"string"},"matter_type_id":{"format":"uuid","nullable":true,"type":"string"},"metadata":{"additionalProperties":true,"nullable":true,"type":"object"},"name":{"nullable":true,"type":"string"},"next_follow_up_at":{"format":"date-time","nullable":true,"type":"string"},"owner_id":{"format":"uuid","nullable":true,"type":"string"},"pipeline_id":{"format":"uuid","nullable":true,"type":"string"},"pipeline_stage_id":{"format":"uuid","nullable":true,"type":"string"},"priority":{"enum":["low","normal","high","urgent"],"nullable":true,"type":"string"},"qualified_at":{"format":"date-time","nullable":true,"type":"string"},"referral_source":{"nullable":true,"type":"string"},"source":{"enum":["portal","intake_forms","email","chat","manual","api","import","referral"],"nullable":true,"type":"string"},"source_detail":{"nullable":true,"type":"string"},"status":{"enum":["open","qualified","won","lost","deferred","archived"],"nullable":true,"type":"string"},"summary":{"nullable":true,"type":"string"},"updated_at":{"format":"date-time","nullable":true,"type":"string"}},"title":"LeadAttributes","type":"object"},"ReportListResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/ReportResource"},"type":"array"},"links":{"$ref":"#/components/schemas/PaginationLinks"},"meta":{"$ref":"#/components/schemas/PaginationMeta"}},"title":"ReportListResponse","type":"object"},"FolderListResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/FolderResource"},"type":"array"},"links":{"$ref":"#/components/schemas/PaginationLinks"},"meta":{"$ref":"#/components/schemas/PaginationMeta"}},"title":"FolderListResponse","type":"object"},"EmailAttributes":{"properties":{"bcc_addresses":{"items":{"type":"string"},"type":"array"},"body_html":{"nullable":true,"type":"string"},"body_text":{"nullable":true,"type":"string"},"cc_addresses":{"items":{"type":"string"},"type":"array"},"from_address":{"type":"string"},"from_name":{"nullable":true,"type":"string"},"inserted_at":{"format":"date-time","type":"string"},"matter_id":{"format":"uuid","nullable":true,"type":"string"},"opened_at":{"format":"date-time","nullable":true,"type":"string"},"reply_to":{"nullable":true,"type":"string"},"scheduled_at":{"format":"date-time","nullable":true,"type":"string"},"sent_at":{"format":"date-time","nullable":true,"type":"string"},"sent_by_id":{"format":"uuid","nullable":true,"type":"string"},"source":{"nullable":true,"type":"string"},"status":{"enum":["queued","sending","sent","delivered","bounced","failed"],"type":"string"},"subject":{"type":"string"},"template_id":{"format":"uuid","nullable":true,"type":"string"},"to_addresses":{"items":{"type":"string"},"type":"array"},"updated_at":{"format":"date-time","type":"string"}},"title":"EmailAttributes","type":"object"},"TimeEntryResource":{"properties":{"attributes":{"$ref":"#/components/schemas/TimeEntryAttributes"},"id":{"format":"uuid","type":"string"},"type":{"enum":["time_entries"],"type":"string"}},"required":["id","type","attributes"],"title":"TimeEntryResource","type":"object"},"TaskResource":{"properties":{"attributes":{"$ref":"#/components/schemas/TaskAttributes"},"id":{"format":"uuid","type":"string"},"type":{"enum":["tasks"],"type":"string"}},"required":["id","type","attributes"],"title":"TaskResource","type":"object"},"TaskListResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/TaskResource"},"type":"array"},"links":{"$ref":"#/components/schemas/PaginationLinks"},"meta":{"$ref":"#/components/schemas/PaginationMeta"}},"title":"TaskListResponse","type":"object"},"KeyDateListResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/KeyDateResource"},"type":"array"},"links":{"$ref":"#/components/schemas/PaginationLinks"},"meta":{"$ref":"#/components/schemas/PaginationMeta"}},"title":"KeyDateListResponse","type":"object"},"AutomationResponse":{"properties":{"data":{"$ref":"#/components/schemas/AutomationResource"},"meta":{"$ref":"#/components/schemas/ResourceMeta"}},"title":"AutomationResponse","type":"object"},"AutomationUpdateRequest":{"additionalProperties":false,"properties":{"data":{"additionalProperties":false,"properties":{"attributes":{"additionalProperties":false,"properties":{"conditions":{"items":{"$ref":"#/components/schemas/AutomationCondition"},"type":"array"},"description":{"nullable":true,"type":"string"},"is_active":{"type":"boolean"},"matter_type_id":{"format":"uuid","nullable":true,"type":"string"},"name":{"type":"string"},"position":{"type":"integer"},"trigger_config":{"additionalProperties":true,"type":"object"},"trigger_type":{"type":"string"}},"type":"object"},"id":{"format":"uuid","type":"string"},"type":{"type":"string"}},"required":["attributes"],"type":"object"}},"required":["data"],"title":"AutomationUpdateRequest","type":"object"},"SendEmailRequest":{"additionalProperties":false,"properties":{"data":{"additionalProperties":false,"properties":{"attributes":{"additionalProperties":false,"properties":{"bcc":{"items":{"type":"string"},"type":"array"},"bcc_addresses":{"items":{"type":"string"},"type":"array"},"body_html":{"type":"string"},"body_text":{"nullable":true,"type":"string"},"cc":{"items":{"type":"string"},"type":"array"},"cc_addresses":{"items":{"type":"string"},"type":"array"},"from":{"nullable":true,"type":"string"},"from_address":{"nullable":true,"type":"string"},"matter_id":{"format":"uuid","nullable":true,"type":"string"},"scheduled_at":{"format":"date-time","nullable":true,"type":"string"},"subject":{"type":"string"},"template_id":{"format":"uuid","nullable":true,"type":"string"},"to":{"items":{"type":"string"},"type":"array"},"to_addresses":{"items":{"type":"string"},"type":"array"}},"required":["subject","body_html"],"type":"object"},"id":{"format":"uuid","type":"string"},"type":{"type":"string"}},"required":["attributes"],"type":"object"}},"required":["data"],"title":"SendEmailRequest","type":"object"},"TaskUpdateRequest":{"additionalProperties":false,"properties":{"data":{"additionalProperties":false,"properties":{"attributes":{"additionalProperties":false,"properties":{"assigned_to_id":{"format":"uuid","nullable":true,"type":"string"},"category":{"nullable":true,"type":"string"},"description":{"nullable":true,"type":"string"},"due_date":{"format":"date","nullable":true,"type":"string"},"matter_id":{"format":"uuid","nullable":true,"type":"string"},"name":{"nullable":true,"type":"string"},"parent_task_id":{"format":"uuid","nullable":true,"type":"string"},"priority":{"enum":["low","normal","high","urgent"],"nullable":true,"type":"string"},"status":{"enum":["pending","in_progress","completed","cancelled","blocked"],"nullable":true,"type":"string"},"tags":{"items":{"type":"string"},"nullable":true,"type":"array"}},"type":"object"},"id":{"format":"uuid","type":"string"},"type":{"type":"string"}},"required":["attributes"],"type":"object"}},"required":["data"],"title":"TaskUpdateRequest","type":"object"},"AutomationActionListResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/AutomationActionResource"},"type":"array"},"meta":{"$ref":"#/components/schemas/CollectionMeta"}},"title":"AutomationActionListResponse","type":"object"},"FolderResource":{"properties":{"attributes":{"$ref":"#/components/schemas/FolderAttributes"},"id":{"format":"uuid","type":"string"},"type":{"enum":["folders"],"type":"string"}},"required":["id","type","attributes"],"title":"FolderResource","type":"object"},"DocumentResource":{"properties":{"attributes":{"$ref":"#/components/schemas/DocumentAttributes"},"id":{"format":"uuid","type":"string"},"type":{"enum":["documents"],"type":"string"}},"required":["id","type","attributes"],"title":"DocumentResource","type":"object"},"KeyDateResource":{"properties":{"attributes":{"$ref":"#/components/schemas/KeyDateAttributes"},"id":{"format":"uuid","type":"string"},"type":{"enum":["key_dates"],"type":"string"}},"required":["id","type","attributes"],"title":"KeyDateResource","type":"object"},"StepChangeResponse":{"properties":{"data":{"properties":{"current_reporting_step_id":{"format":"uuid","nullable":true,"type":"string"},"current_step_id":{"format":"uuid","nullable":true,"type":"string"},"id":{"format":"uuid","type":"string"},"message":{"type":"string"}},"required":["id","message"],"type":"object"}},"title":"StepChangeResponse","type":"object"},"FieldDefinitionResource":{"properties":{"attributes":{"$ref":"#/components/schemas/FieldDefinitionAttributes"},"id":{"format":"uuid","type":"string"},"type":{"enum":["field_definitions"],"type":"string"}},"required":["id","type","attributes"],"title":"FieldDefinitionResource","type":"object"},"StepResource":{"properties":{"attributes":{"$ref":"#/components/schemas/StepAttributes"},"id":{"format":"uuid","type":"string"},"type":{"enum":["steps"],"type":"string"}},"required":["id","type","attributes"],"title":"StepResource","type":"object"},"WorkflowResponse":{"properties":{"data":{"$ref":"#/components/schemas/WorkflowResource"},"meta":{"$ref":"#/components/schemas/ResourceMeta"}},"title":"WorkflowResponse","type":"object"},"KeyDateTypeAttributes":{"properties":{"auto_complete":{"nullable":true,"type":"boolean"},"code":{"nullable":true,"type":"string"},"color":{"nullable":true,"type":"string"},"default_reminder_days":{"nullable":true,"type":"integer"},"description":{"nullable":true,"type":"string"},"icon":{"nullable":true,"type":"string"},"inserted_at":{"format":"date-time","nullable":true,"type":"string"},"is_milestone":{"nullable":true,"type":"boolean"},"matter_type_ids":{"items":{"format":"uuid","type":"string"},"nullable":true,"type":"array"},"name":{"nullable":true,"type":"string"},"position":{"nullable":true,"type":"integer"},"updated_at":{"format":"date-time","nullable":true,"type":"string"}},"title":"KeyDateTypeAttributes","type":"object"}},"securitySchemes":{"bearer":{"bearerFormat":"API Key","scheme":"bearer","type":"http"}}},"info":{"description":"RESTful API for MatterFirst: legal practice management.\nAll endpoints require Bearer token authentication via API key.\nResponses follow JSON:API-like conventions.\n","title":"MatterFirst API","version":"1.0.0"},"openapi":"3.0.0","paths":{"/api/v1/calendar-events/{id}":{"delete":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.CalendarEventsController.delete","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"204":{"description":"Deleted"}},"security":[{"bearer":[]}],"summary":"Delete a calendar event","tags":["Calendar Events"]},"get":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.CalendarEventsController.show","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CalendarEventResponse"}}},"description":"Calendar event"}},"security":[{"bearer":[]}],"summary":"Get a calendar event","tags":["Calendar Events"]},"patch":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.CalendarEventsController.update (2)","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CalendarEventUpdateRequest"}}},"description":"Calendar event params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CalendarEventResponse"}}},"description":"Updated"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation errors"}},"security":[{"bearer":[]}],"summary":"Update a calendar event","tags":["Calendar Events"]},"put":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.CalendarEventsController.update","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CalendarEventUpdateRequest"}}},"description":"Calendar event params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CalendarEventResponse"}}},"description":"Updated"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation errors"}},"security":[{"bearer":[]}],"summary":"Update a calendar event","tags":["Calendar Events"]}},"/api/v1/email-templates/{id}":{"delete":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.EmailTemplatesController.delete","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"204":{"description":"Deleted"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Template is in use"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation errors"}},"security":[{"bearer":[]}],"summary":"Delete an email template","tags":["Email Templates"]},"get":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.EmailTemplatesController.show","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailTemplateResponse"}}},"description":"Email template"}},"security":[{"bearer":[]}],"summary":"Get an email template","tags":["Email Templates"]},"patch":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.EmailTemplatesController.update (2)","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailTemplateUpdateRequest"}}},"description":"Email template params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailTemplateResponse"}}},"description":"Updated"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation errors"}},"security":[{"bearer":[]}],"summary":"Update an email template","tags":["Email Templates"]},"put":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.EmailTemplatesController.update","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailTemplateUpdateRequest"}}},"description":"Email template params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailTemplateResponse"}}},"description":"Updated"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation errors"}},"security":[{"bearer":[]}],"summary":"Update an email template","tags":["Email Templates"]}},"/api/v1/field-groups":{"get":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.FieldGroupsController.index","parameters":[{"description":"","in":"query","name":"matter_type_id","required":false,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FieldGroupListResponse"}}},"description":"Field group list"}},"security":[{"bearer":[]}],"summary":"List field groups","tags":["Field Groups"]},"post":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.FieldGroupsController.create","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FieldGroupRequest"}}},"description":"Field group params","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FieldGroupResponse"}}},"description":"Created"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation errors"}},"security":[{"bearer":[]}],"summary":"Create a field group","tags":["Field Groups"]}},"/api/v1/task-templates/{id}":{"delete":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.TaskTemplatesController.delete","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"204":{"description":"Deleted"}},"security":[{"bearer":[]}],"summary":"Delete a task template","tags":["Task Templates"]},"get":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.TaskTemplatesController.show","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskTemplateResponse"}}},"description":"Task template"}},"security":[{"bearer":[]}],"summary":"Get a task template","tags":["Task Templates"]},"patch":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.TaskTemplatesController.update (2)","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskTemplateUpdateRequest"}}},"description":"Task template params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskTemplateResponse"}}},"description":"Updated"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation errors"}},"security":[{"bearer":[]}],"summary":"Update a task template","tags":["Task Templates"]},"put":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.TaskTemplatesController.update","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskTemplateUpdateRequest"}}},"description":"Task template params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskTemplateResponse"}}},"description":"Updated"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation errors"}},"security":[{"bearer":[]}],"summary":"Update a task template","tags":["Task Templates"]}},"/api/v1/document-requests/{id}/close":{"post":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.DocumentRequestsController.close","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentRequestResponse"}}},"description":"Closed document request"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation errors"}},"security":[{"bearer":[]}],"summary":"Close a secure document request upload link","tags":["Document Requests"]}},"/api/v1/documents":{"get":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.DocumentsController.index","parameters":[{"description":"","in":"query","name":"filter","required":false,"schema":{"additionalProperties":true,"type":"object"}},{"description":"","in":"query","name":"page_number","required":false,"schema":{"type":"integer"}},{"description":"","in":"query","name":"page_size","required":false,"schema":{"type":"integer"}},{"description":"","in":"query","name":"sort","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentListResponse"}}},"description":"Document list"}},"security":[{"bearer":[]}],"summary":"List documents","tags":["Documents"]},"post":{"callbacks":{},"description":"Second half of the two-step upload flow: registers the document row for a\nfile already PUT to the presigned URL from `POST /documents/uploads`. The\nupload is verified to exist in storage before the document is created.\n","operationId":"MatterFirstWeb.API.V1.DocumentsController.create","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentUploadRequest"}}},"description":"Document params","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentResponse"}}},"description":"Created document"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation errors"}},"security":[{"bearer":[]}],"summary":"Register an uploaded document","tags":["Documents"]}},"/api/v1/workflows":{"get":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.WorkflowsController.index","parameters":[{"description":"","in":"query","name":"page_number","required":false,"schema":{"type":"integer"}},{"description":"","in":"query","name":"page_size","required":false,"schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowListResponse"}}},"description":"Workflow list"}},"security":[{"bearer":[]}],"summary":"List workflows","tags":["Workflows"]},"post":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.WorkflowsController.create","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowRequest"}}},"description":"Workflow params","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowResponse"}}},"description":"Created workflow"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation errors"}},"security":[{"bearer":[]}],"summary":"Create a workflow","tags":["Workflows"]}},"/api/v1/key-date-types/{id}":{"delete":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.KeyDateTypesController.delete","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"204":{"description":"Deleted"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Key date type is in use"}},"security":[{"bearer":[]}],"summary":"Delete a key date type","tags":["Key Date Types"]},"get":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.KeyDateTypesController.show","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyDateTypeResponse"}}},"description":"Key date type"}},"security":[{"bearer":[]}],"summary":"Get a key date type","tags":["Key Date Types"]},"patch":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.KeyDateTypesController.update (2)","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyDateTypeUpdateRequest"}}},"description":"Key date type params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyDateTypeResponse"}}},"description":"Updated"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation errors"}},"security":[{"bearer":[]}],"summary":"Update a key date type","tags":["Key Date Types"]},"put":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.KeyDateTypesController.update","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyDateTypeUpdateRequest"}}},"description":"Key date type params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyDateTypeResponse"}}},"description":"Updated"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation errors"}},"security":[{"bearer":[]}],"summary":"Update a key date type","tags":["Key Date Types"]}},"/api/v1/contact-types":{"get":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.ContactTypesController.index","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactTypeListResponse"}}},"description":"Contact type list"}},"security":[{"bearer":[]}],"summary":"List contact types","tags":["Contact Types"]},"post":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.ContactTypesController.create","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactTypeRequest"}}},"description":"Contact type params","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactTypeResponse"}}},"description":"Created"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation errors"}},"security":[{"bearer":[]}],"summary":"Create a contact type","tags":["Contact Types"]}},"/api/v1/key-date-types":{"get":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.KeyDateTypesController.index","parameters":[{"description":"","in":"query","name":"matter_type_id","required":false,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyDateTypeListResponse"}}},"description":"Key date type list"}},"security":[{"bearer":[]}],"summary":"List key date types","tags":["Key Date Types"]},"post":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.KeyDateTypesController.create","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyDateTypeRequest"}}},"description":"Key date type params","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyDateTypeResponse"}}},"description":"Created"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation errors"}},"security":[{"bearer":[]}],"summary":"Create a key date type","tags":["Key Date Types"]}},"/api/v1/automations/{automation_id}/actions/{id}":{"delete":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.AutomationActionsController.delete","parameters":[{"description":"","in":"path","name":"automation_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"204":{"description":"Deleted"}},"security":[{"bearer":[]}],"summary":"Delete an automation action","tags":["Automation Actions"]},"patch":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.AutomationActionsController.update (2)","parameters":[{"description":"","in":"path","name":"automation_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutomationActionUpdateRequest"}}},"description":"Automation action params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutomationActionResponse"}}},"description":"Updated action"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation errors"}},"security":[{"bearer":[]}],"summary":"Update an automation action","tags":["Automation Actions"]},"put":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.AutomationActionsController.update","parameters":[{"description":"","in":"path","name":"automation_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutomationActionUpdateRequest"}}},"description":"Automation action params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutomationActionResponse"}}},"description":"Updated action"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation errors"}},"security":[{"bearer":[]}],"summary":"Update an automation action","tags":["Automation Actions"]}},"/api/v1/contact-types/{id}":{"get":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.ContactTypesController.show","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactTypeResponse"}}},"description":"Contact type"}},"security":[{"bearer":[]}],"summary":"Get a contact type","tags":["Contact Types"]},"patch":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.ContactTypesController.update (2)","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactTypeUpdateRequest"}}},"description":"Contact type params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactTypeResponse"}}},"description":"Updated"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation errors"}},"security":[{"bearer":[]}],"summary":"Update a contact type","tags":["Contact Types"]},"put":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.ContactTypesController.update","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactTypeUpdateRequest"}}},"description":"Contact type params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactTypeResponse"}}},"description":"Updated"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation errors"}},"security":[{"bearer":[]}],"summary":"Update a contact type","tags":["Contact Types"]}},"/api/v1/leads/{id}/contacts":{"post":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.LeadsController.add_contact","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadContactCreateRequest"}}},"description":"Lead contact params","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadContactResponse"}}},"description":"Created lead contact"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation errors"}},"security":[{"bearer":[]}],"summary":"Add a contact to a lead","tags":["Leads"]}},"/api/v1/leads":{"get":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.LeadsController.index","parameters":[{"description":"","in":"query","name":"filter","required":false,"schema":{"additionalProperties":true,"type":"object"}},{"description":"","in":"query","name":"page_number","required":false,"schema":{"type":"integer"}},{"description":"","in":"query","name":"page_size","required":false,"schema":{"type":"integer"}},{"description":"","in":"query","name":"sort","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadListResponse"}}},"description":"Lead list"}},"security":[{"bearer":[]}],"summary":"List leads","tags":["Leads"]},"post":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.LeadsController.create","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadCreateRequest"}}},"description":"Lead params","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadResponse"}}},"description":"Created lead"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation errors"}},"security":[{"bearer":[]}],"summary":"Create a lead","tags":["Leads"]}},"/api/v1/contacts":{"get":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.ContactsController.index","parameters":[{"description":"Field filters, e.g. `filter[email]=*@acme.com`. Also supports `filter[lead_id]=<uuid>` to return only the contacts linked to that lead.","in":"query","name":"filter","required":false,"schema":{"additionalProperties":true,"type":"object"}},{"description":"","in":"query","name":"page_number","required":false,"schema":{"type":"integer"}},{"description":"","in":"query","name":"page_size","required":false,"schema":{"type":"integer"}},{"description":"","in":"query","name":"sort","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactListResponse"}}},"description":"Contact list"}},"security":[{"bearer":[]}],"summary":"List contacts","tags":["Contacts"]},"post":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.ContactsController.create","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactCreateRequest"}}},"description":"Contact params","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactResponse"}}},"description":"Created contact"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation errors"}},"security":[{"bearer":[]}],"summary":"Create a contact","tags":["Contacts"]}},"/api/v1/matters/{matter_id}/field-groups/{field_group_id}/values/{id}":{"put":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.FieldValuesController.update","parameters":[{"description":"","in":"path","name":"matter_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"","in":"path","name":"field_group_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FieldValueUpdateRequest"}}},"description":"Field value params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FieldValueResponse"}}},"description":"Updated"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation errors"}},"security":[{"bearer":[]}],"summary":"Update a field value","tags":["Field Values"]}},"/api/v1/referral-contracts/{public_id}/spec":{"get":{"callbacks":{},"description":"Returns the OpenAPI spec describing the expected submission payload for a contract.","operationId":"MatterFirstWeb.API.V1.ReferralSubmissionsController.spec","parameters":[{"description":"Contract public ID","in":"path","name":"public_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"description":"OpenAPI 3.0.3 specification","properties":{"info":{"description":"API info","type":"object"},"openapi":{"type":"string"},"paths":{"description":"API paths","type":"object"}},"type":"object"}}},"description":"OpenAPI spec"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Access denied"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Contract not found"}},"security":[{"bearer":[]}],"summary":"Get contract submission spec","tags":["Referral Submissions"]}},"/api/v1/emails/send":{"post":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.EmailsController.send_email","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendEmailRequest"}}},"description":"Email params","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailResponse"}}},"description":"Sent"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation errors"}},"security":[{"bearer":[]}],"summary":"Send an email","tags":["Emails"]}},"/api/v1/key-dates":{"get":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.KeyDatesController.index","parameters":[{"description":"","in":"query","name":"matter_id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyDateListResponse"}}},"description":"Key date list"}},"security":[{"bearer":[]}],"summary":"List key dates for a matter","tags":["Key Dates"]},"post":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.KeyDatesController.create","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyDateRequest"}}},"description":"Key date params","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyDateResponse"}}},"description":"Created"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation errors"}},"security":[{"bearer":[]}],"summary":"Create a key date","tags":["Key Dates"]}},"/api/v1/invoices/{id}/send":{"post":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.InvoicesController.send_invoice","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceResponse"}}},"description":"Sent invoice"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Send error"}},"security":[{"bearer":[]}],"summary":"Send an invoice","tags":["Invoices"]}},"/api/v1/tasks/{task_id}/notes/{id}":{"delete":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.NotesController.delete","parameters":[{"description":"","in":"path","name":"task_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"204":{"description":"Deleted"}},"security":[{"bearer":[]}],"summary":"Delete a note","tags":["Notes"]},"get":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.NotesController.show","parameters":[{"description":"","in":"path","name":"task_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoteResponse"}}},"description":"Note"}},"security":[{"bearer":[]}],"summary":"Get a note","tags":["Notes"]},"patch":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.NotesController.update (2)","parameters":[{"description":"","in":"path","name":"task_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoteUpdateRequest"}}},"description":"Note params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoteResponse"}}},"description":"Updated note"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation errors"}},"security":[{"bearer":[]}],"summary":"Update a note","tags":["Notes"]},"put":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.NotesController.update","parameters":[{"description":"","in":"path","name":"task_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoteUpdateRequest"}}},"description":"Note params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoteResponse"}}},"description":"Updated note"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation errors"}},"security":[{"bearer":[]}],"summary":"Update a note","tags":["Notes"]}},"/api/v1/workflows/{workflow_id}/steps":{"get":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.StepsController.index","parameters":[{"description":"","in":"path","name":"workflow_id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StepListResponse"}}},"description":"Step list"}},"security":[{"bearer":[]}],"summary":"List steps for a workflow","tags":["Steps"]},"post":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.StepsController.create","parameters":[{"description":"","in":"path","name":"workflow_id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StepRequest"}}},"description":"Step params","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StepResponse"}}},"description":"Created step"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation errors"}},"security":[{"bearer":[]}],"summary":"Create a step","tags":["Steps"]}},"/api/v1/automations/{id}":{"delete":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.AutomationsController.delete","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"204":{"description":"Deleted"}},"security":[{"bearer":[]}],"summary":"Delete an automation","tags":["Automations"]},"get":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.AutomationsController.show","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutomationResponse"}}},"description":"Automation"}},"security":[{"bearer":[]}],"summary":"Get an automation","tags":["Automations"]},"patch":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.AutomationsController.update (2)","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutomationUpdateRequest"}}},"description":"Automation params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutomationResponse"}}},"description":"Updated automation"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation errors"}},"security":[{"bearer":[]}],"summary":"Update an automation","tags":["Automations"]},"put":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.AutomationsController.update","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutomationUpdateRequest"}}},"description":"Automation params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutomationResponse"}}},"description":"Updated automation"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation errors"}},"security":[{"bearer":[]}],"summary":"Update an automation","tags":["Automations"]}},"/api/v1/workflows/{workflow_id}/steps/{id}":{"delete":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.StepsController.delete","parameters":[{"description":"","in":"path","name":"workflow_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"204":{"description":"Deleted"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Dependency error"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Delete error"}},"security":[{"bearer":[]}],"summary":"Delete a step","tags":["Steps"]},"get":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.StepsController.show","parameters":[{"description":"","in":"path","name":"workflow_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StepResponse"}}},"description":"Step"}},"security":[{"bearer":[]}],"summary":"Get a step","tags":["Steps"]},"patch":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.StepsController.update (2)","parameters":[{"description":"","in":"path","name":"workflow_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StepUpdateRequest"}}},"description":"Step params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StepResponse"}}},"description":"Updated step"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation errors"}},"security":[{"bearer":[]}],"summary":"Update a step","tags":["Steps"]},"put":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.StepsController.update","parameters":[{"description":"","in":"path","name":"workflow_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StepUpdateRequest"}}},"description":"Step params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StepResponse"}}},"description":"Updated step"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation errors"}},"security":[{"bearer":[]}],"summary":"Update a step","tags":["Steps"]}},"/api/v1/key-dates/{id}":{"delete":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.KeyDatesController.delete","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"204":{"description":"Deleted"}},"security":[{"bearer":[]}],"summary":"Delete a key date","tags":["Key Dates"]},"get":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.KeyDatesController.show","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyDateResponse"}}},"description":"Key date"}},"security":[{"bearer":[]}],"summary":"Get a key date","tags":["Key Dates"]},"patch":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.KeyDatesController.update (2)","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyDateUpdateRequest"}}},"description":"Key date params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyDateResponse"}}},"description":"Updated"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation errors"}},"security":[{"bearer":[]}],"summary":"Update a key date","tags":["Key Dates"]},"put":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.KeyDatesController.update","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyDateUpdateRequest"}}},"description":"Key date params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyDateResponse"}}},"description":"Updated"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation errors"}},"security":[{"bearer":[]}],"summary":"Update a key date","tags":["Key Dates"]}},"/api/v1/documents/{id}/download":{"post":{"callbacks":{},"description":"Returns a short-lived, signed URL for the document's file. For `:s3`\nstorage this is a presigned, expiring S3 GET URL; for `:local` storage it\nis a signed link to `GET /documents/:id/content` that expires in\n900 seconds. Either way the URL carries its own\nauthorization and stops working once it expires. It is not a permanent,\npublic path.\n","operationId":"MatterFirstWeb.API.V1.DocumentsController.download","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"url":{"format":"uri","type":"string"}},"type":"object"}}},"description":"Download URL"}},"security":[{"bearer":[]}],"summary":"Get a download URL for a document","tags":["Documents"]}},"/api/v1/tasks":{"get":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.TasksController.index","parameters":[{"description":"","in":"query","name":"filter","required":false,"schema":{"additionalProperties":true,"type":"object"}},{"description":"","in":"query","name":"page_number","required":false,"schema":{"type":"integer"}},{"description":"","in":"query","name":"page_size","required":false,"schema":{"type":"integer"}},{"description":"","in":"query","name":"sort","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskListResponse"}}},"description":"Task list"}},"security":[{"bearer":[]}],"summary":"List tasks","tags":["Tasks"]},"post":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.TasksController.create","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskCreateRequest"}}},"description":"Task params","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskResponse"}}},"description":"Created task"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation errors"}},"security":[{"bearer":[]}],"summary":"Create a task","tags":["Tasks"]}},"/api/v1/referral-contracts/{public_id}/submissions":{"post":{"callbacks":{},"description":"Submit a referral against a contract. Authenticated with a partner API credential (mf_ref_ prefix).","operationId":"MatterFirstWeb.API.V1.ReferralSubmissionsController.create","parameters":[{"description":"Contract public ID","in":"path","name":"public_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"data":{"description":"Submission field data","type":"object"},"external_reference":{"description":"Partner-side reference ID","type":"string"}},"type":"object"}}},"description":"Referral submission payload","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"id":{"format":"uuid","type":"string"},"message":{"type":"string"},"missing_fields":{"items":{"type":"string"},"type":"array"},"status":{"type":"string"}},"type":"object"}}},"description":"Referral created"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Access denied"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Contract not found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Duplicate external_reference"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation error"}},"security":[{"bearer":[]}],"summary":"Submit a referral","tags":["Referral Submissions"]}},"/api/v1/document-request-templates":{"get":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.DocumentRequestTemplatesController.index","parameters":[{"description":"","in":"query","name":"matter_type_id","required":false,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentRequestTemplateListResponse"}}},"description":"Document request template list"}},"security":[{"bearer":[]}],"summary":"List document request templates","tags":["Document Request Templates"]},"post":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.DocumentRequestTemplatesController.create","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentRequestTemplateRequest"}}},"description":"Document request template params","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentRequestTemplateResponse"}}},"description":"Created"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation errors"}},"security":[{"bearer":[]}],"summary":"Create a document request template","tags":["Document Request Templates"]}},"/api/v1/invoices":{"get":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.InvoicesController.index","parameters":[{"description":"","in":"query","name":"filter","required":false,"schema":{"additionalProperties":true,"type":"object"}},{"description":"","in":"query","name":"page_number","required":false,"schema":{"type":"integer"}},{"description":"","in":"query","name":"page_size","required":false,"schema":{"type":"integer"}},{"description":"","in":"query","name":"sort","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceListResponse"}}},"description":"Invoice list"}},"security":[{"bearer":[]}],"summary":"List invoices","tags":["Invoices"]},"post":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.InvoicesController.create","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceCreateRequest"}}},"description":"Invoice params","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceResponse"}}},"description":"Created invoice"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation errors"}},"security":[{"bearer":[]}],"summary":"Create an invoice","tags":["Invoices"]}},"/api/v1/calendar-events":{"get":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.CalendarEventsController.index","parameters":[{"description":"","in":"query","name":"page_number","required":false,"schema":{"type":"integer"}},{"description":"","in":"query","name":"page_size","required":false,"schema":{"type":"integer"}},{"description":"","in":"query","name":"sort","required":false,"schema":{"type":"string"}},{"description":"","in":"query","name":"start_date","required":false,"schema":{"format":"date","type":"string"}},{"description":"","in":"query","name":"end_date","required":false,"schema":{"format":"date","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CalendarEventListResponse"}}},"description":"Calendar event list"}},"security":[{"bearer":[]}],"summary":"List calendar events","tags":["Calendar Events"]},"post":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.CalendarEventsController.create","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CalendarEventRequest"}}},"description":"Calendar event params","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CalendarEventResponse"}}},"description":"Created"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation errors"}},"security":[{"bearer":[]}],"summary":"Create a calendar event","tags":["Calendar Events"]}},"/api/v1/matters/{matter_id}/roles":{"get":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.MatterRolesController.index","parameters":[{"description":"","in":"path","name":"matter_id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MatterRoleListResponse"}}},"description":"Role list"}},"security":[{"bearer":[]}],"summary":"List roles for a matter","tags":["Matter Roles"]},"post":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.MatterRolesController.create","parameters":[{"description":"","in":"path","name":"matter_id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MatterRoleRequest"}}},"description":"Role params","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MatterRoleResponse"}}},"description":"Created role"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation errors"}},"security":[{"bearer":[]}],"summary":"Add a role to a matter","tags":["Matter Roles"]}},"/api/v1/matters/{matter_id}/roles/{id}":{"delete":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.MatterRolesController.delete","parameters":[{"description":"","in":"path","name":"matter_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"204":{"description":"Deleted"}},"security":[{"bearer":[]}],"summary":"Remove a role from a matter","tags":["Matter Roles"]},"get":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.MatterRolesController.show","parameters":[{"description":"","in":"path","name":"matter_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MatterRoleResponse"}}},"description":"Role"}},"security":[{"bearer":[]}],"summary":"Get a matter role","tags":["Matter Roles"]},"patch":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.MatterRolesController.update (2)","parameters":[{"description":"","in":"path","name":"matter_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MatterRoleUpdateRequest"}}},"description":"Role params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MatterRoleResponse"}}},"description":"Updated role"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation errors"}},"security":[{"bearer":[]}],"summary":"Update a matter role","tags":["Matter Roles"]},"put":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.MatterRolesController.update","parameters":[{"description":"","in":"path","name":"matter_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MatterRoleUpdateRequest"}}},"description":"Role params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MatterRoleResponse"}}},"description":"Updated role"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation errors"}},"security":[{"bearer":[]}],"summary":"Update a matter role","tags":["Matter Roles"]}},"/api/v1/leads/{id}/close-lost":{"post":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.LeadsController.close_lost","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadCloseLostRequest"}}},"description":"Close-lost params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadResponse"}}},"description":"Lead marked lost"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Failed"}},"security":[{"bearer":[]}],"summary":"Mark a lead as lost","tags":["Leads"]}},"/api/v1/matters/{matter_id}/transitions":{"get":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.StepsController.available_transitions","parameters":[{"description":"","in":"path","name":"matter_id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AvailableTransitionsResponse"}}},"description":"Available transitions"}},"security":[{"bearer":[]}],"summary":"Get available step transitions for a matter","tags":["Steps"]}},"/api/v1/document-requests/{id}":{"get":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.DocumentRequestsController.show","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentRequestResponse"}}},"description":"Document request"}},"security":[{"bearer":[]}],"summary":"Get a secure document request","tags":["Document Requests"]}},"/api/v1/contacts/{id}/merge":{"post":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.ContactsController.merge","parameters":[{"description":"Primary contact ID","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactMergeRequest"}}},"description":"Merge params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactResponse"}}},"description":"Merged contact"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Merge error"}},"security":[{"bearer":[]}],"summary":"Merge two contacts","tags":["Contacts"]}},"/api/v1/time-entries/{id}":{"delete":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.TimeEntriesController.delete","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"204":{"description":"Deleted"}},"security":[{"bearer":[]}],"summary":"Delete a time entry","tags":["Time Entries"]},"get":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.TimeEntriesController.show","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TimeEntryResponse"}}},"description":"Time entry"}},"security":[{"bearer":[]}],"summary":"Get a time entry","tags":["Time Entries"]},"patch":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.TimeEntriesController.update (2)","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TimeEntryUpdateRequest"}}},"description":"Time entry params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TimeEntryResponse"}}},"description":"Updated time entry"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation errors"}},"security":[{"bearer":[]}],"summary":"Update a time entry","tags":["Time Entries"]},"put":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.TimeEntriesController.update","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TimeEntryUpdateRequest"}}},"description":"Time entry params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TimeEntryResponse"}}},"description":"Updated time entry"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation errors"}},"security":[{"bearer":[]}],"summary":"Update a time entry","tags":["Time Entries"]}},"/api/v1/matters":{"get":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.MattersController.index","parameters":[{"description":"","in":"query","name":"filter","required":false,"schema":{"additionalProperties":true,"type":"object"}},{"description":"","in":"query","name":"page_number","required":false,"schema":{"type":"integer"}},{"description":"","in":"query","name":"page_size","required":false,"schema":{"type":"integer"}},{"description":"","in":"query","name":"sort","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MatterListResponse"}}},"description":"Matter list"}},"security":[{"bearer":[]}],"summary":"List matters","tags":["Matters"]},"post":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.MattersController.create","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MatterCreateRequest"}}},"description":"Matter params","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MatterResponse"}}},"description":"Created matter"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation errors"}},"security":[{"bearer":[]}],"summary":"Create a matter","tags":["Matters"]}},"/api/v1/matters/{id}":{"delete":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.MattersController.delete","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"204":{"description":"Deleted"}},"security":[{"bearer":[]}],"summary":"Delete a matter","tags":["Matters"]},"get":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.MattersController.show","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MatterResponse"}}},"description":"Matter"}},"security":[{"bearer":[]}],"summary":"Get a matter","tags":["Matters"]},"patch":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.MattersController.update (2)","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MatterUpdateRequest"}}},"description":"Matter params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MatterResponse"}}},"description":"Updated matter"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation errors"}},"security":[{"bearer":[]}],"summary":"Update a matter","tags":["Matters"]},"put":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.MattersController.update","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MatterUpdateRequest"}}},"description":"Matter params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MatterResponse"}}},"description":"Updated matter"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation errors"}},"security":[{"bearer":[]}],"summary":"Update a matter","tags":["Matters"]}},"/api/v1/matter-types/{id}":{"get":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.MatterTypesController.show","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MatterTypeResponse"}}},"description":"Matter type"}},"security":[{"bearer":[]}],"summary":"Get a matter type","tags":["Matter Types"]},"patch":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.MatterTypesController.update (2)","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MatterTypeUpdateRequest"}}},"description":"Matter type params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MatterTypeResponse"}}},"description":"Updated matter type"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation errors"}},"security":[{"bearer":[]}],"summary":"Update a matter type","tags":["Matter Types"]},"put":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.MatterTypesController.update","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MatterTypeUpdateRequest"}}},"description":"Matter type params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MatterTypeResponse"}}},"description":"Updated matter type"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation errors"}},"security":[{"bearer":[]}],"summary":"Update a matter type","tags":["Matter Types"]}},"/api/v1/documents/{id}/content":{"get":{"callbacks":{},"description":"Serves the raw file for a document to a caller holding a valid signed\ntoken minted by `POST /documents/:id/download`. The token authorises this\nsingle document for a short window; no API key is required (and none is\naccepted) on this endpoint: the token is the whole authorization, exactly\nlike a presigned S3 URL.\n","operationId":"MatterFirstWeb.API.V1.DocumentsController.content","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"","in":"query","name":"token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/octet-stream":{"schema":{"format":"binary","type":"string"}}},"description":"File contents"}},"security":[{"bearer":[]}],"summary":"Fetch a document's file bytes via a signed link","tags":["Documents"]}},"/api/v1/documents/{id}/versions":{"get":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.DocumentsController.versions","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentCollectionResponse"}}},"description":"Version history"}},"security":[{"bearer":[]}],"summary":"Get version history for a document","tags":["Documents"]}},"/api/v1/matters/{matter_id}/field-groups/{field_group_id}/values":{"get":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.FieldValuesController.index","parameters":[{"description":"","in":"path","name":"matter_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"","in":"path","name":"field_group_id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FieldValueIndexResponse"}}},"description":"Field values"}},"security":[{"bearer":[]}],"summary":"Get field values for a matter + field group","tags":["Field Values"]}},"/api/v1/tasks/{task_id}/notes":{"get":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.NotesController.index","parameters":[{"description":"","in":"path","name":"task_id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoteListResponse"}}},"description":"Note list"}},"security":[{"bearer":[]}],"summary":"List notes (comments) for a task","tags":["Notes"]},"post":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.NotesController.create","parameters":[{"description":"","in":"path","name":"task_id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoteRequest"}}},"description":"Note params","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoteResponse"}}},"description":"Created note"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation errors"}},"security":[{"bearer":[]}],"summary":"Create a note on a task","tags":["Notes"]}},"/api/v1/field-groups/{id}":{"delete":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.FieldGroupsController.delete","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"204":{"description":"Deleted"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Field group is in use"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation errors"}},"security":[{"bearer":[]}],"summary":"Delete a field group","tags":["Field Groups"]},"get":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.FieldGroupsController.show","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FieldGroupResponse"}}},"description":"Field group"}},"security":[{"bearer":[]}],"summary":"Get a field group","tags":["Field Groups"]},"patch":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.FieldGroupsController.update (2)","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FieldGroupUpdateRequest"}}},"description":"Field group params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FieldGroupResponse"}}},"description":"Updated"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation errors"}},"security":[{"bearer":[]}],"summary":"Update a field group","tags":["Field Groups"]},"put":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.FieldGroupsController.update","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FieldGroupUpdateRequest"}}},"description":"Field group params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FieldGroupResponse"}}},"description":"Updated"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation errors"}},"security":[{"bearer":[]}],"summary":"Update a field group","tags":["Field Groups"]}},"/api/v1/disbursements":{"get":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.DisbursementsController.index","parameters":[{"description":"","in":"query","name":"page_number","required":false,"schema":{"type":"integer"}},{"description":"","in":"query","name":"page_size","required":false,"schema":{"type":"integer"}},{"description":"","in":"query","name":"sort","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DisbursementListResponse"}}},"description":"Disbursement list"}},"security":[{"bearer":[]}],"summary":"List disbursements","tags":["Disbursements"]},"post":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.DisbursementsController.create","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DisbursementRequest"}}},"description":"Disbursement params","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DisbursementResponse"}}},"description":"Created"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation errors"}},"security":[{"bearer":[]}],"summary":"Create a disbursement","tags":["Disbursements"]}},"/api/v1/contacts/{id}":{"delete":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.ContactsController.delete","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"204":{"description":"Deleted"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Still referenced"}},"security":[{"bearer":[]}],"summary":"Delete a contact","tags":["Contacts"]},"get":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.ContactsController.show","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactResponse"}}},"description":"Contact"}},"security":[{"bearer":[]}],"summary":"Get a contact","tags":["Contacts"]},"patch":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.ContactsController.update (2)","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactUpdateRequest"}}},"description":"Contact params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactResponse"}}},"description":"Updated contact"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation errors"}},"security":[{"bearer":[]}],"summary":"Update a contact","tags":["Contacts"]},"put":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.ContactsController.update","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactUpdateRequest"}}},"description":"Contact params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactResponse"}}},"description":"Updated contact"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation errors"}},"security":[{"bearer":[]}],"summary":"Update a contact","tags":["Contacts"]}},"/api/v1/document-requests":{"get":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.DocumentRequestsController.index","parameters":[{"description":"","in":"query","name":"filter","required":false,"schema":{"additionalProperties":true,"type":"object"}},{"description":"","in":"query","name":"page_number","required":false,"schema":{"type":"integer"}},{"description":"","in":"query","name":"page_size","required":false,"schema":{"type":"integer"}},{"description":"","in":"query","name":"sort","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentRequestListResponse"}}},"description":"Document request list"}},"security":[{"bearer":[]}],"summary":"List secure document requests","tags":["Document Requests"]},"post":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.DocumentRequestsController.create","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentRequestCreateRequest"}}},"description":"Document request params","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentRequestResponse"}}},"description":"Created document request"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation errors"}},"security":[{"bearer":[]}],"summary":"Create and send a secure document request","tags":["Document Requests"]}},"/api/v1/audit-log/{resource_type}/{resource_id}":{"get":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.AuditLogController.show","parameters":[{"description":"","in":"path","name":"resource_type","required":true,"schema":{"type":"string"}},{"description":"","in":"path","name":"resource_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"","in":"query","name":"page_number","required":false,"schema":{"type":"integer"}},{"description":"","in":"query","name":"page_size","required":false,"schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuditLogListResponse"}}},"description":"Audit log entries for resource"}},"security":[{"bearer":[]}],"summary":"Get audit log entries for a specific resource","tags":["Audit Log"]}},"/api/v1/invoices/{id}":{"delete":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.InvoicesController.delete","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"204":{"description":"Deleted"}},"security":[{"bearer":[]}],"summary":"Delete an invoice","tags":["Invoices"]},"get":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.InvoicesController.show","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceResponse"}}},"description":"Invoice"}},"security":[{"bearer":[]}],"summary":"Get an invoice","tags":["Invoices"]},"patch":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.InvoicesController.update (2)","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceUpdateRequest"}}},"description":"Invoice params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceResponse"}}},"description":"Updated invoice"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation errors"}},"security":[{"bearer":[]}],"summary":"Update an invoice","tags":["Invoices"]},"put":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.InvoicesController.update","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceUpdateRequest"}}},"description":"Invoice params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceResponse"}}},"description":"Updated invoice"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation errors"}},"security":[{"bearer":[]}],"summary":"Update an invoice","tags":["Invoices"]}},"/api/v1/tasks/{id}/complete":{"post":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.TasksController.complete","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskResponse"}}},"description":"Completed task"}},"security":[{"bearer":[]}],"summary":"Mark a task as completed","tags":["Tasks"]}},"/api/v1/tasks/{id}":{"delete":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.TasksController.delete","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"204":{"description":"Deleted"}},"security":[{"bearer":[]}],"summary":"Delete a task","tags":["Tasks"]},"get":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.TasksController.show","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskResponse"}}},"description":"Task"}},"security":[{"bearer":[]}],"summary":"Get a task","tags":["Tasks"]},"patch":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.TasksController.update (2)","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskUpdateRequest"}}},"description":"Task params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskResponse"}}},"description":"Updated task"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation errors"}},"security":[{"bearer":[]}],"summary":"Update a task","tags":["Tasks"]},"put":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.TasksController.update","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskUpdateRequest"}}},"description":"Task params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskResponse"}}},"description":"Updated task"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation errors"}},"security":[{"bearer":[]}],"summary":"Update a task","tags":["Tasks"]}},"/api/v1/matters/{matter_id}/step-history":{"get":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.StepsController.step_history","parameters":[{"description":"","in":"path","name":"matter_id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StepHistoryListResponse"}}},"description":"Step history"}},"security":[{"bearer":[]}],"summary":"Get step history for a matter","tags":["Steps"]}},"/api/v1/folders":{"get":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.FoldersController.index","parameters":[{"description":"","in":"query","name":"matter_id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FolderListResponse"}}},"description":"Folder list"}},"security":[{"bearer":[]}],"summary":"List folders for a matter","tags":["Folders"]},"post":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.FoldersController.create","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FolderRequest"}}},"description":"Folder params","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FolderResponse"}}},"description":"Created folder"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation errors"}},"security":[{"bearer":[]}],"summary":"Create a folder","tags":["Folders"]}},"/api/v1/referral-contracts/{public_id}/test":{"post":{"callbacks":{},"description":"Validates a referral payload against the contract without creating any records. Use this to test your integration.","operationId":"MatterFirstWeb.API.V1.ReferralSubmissionsController.test","parameters":[{"description":"Contract public ID","in":"path","name":"public_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"data":{"description":"Submission field data","type":"object"}},"type":"object"}}},"description":"Referral submission payload","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"message":{"type":"string"},"missing_fields":{"items":{"type":"string"},"type":"array"},"normalized":{"type":"object"},"valid":{"type":"boolean"}},"type":"object"}}},"description":"Validation result"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Access denied"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Contract not found"}},"security":[{"bearer":[]}],"summary":"Test a referral submission","tags":["Referral Submissions"]}},"/api/v1/time-entries":{"get":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.TimeEntriesController.index","parameters":[{"description":"","in":"query","name":"filter","required":false,"schema":{"additionalProperties":true,"type":"object"}},{"description":"","in":"query","name":"page_number","required":false,"schema":{"type":"integer"}},{"description":"","in":"query","name":"page_size","required":false,"schema":{"type":"integer"}},{"description":"","in":"query","name":"sort","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TimeEntryListResponse"}}},"description":"Time entry list"}},"security":[{"bearer":[]}],"summary":"List time entries","tags":["Time Entries"]},"post":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.TimeEntriesController.create","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TimeEntryRequest"}}},"description":"Time entry params","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TimeEntryResponse"}}},"description":"Created time entry"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation errors"}},"security":[{"bearer":[]}],"summary":"Create a time entry","tags":["Time Entries"]}},"/api/v1/email-templates":{"get":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.EmailTemplatesController.index","parameters":[{"description":"","in":"query","name":"page_number","required":false,"schema":{"type":"integer"}},{"description":"","in":"query","name":"page_size","required":false,"schema":{"type":"integer"}},{"description":"","in":"query","name":"sort","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailTemplateListResponse"}}},"description":"Email template list"}},"security":[{"bearer":[]}],"summary":"List email templates","tags":["Email Templates"]},"post":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.EmailTemplatesController.create","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailTemplateRequest"}}},"description":"Email template params","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailTemplateResponse"}}},"description":"Created"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation errors"}},"security":[{"bearer":[]}],"summary":"Create an email template","tags":["Email Templates"]}},"/api/v1/documents/uploads":{"post":{"callbacks":{},"description":"First half of the two-step upload flow. Returns a short-lived presigned\nURL; PUT the raw file bytes to it (with the returned headers), then\nregister the document with `POST /documents`, passing the returned\n`upload_key`.\n","operationId":"MatterFirstWeb.API.V1.DocumentsController.create_upload","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentUploadUrlRequest"}}},"description":"Upload params","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentUploadUrlResponse"}}},"description":"Presigned upload"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation errors"}},"security":[{"bearer":[]}],"summary":"Request a presigned upload URL for a document file","tags":["Documents"]}},"/api/v1/contact-types/{id}/deactivate":{"post":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.ContactTypesController.deactivate","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactTypeResponse"}}},"description":"Deactivated"}},"security":[{"bearer":[]}],"summary":"Deactivate a contact type","tags":["Contact Types"]}},"/api/v1/reports/{id}/run":{"post":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.ReportsController.run","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportRunRequest"}}},"description":"Run parameters","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportRunResponse"}}},"description":"Report results"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Report could not be run"}},"security":[{"bearer":[]}],"summary":"Run a report and return results","tags":["Reports"]}},"/api/v1/emails/schedule":{"post":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.EmailsController.schedule","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendEmailRequest"}}},"description":"Email params","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailResponse"}}},"description":"Scheduled"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation errors"}},"security":[{"bearer":[]}],"summary":"Schedule an email for future delivery","tags":["Emails"]}},"/api/v1/task-templates":{"get":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.TaskTemplatesController.index","parameters":[{"description":"","in":"query","name":"matter_type_id","required":false,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskTemplateListResponse"}}},"description":"Task template list"}},"security":[{"bearer":[]}],"summary":"List task templates","tags":["Task Templates"]},"post":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.TaskTemplatesController.create","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskTemplateRequest"}}},"description":"Task template params","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskTemplateResponse"}}},"description":"Created"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation errors"}},"security":[{"bearer":[]}],"summary":"Create a task template","tags":["Task Templates"]}},"/api/v1/emails/{id}":{"get":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.EmailsController.show","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailResponse"}}},"description":"Email"}},"security":[{"bearer":[]}],"summary":"Get an email","tags":["Emails"]}},"/api/v1/audit-log":{"get":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.AuditLogController.index","parameters":[{"description":"","in":"query","name":"page_number","required":false,"schema":{"type":"integer"}},{"description":"","in":"query","name":"page_size","required":false,"schema":{"type":"integer"}},{"description":"","in":"query","name":"resource_type","required":false,"schema":{"type":"string"}},{"description":"","in":"query","name":"action","required":false,"schema":{"type":"string"}},{"description":"","in":"query","name":"user_id","required":false,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuditLogListResponse"}}},"description":"Audit log entries"}},"security":[{"bearer":[]}],"summary":"List audit log entries","tags":["Audit Log"]}},"/api/v1/matters/{matter_id}/change-step":{"post":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.StepsController.change_step","parameters":[{"description":"","in":"path","name":"matter_id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangeStepRequest"}}},"description":"Change step params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StepChangeResponse"}}},"description":"Step changed"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Change error"}},"security":[{"bearer":[]}],"summary":"Change matter to a different step","tags":["Steps"]}},"/api/v1/disbursements/{id}":{"delete":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.DisbursementsController.delete","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"204":{"description":"Deleted"}},"security":[{"bearer":[]}],"summary":"Delete a disbursement","tags":["Disbursements"]},"get":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.DisbursementsController.show","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DisbursementResponse"}}},"description":"Disbursement"}},"security":[{"bearer":[]}],"summary":"Get a disbursement","tags":["Disbursements"]},"patch":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.DisbursementsController.update (2)","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DisbursementUpdateRequest"}}},"description":"Disbursement params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DisbursementResponse"}}},"description":"Updated"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation errors"}},"security":[{"bearer":[]}],"summary":"Update a disbursement","tags":["Disbursements"]},"put":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.DisbursementsController.update","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DisbursementUpdateRequest"}}},"description":"Disbursement params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DisbursementResponse"}}},"description":"Updated"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation errors"}},"security":[{"bearer":[]}],"summary":"Update a disbursement","tags":["Disbursements"]}},"/api/v1/role-templates/{id}":{"delete":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.RoleTemplatesController.delete","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"204":{"description":"Deleted"}},"security":[{"bearer":[]}],"summary":"Delete a role template","tags":["Role Templates"]},"get":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.RoleTemplatesController.show","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleTemplateResponse"}}},"description":"Role template"}},"security":[{"bearer":[]}],"summary":"Get a role template","tags":["Role Templates"]},"patch":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.RoleTemplatesController.update (2)","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleTemplateUpdateRequest"}}},"description":"Role template params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleTemplateResponse"}}},"description":"Updated"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation errors"}},"security":[{"bearer":[]}],"summary":"Update a role template","tags":["Role Templates"]},"put":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.RoleTemplatesController.update","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleTemplateUpdateRequest"}}},"description":"Role template params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleTemplateResponse"}}},"description":"Updated"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation errors"}},"security":[{"bearer":[]}],"summary":"Update a role template","tags":["Role Templates"]}},"/api/v1/leads/{id}/convert":{"post":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.LeadsController.convert","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadConvertRequest"}}},"description":"Convert params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadConversionResponse"}}},"description":"Converted"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conversion failed"}},"security":[{"bearer":[]}],"summary":"Convert a lead to a matter","tags":["Leads"]}},"/api/v1/reports":{"get":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.ReportsController.index","parameters":[{"description":"","in":"query","name":"filter","required":false,"schema":{"additionalProperties":true,"type":"object"}},{"description":"","in":"query","name":"page_number","required":false,"schema":{"type":"integer"}},{"description":"","in":"query","name":"page_size","required":false,"schema":{"type":"integer"}},{"description":"","in":"query","name":"sort","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportListResponse"}}},"description":"Report list"}},"security":[{"bearer":[]}],"summary":"List reports","tags":["Reports"]},"post":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.ReportsController.create","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportRequest"}}},"description":"Report params","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportResponse"}}},"description":"Created"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation errors"}},"security":[{"bearer":[]}],"summary":"Create a report","tags":["Reports"]}},"/api/v1/emails":{"get":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.EmailsController.index","parameters":[{"description":"","in":"query","name":"page_number","required":false,"schema":{"type":"integer"}},{"description":"","in":"query","name":"page_size","required":false,"schema":{"type":"integer"}},{"description":"","in":"query","name":"sort","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailListResponse"}}},"description":"Email list"}},"security":[{"bearer":[]}],"summary":"List emails","tags":["Emails"]}},"/api/v1/documents/{id}":{"delete":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.DocumentsController.delete","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"204":{"description":"Deleted"}},"security":[{"bearer":[]}],"summary":"Delete a document","tags":["Documents"]},"get":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.DocumentsController.show","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentResponse"}}},"description":"Document"}},"security":[{"bearer":[]}],"summary":"Get a document","tags":["Documents"]},"patch":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.DocumentsController.update (2)","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentUploadUpdateRequest"}}},"description":"Document params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentResponse"}}},"description":"Updated document"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation errors"}},"security":[{"bearer":[]}],"summary":"Update a document","tags":["Documents"]},"put":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.DocumentsController.update","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentUploadUpdateRequest"}}},"description":"Document params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentResponse"}}},"description":"Updated document"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation errors"}},"security":[{"bearer":[]}],"summary":"Update a document","tags":["Documents"]}},"/api/v1/reports/{id}":{"delete":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.ReportsController.delete","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"204":{"description":"Deleted"}},"security":[{"bearer":[]}],"summary":"Delete a report","tags":["Reports"]},"get":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.ReportsController.show","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportResponse"}}},"description":"Report"}},"security":[{"bearer":[]}],"summary":"Get a report","tags":["Reports"]},"patch":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.ReportsController.update (2)","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportUpdateRequest"}}},"description":"Report params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportResponse"}}},"description":"Updated"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation errors"}},"security":[{"bearer":[]}],"summary":"Update a report","tags":["Reports"]},"put":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.ReportsController.update","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportUpdateRequest"}}},"description":"Report params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportResponse"}}},"description":"Updated"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation errors"}},"security":[{"bearer":[]}],"summary":"Update a report","tags":["Reports"]}},"/api/v1/automations":{"get":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.AutomationsController.index","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutomationListResponse"}}},"description":"Automation list"}},"security":[{"bearer":[]}],"summary":"List automations","tags":["Automations"]},"post":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.AutomationsController.create","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutomationRequest"}}},"description":"Automation params","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutomationResponse"}}},"description":"Created automation"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation errors"}},"security":[{"bearer":[]}],"summary":"Create an automation","tags":["Automations"]}},"/api/v1/workflows/{id}":{"delete":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.WorkflowsController.delete","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"204":{"description":"Deleted"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Dependency error"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Delete error"}},"security":[{"bearer":[]}],"summary":"Delete a workflow","tags":["Workflows"]},"get":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.WorkflowsController.show","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowResponse"}}},"description":"Workflow"}},"security":[{"bearer":[]}],"summary":"Get a workflow","tags":["Workflows"]},"patch":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.WorkflowsController.update (2)","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowUpdateRequest"}}},"description":"Workflow params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowResponse"}}},"description":"Updated"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation errors"}},"security":[{"bearer":[]}],"summary":"Update a workflow","tags":["Workflows"]},"put":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.WorkflowsController.update","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowUpdateRequest"}}},"description":"Workflow params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowResponse"}}},"description":"Updated"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation errors"}},"security":[{"bearer":[]}],"summary":"Update a workflow","tags":["Workflows"]}},"/api/v1/matter-types":{"get":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.MatterTypesController.index","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MatterTypeListResponse"}}},"description":"Matter type list"}},"security":[{"bearer":[]}],"summary":"List matter types","tags":["Matter Types"]},"post":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.MatterTypesController.create","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MatterTypeRequest"}}},"description":"Matter type params","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MatterTypeResponse"}}},"description":"Created matter type"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation errors"}},"security":[{"bearer":[]}],"summary":"Create a matter type","tags":["Matter Types"]}},"/api/v1/field-groups/{field_group_id}/definitions":{"get":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.FieldDefinitionsController.index","parameters":[{"description":"","in":"path","name":"field_group_id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FieldDefinitionListResponse"}}},"description":"Field definition list"}},"security":[{"bearer":[]}],"summary":"List field definitions","tags":["Field Definitions"]},"post":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.FieldDefinitionsController.create","parameters":[{"description":"","in":"path","name":"field_group_id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FieldDefinitionRequest"}}},"description":"Field definition params","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FieldDefinitionResponse"}}},"description":"Created"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation errors"}},"security":[{"bearer":[]}],"summary":"Create a field definition","tags":["Field Definitions"]}},"/api/v1/workflows/{id}/clone":{"post":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.WorkflowsController.clone","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowCloneRequest"}}},"description":"Clone params","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowResponse"}}},"description":"Cloned workflow"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Clone error"}},"security":[{"bearer":[]}],"summary":"Clone a workflow","tags":["Workflows"]}},"/api/v1/automations/{automation_id}/actions":{"get":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.AutomationActionsController.index","parameters":[{"description":"","in":"path","name":"automation_id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutomationActionListResponse"}}},"description":"Automation action list"}},"security":[{"bearer":[]}],"summary":"List actions for an automation","tags":["Automation Actions"]},"post":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.AutomationActionsController.create","parameters":[{"description":"","in":"path","name":"automation_id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutomationActionRequest"}}},"description":"Automation action params","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutomationActionResponse"}}},"description":"Created action"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation errors"}},"security":[{"bearer":[]}],"summary":"Create an automation action","tags":["Automation Actions"]}},"/api/v1/document-request-templates/{id}":{"delete":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.DocumentRequestTemplatesController.delete","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"204":{"description":"Deleted"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Template is in use"}},"security":[{"bearer":[]}],"summary":"Delete a document request template","tags":["Document Request Templates"]},"get":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.DocumentRequestTemplatesController.show","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentRequestTemplateResponse"}}},"description":"Document request template"}},"security":[{"bearer":[]}],"summary":"Get a document request template","tags":["Document Request Templates"]},"patch":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.DocumentRequestTemplatesController.update (2)","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentRequestTemplateUpdateRequest"}}},"description":"Document request template params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentRequestTemplateResponse"}}},"description":"Updated"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation errors"}},"security":[{"bearer":[]}],"summary":"Update a document request template","tags":["Document Request Templates"]},"put":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.DocumentRequestTemplatesController.update","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentRequestTemplateUpdateRequest"}}},"description":"Document request template params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentRequestTemplateResponse"}}},"description":"Updated"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation errors"}},"security":[{"bearer":[]}],"summary":"Update a document request template","tags":["Document Request Templates"]}},"/api/v1/role-templates":{"get":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.RoleTemplatesController.index","parameters":[{"description":"","in":"query","name":"matter_type_id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleTemplateListResponse"}}},"description":"Role template list"}},"security":[{"bearer":[]}],"summary":"List role templates for a matter type","tags":["Role Templates"]},"post":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.RoleTemplatesController.create","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleTemplateRequest"}}},"description":"Role template params","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleTemplateResponse"}}},"description":"Created"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation errors"}},"security":[{"bearer":[]}],"summary":"Create a role template","tags":["Role Templates"]}},"/api/v1/field-groups/{field_group_id}/definitions/{id}":{"delete":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.FieldDefinitionsController.delete","parameters":[{"description":"","in":"path","name":"field_group_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"204":{"description":"Deleted"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Field definition is in use"}},"security":[{"bearer":[]}],"summary":"Delete a field definition","tags":["Field Definitions"]},"get":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.FieldDefinitionsController.show","parameters":[{"description":"","in":"path","name":"field_group_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FieldDefinitionResponse"}}},"description":"Field definition"}},"security":[{"bearer":[]}],"summary":"Get a field definition","tags":["Field Definitions"]},"patch":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.FieldDefinitionsController.update (2)","parameters":[{"description":"","in":"path","name":"field_group_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FieldDefinitionUpdateRequest"}}},"description":"Field definition params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FieldDefinitionResponse"}}},"description":"Updated"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation errors"}},"security":[{"bearer":[]}],"summary":"Update a field definition","tags":["Field Definitions"]},"put":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.FieldDefinitionsController.update","parameters":[{"description":"","in":"path","name":"field_group_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FieldDefinitionUpdateRequest"}}},"description":"Field definition params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FieldDefinitionResponse"}}},"description":"Updated"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation errors"}},"security":[{"bearer":[]}],"summary":"Update a field definition","tags":["Field Definitions"]}},"/api/v1/folders/{id}":{"delete":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.FoldersController.delete","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"204":{"description":"Deleted"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Dependency error"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Delete error"}},"security":[{"bearer":[]}],"summary":"Delete a folder","tags":["Folders"]},"get":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.FoldersController.show","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FolderResponse"}}},"description":"Folder"}},"security":[{"bearer":[]}],"summary":"Get a folder","tags":["Folders"]},"patch":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.FoldersController.update (2)","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FolderUpdateRequest"}}},"description":"Folder params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FolderResponse"}}},"description":"Updated folder"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation errors"}},"security":[{"bearer":[]}],"summary":"Update a folder","tags":["Folders"]},"put":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.FoldersController.update","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FolderUpdateRequest"}}},"description":"Folder params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FolderResponse"}}},"description":"Updated folder"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation errors"}},"security":[{"bearer":[]}],"summary":"Update a folder","tags":["Folders"]}},"/api/v1/leads/{id}":{"delete":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.LeadsController.delete","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"204":{"description":"Deleted"}},"security":[{"bearer":[]}],"summary":"Delete a lead","tags":["Leads"]},"get":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.LeadsController.show","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadResponse"}}},"description":"Lead"}},"security":[{"bearer":[]}],"summary":"Get a lead","tags":["Leads"]},"patch":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.LeadsController.update (2)","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadUpdateRequest"}}},"description":"Lead params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadResponse"}}},"description":"Updated lead"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation errors"}},"security":[{"bearer":[]}],"summary":"Update a lead","tags":["Leads"]},"put":{"callbacks":{},"operationId":"MatterFirstWeb.API.V1.LeadsController.update","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadUpdateRequest"}}},"description":"Lead params","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadResponse"}}},"description":"Updated lead"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Validation errors"}},"security":[{"bearer":[]}],"summary":"Update a lead","tags":["Leads"]}}},"security":[{"bearer":[]}],"servers":[{"description":"API v1","url":"/api/v1","variables":{}}],"tags":[]}