{"openapi":"3.1.0","info":{"title":"Moha API for AI assistants","version":"1.0.0","description":"Moha is an Employer of Record in the UAE: it employs people for companies that have no legal entity in the UAE, sponsors their work permits and visas, runs payroll through WPS and looks after them on arrival. how_to_hire_in_the_uae explains the process and the information needed. get_quote prices a hire. prepare_account (or prepare_hire for one person) returns a link: the person opens it, checks the details and creates their account, and the hires are added then. On the signed-in endpoint, tools act as the person within their role's rights, and every change is recorded in their activity log. The same tools are on MCP at https://employerofrecord.ae/mcp (no sign-in) and https://employerofrecord.ae/mcp/account (signed in)."},"servers":[{"url":"https://employerofrecord.ae"}],"paths":{"/api/v1/quote":{"get":{"operationId":"getQuote","summary":"Price a hire in the UAE","description":"Monthly and upfront cost of employing one person in the UAE through Moha, an Employer of Record: salary split, employer costs, government fees, insurance, our fee and VAT, plus how long the visa takes. No account needed.","parameters":[{"name":"monthly_salary_aed","in":"query","required":true,"schema":{"type":"number","description":"Total monthly package in AED: basic salary plus allowances. Example: 20000."}},{"name":"nationality","in":"query","required":true,"schema":{"type":"string","description":"The employee’s nationality, as a country name. Example: India."}},{"name":"emirate","in":"query","required":false,"schema":{"type":"string","enum":["Dubai","Abu Dhabi","Sharjah","Ajman","Ras Al Khaimah","Fujairah","Umm Al Quwain"],"description":"Where they will work. Defaults to Dubai."}},{"name":"inside_uae","in":"query","required":false,"schema":{"type":"boolean","description":"True if the person is already in the UAE. Defaults to false (coming from abroad)."}},{"name":"spouse","in":"query","required":false,"schema":{"type":"boolean","description":"True if a spouse will move with them on a family visa."}},{"name":"children","in":"query","required":false,"schema":{"type":"integer","minimum":0,"maximum":10,"description":"Children moving with them on family visas."}},{"name":"insurance","in":"query","required":false,"schema":{"type":"string","enum":["basic","standard","premium"],"description":"Health insurance plan. Defaults to standard."}}],"responses":{"200":{"description":"The quote"}}}},"/api/v1/hire-drafts":{"post":{"operationId":"prepareHire","summary":"Prepare a hire for the person to confirm","description":"Prepares one hire in the UAE without an account. Returns the quote and a link: the person opens it, checks the details and creates their Moha account. Moha checks the company before the hire goes ahead. Nothing is charged or sent to the employee before that.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"first_name":{"type":"string","description":"The employee’s first name."},"last_name":{"type":"string","description":"The employee’s last name."},"job_title":{"type":"string","description":"Their job title. It goes on the work permit, so use the real one."},"employee_email":{"type":"string","description":"The employee’s personal email, if known."},"start_date":{"type":"string","description":"Wanted start date, YYYY-MM-DD. At least two weeks from today; earlier dates are moved to the earliest possible."},"monthly_salary_aed":{"type":"number","description":"Total monthly package in AED: basic salary plus allowances. Example: 20000."},"nationality":{"type":"string","description":"The employee’s nationality, as a country name. Example: India."},"emirate":{"type":"string","enum":["Dubai","Abu Dhabi","Sharjah","Ajman","Ras Al Khaimah","Fujairah","Umm Al Quwain"],"description":"Where they will work. Defaults to Dubai."},"inside_uae":{"type":"boolean","description":"True if the person is already in the UAE. Defaults to false (coming from abroad)."},"spouse":{"type":"boolean","description":"True if a spouse will move with them on a family visa."},"children":{"type":"integer","minimum":0,"maximum":10,"description":"Children moving with them on family visas."},"insurance":{"type":"string","enum":["basic","standard","premium"],"description":"Health insurance plan. Defaults to standard."},"company_name":{"type":"string","description":"The hiring company’s name, to prefill the account."},"your_name":{"type":"string","description":"The name of the person you are helping, to prefill the account."},"your_email":{"type":"string","description":"Their work email, on their company’s domain, to prefill the account. Personal, forwarding and throwaway addresses are refused."}},"required":["first_name","last_name","job_title","monthly_salary_aed","nationality"],"additionalProperties":false}}}},"responses":{"201":{"description":"The prepared hire, with claim_url for the person"}}}},"/api/v1/guide":{"get":{"operationId":"howToHireInTheUae","summary":"How to hire in the UAE without a local company","description":"How hiring in the UAE works through Moha, an Employer of Record, for a company with no UAE entity: when it fits, the information needed about the hire and the company, the employee's documents, the steps, the timeline and the prices. No account needed.","responses":{"200":{"description":"The process, the information needed, documents, steps, timeline and prices"}}}},"/api/v1/accounts":{"post":{"operationId":"prepareAccount","summary":"Prepare a whole account for the person to confirm","description":"Prepares a Moha account without signing in: company profile, the person setting it up, one to ten hires and colleagues to invite. Returns the quotes and one link to confirm. Moha checks the company first; hires go ahead and colleagues are invited only once approved.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"company":{"type":"object","description":"The hiring company.","properties":{"name":{"type":"string","description":"The company’s legal or trading name."},"website":{"type":"string","description":"The company’s website, for example https://example.com."},"industry":{"type":"string","description":"What the company does, in a few words, for example software or logistics."},"headquarters_country":{"type":"string","description":"The country of the company’s head office, for example Germany."},"billing_email":{"type":"string","description":"Gets the invoices."}},"required":["name"],"additionalProperties":false},"you":{"type":"object","description":"The person setting up the account.","properties":{"name":{"type":"string","description":"Full name of the person setting up the account."},"email":{"type":"string","description":"Their work email, on their company’s domain. Personal, forwarding and throwaway addresses are refused."},"job_title":{"type":"string","description":"Their job title, for example Head of People."}},"additionalProperties":false},"hires":{"type":"array","minItems":1,"maxItems":10,"description":"The people to hire.","items":{"type":"object","properties":{"first_name":{"type":"string","description":"The employee’s first name."},"last_name":{"type":"string","description":"The employee’s last name."},"job_title":{"type":"string","description":"Their job title. It goes on the work permit, so use the real one."},"employee_email":{"type":"string","description":"The employee’s personal email, if known."},"start_date":{"type":"string","description":"Wanted start date, YYYY-MM-DD. At least two weeks from today; earlier dates are moved to the earliest possible."},"monthly_salary_aed":{"type":"number","description":"Total monthly package in AED: basic salary plus allowances. Example: 20000."},"nationality":{"type":"string","description":"The employee’s nationality, as a country name. Example: India."},"emirate":{"type":"string","enum":["Dubai","Abu Dhabi","Sharjah","Ajman","Ras Al Khaimah","Fujairah","Umm Al Quwain"],"description":"Where they will work. Defaults to Dubai."},"inside_uae":{"type":"boolean","description":"True if the person is already in the UAE. Defaults to false (coming from abroad)."},"spouse":{"type":"boolean","description":"True if a spouse will move with them on a family visa."},"children":{"type":"integer","minimum":0,"maximum":10,"description":"Children moving with them on family visas."},"insurance":{"type":"string","enum":["basic","standard","premium"],"description":"Health insurance plan. Defaults to standard."}},"required":["first_name","last_name","job_title","monthly_salary_aed","nationality"],"additionalProperties":false}},"team":{"type":"array","maxItems":10,"description":"Colleagues to invite when the account is created, each with a role.","items":{"type":"object","properties":{"name":{"type":"string","description":"The colleague’s full name."},"email":{"type":"string","description":"Their work email. The invitation goes there."},"role":{"type":"string","enum":["admin","hr","finance","manager","viewer"],"description":"Their role: admin (runs the account day to day), hr (people, hiring, time off, claims and documents), finance (validates payroll, pays invoices, decides claims), manager (approves leave and claims, no salaries) or viewer (follows along, no salaries or personal documents)."}},"required":["name","email","role"],"additionalProperties":false}}},"required":["company","hires"],"additionalProperties":false}}}},"responses":{"201":{"description":"The prepared account, with claim_url for the person"}}}},"/api/v1/hire-drafts/{draft_id}":{"get":{"operationId":"checkPreparedHire","summary":"Check a prepared hire","description":"Says whether the person has opened the link and created the account: waiting, claimed or expired.","parameters":[{"name":"draft_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"waiting, claimed or expired"}}}},"/api/v1/actions/get_my_workspace":{"post":{"operationId":"getMyWorkspace","summary":"My workspace","description":"The Moha workspace of the signed-in person: company, their roles and what they can do. Signed in: OAuth or an API key.","security":[{"oauth":["read"]},{"apiKey":[]}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Done"},"401":{"description":"Not signed in"},"403":{"description":"The role or the connection does not allow it"}}}},"/api/v1/actions/list_employees":{"post":{"operationId":"listEmployees","summary":"List employees","description":"Everyone employed for the company, with their stage (hiring, active, leaving). Salaries only show if the person’s role can see pay. Signed in: OAuth or an API key.","security":[{"oauth":["read"]},{"apiKey":[]}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Done"},"401":{"description":"Not signed in"},"403":{"description":"The role or the connection does not allow it"}}}},"/api/v1/actions/get_employee":{"post":{"operationId":"getEmployee","summary":"One employee","description":"The details of one employee: job, dates, visa journey and what happens next. Signed in: OAuth or an API key.","security":[{"oauth":["read"]},{"apiKey":[]}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"employee_id":{"type":"string","description":"An id from list_employees."}},"required":["employee_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Done"},"401":{"description":"Not signed in"},"403":{"description":"The role or the connection does not allow it"}}}},"/api/v1/actions/create_hire":{"post":{"operationId":"createHire","summary":"Hire someone","description":"Starts the hire of one employee in the signed-in company. Moha drafts the MOHRE offer letter and sends it to the company for approval before anything goes to the employee. Returns the employee id and the quote. Signed in: OAuth or an API key.","security":[{"oauth":["act"]},{"apiKey":[]}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"first_name":{"type":"string","description":"The employee’s first name."},"last_name":{"type":"string","description":"The employee’s last name."},"job_title":{"type":"string","description":"Their job title. It goes on the work permit, so use the real one."},"employee_email":{"type":"string","description":"The employee’s personal email, if known."},"start_date":{"type":"string","description":"Wanted start date, YYYY-MM-DD. At least two weeks from today; earlier dates are moved to the earliest possible."},"monthly_salary_aed":{"type":"number","description":"Total monthly package in AED: basic salary plus allowances. Example: 20000."},"nationality":{"type":"string","description":"The employee’s nationality, as a country name. Example: India."},"emirate":{"type":"string","enum":["Dubai","Abu Dhabi","Sharjah","Ajman","Ras Al Khaimah","Fujairah","Umm Al Quwain"],"description":"Where they will work. Defaults to Dubai."},"inside_uae":{"type":"boolean","description":"True if the person is already in the UAE. Defaults to false (coming from abroad)."},"spouse":{"type":"boolean","description":"True if a spouse will move with them on a family visa."},"children":{"type":"integer","minimum":0,"maximum":10,"description":"Children moving with them on family visas."},"insurance":{"type":"string","enum":["basic","standard","premium"],"description":"Health insurance plan. Defaults to standard."}},"required":["first_name","last_name","job_title","monthly_salary_aed","nationality"],"additionalProperties":false}}}},"responses":{"200":{"description":"Done"},"401":{"description":"Not signed in"},"403":{"description":"The role or the connection does not allow it"}}}},"/api/v1/actions/list_my_tasks":{"post":{"operationId":"listMyTasks","summary":"What is waiting on me","description":"Open decisions for the signed-in person: offer letters to approve, leave and expense claims to decide, payroll to confirm. Signed in: OAuth or an API key.","security":[{"oauth":["read"]},{"apiKey":[]}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Done"},"401":{"description":"Not signed in"},"403":{"description":"The role or the connection does not allow it"}}}},"/api/v1/actions/complete_task":{"post":{"operationId":"completeTask","summary":"Approve or complete a task","description":"Approves or completes one open task from list_my_tasks, such as approving an offer letter. Signed in: OAuth or an API key.","security":[{"oauth":["act"]},{"apiKey":[]}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"task_id":{"type":"string","description":"An id from list_my_tasks."}},"required":["task_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Done"},"401":{"description":"Not signed in"},"403":{"description":"The role or the connection does not allow it"}}}},"/api/v1/actions/list_time_off":{"post":{"operationId":"listTimeOff","summary":"Time off requests","description":"Leave requests, newest first, with the ones waiting for a decision. Signed in: OAuth or an API key.","security":[{"oauth":["read"]},{"apiKey":[]}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Done"},"401":{"description":"Not signed in"},"403":{"description":"The role or the connection does not allow it"}}}},"/api/v1/actions/decide_time_off":{"post":{"operationId":"decideTimeOff","summary":"Approve or decline time off","description":"Approves or declines one leave request. Signed in: OAuth or an API key.","security":[{"oauth":["act"]},{"apiKey":[]}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"leave_id":{"type":"string"},"decision":{"type":"string","enum":["approved","declined"]}},"required":["leave_id","decision"],"additionalProperties":false}}}},"responses":{"200":{"description":"Done"},"401":{"description":"Not signed in"},"403":{"description":"The role or the connection does not allow it"}}}},"/api/v1/actions/list_expense_claims":{"post":{"operationId":"listExpenseClaims","summary":"Expense claims","description":"Employees’ expense claims, with the ones waiting for a decision. Claims still undecided at the end of the 15th are approved automatically. Signed in: OAuth or an API key.","security":[{"oauth":["read"]},{"apiKey":[]}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Done"},"401":{"description":"Not signed in"},"403":{"description":"The role or the connection does not allow it"}}}},"/api/v1/actions/decide_expense_claim":{"post":{"operationId":"decideExpenseClaim","summary":"Approve or decline an expense claim","description":"Approves or declines one expense claim. Approved claims go on the next invoice and are paid to the employee once it is paid. Signed in: OAuth or an API key.","security":[{"oauth":["act"]},{"apiKey":[]}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"expense_id":{"type":"string"},"decision":{"type":"string","enum":["approved","declined"]}},"required":["expense_id","decision"],"additionalProperties":false}}}},"responses":{"200":{"description":"Done"},"401":{"description":"Not signed in"},"403":{"description":"The role or the connection does not allow it"}}}},"/api/v1/actions/list_payroll":{"post":{"operationId":"listPayroll","summary":"Payroll months","description":"Each payroll month with its status and dates: elements by the 15th, validation by the 19th, invoice on the 20th, funds two working days before payday, salaries on the last working day of the month. Signed in: OAuth or an API key.","security":[{"oauth":["read"]},{"apiKey":[]}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Done"},"401":{"description":"Not signed in"},"403":{"description":"The role or the connection does not allow it"}}}},"/api/v1/actions/list_invoices":{"post":{"operationId":"listInvoices","summary":"Invoices","description":"Invoices with what is left to pay, the due date and the reference to use for the bank transfer. Signed in: OAuth or an API key.","security":[{"oauth":["read"]},{"apiKey":[]}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Done"},"401":{"description":"Not signed in"},"403":{"description":"The role or the connection does not allow it"}}}},"/api/v1/actions/request_letter":{"post":{"operationId":"requestLetter","summary":"Request an employment letter","description":"Asks for a letter for one employee, such as a salary certificate or a no objection certificate. The team issues it in Documents. Signed in: OAuth or an API key.","security":[{"oauth":["act"]},{"apiKey":[]}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"employee_id":{"type":"string"},"type":{"type":"string","enum":["salary-certificate","salary-transfer","noc","experience","embassy"]},"addressed_to":{"type":"string","description":"Who the letter is for, e.g. a bank or an embassy."},"purpose":{"type":"string","description":"What it is for, in a few words."}},"required":["employee_id","type","addressed_to","purpose"],"additionalProperties":false}}}},"responses":{"200":{"description":"Done"},"401":{"description":"Not signed in"},"403":{"description":"The role or the connection does not allow it"}}}}},"components":{"securitySchemes":{"oauth":{"type":"oauth2","flows":{"authorizationCode":{"authorizationUrl":"https://employerofrecord.ae/oauth/authorize","tokenUrl":"https://employerofrecord.ae/oauth/token","refreshUrl":"https://employerofrecord.ae/oauth/token","scopes":{"read":"See the workspace, as your role allows","act":"Make changes, as your role allows"}}}},"apiKey":{"type":"http","scheme":"bearer","description":"A personal API key from Company, AI assistants"}}}}