# Arez for AI assistants Arez is an AI estimating and project management app for home service contractors (HVAC, plumbing, electrical, flooring, painting, roofing). It holds jobs, estimates, proposals, invoices, tasks, a team thread per job, and crew time. This guide shows how an assistant works with one person's Arez account. ## Authenticate Send the Arez key as a bearer token on every request: Authorization: Bearer arez_... Each key belongs to one person and works only while that person still has AI assistant access on a Professional or Agency plan. The person can revoke it any time in Arez, Settings, AI assistants. ## Call a tool POST https://api.ai-arez.com/agent/v1/tools/ Content-Type: application/json Body: the tool arguments as a JSON object A good answer is { "result": ... }. An error is { "error": "...", "code": "..." } with an HTTP status such as 403 or 404. Who am I: GET https://api.ai-arez.com/agent/v1/me Machine readable tool list (no key needed): GET https://api.ai-arez.com/agent/v1 MCP clients can connect to https://api.ai-arez.com/mcp instead (streamable HTTP, same key as a bearer token). MCP clients that support OAuth can skip the key: add https://api.ai-arez.com/mcp and the person signs in with Arez (OAuth 2.1, PKCE S256, dynamic client registration; discovery at https://api.ai-arez.com/.well-known/oauth-protected-resource/mcp). ## Rules - Never tell the user something was sent to a client. Arez assistant tools cannot send anything to a client. - Amounts you do not get back are hidden for this person on purpose. Do not guess them. - You act as one person and see only what that person sees in Arez. - Tools cannot delete, mark anything paid, sign, send, change pricing or team settings, or generate estimates. - A "can make changes" key may create jobs, add tasks and notes, post in the Team thread and log receipts. A read only key may not. - The account owner's "can make changes" key may also edit the company proposal template (get_proposal_template first, then update_proposal_template with only the fields to change) and undo the last assistant change. Sent and signed proposals never change. - If a tool returns an error, tell the user what it says. Do not retry in a loop. ## Tools ### list_jobs (read) List the jobs (projects) this person can see, newest activity first. Use it first to find a job id, or to answer questions like which jobs are in progress. Arguments: - status (string, optional): Only jobs with this status, for example Active, Approved, In Progress, Done, Paid. - search (string, optional): Only jobs whose name, client or address contains this text. - limit (integer, optional): How many to return (1 to 50, default 20). Example: curl -X POST https://api.ai-arez.com/agent/v1/tools/list_jobs -H "Authorization: Bearer arez_..." -H "Content-Type: application/json" -d '{"status":"Active","limit":10}' ### get_job (read) Get one job: client, address, phone, status, notes, task and file counts, and the current estimate total when this person may see it. Arguments: - jobId (string, required): The job id, from list_jobs. Example: curl -X POST https://api.ai-arez.com/agent/v1/tools/get_job -H "Authorization: Bearer arez_..." -H "Content-Type: application/json" -d '{"jobId":"proj-1234abcd"}' ### get_estimate (read) Get an estimate for a job: sections, line items (quantity, unit, and prices only if this person may see them) and totals. Defaults to the current estimate. Arguments: - jobId (string, required): The job id, from list_jobs. - estimateId (string, optional): A specific estimate id. Omit for the current one. Example: curl -X POST https://api.ai-arez.com/agent/v1/tools/get_estimate -H "Authorization: Bearer arez_..." -H "Content-Type: application/json" -d '{"jobId":"proj-1234abcd"}' ### list_tasks (read) List the task checklist of a job, with which tasks are done. Arguments: - jobId (string, required): The job id, from list_jobs. Example: curl -X POST https://api.ai-arez.com/agent/v1/tools/list_tasks -H "Authorization: Bearer arez_..." -H "Content-Type: application/json" -d '{"jobId":"proj-1234abcd"}' ### read_team_thread (read) Read the latest messages in a job's Team thread (newest first): who wrote what and when, photo counts, and receipts with their approval status. Receipt amounts appear only if this person may see costs. Arguments: - jobId (string, required): The job id, from list_jobs. - limit (integer, optional): How many to return (1 to 50, default 20). Example: curl -X POST https://api.ai-arez.com/agent/v1/tools/read_team_thread -H "Authorization: Bearer arez_..." -H "Content-Type: application/json" -d '{"jobId":"proj-1234abcd","limit":10}' ### list_proposals (read) List proposals with their status (draft, sent, signed), client and total. Use it to see what is waiting for a signature. Arguments: - status (string, optional): Only proposals with this status. - limit (integer, optional): How many to return (1 to 50, default 20). Example: curl -X POST https://api.ai-arez.com/agent/v1/tools/list_proposals -H "Authorization: Bearer arez_..." -H "Content-Type: application/json" -d '{"status":"sent"}' ### money_summary (read) Per job: contract total, invoiced, paid, and the next unbilled milestone, plus company totals. Only for people who may see invoices. Arguments: none Example: curl -X POST https://api.ai-arez.com/agent/v1/tools/money_summary -H "Authorization: Bearer arez_..." -H "Content-Type: application/json" -d '{}' ### ready_to_invoice (read) Signed jobs with a payment milestone that has not been invoiced yet. Use it to answer what can be billed now. It only lists; it never creates or sends an invoice. Arguments: none Example: curl -X POST https://api.ai-arez.com/agent/v1/tools/ready_to_invoice -H "Authorization: Bearer arez_..." -H "Content-Type: application/json" -d '{}' ### today (read) Today at a glance: visits scheduled, who is clocked in now, and how many hours entries need checking. Parts this person may not see are marked unavailable. Arguments: - timezone (string, optional): IANA timezone such as America/Chicago. Defaults to the company default. Example: curl -X POST https://api.ai-arez.com/agent/v1/tools/today -H "Authorization: Bearer arez_..." -H "Content-Type: application/json" -d '{"timezone":"America/Chicago"}' ### notifications (read) The person's latest Arez notifications (signed proposals, payments, task completions, team messages). Arguments: - limit (integer, optional): How many to return (1 to 50, default 20). Example: curl -X POST https://api.ai-arez.com/agent/v1/tools/notifications -H "Authorization: Bearer arez_..." -H "Content-Type: application/json" -d '{"limit":10}' ### create_job (needs a key that can make changes) Create a new job (project). Use it when the person asks to start a job for a client. It does not send anything to the client. Arguments: - name (string, required): Job name, for example "Smith kitchen remodel". - clientName (string, optional): Client name. - clientPhone (string, optional): Client phone. - clientEmail (string, optional): Client email. - address (string, optional): Job address. - type (string, optional): Trade or job type, for example General, Plumbing, Roofing. Example: curl -X POST https://api.ai-arez.com/agent/v1/tools/create_job -H "Authorization: Bearer arez_..." -H "Content-Type: application/json" -d '{"name":"Smith kitchen remodel","clientName":"Pat Smith","address":"12 Oak St, Austin TX"}' ### add_task (needs a key that can make changes) Add one item to a job's task checklist. Arguments: - jobId (string, required): The job id, from list_jobs. - text (string, required): The task, one short line. Example: curl -X POST https://api.ai-arez.com/agent/v1/tools/add_task -H "Authorization: Bearer arez_..." -H "Content-Type: application/json" -d '{"jobId":"proj-1234abcd","text":"Order cabinet hardware"}' ### add_note (needs a key that can make changes) Append a note to the end of a job's notes. Existing notes are kept. Arguments: - jobId (string, required): The job id, from list_jobs. - text (string, required): The note text. Example: curl -X POST https://api.ai-arez.com/agent/v1/tools/add_note -H "Authorization: Bearer arez_..." -H "Content-Type: application/json" -d '{"jobId":"proj-1234abcd","text":"Client wants white grout."}' ### post_team_message (needs a key that can make changes) Post a text message in a job's Team thread. Teammates are notified. It is the person's own message, so write it as they would. Arguments: - jobId (string, required): The job id, from list_jobs. - text (string, required): The message. Example: curl -X POST https://api.ai-arez.com/agent/v1/tools/post_team_message -H "Authorization: Bearer arez_..." -H "Content-Type: application/json" -d '{"jobId":"proj-1234abcd","text":"Tile arrives Thursday morning."}' ### log_expense (needs a key that can make changes) Log a job cost such as a material purchase. If this person may add costs it is added to the job costs. Otherwise it is posted as a pending receipt in the Team thread for someone with cost access to approve. The result says which happened. Arguments: - jobId (string, required): The job id, from list_jobs. - total (number, required): Amount in dollars. - vendor (string, optional): Store or vendor name. - date (string, optional): Purchase date, YYYY-MM-DD. Defaults to today. - costType (string, optional): material, labor, sub or other. Defaults to material. Example: curl -X POST https://api.ai-arez.com/agent/v1/tools/log_expense -H "Authorization: Bearer arez_..." -H "Content-Type: application/json" -d '{"jobId":"proj-1234abcd","total":84.5,"vendor":"Home Depot","costType":"material"}' ### get_proposal_template (read) Read the company proposal template: the wording every new proposal starts from (opening paragraph, terms, payment wording and schedule, warranty, exclusions, timeline, closing, extra sections) and its look (letterhead, colours, fonts, layout). Also says who changed it last and includes a field guide with every allowed value. Read it before calling update_proposal_template. Sent and signed proposals never change when the template changes. Arguments: none Example: curl -X POST https://api.ai-arez.com/agent/v1/tools/get_proposal_template -H "Authorization: Bearer arez_..." -H "Content-Type: application/json" -d '{}' ### update_proposal_template (needs a key that can make changes) Change the company proposal template: wording, payment schedule and look, in one call. Send only what should change, using the same names get_proposal_template returns; everything else stays as it is. Only the account owner's key can do this. Nothing is sent to anyone, and sent or signed proposals do not change; new proposals use the new template. If any value is not allowed, nothing is changed and the answer lists each problem in one sentence. The answer shows before and after for each change and how it will read. The logo cannot be uploaded here, only removed with clear: ["logo"]. To delete the whole template, the person does it in the Arez app. undo_proposal_template_change puts the last assistant change back. Arguments: - companyIntro (string, optional): Paragraph introducing the company. Used as the opening paragraph when overview is empty. Up to 1,500 characters. Placeholders: {{client}}, {{project}}, {{company}}. - overview (string, optional): Opening paragraph of every proposal, before the scope of work. Up to 1,500 characters. Placeholders: {{client}}, {{project}}, {{company}}. - terms (string, optional): Terms and conditions, usually numbered clauses, one per line. Up to 8,000 characters. Placeholders: {{client}}, {{project}}, {{company}}. - paymentTerms (string, optional): Payment wording printed with the price. When it states percentages, Arez reads the payment schedule from it. Up to 3,000 characters. Placeholders: {{client}}, {{project}}, {{company}}. - warranty (string, optional): Warranty section. Up to 3,000 characters. Placeholders: {{client}}, {{project}}, {{company}}. - exclusions (string, optional): What the price does not include. Up to 3,000 characters. Placeholders: {{client}}, {{project}}, {{company}}. - timeline (string, optional): Schedule or timeline section. Up to 3,000 characters. Placeholders: {{client}}, {{project}}, {{company}}. - closing (string, optional): Closing paragraph before the signatures. Up to 1,500 characters. Placeholders: {{client}}, {{project}}, {{company}}. - signatureIntro (string, optional): Acceptance sentence above the signature lines. Up to 1,500 characters. Placeholders: {{client}}, {{project}}, {{company}}. - paymentPlan (object, optional): Payment schedule: { "milestones": [{ "label": "Deposit", "pct": 30 }, { "label": "Completion", "pct": 70 }] }. 1 to 6 milestones, whole numbers adding up to exactly 100. Update paymentTerms too so the wording matches. - sectionTitles (object, optional): Names for the scope, investment and terms sections, for example { "scope": "Description of Work" }. Up to 80 characters each. - extras (array, optional): Extra sections such as Permits or Change Orders: [{ "title", "body" }]. Replaces the whole list, so include the ones to keep. At most 8. - look (object, optional): The look. Any of: company { name, tagline, address, phone, email, website, license } (letterhead lines, "" removes one); colors { primary, accent, text, muted, background, surface, border } as hex like #1f6feb; fonts { heading, body } from system, inter, ibm-plex-sans, roboto, open-sans, lato, montserrat, poppins, oswald, raleway, merriweather, playfair, lora, georgia, times, arial, courier; layout { header: band|letterhead-left|letterhead-center|logo-right, docTitle (up to 40 characters), titleStyle: plain|underlined|boxed, scope: cards|table|list, investment: box|table|inline, signature: columns|stacked|lines, density: compact|normal, dividers: true|false, footer (up to 160 characters), sectionOrder: all of overview, scope, investment, extras, terms, closing, signature once each }. Send only the keys to change. - clear (array, optional): Things to remove: any of companyIntro, overview, terms, paymentTerms, warranty, exclusions, timeline, closing, signatureIntro, sectionTitles, extras, logo, look. "look" goes back to the standard Arez look; "logo" removes only the logo. To remove the payment schedule, clear paymentTerms. Example: curl -X POST https://api.ai-arez.com/agent/v1/tools/update_proposal_template -H "Authorization: Bearer arez_..." -H "Content-Type: application/json" -d '{"closing":"Thank you for choosing {{company}}.","paymentPlan":{"milestones":[{"label":"Deposit","pct":40},{"label":"Completion","pct":60}]},"paymentTerms":"40% deposit to schedule the work, 60% on completion."}' ### undo_proposal_template_change (needs a key that can make changes) Put back the proposal template as it was before the most recent change made by an AI assistant (up to 5 changes can be undone, newest first). A field the person changed in the app since then is left alone and listed as skipped. Only the account owner's key can do this. Arguments: none Example: curl -X POST https://api.ai-arez.com/agent/v1/tools/undo_proposal_template_change -H "Authorization: Bearer arez_..." -H "Content-Type: application/json" -d '{}'