Jump to an endpoint

Reference

HailMate API reference

Jobs, contacts, tasks, money, photos, door knocks and hail history for your HailMate workspace. Requests and responses are JSON. Lists are newest first and paged with a cursor. New to the API? Start with the overview and quickstart.

Base URL
https://app.hailmate.ai/api/v1
Authentication
Authorization: Bearer hm_live_… on every request. Keys
OpenAPI 3.1
openapi.yaml · openapi.json

Endpoints

Connection

Check a key and see which workspace it belongs to.

Check a key

GET/ping

The cheapest authenticated call. Returns the workspace the key belongs to and what the key may do. /me is the same endpoint.

Returns

200The key is valid. A Ping object.

  • 401unauthorizedThe key is missing, wrong or revoked.
  • 402plan_requiredThe workspace has no active subscription.

Any request can also answer 401, 402, 429 or 500 — errors.

curl https://app.hailmate.ai/api/v1/ping \
  -H "Authorization: Bearer $HAILMATE_API_KEY"
Response · 200
{
  "ok": true,
  "object": "workspace",
  "workspace_id": "5f0c2a8e-1b3d-4c7a-9e21-7a3b8d4c6e10",
  "workspace": "Ridgeline Roofing",
  "api_version": "v1",
  "key": {
    "name": "Zapier",
    "access": "write"
  }
}

List the locations this key can act in

GET/locations

A company key (or a connection made for every location): every location of the company it reaches, with the ids to send as the HailMate-Location header or location_id. A location's own key: just its location. Needs no location itself.

Returns

200The locations, the company main first. A list of Location objects in data.

  • 401unauthorizedThe key is missing, wrong or revoked.

Any request can also answer 401, 402, 429 or 500 — errors.

curl https://app.hailmate.ai/api/v1/locations \
  -H "Authorization: Bearer $HAILMATE_API_KEY"
Response · 200
{
  "object": "list",
  "company_wide": true,
  "company": {
    "id": "5f0c2a8e-1b3d-4c7a-9e21-7a3b8d4c6e10",
    "name": "Ridgeline Roofing"
  },
  "data": [
    {
      "id": "5f0c2a8e-1b3d-4c7a-9e21-7a3b8d4c6e10",
      "object": "location",
      "name": "Columbus",
      "workspace_name": "Ridgeline Roofing",
      "region": "Ohio",
      "is_main": true
    },
    {
      "id": "7a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d",
      "object": "location",
      "name": "Cincinnati",
      "workspace_name": "Ridgeline Roofing – Cincinnati",
      "region": "Ohio",
      "is_main": false
    }
  ],
  "has_more": false,
  "next_cursor": null
}

Endpoints

Jobs

The storm-restoration jobs on your pipeline boards.

List jobs

GET/jobs

Newest first. Archived jobs are left out unless you ask for them.

Query parameters

  • limitinteger

    Page size. Out-of-range values fall back to the default.

    1 to 200 · Default 50

  • cursorstring

    The next_cursor from the previous page, exactly as received. A cursor we did not issue is a 400.

  • updated_sincestringdate-time

    Only records changed at or after this ISO date or date-time. The way to sync only what moved.

  • created_afterstringdate-time

    Only records created at or after this ISO date or date-time.

  • created_beforestringdate-time

    Only records created before this ISO date or date-time.

  • stagestring

    A stage key from /stages.

  • pipeline_idstringuuid
  • job_typestring
    insuranceretail
  • assigned_tostringuuid

    A user id. Matches the primary assignee OR any co-assignee.

  • contact_idstringuuid

    Jobs where this contact is the homeowner, the adjuster, or a secondary contact.

  • archivedstring

    Omitted, only live jobs. true returns archived jobs, any returns both.

    trueany

Returns

200A page of jobs. A page of Job objects in data, with has_more and next_cursor.

  • 400invalid_requestSomething in the request was wrong; field names what.
  • 401unauthorizedThe key is missing, wrong or revoked.

Any request can also answer 401, 402, 429 or 500 — errors.

curl "https://app.hailmate.ai/api/v1/jobs?stage=claim_approved&limit=25" \
  -H "Authorization: Bearer $HAILMATE_API_KEY"
Response · 200
{
  "object": "list",
  "has_more": true,
  "next_cursor": "eyJjIjoiMjAyNi0wOS0yOFQxNDowMjowMFoiLCJpIjoiZjJiMWEwYzQifQ",
  "data": [
    {
      "id": "f2b1a0c4-1111-4000-8000-0000000000aa",
      "object": "job",
      "job_number": "JOB-00142",
      "name": "1804 Cedar Ridge Dr",
      "job_type": "insurance",
      "stage": "inspection_scheduled",
      "stage_label": "Inspection Scheduled",
      "stage_is_completed": false,
      "stage_is_lost": false,
      "stage_entered_at": "2026-09-16T14:02:00.000Z",
      "pipeline_id": "1cf7d87b-7d99-4ba0-b277-0e88ac127e75",
      "pipeline_name": "Insurance",
      "address": "1804 Cedar Ridge Dr",
      "city": "Plano",
      "state": "TX",
      "postal_code": "75024",
      "county": "Collin",
      "homeowner_id": "b7c2d3e4-4444-4000-8000-0000000000dd",
      "homeowner": {
        "id": "b7c2d3e4-4444-4000-8000-0000000000dd",
        "name": "Dana Reed",
        "email": "dana@example.com",
        "phone": "(972) 555-0148"
      },
      "adjuster_id": null,
      "adjuster": null,
      "secondary_contact_ids": [],
      "secondary_adjuster_ids": [],
      "assigned_to_id": "5d0e1c2b-7777-4000-8000-0000000000ab",
      "assigned_to_name": "Sam Carter",
      "sales_rep_id": "5d0e1c2b-7777-4000-8000-0000000000ab",
      "sales_rep_name": "Sam Carter",
      "canvasser_id": null,
      "canvasser_name": null,
      "project_manager_id": null,
      "project_manager_name": null,
      "assignee_ids": [
        "5d0e1c2b-7777-4000-8000-0000000000ab"
      ],
      "assignee_names": [
        "Sam Carter"
      ],
      "insurance_company": "Example Mutual",
      "claim_number": "CLM-88213",
      "policy_number": null,
      "date_of_loss": "2026-09-12",
      "damage_types": [
        "hail"
      ],
      "tags": [],
      "cover_photo_url": null,
      "lead_source": "Website",
      "priority": "normal",
      "mortgage_company": null,
      "financing_method": null,
      "rcv_amount": 24380.5,
      "acv_amount": 19240,
      "deductible": 2500,
      "supplements_amount": null,
      "custom_fields": {
        "Roof type": "Architectural shingle",
        "Gutters included": true
      },
      "estimated_amount": null,
      "final_amount": null,
      "total_job_value": 24380.5,
      "amount_received": 0,
      "balance_due": 24380.5,
      "contract_date": null,
      "installation_date": null,
      "archived": false,
      "completed_at": null,
      "lost_at": null,
      "lost_reason": null,
      "trades": [
        "roofing",
        "gutters"
      ],
      "roof_squares": 31.5,
      "property_type": "residential",
      "roof_material": "asphalt",
      "first_appointment_on": "2026-09-18",
      "build_started_on": null,
      "build_finished_on": null,
      "paid_in_full_on": null,
      "cancelled_at": null,
      "cancel_reason": null,
      "created_at": "2026-09-16T14:02:00.000Z",
      "updated_at": "2026-09-16T14:02:00.000Z",
      "url": "https://app.hailmate.ai/job/f2b1a0c4-1111-4000-8000-0000000000aa",
      "portal_url": "https://app.hailmate.ai/project/0f0f0f0f-3333-4000-8000-0000000000cc"
    }
  ]
}

Create a job

POST/jobs

Only name and address are required. With no stage the job lands on the first column of your default pipeline. stage may be a stage key or its label as your board shows it ("Claim Approved"). notes, when sent, becomes the first note on the job's timeline.

A homeowner, adjuster or assignee named by id must belong to this workspace. The new job fires job.created.

Headers

  • Idempotency-Keystring

    Any unique string (a UUID is ideal). A retry with the same key within 24 hours replays the first answer — with Idempotent-Replayed: true — instead of doing the work again. Reusing a key for a DIFFERENT request is a 409.

    Up to 255 characters

Request bodyapplication/json

  • namestringRequired

    job_name works too.

    Up to 200 characters

  • addressstringRequired

    property_address works too.

    Up to 300 characters

  • citystring
  • statestring

    A code or a name — "TX" or "Texas".

  • postal_codestring

    zip works too.

  • countystring
  • job_typestring
    insuranceretail

    Default insurance

  • stagestring

    A stage key or label. Defaults to the first stage of the default pipeline.

  • pipeline_idstringuuid
  • homeowner_idstringuuid
  • adjuster_idstringuuid
  • assigned_tostringuuid

    The sales rep: a teammate's user id from /users. sales_rep_id works too.

  • canvasser_idstringuuid

    The canvasser (setter): who knocked the door or set the appointment. setter_id works too.

  • project_manager_idstringuuid

    The project manager who runs the build.

  • tradesarray of string

    Keys of the company's trades list (roofing, gutters, siding…), at most 8; the first is the main one.

  • roof_squaresnumber

    Roof size in squares. Left out, a finished measurement fills it.

  • property_typestring
    residentialcommercial
  • roof_materialstring
    asphaltmetaltileflatother
  • lead_sourcestring
  • prioritystring
    lownormalhighurgent
  • insurance_companystring
  • claim_numberstring
  • policy_numberstring
  • date_of_lossstringdate
  • mortgage_companystring
  • financing_methodstring
    cashcheckcredit_cardfinancingother
  • rcv_amountnumber
  • acv_amountnumber
  • deductiblenumber
  • supplements_amountnumber
  • estimated_amountnumber
  • final_amountnumber
  • contract_datestringdate
  • installation_datestringdate
  • damage_typesarray of string

    Or a comma-separated string.

  • tagsarray of string

    Or a comma-separated string.

  • assignee_idsarray of stringuuid

    Every rep on the job (user ids). assigned_to, if sent, is the primary.

  • secondary_contact_idsarray of stringuuid

    Other contacts on the job.

  • secondary_adjuster_idsarray of stringuuid

    More adjusters (insurance jobs).

  • notesstring

    Becomes the first note on the job.

  • custom_fieldsobject

    The workspace's own fields, by field name (any case) or id. Each value must fit its field: text, a number, a date (YYYY-MM-DD), one of a choice field's choices, or true/false. Only the fields sent change; null clears one.

Returns

201Created. A Job object.

  • 400invalid_requestSomething in the request was wrong; field names what.
  • 403forbiddenA read-only key tried to change something.
  • 409conflictA conflict: an Idempotency-Key clash, a record in a state that refuses the change, or a send refused (the number replied STOP, or the rep has no texting number).

Any request can also answer 401, 402, 429 or 500 — errors.

curl -X POST https://app.hailmate.ai/api/v1/jobs \
  -H "Authorization: Bearer $HAILMATE_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "name": "1804 Cedar Ridge Dr",
  "address": "1804 Cedar Ridge Dr",
  "city": "Plano",
  "state": "TX",
  "postal_code": "75024",
  "job_type": "insurance",
  "stage": "Inspection Scheduled",
  "homeowner_id": "b7c2d3e4-4444-4000-8000-0000000000dd",
  "lead_source": "Website",
  "insurance_company": "Example Mutual",
  "claim_number": "CLM-88213",
  "notes": "Homeowner reports hail on the back slope."
}'
Response · 201
{
  "id": "f2b1a0c4-1111-4000-8000-0000000000aa",
  "object": "job",
  "job_number": "JOB-00142",
  "name": "1804 Cedar Ridge Dr",
  "job_type": "insurance",
  "stage": "inspection_scheduled",
  "stage_label": "Inspection Scheduled",
  "stage_is_completed": false,
  "stage_is_lost": false,
  "stage_entered_at": "2026-09-16T14:02:00.000Z",
  "pipeline_id": "1cf7d87b-7d99-4ba0-b277-0e88ac127e75",
  "pipeline_name": "Insurance",
  "address": "1804 Cedar Ridge Dr",
  "city": "Plano",
  "state": "TX",
  "postal_code": "75024",
  "county": "Collin",
  "homeowner_id": "b7c2d3e4-4444-4000-8000-0000000000dd",
  "homeowner": {
    "id": "b7c2d3e4-4444-4000-8000-0000000000dd",
    "name": "Dana Reed",
    "email": "dana@example.com",
    "phone": "(972) 555-0148"
  },
  "adjuster_id": null,
  "adjuster": null,
  "secondary_contact_ids": [],
  "secondary_adjuster_ids": [],
  "assigned_to_id": "5d0e1c2b-7777-4000-8000-0000000000ab",
  "assigned_to_name": "Sam Carter",
  "sales_rep_id": "5d0e1c2b-7777-4000-8000-0000000000ab",
  "sales_rep_name": "Sam Carter",
  "canvasser_id": null,
  "canvasser_name": null,
  "project_manager_id": null,
  "project_manager_name": null,
  "assignee_ids": [
    "5d0e1c2b-7777-4000-8000-0000000000ab"
  ],
  "assignee_names": [
    "Sam Carter"
  ],
  "insurance_company": "Example Mutual",
  "claim_number": "CLM-88213",
  "policy_number": null,
  "date_of_loss": "2026-09-12",
  "damage_types": [
    "hail"
  ],
  "tags": [],
  "cover_photo_url": null,
  "lead_source": "Website",
  "priority": "normal",
  "mortgage_company": null,
  "financing_method": null,
  "rcv_amount": 24380.5,
  "acv_amount": 19240,
  "deductible": 2500,
  "supplements_amount": null,
  "custom_fields": {
    "Roof type": "Architectural shingle",
    "Gutters included": true
  },
  "estimated_amount": null,
  "final_amount": null,
  "total_job_value": 24380.5,
  "amount_received": 0,
  "balance_due": 24380.5,
  "contract_date": null,
  "installation_date": null,
  "archived": false,
  "completed_at": null,
  "lost_at": null,
  "lost_reason": null,
  "trades": [
    "roofing",
    "gutters"
  ],
  "roof_squares": 31.5,
  "property_type": "residential",
  "roof_material": "asphalt",
  "first_appointment_on": "2026-09-18",
  "build_started_on": null,
  "build_finished_on": null,
  "paid_in_full_on": null,
  "cancelled_at": null,
  "cancel_reason": null,
  "created_at": "2026-09-16T14:02:00.000Z",
  "updated_at": "2026-09-16T14:02:00.000Z",
  "url": "https://app.hailmate.ai/job/f2b1a0c4-1111-4000-8000-0000000000aa",
  "portal_url": "https://app.hailmate.ai/project/0f0f0f0f-3333-4000-8000-0000000000cc"
}

Find jobs

GET/jobs/search

address and name match part of the value ("1804 Cedar" finds "1804 Cedar Ridge Dr"); job_number and claim_number must match whole (case-insensitive). With no criteria the result is EMPTY — never "the newest jobs", which is how a blank search step writes to the wrong job.

Query parameters

  • addressstring
  • job_numberstring
  • claim_numberstring
  • namestring
  • contact_idstringuuid
  • limitinteger

    Page size. Out-of-range values fall back to the default.

    1 to 200 · Default 50

Returns

200Matching jobs, newest first. Not paged. A page of Job objects in data, with has_more and next_cursor.

  • 401unauthorizedThe key is missing, wrong or revoked.

Any request can also answer 401, 402, 429 or 500 — errors.

curl "https://app.hailmate.ai/api/v1/jobs/search?address=1804%20Cedar" \
  -H "Authorization: Bearer $HAILMATE_API_KEY"
Response · 200
{
  "object": "list",
  "has_more": true,
  "next_cursor": "eyJjIjoiMjAyNi0wOS0yOFQxNDowMjowMFoiLCJpIjoiZjJiMWEwYzQifQ",
  "data": [
    {
      "id": "f2b1a0c4-1111-4000-8000-0000000000aa",
      "object": "job",
      "job_number": "JOB-00142",
      "name": "1804 Cedar Ridge Dr",
      "job_type": "insurance",
      "stage": "inspection_scheduled",
      "stage_label": "Inspection Scheduled",
      "stage_is_completed": false,
      "stage_is_lost": false,
      "stage_entered_at": "2026-09-16T14:02:00.000Z",
      "pipeline_id": "1cf7d87b-7d99-4ba0-b277-0e88ac127e75",
      "pipeline_name": "Insurance",
      "address": "1804 Cedar Ridge Dr",
      "city": "Plano",
      "state": "TX",
      "postal_code": "75024",
      "county": "Collin",
      "homeowner_id": "b7c2d3e4-4444-4000-8000-0000000000dd",
      "homeowner": {
        "id": "b7c2d3e4-4444-4000-8000-0000000000dd",
        "name": "Dana Reed",
        "email": "dana@example.com",
        "phone": "(972) 555-0148"
      },
      "adjuster_id": null,
      "adjuster": null,
      "secondary_contact_ids": [],
      "secondary_adjuster_ids": [],
      "assigned_to_id": "5d0e1c2b-7777-4000-8000-0000000000ab",
      "assigned_to_name": "Sam Carter",
      "sales_rep_id": "5d0e1c2b-7777-4000-8000-0000000000ab",
      "sales_rep_name": "Sam Carter",
      "canvasser_id": null,
      "canvasser_name": null,
      "project_manager_id": null,
      "project_manager_name": null,
      "assignee_ids": [
        "5d0e1c2b-7777-4000-8000-0000000000ab"
      ],
      "assignee_names": [
        "Sam Carter"
      ],
      "insurance_company": "Example Mutual",
      "claim_number": "CLM-88213",
      "policy_number": null,
      "date_of_loss": "2026-09-12",
      "damage_types": [
        "hail"
      ],
      "tags": [],
      "cover_photo_url": null,
      "lead_source": "Website",
      "priority": "normal",
      "mortgage_company": null,
      "financing_method": null,
      "rcv_amount": 24380.5,
      "acv_amount": 19240,
      "deductible": 2500,
      "supplements_amount": null,
      "custom_fields": {
        "Roof type": "Architectural shingle",
        "Gutters included": true
      },
      "estimated_amount": null,
      "final_amount": null,
      "total_job_value": 24380.5,
      "amount_received": 0,
      "balance_due": 24380.5,
      "contract_date": null,
      "installation_date": null,
      "archived": false,
      "completed_at": null,
      "lost_at": null,
      "lost_reason": null,
      "trades": [
        "roofing",
        "gutters"
      ],
      "roof_squares": 31.5,
      "property_type": "residential",
      "roof_material": "asphalt",
      "first_appointment_on": "2026-09-18",
      "build_started_on": null,
      "build_finished_on": null,
      "paid_in_full_on": null,
      "cancelled_at": null,
      "cancel_reason": null,
      "created_at": "2026-09-16T14:02:00.000Z",
      "updated_at": "2026-09-16T14:02:00.000Z",
      "url": "https://app.hailmate.ai/job/f2b1a0c4-1111-4000-8000-0000000000aa",
      "portal_url": "https://app.hailmate.ai/project/0f0f0f0f-3333-4000-8000-0000000000cc"
    }
  ]
}

Get a job

GET/jobs/{id}

Path parameters

  • idstringuuidRequired

Returns

200The job. A Job object.

  • 404not_foundNo such record in this workspace.

Any request can also answer 401, 402, 429 or 500 — errors.

curl https://app.hailmate.ai/api/v1/jobs/f2b1a0c4-1111-4000-8000-0000000000aa \
  -H "Authorization: Bearer $HAILMATE_API_KEY"
Response · 200
{
  "id": "f2b1a0c4-1111-4000-8000-0000000000aa",
  "object": "job",
  "job_number": "JOB-00142",
  "name": "1804 Cedar Ridge Dr",
  "job_type": "insurance",
  "stage": "inspection_scheduled",
  "stage_label": "Inspection Scheduled",
  "stage_is_completed": false,
  "stage_is_lost": false,
  "stage_entered_at": "2026-09-16T14:02:00.000Z",
  "pipeline_id": "1cf7d87b-7d99-4ba0-b277-0e88ac127e75",
  "pipeline_name": "Insurance",
  "address": "1804 Cedar Ridge Dr",
  "city": "Plano",
  "state": "TX",
  "postal_code": "75024",
  "county": "Collin",
  "homeowner_id": "b7c2d3e4-4444-4000-8000-0000000000dd",
  "homeowner": {
    "id": "b7c2d3e4-4444-4000-8000-0000000000dd",
    "name": "Dana Reed",
    "email": "dana@example.com",
    "phone": "(972) 555-0148"
  },
  "adjuster_id": null,
  "adjuster": null,
  "secondary_contact_ids": [],
  "secondary_adjuster_ids": [],
  "assigned_to_id": "5d0e1c2b-7777-4000-8000-0000000000ab",
  "assigned_to_name": "Sam Carter",
  "sales_rep_id": "5d0e1c2b-7777-4000-8000-0000000000ab",
  "sales_rep_name": "Sam Carter",
  "canvasser_id": null,
  "canvasser_name": null,
  "project_manager_id": null,
  "project_manager_name": null,
  "assignee_ids": [
    "5d0e1c2b-7777-4000-8000-0000000000ab"
  ],
  "assignee_names": [
    "Sam Carter"
  ],
  "insurance_company": "Example Mutual",
  "claim_number": "CLM-88213",
  "policy_number": null,
  "date_of_loss": "2026-09-12",
  "damage_types": [
    "hail"
  ],
  "tags": [],
  "cover_photo_url": null,
  "lead_source": "Website",
  "priority": "normal",
  "mortgage_company": null,
  "financing_method": null,
  "rcv_amount": 24380.5,
  "acv_amount": 19240,
  "deductible": 2500,
  "supplements_amount": null,
  "custom_fields": {
    "Roof type": "Architectural shingle",
    "Gutters included": true
  },
  "estimated_amount": null,
  "final_amount": null,
  "total_job_value": 24380.5,
  "amount_received": 0,
  "balance_due": 24380.5,
  "contract_date": null,
  "installation_date": null,
  "archived": false,
  "completed_at": null,
  "lost_at": null,
  "lost_reason": null,
  "trades": [
    "roofing",
    "gutters"
  ],
  "roof_squares": 31.5,
  "property_type": "residential",
  "roof_material": "asphalt",
  "first_appointment_on": "2026-09-18",
  "build_started_on": null,
  "build_finished_on": null,
  "paid_in_full_on": null,
  "cancelled_at": null,
  "cancel_reason": null,
  "created_at": "2026-09-16T14:02:00.000Z",
  "updated_at": "2026-09-16T14:02:00.000Z",
  "url": "https://app.hailmate.ai/job/f2b1a0c4-1111-4000-8000-0000000000aa",
  "portal_url": "https://app.hailmate.ai/project/0f0f0f0f-3333-4000-8000-0000000000cc"
}

Update a job

PATCH/jobs/{id}

Send only the fields to change. A field sent as null (or "") is cleared; a field left out is untouched. name and address cannot be cleared.

Moving a job is {"stage": "Claim Approved"} — a key or a label. Like dragging the card, it writes the timeline entry, creates the stage's tasks, updates commission, runs workflows and fires job.stage_changed. It never texts or emails the homeowner (the stage message and review request stay in the app). Setting assigned_to makes that teammate the primary assignee.

Path parameters

  • idstringuuidRequired

Headers

  • Idempotency-Keystring

    Any unique string (a UUID is ideal). A retry with the same key within 24 hours replays the first answer — with Idempotent-Replayed: true — instead of doing the work again. Reusing a key for a DIFFERENT request is a 409.

    Up to 255 characters

Request bodyapplication/json

  • namestring
  • addressstring
  • citystring | null
  • statestring | null
  • postal_codestring | null
  • countystring | null
  • job_typestring
    insuranceretail
  • stagestring
  • pipeline_idstringuuid
  • homeowner_idstring | nulluuid
  • adjuster_idstring | nulluuid
  • assigned_tostring | nulluuid

    The sales rep.

  • canvasser_idstring | nulluuid

    The canvasser (setter). Null = nobody, on purpose: a door knock never fills it in again.

  • project_manager_idstring | nulluuid

    The project manager.

  • lead_sourcestring | null
  • prioritystring | null
    lownormalhighurgent
  • insurance_companystring | null
  • claim_numberstring | null
  • policy_numberstring | null
  • date_of_lossstring | nulldate
  • mortgage_companystring | null
  • financing_methodstring | null
  • rcv_amountnumber | null
  • acv_amountnumber | null
  • deductiblenumber | null
  • supplements_amountnumber | null
  • estimated_amountnumber | null
  • final_amountnumber | null
  • contract_datestring | nulldate
  • installation_datestring | nulldate
  • damage_typesarray of string | null
  • tagsarray of string | null
  • archivedboolean
  • lost_reasonstring | null
  • cancel_reasonstring | null

    Why a sold job was cancelled. Whether it is cancelled is HailMate's: it sold, then was lost.

    Up to 200 characters

  • tradesarray of string | null

    Keys of the company's trades list (roofing, gutters, siding…), at most 8; the first is the main one.

  • roof_squaresnumber | null

    Roof size in squares. A size you send is kept; a measurement never overwrites it.

  • property_typestring | null
    residentialcommercial
  • roof_materialstring | null
    asphaltmetaltileflatother
  • assignee_idsarray of string | nulluuid

    Every rep on the job, replacing the list. The primary (assigned_to) stays on it.

  • secondary_contact_idsarray of string | nulluuid
  • secondary_adjuster_idsarray of string | nulluuid
  • cover_photo_file_idstring | nulluuid

    One of this job's photos (from list_job_photos) to show as its cover; null removes it.

  • custom_fieldsobject

    The workspace's own fields, by field name (any case) or id. Each value must fit its field: text, a number, a date (YYYY-MM-DD), one of a choice field's choices, or true/false. Only the fields sent change; null clears one.

Returns

200The job, as it is now. A Job object.

  • 400invalid_requestSomething in the request was wrong; field names what.
  • 403forbiddenA read-only key tried to change something.
  • 404not_foundNo such record in this workspace.

Any request can also answer 401, 402, 429 or 500 — errors.

curl -X PATCH https://app.hailmate.ai/api/v1/jobs/f2b1a0c4-1111-4000-8000-0000000000aa \
  -H "Authorization: Bearer $HAILMATE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "stage": "claim_approved",
  "rcv_amount": 24380.5,
  "assigned_to": "5d0e1c2b-7777-4000-8000-0000000000ab"
}'
Response · 200
{
  "id": "f2b1a0c4-1111-4000-8000-0000000000aa",
  "object": "job",
  "job_number": "JOB-00142",
  "name": "1804 Cedar Ridge Dr",
  "job_type": "insurance",
  "stage": "inspection_scheduled",
  "stage_label": "Inspection Scheduled",
  "stage_is_completed": false,
  "stage_is_lost": false,
  "stage_entered_at": "2026-09-16T14:02:00.000Z",
  "pipeline_id": "1cf7d87b-7d99-4ba0-b277-0e88ac127e75",
  "pipeline_name": "Insurance",
  "address": "1804 Cedar Ridge Dr",
  "city": "Plano",
  "state": "TX",
  "postal_code": "75024",
  "county": "Collin",
  "homeowner_id": "b7c2d3e4-4444-4000-8000-0000000000dd",
  "homeowner": {
    "id": "b7c2d3e4-4444-4000-8000-0000000000dd",
    "name": "Dana Reed",
    "email": "dana@example.com",
    "phone": "(972) 555-0148"
  },
  "adjuster_id": null,
  "adjuster": null,
  "secondary_contact_ids": [],
  "secondary_adjuster_ids": [],
  "assigned_to_id": "5d0e1c2b-7777-4000-8000-0000000000ab",
  "assigned_to_name": "Sam Carter",
  "sales_rep_id": "5d0e1c2b-7777-4000-8000-0000000000ab",
  "sales_rep_name": "Sam Carter",
  "canvasser_id": null,
  "canvasser_name": null,
  "project_manager_id": null,
  "project_manager_name": null,
  "assignee_ids": [
    "5d0e1c2b-7777-4000-8000-0000000000ab"
  ],
  "assignee_names": [
    "Sam Carter"
  ],
  "insurance_company": "Example Mutual",
  "claim_number": "CLM-88213",
  "policy_number": null,
  "date_of_loss": "2026-09-12",
  "damage_types": [
    "hail"
  ],
  "tags": [],
  "cover_photo_url": null,
  "lead_source": "Website",
  "priority": "normal",
  "mortgage_company": null,
  "financing_method": null,
  "rcv_amount": 24380.5,
  "acv_amount": 19240,
  "deductible": 2500,
  "supplements_amount": null,
  "custom_fields": {
    "Roof type": "Architectural shingle",
    "Gutters included": true
  },
  "estimated_amount": null,
  "final_amount": null,
  "total_job_value": 24380.5,
  "amount_received": 0,
  "balance_due": 24380.5,
  "contract_date": null,
  "installation_date": null,
  "archived": false,
  "completed_at": null,
  "lost_at": null,
  "lost_reason": null,
  "trades": [
    "roofing",
    "gutters"
  ],
  "roof_squares": 31.5,
  "property_type": "residential",
  "roof_material": "asphalt",
  "first_appointment_on": "2026-09-18",
  "build_started_on": null,
  "build_finished_on": null,
  "paid_in_full_on": null,
  "cancelled_at": null,
  "cancel_reason": null,
  "created_at": "2026-09-16T14:02:00.000Z",
  "updated_at": "2026-09-16T14:02:00.000Z",
  "url": "https://app.hailmate.ai/job/f2b1a0c4-1111-4000-8000-0000000000aa",
  "portal_url": "https://app.hailmate.ai/project/0f0f0f0f-3333-4000-8000-0000000000cc"
}

Delete a job

DELETE/jobs/{id}

The job goes to Settings → Recently Deleted for 30 days with everything on it, and can be restored from there. Fires job.deleted.

Path parameters

  • idstringuuidRequired

Headers

  • Idempotency-Keystring

    Any unique string (a UUID is ideal). A retry with the same key within 24 hours replays the first answer — with Idempotent-Replayed: true — instead of doing the work again. Reusing a key for a DIFFERENT request is a 409.

    Up to 255 characters

Returns

200Deleted. A Deleted object.

  • 404not_foundNo such record in this workspace.

Any request can also answer 401, 402, 429 or 500 — errors.

curl -X DELETE https://app.hailmate.ai/api/v1/jobs/f2b1a0c4-1111-4000-8000-0000000000aa \
  -H "Authorization: Bearer $HAILMATE_API_KEY"
Response · 200
{
  "id": "f2b1a0c4-1111-4000-8000-0000000000aa",
  "object": "job",
  "deleted": true
}

List a job's notes

GET/jobs/{id}/notes

Path parameters

  • idstringuuidRequired

Query parameters

  • limitinteger

    Page size. Out-of-range values fall back to the default.

    1 to 200 · Default 50

  • cursorstring

    The next_cursor from the previous page, exactly as received. A cursor we did not issue is a 400.

Returns

200A page of notes. A page of Note objects in data, with has_more and next_cursor.

  • 404not_foundNo such record in this workspace.

Any request can also answer 401, 402, 429 or 500 — errors.

curl "https://app.hailmate.ai/api/v1/jobs/f2b1a0c4-1111-4000-8000-0000000000aa/notes?limit=25" \
  -H "Authorization: Bearer $HAILMATE_API_KEY"
Response · 200
{
  "object": "list",
  "has_more": true,
  "next_cursor": "eyJjIjoiMjAyNi0wOS0yOFQxNDowMjowMFoiLCJpIjoiZjJiMWEwYzQifQ",
  "data": [
    {
      "id": "3c8b1a07-6666-4000-8000-0000000000b4",
      "object": "note",
      "job_id": "f2b1a0c4-1111-4000-8000-0000000000aa",
      "content": "Adjuster meeting moved to Thursday 10am. Homeowner will be home.",
      "author_id": "5d0e1c2b-7777-4000-8000-0000000000ab",
      "author_name": "Sam Carter",
      "created_at": "2026-09-27T14:20:00.000Z",
      "updated_at": "2026-09-27T14:20:00.000Z",
      "url": "https://app.hailmate.ai/job/f2b1a0c4-1111-4000-8000-0000000000aa"
    }
  ]
}

List the contractors, crews, inspectors and mortgage companies on a job

GET/jobs/{id}/people

Path parameters

  • idstringuuidRequired

Returns

200Everyone on the job besides the homeowner and adjusters. A page of JobPerson objects in data, with has_more and next_cursor.

  • 404not_foundNo such record in this workspace.

Any request can also answer 401, 402, 429 or 500 — errors.

curl https://app.hailmate.ai/api/v1/jobs/f2b1a0c4-1111-4000-8000-0000000000aa/people \
  -H "Authorization: Bearer $HAILMATE_API_KEY"
Response · 200
{
  "object": "list",
  "has_more": true,
  "next_cursor": "eyJjIjoiMjAyNi0wOS0yOFQxNDowMjowMFoiLCJpIjoiZjJiMWEwYzQifQ",
  "data": [
    {
      "id": "1a2b3c4d-1111-4000-8000-0000000000b1",
      "object": "job_person",
      "job_id": "f2b1a0c4-1111-4000-8000-0000000000aa",
      "contact_id": "2b3c4d5e-2222-4000-8000-0000000000b2",
      "role": "install_crew",
      "name": "Ace Install",
      "company": "Ace Install",
      "email": "crew@example.com",
      "phone": "(972) 555-0177",
      "created_at": "2026-10-01T15:00:00.000Z",
      "url": "https://app.hailmate.ai/contact/2b3c4d5e-2222-4000-8000-0000000000b2"
    }
  ]
}

Put a contact on a job

POST/jobs/{id}/people

The role defaults to the contact's own kind when that is a job role.

Path parameters

  • idstringuuidRequired

Headers

  • Idempotency-Keystring

    Any unique string (a UUID is ideal). A retry with the same key within 24 hours replays the first answer — with Idempotent-Replayed: true — instead of doing the work again. Reusing a key for a DIFFERENT request is a 409.

    Up to 255 characters

Request bodyapplication/json

  • contact_idstringuuidRequired
  • rolestring
    contractorsubcontractorinstall_crewinspectormortgage_company

Returns

201Added. A JobPerson object.

  • 404not_foundNo such record in this workspace.
  • 409conflictA conflict: an Idempotency-Key clash, a record in a state that refuses the change, or a send refused (the number replied STOP, or the rep has no texting number).

Any request can also answer 401, 402, 429 or 500 — errors.

curl -X POST https://app.hailmate.ai/api/v1/jobs/f2b1a0c4-1111-4000-8000-0000000000aa/people \
  -H "Authorization: Bearer $HAILMATE_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "contact_id": "b7c2d3e4-4444-4000-8000-0000000000dd",
  "role": "contractor"
}'
Response · 201
{
  "id": "1a2b3c4d-1111-4000-8000-0000000000b1",
  "object": "job_person",
  "job_id": "f2b1a0c4-1111-4000-8000-0000000000aa",
  "contact_id": "2b3c4d5e-2222-4000-8000-0000000000b2",
  "role": "install_crew",
  "name": "Ace Install",
  "company": "Ace Install",
  "email": "crew@example.com",
  "phone": "(972) 555-0177",
  "created_at": "2026-10-01T15:00:00.000Z",
  "url": "https://app.hailmate.ai/contact/2b3c4d5e-2222-4000-8000-0000000000b2"
}

Change someone's role on a job

PATCH/jobs/{id}/people/{person_id}

Path parameters

  • idstringuuidRequired
  • person_idstringuuidRequired

Request bodyapplication/json

  • rolestringRequired
    contractorsubcontractorinstall_crewinspectormortgage_company

Returns

200Changed. A JobPerson object.

  • 404not_foundNo such record in this workspace.

Any request can also answer 401, 402, 429 or 500 — errors.

curl -X PATCH https://app.hailmate.ai/api/v1/jobs/f2b1a0c4-1111-4000-8000-0000000000aa/people/f2b1a0c4-1111-4000-8000-0000000000aa \
  -H "Authorization: Bearer $HAILMATE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "role": "contractor"
}'
Response · 200
{
  "id": "1a2b3c4d-1111-4000-8000-0000000000b1",
  "object": "job_person",
  "job_id": "f2b1a0c4-1111-4000-8000-0000000000aa",
  "contact_id": "2b3c4d5e-2222-4000-8000-0000000000b2",
  "role": "install_crew",
  "name": "Ace Install",
  "company": "Ace Install",
  "email": "crew@example.com",
  "phone": "(972) 555-0177",
  "created_at": "2026-10-01T15:00:00.000Z",
  "url": "https://app.hailmate.ai/contact/2b3c4d5e-2222-4000-8000-0000000000b2"
}

Take someone off a job

DELETE/jobs/{id}/people/{person_id}

Path parameters

  • idstringuuidRequired
  • person_idstringuuidRequired

Returns

200Removed. A Deleted object.

  • 404not_foundNo such record in this workspace.

Any request can also answer 401, 402, 429 or 500 — errors.

curl -X DELETE https://app.hailmate.ai/api/v1/jobs/f2b1a0c4-1111-4000-8000-0000000000aa/people/f2b1a0c4-1111-4000-8000-0000000000aa \
  -H "Authorization: Bearer $HAILMATE_API_KEY"
Response · 200
{
  "id": "f2b1a0c4-1111-4000-8000-0000000000aa",
  "object": "job",
  "deleted": true
}

Read a job's timeline

GET/jobs/{id}/timeline

What happened on the job, newest first — stage moves, notes, files, tasks, invoice changes. Filter with ?type=stage_change.

Path parameters

  • idstringuuidRequired

Query parameters

  • limitinteger

    Page size. Out-of-range values fall back to the default.

    1 to 200 · Default 50

  • cursorstring

    The next_cursor from the previous page, exactly as received. A cursor we did not issue is a 400.

  • typestring

Returns

200A page of timeline entries. A page of Activity objects in data, with has_more and next_cursor.

  • 404not_foundNo such record in this workspace.

Any request can also answer 401, 402, 429 or 500 — errors.

curl "https://app.hailmate.ai/api/v1/jobs/f2b1a0c4-1111-4000-8000-0000000000aa/timeline?limit=25" \
  -H "Authorization: Bearer $HAILMATE_API_KEY"
Response · 200
{
  "object": "list",
  "has_more": true,
  "next_cursor": "eyJjIjoiMjAyNi0wOS0yOFQxNDowMjowMFoiLCJpIjoiZjJiMWEwYzQifQ",
  "data": [
    {
      "id": "9a8b7c6d-1111-4000-8000-000000000099",
      "object": "activity",
      "job_id": "f2b1a0c4-1111-4000-8000-0000000000aa",
      "type": "stage_change",
      "title": "Stage changed from inspection_scheduled to claim_filed",
      "description": null,
      "author_id": "5d0e1c2b-7777-4000-8000-0000000000ab",
      "author_name": "Sam Carter",
      "created_at": "2026-09-27T14:20:00.000Z",
      "url": "https://app.hailmate.ai/job/f2b1a0c4-1111-4000-8000-0000000000aa"
    }
  ]
}

Read a job's history (every change, before and after)

GET/jobs/{id}/history

Every change to the job, newest first, one row per change: who generated or closed the lead (kind=role: sales_rep, canvasser, project_manager), the people on it (team), a field before and after (field: job_name, job_number, lead_source, found_by (the lead credit), job_type, final_amount …), a stage move (stage), when it was made (created, with what it started with) and archived. Each says who changed it, when, and through what (via: app, api, automation, system). Recorded by HailMate itself: nobody can edit or delete it, and a person's name stays as it was after they leave. Money changes are left out for a key whose owner cannot see prices.

Narrow it with kind and field, for example ?kind=role&field=canvasser for who has been the lead's setter. Use the job's id (it never changes) to match it in another system.

Path parameters

  • idstringuuidRequired

Query parameters

  • limitinteger

    Page size. Out-of-range values fall back to the default.

    1 to 200 · Default 50

  • cursorstring

    The next_cursor from the previous page, exactly as received. A cursor we did not issue is a 400.

  • kindstring

    Only these kinds, separated by commas: role (sales rep, canvasser, project manager), team, field, stage, created, archived.

  • fieldstring

    Only these fields, separated by commas, for example canvasser,found_by or job_name,job_number.

Returns

200A page of changes. A page of JobChange objects in data, with has_more and next_cursor.

  • 404not_foundNo such record in this workspace.

Any request can also answer 401, 402, 429 or 500 — errors.

curl "https://app.hailmate.ai/api/v1/jobs/f2b1a0c4-1111-4000-8000-0000000000aa/history?limit=25" \
  -H "Authorization: Bearer $HAILMATE_API_KEY"
Response · 200
{
  "object": "list",
  "has_more": true,
  "next_cursor": "eyJjIjoiMjAyNi0wOS0yOFQxNDowMjowMFoiLCJpIjoiZjJiMWEwYzQifQ",
  "data": [
    {
      "object": "job_change",
      "activity_id": "6f1c2b8e-0000-4000-8000-000000000001",
      "job_id": "0b5d9f2a-0000-4000-8000-000000000002",
      "job_number": "COL-0154",
      "job_name": "Smith reroof",
      "changed_at": "2026-11-19T15:04:00Z",
      "kind": "role",
      "field": "canvasser",
      "label": "Canvasser",
      "from": "9a8b7c6d-0000-4000-8000-000000000003",
      "to": "1a2b3c4d-0000-4000-8000-000000000004",
      "from_label": "Joe Smith",
      "to_label": "Ann Lee",
      "changed_by_id": "5e6f7a8b-0000-4000-8000-000000000005",
      "changed_by_name": "Caroline Ross",
      "via": "app",
      "line": "Canvasser changed from Joe Smith to Ann Lee, by Caroline Ross"
    }
  ]
}

List a job's photos and documents

GET/jobs/{id}/files

Path parameters

  • idstringuuidRequired

Query parameters

  • limitinteger

    Page size. Out-of-range values fall back to the default.

    1 to 200 · Default 50

  • cursorstring

    The next_cursor from the previous page, exactly as received. A cursor we did not issue is a 400.

  • categorystring
    photodocumentscopeestimatecontractother

Returns

200A page of files. A page of File objects in data, with has_more and next_cursor.

  • 404not_foundNo such record in this workspace.

Any request can also answer 401, 402, 429 or 500 — errors.

curl "https://app.hailmate.ai/api/v1/jobs/f2b1a0c4-1111-4000-8000-0000000000aa/files?limit=25" \
  -H "Authorization: Bearer $HAILMATE_API_KEY"
Response · 200
{
  "object": "list",
  "has_more": true,
  "next_cursor": "eyJjIjoiMjAyNi0wOS0yOFQxNDowMjowMFoiLCJpIjoiZjJiMWEwYzQifQ",
  "data": [
    {
      "id": "7e2d9c40-8888-4000-8000-0000000000a5",
      "object": "file",
      "job_id": "f2b1a0c4-1111-4000-8000-0000000000aa",
      "name": "north-slope-hits.jpg",
      "category": "photo",
      "mime_type": "image/jpeg",
      "is_photo": true,
      "is_video": false,
      "size_bytes": 1532410,
      "description": "Hail hits on the north slope, chalked",
      "tags": [
        "damage",
        "north slope"
      ],
      "latitude": 33.0726,
      "longitude": -96.7512,
      "taken_at": "2026-09-16T15:12:08.000Z",
      "uploaded_by_id": "5d0e1c2b-7777-4000-8000-0000000000ab",
      "uploaded_by_name": "Sam Carter",
      "download_url": "https://files.example-cdn.com/jobs/f2b1a0c4/north-slope-hits.jpg",
      "created_at": "2026-09-16T15:12:40.000Z",
      "url": "https://app.hailmate.ai/job/f2b1a0c4-1111-4000-8000-0000000000aa"
    }
  ]
}

List a job's photos

GET/jobs/{id}/photos

/jobs/{id}/files?category=photo, as its own path.

Path parameters

  • idstringuuidRequired

Query parameters

  • limitinteger

    Page size. Out-of-range values fall back to the default.

    1 to 200 · Default 50

  • cursorstring

    The next_cursor from the previous page, exactly as received. A cursor we did not issue is a 400.

Returns

200A page of photos. A page of File objects in data, with has_more and next_cursor.

  • 401unauthorizedThe key is missing, wrong or revoked.

Any request can also answer 401, 402, 429 or 500 — errors.

curl "https://app.hailmate.ai/api/v1/jobs/f2b1a0c4-1111-4000-8000-0000000000aa/photos?limit=25" \
  -H "Authorization: Bearer $HAILMATE_API_KEY"
Response · 200
{
  "object": "list",
  "has_more": true,
  "next_cursor": "eyJjIjoiMjAyNi0wOS0yOFQxNDowMjowMFoiLCJpIjoiZjJiMWEwYzQifQ",
  "data": [
    {
      "id": "7e2d9c40-8888-4000-8000-0000000000a5",
      "object": "file",
      "job_id": "f2b1a0c4-1111-4000-8000-0000000000aa",
      "name": "north-slope-hits.jpg",
      "category": "photo",
      "mime_type": "image/jpeg",
      "is_photo": true,
      "is_video": false,
      "size_bytes": 1532410,
      "description": "Hail hits on the north slope, chalked",
      "tags": [
        "damage",
        "north slope"
      ],
      "latitude": 33.0726,
      "longitude": -96.7512,
      "taken_at": "2026-09-16T15:12:08.000Z",
      "uploaded_by_id": "5d0e1c2b-7777-4000-8000-0000000000ab",
      "uploaded_by_name": "Sam Carter",
      "download_url": "https://files.example-cdn.com/jobs/f2b1a0c4/north-slope-hits.jpg",
      "created_at": "2026-09-16T15:12:40.000Z",
      "url": "https://app.hailmate.ai/job/f2b1a0c4-1111-4000-8000-0000000000aa"
    }
  ]
}

List a job's tasks and appointments

GET/jobs/{id}/tasks

Path parameters

  • idstringuuidRequired

Query parameters

  • limitinteger

    Page size. Out-of-range values fall back to the default.

    1 to 200 · Default 50

  • cursorstring

    The next_cursor from the previous page, exactly as received. A cursor we did not issue is a 400.

Returns

200A page of tasks. A page of Task objects in data, with has_more and next_cursor.

  • 401unauthorizedThe key is missing, wrong or revoked.

Any request can also answer 401, 402, 429 or 500 — errors.

curl "https://app.hailmate.ai/api/v1/jobs/f2b1a0c4-1111-4000-8000-0000000000aa/tasks?limit=25" \
  -H "Authorization: Bearer $HAILMATE_API_KEY"
Response · 200
{
  "object": "list",
  "has_more": true,
  "next_cursor": "eyJjIjoiMjAyNi0wOS0yOFQxNDowMjowMFoiLCJpIjoiZjJiMWEwYzQifQ",
  "data": [
    {
      "id": "d4e5f6a7-5555-4000-8000-0000000000ee",
      "object": "task",
      "title": "Adjuster meeting — 1804 Cedar Ridge Dr",
      "description": null,
      "due_date": "2026-10-02T15:00:00",
      "end_date": null,
      "duration_minutes": 60,
      "priority": "normal",
      "completed": false,
      "completed_at": null,
      "is_appointment": true,
      "appointment_type": "adjuster_meeting",
      "outcome": null,
      "customer_reminder": "sms",
      "reminder_minutes": 60,
      "calendar_id": "3c9d2c4f-aaaa-4000-8000-0000000000c1",
      "calendar_name": "Sales",
      "location": null,
      "job_id": "f2b1a0c4-1111-4000-8000-0000000000aa",
      "contact_id": "b7c2d3e4-4444-4000-8000-0000000000dd",
      "assigned_to_id": "5d0e1c2b-7777-4000-8000-0000000000ab",
      "assigned_to_name": "Sam Carter",
      "sales_rep_id": "5d0e1c2b-7777-4000-8000-0000000000ab",
      "sales_rep_name": "Sam Carter",
      "canvasser_id": null,
      "canvasser_name": null,
      "project_manager_id": null,
      "project_manager_name": null,
      "created_at": "2026-09-16T14:10:00.000Z",
      "updated_at": "2026-09-16T14:10:00.000Z",
      "url": "https://app.hailmate.ai/task/d4e5f6a7-5555-4000-8000-0000000000ee"
    }
  ]
}

List a job's estimates

GET/jobs/{id}/estimates

Path parameters

  • idstringuuidRequired

Query parameters

  • limitinteger

    Page size. Out-of-range values fall back to the default.

    1 to 200 · Default 50

  • cursorstring

    The next_cursor from the previous page, exactly as received. A cursor we did not issue is a 400.

Returns

200A page of estimates. A page of Estimate objects in data, with has_more and next_cursor.

  • 401unauthorizedThe key is missing, wrong or revoked.

Any request can also answer 401, 402, 429 or 500 — errors.

curl "https://app.hailmate.ai/api/v1/jobs/f2b1a0c4-1111-4000-8000-0000000000aa/estimates?limit=25" \
  -H "Authorization: Bearer $HAILMATE_API_KEY"
Response · 200
{
  "object": "list",
  "has_more": true,
  "next_cursor": "eyJjIjoiMjAyNi0wOS0yOFQxNDowMjowMFoiLCJpIjoiZjJiMWEwYzQifQ",
  "data": [
    {
      "id": "a41c9e20-2222-4000-8000-0000000000e1",
      "object": "estimate",
      "estimate_number": "EST-0214",
      "title": "Roof replacement — 1804 Cedar Ridge Dr",
      "document_type": "proposal",
      "status": "sent",
      "signature_status": "pending",
      "total": 21900,
      "package_totals": {
        "good": 18450,
        "better": 21900,
        "best": 26400
      },
      "upgrades_total": 1250,
      "selected_tier": null,
      "job_id": "f2b1a0c4-1111-4000-8000-0000000000aa",
      "valid_until": "2026-10-28T00:00:00.000Z",
      "sent_at": "2026-09-28T15:10:00.000Z",
      "first_viewed_at": "2026-09-28T18:42:00.000Z",
      "last_viewed_at": "2026-09-28T19:05:00.000Z",
      "view_count": 3,
      "signed_at": null,
      "signer_name": null,
      "pdf_url": "https://files.example-cdn.com/estimates/EST-0214.pdf",
      "signed_pdf_url": null,
      "created_at": "2026-09-27T21:30:00.000Z",
      "updated_at": "2026-09-28T19:05:00.000Z",
      "url": "https://app.hailmate.ai/estimates/a41c9e20-2222-4000-8000-0000000000e1",
      "view_url": "https://app.hailmate.ai/estimate/6f1d3b52-9c7e-4a10-8f3b-2d4e5a6b7c8d",
      "line_items": [
        {
          "id": "0c7a1e52-5555-4000-8000-0000000000e2",
          "object": "estimate_line",
          "name": "Remove and replace architectural shingles",
          "description": null,
          "quantity": 32,
          "unit": "sq",
          "unit_price": 465,
          "line_total": 14880,
          "option": "better",
          "optional": false
        }
      ]
    }
  ]
}

List a job's invoices

GET/jobs/{id}/invoices

Path parameters

  • idstringuuidRequired

Query parameters

  • limitinteger

    Page size. Out-of-range values fall back to the default.

    1 to 200 · Default 50

  • cursorstring

    The next_cursor from the previous page, exactly as received. A cursor we did not issue is a 400.

Returns

200A page of invoices. A page of Invoice objects in data, with has_more and next_cursor.

  • 401unauthorizedThe key is missing, wrong or revoked.

Any request can also answer 401, 402, 429 or 500 — errors.

curl "https://app.hailmate.ai/api/v1/jobs/f2b1a0c4-1111-4000-8000-0000000000aa/invoices?limit=25" \
  -H "Authorization: Bearer $HAILMATE_API_KEY"
Response · 200
{
  "object": "list",
  "has_more": true,
  "next_cursor": "eyJjIjoiMjAyNi0wOS0yOFQxNDowMjowMFoiLCJpIjoiZjJiMWEwYzQifQ",
  "data": [
    {
      "id": "c90d7b31-3333-4000-8000-0000000000f2",
      "object": "invoice",
      "invoice_number": "INV-0311",
      "title": "Deductible",
      "status": "sent",
      "purpose": "deductible",
      "subtotal": 2500,
      "discount_amount": 0,
      "tax_amount": 0,
      "late_fee_amount": 0,
      "total_amount": 2500,
      "amount_paid": 0,
      "balance_due": 2500,
      "part_number": null,
      "part_count": null,
      "issue_date": "2026-09-28",
      "due_date": "2026-10-12",
      "sent_at": "2026-09-28T16:00:00.000Z",
      "first_viewed_at": null,
      "paid_at": null,
      "job_id": "f2b1a0c4-1111-4000-8000-0000000000aa",
      "contact_id": "b7c2d3e4-4444-4000-8000-0000000000dd",
      "estimate_id": null,
      "pdf_url": "https://files.example-cdn.com/invoices/INV-0311.pdf",
      "created_at": "2026-09-28T15:55:00.000Z",
      "updated_at": "2026-09-28T16:00:00.000Z",
      "url": "https://app.hailmate.ai/jobs/invoice/c90d7b31-3333-4000-8000-0000000000f2",
      "payment_url": "https://app.hailmate.ai/invoice/0b7e2c19-5d4a-4f3e-9a1b-8c6d2e4f1a37",
      "line_items": [
        {
          "id": "7d2b9f14-6666-4000-8000-0000000000f3",
          "object": "invoice_line",
          "name": "Deductible",
          "description": null,
          "quantity": 1,
          "unit": "ea",
          "unit_price": 2500,
          "line_total": 2500,
          "taxable": false,
          "late_fee": false
        }
      ]
    }
  ]
}

List a job's payments

GET/jobs/{id}/payments

Path parameters

  • idstringuuidRequired

Query parameters

  • limitinteger

    Page size. Out-of-range values fall back to the default.

    1 to 200 · Default 50

  • cursorstring

    The next_cursor from the previous page, exactly as received. A cursor we did not issue is a 400.

Returns

200A page of payments. A page of Payment objects in data, with has_more and next_cursor.

  • 401unauthorizedThe key is missing, wrong or revoked.

Any request can also answer 401, 402, 429 or 500 — errors.

curl "https://app.hailmate.ai/api/v1/jobs/f2b1a0c4-1111-4000-8000-0000000000aa/payments?limit=25" \
  -H "Authorization: Bearer $HAILMATE_API_KEY"
Response · 200
{
  "object": "list",
  "has_more": true,
  "next_cursor": "eyJjIjoiMjAyNi0wOS0yOFQxNDowMjowMFoiLCJpIjoiZjJiMWEwYzQifQ",
  "data": [
    {
      "id": "9fa3e1d2-5555-4000-8000-0000000000c3",
      "object": "payment",
      "job_id": "f2b1a0c4-1111-4000-8000-0000000000aa",
      "invoice_id": null,
      "amount": 13164,
      "payment_type": "acv",
      "payer_type": "insurance",
      "payment_method": "check",
      "status": "received",
      "check_number": "4471",
      "date_received": "2026-09-26",
      "date_deposited": null,
      "notes": "First ACV check from Example Mutual",
      "is_refund": false,
      "refund_of_payment_id": null,
      "online": false,
      "created_at": "2026-09-26T20:14:00.000Z",
      "updated_at": "2026-09-26T20:14:00.000Z",
      "url": "https://app.hailmate.ai/job/f2b1a0c4-1111-4000-8000-0000000000aa"
    }
  ]
}

Read every change to the location's jobs over a period (commission reports)

GET/job_history

The same changes as GET /jobs/{id}/history, for every job in the location, newest first, each with its job's job_id, job_number and job_name. Built for commission reports: who had each job when, and every reassignment, with who made it.

Examples. - Every reassignment in November: GET /job_history?kind=role&since=2026-11-01&until=2026-12-01 - Every change of lead credit: GET /job_history?field=canvasser,found_by - Renamed or renumbered jobs: GET /job_history?field=job_name,job_number

Query parameters

  • limitinteger

    Page size. Out-of-range values fall back to the default.

    1 to 200 · Default 50

  • cursorstring

    The next_cursor from the previous page, exactly as received. A cursor we did not issue is a 400.

  • kindstring

    Only these kinds, separated by commas: role (sales rep, canvasser, project manager), team, field, stage, created, archived.

  • fieldstring

    Only these fields, separated by commas, for example canvasser,found_by or job_name,job_number.

  • sincestringdate-time

    Only changes at or after this ISO date or date-time.

  • untilstringdate-time

    Only changes before this ISO date or date-time (not included).

Returns

200A page of changes. A page of JobChange objects in data, with has_more and next_cursor.

Any request can also answer 401, 402, 429 or 500 — errors.

curl "https://app.hailmate.ai/api/v1/job_history?limit=25" \
  -H "Authorization: Bearer $HAILMATE_API_KEY"
Response · 200
{
  "object": "list",
  "has_more": true,
  "next_cursor": "eyJjIjoiMjAyNi0wOS0yOFQxNDowMjowMFoiLCJpIjoiZjJiMWEwYzQifQ",
  "data": [
    {
      "object": "job_change",
      "activity_id": "6f1c2b8e-0000-4000-8000-000000000001",
      "job_id": "0b5d9f2a-0000-4000-8000-000000000002",
      "job_number": "COL-0154",
      "job_name": "Smith reroof",
      "changed_at": "2026-11-19T15:04:00Z",
      "kind": "role",
      "field": "canvasser",
      "label": "Canvasser",
      "from": "9a8b7c6d-0000-4000-8000-000000000003",
      "to": "1a2b3c4d-0000-4000-8000-000000000004",
      "from_label": "Joe Smith",
      "to_label": "Ann Lee",
      "changed_by_id": "5e6f7a8b-0000-4000-8000-000000000005",
      "changed_by_name": "Caroline Ross",
      "via": "app",
      "line": "Canvasser changed from Joe Smith to Ann Lee, by Caroline Ross"
    }
  ]
}

Endpoints

Contacts

Homeowners, adjusters, subcontractors and everyone else in your book.

List contacts

GET/contacts

Query parameters

  • limitinteger

    Page size. Out-of-range values fall back to the default.

    1 to 200 · Default 50

  • cursorstring

    The next_cursor from the previous page, exactly as received. A cursor we did not issue is a 400.

  • updated_sincestringdate-time

    Only records changed at or after this ISO date or date-time. The way to sync only what moved.

  • created_afterstringdate-time

    Only records created at or after this ISO date or date-time.

  • created_beforestringdate-time

    Only records created before this ISO date or date-time.

  • typestring
    homeownercommercialadjustercontractorsubcontractorinstall_crewinspectormortgage_companyother
  • assigned_tostringuuid

Returns

200A page of contacts. A page of Contact objects in data, with has_more and next_cursor.

  • 401unauthorizedThe key is missing, wrong or revoked.

Any request can also answer 401, 402, 429 or 500 — errors.

curl "https://app.hailmate.ai/api/v1/contacts?limit=25" \
  -H "Authorization: Bearer $HAILMATE_API_KEY"
Response · 200
{
  "object": "list",
  "has_more": true,
  "next_cursor": "eyJjIjoiMjAyNi0wOS0yOFQxNDowMjowMFoiLCJpIjoiZjJiMWEwYzQifQ",
  "data": [
    {
      "id": "b7c2d3e4-4444-4000-8000-0000000000dd",
      "object": "contact",
      "first_name": "Dana",
      "last_name": "Reed",
      "full_name": "Dana Reed",
      "email": "dana@example.com",
      "phone": "(972) 555-0148",
      "phone_label": "mobile",
      "additional_phones": [
        {
          "phone": "(972) 555-0100",
          "label": "office"
        }
      ],
      "company": null,
      "type": "homeowner",
      "trades": [],
      "address": "1804 Cedar Ridge Dr",
      "city": "Plano",
      "state": "TX",
      "postal_code": "75024",
      "notes": null,
      "claim_number": null,
      "adjuster_type": null,
      "adjuster_extension": null,
      "assigned_to_id": null,
      "assigned_to_name": null,
      "custom_fields": {
        "Preferred contact time": "Evenings"
      },
      "created_at": "2026-09-16T13:40:00.000Z",
      "updated_at": "2026-09-16T13:40:00.000Z",
      "url": "https://app.hailmate.ai/contact/b7c2d3e4-4444-4000-8000-0000000000dd"
    }
  ]
}

Create a contact

POST/contacts

At least one of a name, email, phone or company is required — a contact with none of them is refused rather than filling your CRM with blank rows. Send name alone and it is split into first and last.

US phone numbers are stored as (615) 555-0148, the way your team types them. sms_consent cannot be set: no integration can establish that a homeowner agreed to be texted.

To avoid duplicates, search first — GET /contacts/search matches a phone number however it was typed.

Headers

  • Idempotency-Keystring

    Any unique string (a UUID is ideal). A retry with the same key within 24 hours replays the first answer — with Idempotent-Replayed: true — instead of doing the work again. Reusing a key for a DIFFERENT request is a 409.

    Up to 255 characters

Request bodyapplication/json

  • namestring

    A full name, split into first and last when those are not sent.

  • first_namestring
  • last_namestring
  • emailstringemail
  • phonestring

    Any format.

  • phone_labelstring
    mobileofficehomeworkfaxother
  • additional_phonesarray of object

    Up to five more numbers: [{phone, label}].

  • additional_phones[].phonestring
  • additional_phones[].labelstring
  • companystring
  • typestring
    homeownercommercialadjustercontractorsubcontractorinstall_crewinspectormortgage_companyother
  • tradesarray of string
  • addressstring
  • citystring
  • statestring
  • postal_codestring
  • notesstring
  • claim_numberstring
  • adjuster_typestring
  • adjuster_extensionstring
  • assigned_tostringuuid
  • custom_fieldsobject

    The workspace's own fields, by field name (any case) or id. Each value must fit its field: text, a number, a date (YYYY-MM-DD), one of a choice field's choices, or true/false. Only the fields sent change; null clears one.

Returns

201Created. A Contact object.

  • 400invalid_requestSomething in the request was wrong; field names what.

Any request can also answer 401, 402, 429 or 500 — errors.

curl -X POST https://app.hailmate.ai/api/v1/contacts \
  -H "Authorization: Bearer $HAILMATE_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "first_name": "Dana",
  "last_name": "Reed",
  "email": "dana@example.com",
  "phone": "+19725550148",
  "address": "1804 Cedar Ridge Dr",
  "city": "Plano",
  "state": "TX",
  "postal_code": "75024"
}'
Response · 201
{
  "id": "b7c2d3e4-4444-4000-8000-0000000000dd",
  "object": "contact",
  "first_name": "Dana",
  "last_name": "Reed",
  "full_name": "Dana Reed",
  "email": "dana@example.com",
  "phone": "(972) 555-0148",
  "phone_label": "mobile",
  "additional_phones": [
    {
      "phone": "(972) 555-0100",
      "label": "office"
    }
  ],
  "company": null,
  "type": "homeowner",
  "trades": [],
  "address": "1804 Cedar Ridge Dr",
  "city": "Plano",
  "state": "TX",
  "postal_code": "75024",
  "notes": null,
  "claim_number": null,
  "adjuster_type": null,
  "adjuster_extension": null,
  "assigned_to_id": null,
  "assigned_to_name": null,
  "custom_fields": {
    "Preferred contact time": "Evenings"
  },
  "created_at": "2026-09-16T13:40:00.000Z",
  "updated_at": "2026-09-16T13:40:00.000Z",
  "url": "https://app.hailmate.ai/contact/b7c2d3e4-4444-4000-8000-0000000000dd"
}

Find contacts

GET/contacts/search

Tries email first, then phone, then name, and returns the first that matches. A phone number matches however it was typed into HailMate — +16155550148, 615-555-0148 and (615) 555-0148 are the same number. name matches a first name, last name, "first last" or a company. With no criteria the result is empty.

Query parameters

  • emailstring
  • phonestring
  • namestring
  • limitinteger

    Page size. Out-of-range values fall back to the default.

    1 to 200 · Default 50

Returns

200Matching contacts. Not paged. A page of Contact objects in data, with has_more and next_cursor.

  • 401unauthorizedThe key is missing, wrong or revoked.

Any request can also answer 401, 402, 429 or 500 — errors.

curl "https://app.hailmate.ai/api/v1/contacts/search?phone=972-555-0148" \
  -H "Authorization: Bearer $HAILMATE_API_KEY"
Response · 200
{
  "object": "list",
  "has_more": true,
  "next_cursor": "eyJjIjoiMjAyNi0wOS0yOFQxNDowMjowMFoiLCJpIjoiZjJiMWEwYzQifQ",
  "data": [
    {
      "id": "b7c2d3e4-4444-4000-8000-0000000000dd",
      "object": "contact",
      "first_name": "Dana",
      "last_name": "Reed",
      "full_name": "Dana Reed",
      "email": "dana@example.com",
      "phone": "(972) 555-0148",
      "phone_label": "mobile",
      "additional_phones": [
        {
          "phone": "(972) 555-0100",
          "label": "office"
        }
      ],
      "company": null,
      "type": "homeowner",
      "trades": [],
      "address": "1804 Cedar Ridge Dr",
      "city": "Plano",
      "state": "TX",
      "postal_code": "75024",
      "notes": null,
      "claim_number": null,
      "adjuster_type": null,
      "adjuster_extension": null,
      "assigned_to_id": null,
      "assigned_to_name": null,
      "custom_fields": {
        "Preferred contact time": "Evenings"
      },
      "created_at": "2026-09-16T13:40:00.000Z",
      "updated_at": "2026-09-16T13:40:00.000Z",
      "url": "https://app.hailmate.ai/contact/b7c2d3e4-4444-4000-8000-0000000000dd"
    }
  ]
}

Get a contact

GET/contacts/{id}

Path parameters

  • idstringuuidRequired

Returns

200The contact. A Contact object.

  • 404not_foundNo such record in this workspace.

Any request can also answer 401, 402, 429 or 500 — errors.

curl https://app.hailmate.ai/api/v1/contacts/b7c2d3e4-4444-4000-8000-0000000000dd \
  -H "Authorization: Bearer $HAILMATE_API_KEY"
Response · 200
{
  "id": "b7c2d3e4-4444-4000-8000-0000000000dd",
  "object": "contact",
  "first_name": "Dana",
  "last_name": "Reed",
  "full_name": "Dana Reed",
  "email": "dana@example.com",
  "phone": "(972) 555-0148",
  "phone_label": "mobile",
  "additional_phones": [
    {
      "phone": "(972) 555-0100",
      "label": "office"
    }
  ],
  "company": null,
  "type": "homeowner",
  "trades": [],
  "address": "1804 Cedar Ridge Dr",
  "city": "Plano",
  "state": "TX",
  "postal_code": "75024",
  "notes": null,
  "claim_number": null,
  "adjuster_type": null,
  "adjuster_extension": null,
  "assigned_to_id": null,
  "assigned_to_name": null,
  "custom_fields": {
    "Preferred contact time": "Evenings"
  },
  "created_at": "2026-09-16T13:40:00.000Z",
  "updated_at": "2026-09-16T13:40:00.000Z",
  "url": "https://app.hailmate.ai/contact/b7c2d3e4-4444-4000-8000-0000000000dd"
}

Update a contact

PATCH/contacts/{id}

Send only the fields to change; null clears a field.

Path parameters

  • idstringuuidRequired

Headers

  • Idempotency-Keystring

    Any unique string (a UUID is ideal). A retry with the same key within 24 hours replays the first answer — with Idempotent-Replayed: true — instead of doing the work again. Reusing a key for a DIFFERENT request is a 409.

    Up to 255 characters

Request bodyapplication/json

  • first_namestring | null
  • last_namestring | null
  • emailstring | null
  • phonestring | null
  • phone_labelstring | null
  • additional_phonesarray of object | null

    Replaces the list.

  • additional_phones[].phonestring
  • additional_phones[].labelstring
  • companystring | null
  • typestring
    homeownercommercialadjustercontractorsubcontractorinstall_crewinspectormortgage_companyother
  • tradesarray of string | null
  • addressstring | null
  • citystring | null
  • statestring | null
  • postal_codestring | null
  • notesstring | null
  • claim_numberstring | null
  • adjuster_typestring | null
  • adjuster_extensionstring | null
  • assigned_tostring | nulluuid
  • custom_fieldsobject

    The workspace's own fields, by field name (any case) or id. Each value must fit its field: text, a number, a date (YYYY-MM-DD), one of a choice field's choices, or true/false. Only the fields sent change; null clears one.

Returns

200The contact, as it is now. A Contact object.

  • 400invalid_requestSomething in the request was wrong; field names what.
  • 404not_foundNo such record in this workspace.

Any request can also answer 401, 402, 429 or 500 — errors.

curl -X PATCH https://app.hailmate.ai/api/v1/contacts/b7c2d3e4-4444-4000-8000-0000000000dd \
  -H "Authorization: Bearer $HAILMATE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "email": "dana.reed@example.com",
  "notes": "Prefers texts after 5pm."
}'
Response · 200
{
  "id": "b7c2d3e4-4444-4000-8000-0000000000dd",
  "object": "contact",
  "first_name": "Dana",
  "last_name": "Reed",
  "full_name": "Dana Reed",
  "email": "dana@example.com",
  "phone": "(972) 555-0148",
  "phone_label": "mobile",
  "additional_phones": [
    {
      "phone": "(972) 555-0100",
      "label": "office"
    }
  ],
  "company": null,
  "type": "homeowner",
  "trades": [],
  "address": "1804 Cedar Ridge Dr",
  "city": "Plano",
  "state": "TX",
  "postal_code": "75024",
  "notes": null,
  "claim_number": null,
  "adjuster_type": null,
  "adjuster_extension": null,
  "assigned_to_id": null,
  "assigned_to_name": null,
  "custom_fields": {
    "Preferred contact time": "Evenings"
  },
  "created_at": "2026-09-16T13:40:00.000Z",
  "updated_at": "2026-09-16T13:40:00.000Z",
  "url": "https://app.hailmate.ai/contact/b7c2d3e4-4444-4000-8000-0000000000dd"
}

Delete a contact

DELETE/contacts/{id}

Kept for 30 days under Settings → Recently Deleted. Fires contact.deleted.

Path parameters

  • idstringuuidRequired

Returns

200Deleted. A Deleted object.

  • 404not_foundNo such record in this workspace.

Any request can also answer 401, 402, 429 or 500 — errors.

curl -X DELETE https://app.hailmate.ai/api/v1/contacts/b7c2d3e4-4444-4000-8000-0000000000dd \
  -H "Authorization: Bearer $HAILMATE_API_KEY"
Response · 200
{
  "id": "f2b1a0c4-1111-4000-8000-0000000000aa",
  "object": "job",
  "deleted": true
}

List a contact's jobs

GET/contacts/{id}/jobs

Every job this person is on — as homeowner, adjuster or secondary contact — archived included.

Path parameters

  • idstringuuidRequired

Query parameters

  • limitinteger

    Page size. Out-of-range values fall back to the default.

    1 to 200 · Default 50

  • cursorstring

    The next_cursor from the previous page, exactly as received. A cursor we did not issue is a 400.

Returns

200A page of jobs. A page of Job objects in data, with has_more and next_cursor.

  • 401unauthorizedThe key is missing, wrong or revoked.

Any request can also answer 401, 402, 429 or 500 — errors.

curl "https://app.hailmate.ai/api/v1/contacts/b7c2d3e4-4444-4000-8000-0000000000dd/jobs?limit=25" \
  -H "Authorization: Bearer $HAILMATE_API_KEY"
Response · 200
{
  "object": "list",
  "has_more": true,
  "next_cursor": "eyJjIjoiMjAyNi0wOS0yOFQxNDowMjowMFoiLCJpIjoiZjJiMWEwYzQifQ",
  "data": [
    {
      "id": "f2b1a0c4-1111-4000-8000-0000000000aa",
      "object": "job",
      "job_number": "JOB-00142",
      "name": "1804 Cedar Ridge Dr",
      "job_type": "insurance",
      "stage": "inspection_scheduled",
      "stage_label": "Inspection Scheduled",
      "stage_is_completed": false,
      "stage_is_lost": false,
      "stage_entered_at": "2026-09-16T14:02:00.000Z",
      "pipeline_id": "1cf7d87b-7d99-4ba0-b277-0e88ac127e75",
      "pipeline_name": "Insurance",
      "address": "1804 Cedar Ridge Dr",
      "city": "Plano",
      "state": "TX",
      "postal_code": "75024",
      "county": "Collin",
      "homeowner_id": "b7c2d3e4-4444-4000-8000-0000000000dd",
      "homeowner": {
        "id": "b7c2d3e4-4444-4000-8000-0000000000dd",
        "name": "Dana Reed",
        "email": "dana@example.com",
        "phone": "(972) 555-0148"
      },
      "adjuster_id": null,
      "adjuster": null,
      "secondary_contact_ids": [],
      "secondary_adjuster_ids": [],
      "assigned_to_id": "5d0e1c2b-7777-4000-8000-0000000000ab",
      "assigned_to_name": "Sam Carter",
      "sales_rep_id": "5d0e1c2b-7777-4000-8000-0000000000ab",
      "sales_rep_name": "Sam Carter",
      "canvasser_id": null,
      "canvasser_name": null,
      "project_manager_id": null,
      "project_manager_name": null,
      "assignee_ids": [
        "5d0e1c2b-7777-4000-8000-0000000000ab"
      ],
      "assignee_names": [
        "Sam Carter"
      ],
      "insurance_company": "Example Mutual",
      "claim_number": "CLM-88213",
      "policy_number": null,
      "date_of_loss": "2026-09-12",
      "damage_types": [
        "hail"
      ],
      "tags": [],
      "cover_photo_url": null,
      "lead_source": "Website",
      "priority": "normal",
      "mortgage_company": null,
      "financing_method": null,
      "rcv_amount": 24380.5,
      "acv_amount": 19240,
      "deductible": 2500,
      "supplements_amount": null,
      "custom_fields": {
        "Roof type": "Architectural shingle",
        "Gutters included": true
      },
      "estimated_amount": null,
      "final_amount": null,
      "total_job_value": 24380.5,
      "amount_received": 0,
      "balance_due": 24380.5,
      "contract_date": null,
      "installation_date": null,
      "archived": false,
      "completed_at": null,
      "lost_at": null,
      "lost_reason": null,
      "trades": [
        "roofing",
        "gutters"
      ],
      "roof_squares": 31.5,
      "property_type": "residential",
      "roof_material": "asphalt",
      "first_appointment_on": "2026-09-18",
      "build_started_on": null,
      "build_finished_on": null,
      "paid_in_full_on": null,
      "cancelled_at": null,
      "cancel_reason": null,
      "created_at": "2026-09-16T14:02:00.000Z",
      "updated_at": "2026-09-16T14:02:00.000Z",
      "url": "https://app.hailmate.ai/job/f2b1a0c4-1111-4000-8000-0000000000aa",
      "portal_url": "https://app.hailmate.ai/project/0f0f0f0f-3333-4000-8000-0000000000cc"
    }
  ]
}

Endpoints

Tasks

Tasks and appointments. An appointment is a task with an appointment_type.

List tasks and appointments

GET/tasks

/appointments is the same list narrowed to appointments.

Query parameters

  • limitinteger

    Page size. Out-of-range values fall back to the default.

    1 to 200 · Default 50

  • cursorstring

    The next_cursor from the previous page, exactly as received. A cursor we did not issue is a 400.

  • updated_sincestringdate-time

    Only records changed at or after this ISO date or date-time. The way to sync only what moved.

  • created_afterstringdate-time

    Only records created at or after this ISO date or date-time.

  • created_beforestringdate-time

    Only records created before this ISO date or date-time.

  • completedstring
    truefalse
  • appointmentsstring

    true returns appointments only.

    true
  • calendar_idstring

    One calendar's events (an id from /calendars), or none for the to-dos.

  • job_idstringuuid
  • contact_idstringuuid
  • assigned_tostringuuid
  • due_afterstring

    Wall-clock, e.g. 2026-10-01 or 2026-10-01T08:00:00.

  • due_beforestring

Returns

200A page of tasks. A page of Task objects in data, with has_more and next_cursor.

  • 401unauthorizedThe key is missing, wrong or revoked.

Any request can also answer 401, 402, 429 or 500 — errors.

curl "https://app.hailmate.ai/api/v1/tasks?appointments=true&due_after=2026-10-01" \
  -H "Authorization: Bearer $HAILMATE_API_KEY"
Response · 200
{
  "object": "list",
  "has_more": true,
  "next_cursor": "eyJjIjoiMjAyNi0wOS0yOFQxNDowMjowMFoiLCJpIjoiZjJiMWEwYzQifQ",
  "data": [
    {
      "id": "d4e5f6a7-5555-4000-8000-0000000000ee",
      "object": "task",
      "title": "Adjuster meeting — 1804 Cedar Ridge Dr",
      "description": null,
      "due_date": "2026-10-02T15:00:00",
      "end_date": null,
      "duration_minutes": 60,
      "priority": "normal",
      "completed": false,
      "completed_at": null,
      "is_appointment": true,
      "appointment_type": "adjuster_meeting",
      "outcome": null,
      "customer_reminder": "sms",
      "reminder_minutes": 60,
      "calendar_id": "3c9d2c4f-aaaa-4000-8000-0000000000c1",
      "calendar_name": "Sales",
      "location": null,
      "job_id": "f2b1a0c4-1111-4000-8000-0000000000aa",
      "contact_id": "b7c2d3e4-4444-4000-8000-0000000000dd",
      "assigned_to_id": "5d0e1c2b-7777-4000-8000-0000000000ab",
      "assigned_to_name": "Sam Carter",
      "sales_rep_id": "5d0e1c2b-7777-4000-8000-0000000000ab",
      "sales_rep_name": "Sam Carter",
      "canvasser_id": null,
      "canvasser_name": null,
      "project_manager_id": null,
      "project_manager_name": null,
      "created_at": "2026-09-16T14:10:00.000Z",
      "updated_at": "2026-09-16T14:10:00.000Z",
      "url": "https://app.hailmate.ai/task/d4e5f6a7-5555-4000-8000-0000000000ee"
    }
  ]
}

Create a task or an appointment

POST/tasks

Set appointment_type (inspection, adjuster_meeting, build_day) to make it an appointment; POST /appointments requires one.

Calendars. calendar_id puts it on a calendar as an event; with none it is a to-do. An appointment is always on a calendar: sent without one, it lands on the calendar its type belongs to (default_for_types in /calendars).

Times are wall-clock. due_date is the local time your crew will read. If you send an offset (2026-10-02T15:00:00-05:00, which is what Zapier sends) the offset is dropped and 3:00 PM is kept — HailMate never shifts an appointment by a time zone.

Headers

  • Idempotency-Keystring

    Any unique string (a UUID is ideal). A retry with the same key within 24 hours replays the first answer — with Idempotent-Replayed: true — instead of doing the work again. Reusing a key for a DIFFERENT request is a 409.

    Up to 255 characters

Request bodyapplication/json

  • titlestringRequired

    Up to 200 characters

  • descriptionstring
  • due_datestring

    A date or date-time. Any offset is dropped; the digits are kept.

  • end_datestringdate
  • duration_minutesinteger

    15 to 480

  • prioritystring
    lownormalhigh
  • appointment_typestring
    inspectionadjuster_meetingbuild_day
  • customer_reminderstring

    Remind the homeowner the day before.

    nonesmsemailboth
  • reminder_minutesinteger
    -105101530601201440
  • calendar_idstringuuid

    The calendar to put it on (from /calendars). Leave it out for a to-do; an appointment lands on its type's calendar.

  • locationstring

    Where, for an event with no job.

    Up to 500 characters

  • job_idstringuuid
  • contact_idstringuuid
  • assigned_tostringuuid
  • completedboolean

Returns

201Created. A Task object.

  • 400invalid_requestSomething in the request was wrong; field names what.

Any request can also answer 401, 402, 429 or 500 — errors.

curl -X POST https://app.hailmate.ai/api/v1/tasks \
  -H "Authorization: Bearer $HAILMATE_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "title": "Adjuster meeting — 1804 Cedar Ridge Dr",
  "due_date": "2026-10-02T15:00:00",
  "duration_minutes": 60,
  "appointment_type": "adjuster_meeting",
  "job_id": "f2b1a0c4-1111-4000-8000-0000000000aa",
  "assigned_to": "5d0e1c2b-7777-4000-8000-0000000000ab"
}'
Response · 201
{
  "id": "d4e5f6a7-5555-4000-8000-0000000000ee",
  "object": "task",
  "title": "Adjuster meeting — 1804 Cedar Ridge Dr",
  "description": null,
  "due_date": "2026-10-02T15:00:00",
  "end_date": null,
  "duration_minutes": 60,
  "priority": "normal",
  "completed": false,
  "completed_at": null,
  "is_appointment": true,
  "appointment_type": "adjuster_meeting",
  "outcome": null,
  "customer_reminder": "sms",
  "reminder_minutes": 60,
  "calendar_id": "3c9d2c4f-aaaa-4000-8000-0000000000c1",
  "calendar_name": "Sales",
  "location": null,
  "job_id": "f2b1a0c4-1111-4000-8000-0000000000aa",
  "contact_id": "b7c2d3e4-4444-4000-8000-0000000000dd",
  "assigned_to_id": "5d0e1c2b-7777-4000-8000-0000000000ab",
  "assigned_to_name": "Sam Carter",
  "sales_rep_id": "5d0e1c2b-7777-4000-8000-0000000000ab",
  "sales_rep_name": "Sam Carter",
  "canvasser_id": null,
  "canvasser_name": null,
  "project_manager_id": null,
  "project_manager_name": null,
  "created_at": "2026-09-16T14:10:00.000Z",
  "updated_at": "2026-09-16T14:10:00.000Z",
  "url": "https://app.hailmate.ai/task/d4e5f6a7-5555-4000-8000-0000000000ee"
}

Get a task

GET/tasks/{id}

Path parameters

  • idstringuuidRequired

Returns

200The task. A Task object.

  • 404not_foundNo such record in this workspace.

Any request can also answer 401, 402, 429 or 500 — errors.

curl https://app.hailmate.ai/api/v1/tasks/d4e5f6a7-5555-4000-8000-0000000000ee \
  -H "Authorization: Bearer $HAILMATE_API_KEY"
Response · 200
{
  "id": "d4e5f6a7-5555-4000-8000-0000000000ee",
  "object": "task",
  "title": "Adjuster meeting — 1804 Cedar Ridge Dr",
  "description": null,
  "due_date": "2026-10-02T15:00:00",
  "end_date": null,
  "duration_minutes": 60,
  "priority": "normal",
  "completed": false,
  "completed_at": null,
  "is_appointment": true,
  "appointment_type": "adjuster_meeting",
  "outcome": null,
  "customer_reminder": "sms",
  "reminder_minutes": 60,
  "calendar_id": "3c9d2c4f-aaaa-4000-8000-0000000000c1",
  "calendar_name": "Sales",
  "location": null,
  "job_id": "f2b1a0c4-1111-4000-8000-0000000000aa",
  "contact_id": "b7c2d3e4-4444-4000-8000-0000000000dd",
  "assigned_to_id": "5d0e1c2b-7777-4000-8000-0000000000ab",
  "assigned_to_name": "Sam Carter",
  "sales_rep_id": "5d0e1c2b-7777-4000-8000-0000000000ab",
  "sales_rep_name": "Sam Carter",
  "canvasser_id": null,
  "canvasser_name": null,
  "project_manager_id": null,
  "project_manager_name": null,
  "created_at": "2026-09-16T14:10:00.000Z",
  "updated_at": "2026-09-16T14:10:00.000Z",
  "url": "https://app.hailmate.ai/task/d4e5f6a7-5555-4000-8000-0000000000ee"
}

Update a task

PATCH/tasks/{id}

Reschedule it, reassign it, move it to another calendar with calendar_id, or finish it with {"completed": true} (fires task.completed). null clears a field; calendar_id: null makes it a to-do, except an appointment, which goes back to its type's calendar.

Path parameters

  • idstringuuidRequired

Headers

  • Idempotency-Keystring

    Any unique string (a UUID is ideal). A retry with the same key within 24 hours replays the first answer — with Idempotent-Replayed: true — instead of doing the work again. Reusing a key for a DIFFERENT request is a 409.

    Up to 255 characters

Request bodyapplication/json

  • titlestring
  • descriptionstring | null
  • due_datestring | null
  • end_datestring | nulldate
  • duration_minutesinteger | null
  • prioritystring | null
  • appointment_typestring | null
  • outcomestring | null
    completedno_showrescheduledcanceled
  • customer_reminderstring
  • reminder_minutesinteger | null
  • calendar_idstring | nulluuid

    Move it to this calendar. Null makes it a to-do (an appointment goes back to its type's calendar).

  • locationstring | null

    Up to 500 characters

  • job_idstring | nulluuid
  • contact_idstring | nulluuid
  • assigned_tostring | nulluuid
  • completedboolean

Returns

200The task, as it is now. A Task object.

  • 400invalid_requestSomething in the request was wrong; field names what.
  • 404not_foundNo such record in this workspace.

Any request can also answer 401, 402, 429 or 500 — errors.

curl -X PATCH https://app.hailmate.ai/api/v1/tasks/d4e5f6a7-5555-4000-8000-0000000000ee \
  -H "Authorization: Bearer $HAILMATE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "completed": true,
  "outcome": "completed"
}'
Response · 200
{
  "id": "d4e5f6a7-5555-4000-8000-0000000000ee",
  "object": "task",
  "title": "Adjuster meeting — 1804 Cedar Ridge Dr",
  "description": null,
  "due_date": "2026-10-02T15:00:00",
  "end_date": null,
  "duration_minutes": 60,
  "priority": "normal",
  "completed": false,
  "completed_at": null,
  "is_appointment": true,
  "appointment_type": "adjuster_meeting",
  "outcome": null,
  "customer_reminder": "sms",
  "reminder_minutes": 60,
  "calendar_id": "3c9d2c4f-aaaa-4000-8000-0000000000c1",
  "calendar_name": "Sales",
  "location": null,
  "job_id": "f2b1a0c4-1111-4000-8000-0000000000aa",
  "contact_id": "b7c2d3e4-4444-4000-8000-0000000000dd",
  "assigned_to_id": "5d0e1c2b-7777-4000-8000-0000000000ab",
  "assigned_to_name": "Sam Carter",
  "sales_rep_id": "5d0e1c2b-7777-4000-8000-0000000000ab",
  "sales_rep_name": "Sam Carter",
  "canvasser_id": null,
  "canvasser_name": null,
  "project_manager_id": null,
  "project_manager_name": null,
  "created_at": "2026-09-16T14:10:00.000Z",
  "updated_at": "2026-09-16T14:10:00.000Z",
  "url": "https://app.hailmate.ai/task/d4e5f6a7-5555-4000-8000-0000000000ee"
}

Delete a task

DELETE/tasks/{id}

Permanent. Fires task.deleted.

Path parameters

  • idstringuuidRequired

Returns

200Deleted. A Deleted object.

  • 404not_foundNo such record in this workspace.

Any request can also answer 401, 402, 429 or 500 — errors.

curl -X DELETE https://app.hailmate.ai/api/v1/tasks/d4e5f6a7-5555-4000-8000-0000000000ee \
  -H "Authorization: Bearer $HAILMATE_API_KEY"
Response · 200
{
  "id": "f2b1a0c4-1111-4000-8000-0000000000aa",
  "object": "job",
  "deleted": true
}

Endpoints

Calendars

Sales, Production and any calendar the company adds. An event is a task with a calendar_id; a task on no calendar is a to-do.

List calendars

GET/calendars

The company's calendars in its order, each with who is on it. Put a task on one with its calendar_id.

Returns

200Every calendar, first to last. A list of Calendar objects in data.

  • 401unauthorizedThe key is missing, wrong or revoked.

Any request can also answer 401, 402, 429 or 500 — errors.

curl https://app.hailmate.ai/api/v1/calendars \
  -H "Authorization: Bearer $HAILMATE_API_KEY"
Response · 200
{
  "object": "list",
  "data": [
    {
      "id": "3c9d2c4f-aaaa-4000-8000-0000000000c2",
      "object": "calendar",
      "name": "Production",
      "color": "green",
      "position": 2,
      "members_see_all": true,
      "default_for_types": [
        "build_day"
      ],
      "auto_join_roles": [
        "admin",
        "office",
        "production",
        "crew"
      ],
      "member_ids": [
        "5d0e1c2b-7777-4000-8000-0000000000ab"
      ],
      "created_at": "2026-10-31T14:10:00.000Z",
      "updated_at": "2026-10-31T14:10:00.000Z",
      "url": "https://app.hailmate.ai/settings/calendar"
    }
  ]
}

Add a calendar

POST/calendars

Name it and say who is on it (member_ids, ids from /users). It goes last unless you give a position, in the first colour no calendar uses yet unless you give a color. A name is unique in the company (409).

Headers

  • Idempotency-Keystring

    Any unique string (a UUID is ideal). A retry with the same key within 24 hours replays the first answer — with Idempotent-Replayed: true — instead of doing the work again. Reusing a key for a DIFFERENT request is a 409.

    Up to 255 characters

Request bodyapplication/json

  • namestringRequired

    Unique in the company

    Up to 60 characters

  • colorstring
    bluegreenorangepurpleredtealpinkyellowgraylavendersage
  • members_see_allboolean

    Share it — every member reads every event on it. Off by default.

  • default_for_typesarray of string

    Appointment types that land here when nobody picks a calendar. Claiming one takes it off any other calendar.

    inspectionadjuster_meetingbuild_day
  • auto_join_rolesarray of string

    Who joins it by themselves on joining the company. People already on the team are put on it with member_ids.

    adminofficesalesproductioncrew
  • positioninteger

    1-based place in the list. Default is last.

    At least 1

  • member_idsarray of stringuuid

    Who is on it (ids from /users).

Returns

201The calendar. A Calendar object.

  • 400invalid_requestSomething in the request was wrong; field names what.
  • 403forbiddenA read-only key tried to change something.
  • 409conflictA conflict: an Idempotency-Key clash, a record in a state that refuses the change, or a send refused (the number replied STOP, or the rep has no texting number).

Any request can also answer 401, 402, 429 or 500 — errors.

curl -X POST https://app.hailmate.ai/api/v1/calendars \
  -H "Authorization: Bearer $HAILMATE_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "name": "Service",
  "color": "teal",
  "member_ids": [
    "5d0e1c2b-7777-4000-8000-0000000000ab"
  ],
  "members_see_all": true
}'
Response · 201
{
  "id": "3c9d2c4f-aaaa-4000-8000-0000000000c2",
  "object": "calendar",
  "name": "Production",
  "color": "green",
  "position": 2,
  "members_see_all": true,
  "default_for_types": [
    "build_day"
  ],
  "auto_join_roles": [
    "admin",
    "office",
    "production",
    "crew"
  ],
  "member_ids": [
    "5d0e1c2b-7777-4000-8000-0000000000ab"
  ],
  "created_at": "2026-10-31T14:10:00.000Z",
  "updated_at": "2026-10-31T14:10:00.000Z",
  "url": "https://app.hailmate.ai/settings/calendar"
}

Get a calendar

GET/calendars/{id}

Path parameters

  • idstringuuidRequired

Returns

200The calendar. A Calendar object.

  • 404not_foundNo such record in this workspace.

Any request can also answer 401, 402, 429 or 500 — errors.

curl https://app.hailmate.ai/api/v1/calendars/00000000-0000-4000-8000-000000000000 \
  -H "Authorization: Bearer $HAILMATE_API_KEY"
Response · 200
{
  "id": "3c9d2c4f-aaaa-4000-8000-0000000000c2",
  "object": "calendar",
  "name": "Production",
  "color": "green",
  "position": 2,
  "members_see_all": true,
  "default_for_types": [
    "build_day"
  ],
  "auto_join_roles": [
    "admin",
    "office",
    "production",
    "crew"
  ],
  "member_ids": [
    "5d0e1c2b-7777-4000-8000-0000000000ab"
  ],
  "created_at": "2026-10-31T14:10:00.000Z",
  "updated_at": "2026-10-31T14:10:00.000Z",
  "url": "https://app.hailmate.ai/settings/calendar"
}

Rename, recolour, share, move or change who is on a calendar

PATCH/calendars/{id}

Send only what changes. member_ids is the whole list: people added join, people left out leave.

Path parameters

  • idstringuuidRequired

Headers

  • Idempotency-Keystring

    Any unique string (a UUID is ideal). A retry with the same key within 24 hours replays the first answer — with Idempotent-Replayed: true — instead of doing the work again. Reusing a key for a DIFFERENT request is a 409.

    Up to 255 characters

Request bodyapplication/json

  • namestring

    Up to 60 characters

  • colorstring
    bluegreenorangepurpleredtealpinkyellowgraylavendersage
  • members_see_allboolean
  • default_for_typesarray of string
    inspectionadjuster_meetingbuild_day
  • auto_join_rolesarray of string
    adminofficesalesproductioncrew
  • positioninteger

    At least 1

  • member_idsarray of stringuuid

Returns

200The calendar, as it is now. A Calendar object.

  • 400invalid_requestSomething in the request was wrong; field names what.
  • 403forbiddenA read-only key tried to change something.
  • 404not_foundNo such record in this workspace.
  • 409conflictA conflict: an Idempotency-Key clash, a record in a state that refuses the change, or a send refused (the number replied STOP, or the rep has no texting number).

Any request can also answer 401, 402, 429 or 500 — errors.

curl -X PATCH https://app.hailmate.ai/api/v1/calendars/00000000-0000-4000-8000-000000000000 \
  -H "Authorization: Bearer $HAILMATE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "Builds",
  "members_see_all": true,
  "default_for_types": [
    "build_day"
  ]
}'
Response · 200
{
  "id": "3c9d2c4f-aaaa-4000-8000-0000000000c2",
  "object": "calendar",
  "name": "Production",
  "color": "green",
  "position": 2,
  "members_see_all": true,
  "default_for_types": [
    "build_day"
  ],
  "auto_join_roles": [
    "admin",
    "office",
    "production",
    "crew"
  ],
  "member_ids": [
    "5d0e1c2b-7777-4000-8000-0000000000ab"
  ],
  "created_at": "2026-10-31T14:10:00.000Z",
  "updated_at": "2026-10-31T14:10:00.000Z",
  "url": "https://app.hailmate.ai/settings/calendar"
}

Delete a calendar

DELETE/calendars/{id}

Its events move to move_to, or become to-dos when you send none (an appointment still lands on its type's calendar). A company keeps at least one calendar (409).

Path parameters

  • idstringuuidRequired

Query parameters

  • move_tostringuuid

    Another calendar's id, from /calendars, to move its events to.

Headers

  • Idempotency-Keystring

    Any unique string (a UUID is ideal). A retry with the same key within 24 hours replays the first answer — with Idempotent-Replayed: true — instead of doing the work again. Reusing a key for a DIFFERENT request is a 409.

    Up to 255 characters

Returns

200Deleted. A CalendarDeleted object.

  • 400invalid_requestSomething in the request was wrong; field names what.
  • 403forbiddenA read-only key tried to change something.
  • 404not_foundNo such record in this workspace.
  • 409conflictA conflict: an Idempotency-Key clash, a record in a state that refuses the change, or a send refused (the number replied STOP, or the rep has no texting number).

Any request can also answer 401, 402, 429 or 500 — errors.

curl -X DELETE https://app.hailmate.ai/api/v1/calendars/00000000-0000-4000-8000-000000000000 \
  -H "Authorization: Bearer $HAILMATE_API_KEY"
Response · 200
{
  "id": "3c9d2c4f-aaaa-4000-8000-0000000000c3",
  "object": "calendar",
  "deleted": true,
  "events_moved": 4,
  "moved_to": "3c9d2c4f-aaaa-4000-8000-0000000000c2"
}

Endpoints

Estimates

Estimates and proposals — made from one of your templates or as your standard proposal, then finished and sent in HailMate.

List estimates

GET/estimates

Query parameters

  • limitinteger

    Page size. Out-of-range values fall back to the default.

    1 to 200 · Default 50

  • cursorstring

    The next_cursor from the previous page, exactly as received. A cursor we did not issue is a 400.

  • updated_sincestringdate-time

    Only records changed at or after this ISO date or date-time. The way to sync only what moved.

  • created_afterstringdate-time

    Only records created at or after this ISO date or date-time.

  • created_beforestringdate-time

    Only records created before this ISO date or date-time.

  • statusstring
    draftsentviewedsignedexpireddeclined
  • job_idstringuuid
  • estimate_numberstring

Returns

200A page of estimates. A page of Estimate objects in data, with has_more and next_cursor.

  • 401unauthorizedThe key is missing, wrong or revoked.

Any request can also answer 401, 402, 429 or 500 — errors.

curl "https://app.hailmate.ai/api/v1/estimates?limit=25" \
  -H "Authorization: Bearer $HAILMATE_API_KEY"
Response · 200
{
  "object": "list",
  "has_more": true,
  "next_cursor": "eyJjIjoiMjAyNi0wOS0yOFQxNDowMjowMFoiLCJpIjoiZjJiMWEwYzQifQ",
  "data": [
    {
      "id": "a41c9e20-2222-4000-8000-0000000000e1",
      "object": "estimate",
      "estimate_number": "EST-0214",
      "title": "Roof replacement — 1804 Cedar Ridge Dr",
      "document_type": "proposal",
      "status": "sent",
      "signature_status": "pending",
      "total": 21900,
      "package_totals": {
        "good": 18450,
        "better": 21900,
        "best": 26400
      },
      "upgrades_total": 1250,
      "selected_tier": null,
      "job_id": "f2b1a0c4-1111-4000-8000-0000000000aa",
      "valid_until": "2026-10-28T00:00:00.000Z",
      "sent_at": "2026-09-28T15:10:00.000Z",
      "first_viewed_at": "2026-09-28T18:42:00.000Z",
      "last_viewed_at": "2026-09-28T19:05:00.000Z",
      "view_count": 3,
      "signed_at": null,
      "signer_name": null,
      "pdf_url": "https://files.example-cdn.com/estimates/EST-0214.pdf",
      "signed_pdf_url": null,
      "created_at": "2026-09-27T21:30:00.000Z",
      "updated_at": "2026-09-28T19:05:00.000Z",
      "url": "https://app.hailmate.ai/estimates/a41c9e20-2222-4000-8000-0000000000e1",
      "view_url": "https://app.hailmate.ai/estimate/6f1d3b52-9c7e-4a10-8f3b-2d4e5a6b7c8d",
      "line_items": [
        {
          "id": "0c7a1e52-5555-4000-8000-0000000000e2",
          "object": "estimate_line",
          "name": "Remove and replace architectural shingles",
          "description": null,
          "quantity": 32,
          "unit": "sq",
          "unit_price": 465,
          "line_total": 14880,
          "option": "better",
          "optional": false
        }
      ]
    }
  ]
}

Create an estimate

POST/estimates

Makes a draft estimate on a job, one of two ways — the same two the app offers:

  • From one of your templates (template_id, from GET /estimate_templates): an exact copy, with its smart fields ({{customer_name}}, {{property_address}}…) filled in from the job.
  • Your standard proposal: cover, introduction, Scope of Work, warranty, terms and signature. The Scope of Work is the lines you send, or HailMate's standard checklist when you send none.

price states one price for the whole job, which is what the homeowner sees as the total. The estimate is not sent — a person finishes and sends it in HailMate. Fires estimate.created.

Headers

  • Idempotency-Keystring

    Any unique string (a UUID is ideal). A retry with the same key within 24 hours replays the first answer — with Idempotent-Replayed: true — instead of doing the work again. Reusing a key for a DIFFERENT request is a 409.

    Up to 255 characters

Request bodyapplication/json

  • job_idstringuuidRequired
  • template_idstringuuid

    One of your templates. Leave out for your standard proposal.

  • titlestring
  • pricenumber

    One price for the whole job.

    More than 0

  • valid_untilstringdate

    Defaults to your workspace's setting.

  • line_itemsarray of LineItemInput

    The Scope of Work, without a template. Leave out for the standard checklist.

Returns

201Created, as a draft. An Estimate object.

  • 400invalid_requestSomething in the request was wrong; field names what.
  • 403forbiddenA read-only key tried to change something.

Any request can also answer 401, 402, 429 or 500 — errors.

curl -X POST https://app.hailmate.ai/api/v1/estimates \
  -H "Authorization: Bearer $HAILMATE_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "job_id": "f2b1a0c4-1111-4000-8000-0000000000aa",
  "template_id": "7a1c9e02-2222-4000-8000-0000000000c3",
  "price": 14500
}'
Response · 201
{
  "id": "a41c9e20-2222-4000-8000-0000000000e1",
  "object": "estimate",
  "estimate_number": "EST-0214",
  "title": "Roof replacement — 1804 Cedar Ridge Dr",
  "document_type": "proposal",
  "status": "sent",
  "signature_status": "pending",
  "total": 21900,
  "package_totals": {
    "good": 18450,
    "better": 21900,
    "best": 26400
  },
  "upgrades_total": 1250,
  "selected_tier": null,
  "job_id": "f2b1a0c4-1111-4000-8000-0000000000aa",
  "valid_until": "2026-10-28T00:00:00.000Z",
  "sent_at": "2026-09-28T15:10:00.000Z",
  "first_viewed_at": "2026-09-28T18:42:00.000Z",
  "last_viewed_at": "2026-09-28T19:05:00.000Z",
  "view_count": 3,
  "signed_at": null,
  "signer_name": null,
  "pdf_url": "https://files.example-cdn.com/estimates/EST-0214.pdf",
  "signed_pdf_url": null,
  "created_at": "2026-09-27T21:30:00.000Z",
  "updated_at": "2026-09-28T19:05:00.000Z",
  "url": "https://app.hailmate.ai/estimates/a41c9e20-2222-4000-8000-0000000000e1",
  "view_url": "https://app.hailmate.ai/estimate/6f1d3b52-9c7e-4a10-8f3b-2d4e5a6b7c8d",
  "line_items": [
    {
      "id": "0c7a1e52-5555-4000-8000-0000000000e2",
      "object": "estimate_line",
      "name": "Remove and replace architectural shingles",
      "description": null,
      "quantity": 32,
      "unit": "sq",
      "unit_price": 465,
      "line_total": 14880,
      "option": "better",
      "optional": false
    }
  ]
}

Get an estimate

GET/estimates/{id}

Path parameters

  • idstringuuidRequired

Returns

200The estimate. An Estimate object.

  • 404not_foundNo such record in this workspace.

Any request can also answer 401, 402, 429 or 500 — errors.

curl https://app.hailmate.ai/api/v1/estimates/a41c9e20-2222-4000-8000-0000000000e1 \
  -H "Authorization: Bearer $HAILMATE_API_KEY"
Response · 200
{
  "id": "a41c9e20-2222-4000-8000-0000000000e1",
  "object": "estimate",
  "estimate_number": "EST-0214",
  "title": "Roof replacement — 1804 Cedar Ridge Dr",
  "document_type": "proposal",
  "status": "sent",
  "signature_status": "pending",
  "total": 21900,
  "package_totals": {
    "good": 18450,
    "better": 21900,
    "best": 26400
  },
  "upgrades_total": 1250,
  "selected_tier": null,
  "job_id": "f2b1a0c4-1111-4000-8000-0000000000aa",
  "valid_until": "2026-10-28T00:00:00.000Z",
  "sent_at": "2026-09-28T15:10:00.000Z",
  "first_viewed_at": "2026-09-28T18:42:00.000Z",
  "last_viewed_at": "2026-09-28T19:05:00.000Z",
  "view_count": 3,
  "signed_at": null,
  "signer_name": null,
  "pdf_url": "https://files.example-cdn.com/estimates/EST-0214.pdf",
  "signed_pdf_url": null,
  "created_at": "2026-09-27T21:30:00.000Z",
  "updated_at": "2026-09-28T19:05:00.000Z",
  "url": "https://app.hailmate.ai/estimates/a41c9e20-2222-4000-8000-0000000000e1",
  "view_url": "https://app.hailmate.ai/estimate/6f1d3b52-9c7e-4a10-8f3b-2d4e5a6b7c8d",
  "line_items": [
    {
      "id": "0c7a1e52-5555-4000-8000-0000000000e2",
      "object": "estimate_line",
      "name": "Remove and replace architectural shingles",
      "description": null,
      "quantity": 32,
      "unit": "sq",
      "unit_price": 465,
      "line_total": 14880,
      "option": "better",
      "optional": false
    }
  ]
}

Update an estimate

PATCH/estimates/{id}

Changes what sits outside the document: its title, how long it is valid, and one stated price (null takes the price off). Lines are changed with /estimates/{id}/line_items. Refused with 409 once the estimate is out for signature or signed.

Path parameters

  • idstringuuidRequired

Headers

  • Idempotency-Keystring

    Any unique string (a UUID is ideal). A retry with the same key within 24 hours replays the first answer — with Idempotent-Replayed: true — instead of doing the work again. Reusing a key for a DIFFERENT request is a 409.

    Up to 255 characters

Request bodyapplication/json

  • titlestring | null
  • pricenumber | null

    null takes the stated price off.

    More than 0

  • valid_untilstring | nulldate

Returns

200The estimate, as it is now. An Estimate object.

  • 400invalid_requestSomething in the request was wrong; field names what.
  • 404not_foundNo such record in this workspace.
  • 409conflictA conflict: an Idempotency-Key clash, a record in a state that refuses the change, or a send refused (the number replied STOP, or the rep has no texting number).

Any request can also answer 401, 402, 429 or 500 — errors.

curl -X PATCH https://app.hailmate.ai/api/v1/estimates/a41c9e20-2222-4000-8000-0000000000e1 \
  -H "Authorization: Bearer $HAILMATE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "price": 15250,
  "valid_until": "2026-12-01"
}'
Response · 200
{
  "id": "a41c9e20-2222-4000-8000-0000000000e1",
  "object": "estimate",
  "estimate_number": "EST-0214",
  "title": "Roof replacement — 1804 Cedar Ridge Dr",
  "document_type": "proposal",
  "status": "sent",
  "signature_status": "pending",
  "total": 21900,
  "package_totals": {
    "good": 18450,
    "better": 21900,
    "best": 26400
  },
  "upgrades_total": 1250,
  "selected_tier": null,
  "job_id": "f2b1a0c4-1111-4000-8000-0000000000aa",
  "valid_until": "2026-10-28T00:00:00.000Z",
  "sent_at": "2026-09-28T15:10:00.000Z",
  "first_viewed_at": "2026-09-28T18:42:00.000Z",
  "last_viewed_at": "2026-09-28T19:05:00.000Z",
  "view_count": 3,
  "signed_at": null,
  "signer_name": null,
  "pdf_url": "https://files.example-cdn.com/estimates/EST-0214.pdf",
  "signed_pdf_url": null,
  "created_at": "2026-09-27T21:30:00.000Z",
  "updated_at": "2026-09-28T19:05:00.000Z",
  "url": "https://app.hailmate.ai/estimates/a41c9e20-2222-4000-8000-0000000000e1",
  "view_url": "https://app.hailmate.ai/estimate/6f1d3b52-9c7e-4a10-8f3b-2d4e5a6b7c8d",
  "line_items": [
    {
      "id": "0c7a1e52-5555-4000-8000-0000000000e2",
      "object": "estimate_line",
      "name": "Remove and replace architectural shingles",
      "description": null,
      "quantity": 32,
      "unit": "sq",
      "unit_price": 465,
      "line_total": 14880,
      "option": "better",
      "optional": false
    }
  ]
}

Delete an estimate

DELETE/estimates/{id}

Its sections, lines and photos go with it. A signed estimate, or one out for signature, cannot be deleted (409).

Path parameters

  • idstringuuidRequired

Headers

  • Idempotency-Keystring

    Any unique string (a UUID is ideal). A retry with the same key within 24 hours replays the first answer — with Idempotent-Replayed: true — instead of doing the work again. Reusing a key for a DIFFERENT request is a 409.

    Up to 255 characters

Returns

200Deleted. A Deleted object.

  • 404not_foundNo such record in this workspace.
  • 409conflictA conflict: an Idempotency-Key clash, a record in a state that refuses the change, or a send refused (the number replied STOP, or the rep has no texting number).

Any request can also answer 401, 402, 429 or 500 — errors.

curl -X DELETE https://app.hailmate.ai/api/v1/estimates/a41c9e20-2222-4000-8000-0000000000e1 \
  -H "Authorization: Bearer $HAILMATE_API_KEY"
Response · 200
{
  "id": "f2b1a0c4-1111-4000-8000-0000000000aa",
  "object": "job",
  "deleted": true
}

List an estimate's line items

GET/estimates/{id}/line_items

Path parameters

  • idstringuuidRequired

Returns

200Every line, in order. A page of EstimateLine objects in data, with has_more and next_cursor.

  • 404not_foundNo such record in this workspace.

Any request can also answer 401, 402, 429 or 500 — errors.

curl https://app.hailmate.ai/api/v1/estimates/a41c9e20-2222-4000-8000-0000000000e1/line_items \
  -H "Authorization: Bearer $HAILMATE_API_KEY"
Response · 200
{
  "object": "list",
  "has_more": true,
  "next_cursor": "eyJjIjoiMjAyNi0wOS0yOFQxNDowMjowMFoiLCJpIjoiZjJiMWEwYzQifQ",
  "data": [
    {
      "id": "0c7a1e52-5555-4000-8000-0000000000e2",
      "object": "estimate_line",
      "name": "Remove and replace architectural shingles",
      "description": null,
      "quantity": 32,
      "unit": "sq",
      "unit_price": 465,
      "line_total": 14880,
      "option": "better",
      "optional": false
    }
  ]
}

Add a line item to an estimate

POST/estimates/{id}/line_items

Goes in the scope block of its package (option; none = every package), or the block named in section_id. Pass a product_id from your price book to fill the name, unit and price you leave out. Refused (409) once out for signature or signed.

Path parameters

  • idstringuuidRequired

Headers

  • Idempotency-Keystring

    Any unique string (a UUID is ideal). A retry with the same key within 24 hours replays the first answer — with Idempotent-Replayed: true — instead of doing the work again. Reusing a key for a DIFFERENT request is a 409.

    Up to 255 characters

Request bodyapplication/json

  • namestring
  • descriptionstring | null
  • quantitynumber

    Billable quantity (after waste).

    Default 1

  • unitstring

    sq, lf, ea…

  • unit_pricenumber
  • optionstring | null

    Package key (good, better, best, or your own). Null = every package.

  • optionalboolean

    An optional upgrade the homeowner can add.

  • product_idstringuuid

    A price-book item.

  • section_idstringuuid

    A line-item block on this estimate.

Returns

201The new line. An EstimateLine object.

  • 400invalid_requestSomething in the request was wrong; field names what.
  • 404not_foundNo such record in this workspace.
  • 409conflictA conflict: an Idempotency-Key clash, a record in a state that refuses the change, or a send refused (the number replied STOP, or the rep has no texting number).

Any request can also answer 401, 402, 429 or 500 — errors.

curl -X POST https://app.hailmate.ai/api/v1/estimates/a41c9e20-2222-4000-8000-0000000000e1/line_items \
  -H "Authorization: Bearer $HAILMATE_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "name": "Ridge vent",
  "quantity": 40,
  "unit": "lf",
  "unit_price": 8.5
}'
Response · 201
{
  "id": "0c7a1e52-5555-4000-8000-0000000000e2",
  "object": "estimate_line",
  "name": "Remove and replace architectural shingles",
  "description": null,
  "quantity": 32,
  "unit": "sq",
  "unit_price": 465,
  "line_total": 14880,
  "option": "better",
  "optional": false
}

Change a line item on an estimate

PATCH/estimates/{id}/line_items/{line_id}

Path parameters

  • idstringuuidRequired
  • line_idstringuuidRequired

Headers

  • Idempotency-Keystring

    Any unique string (a UUID is ideal). A retry with the same key within 24 hours replays the first answer — with Idempotent-Replayed: true — instead of doing the work again. Reusing a key for a DIFFERENT request is a 409.

    Up to 255 characters

Request bodyapplication/json

  • namestring
  • descriptionstring | null
  • quantitynumber
  • unitstring
  • unit_pricenumber
  • optionstring | null
  • optionalboolean
  • product_idstring | nulluuid

Returns

200The line. An EstimateLine object.

  • 404not_foundNo such record in this workspace.
  • 409conflictA conflict: an Idempotency-Key clash, a record in a state that refuses the change, or a send refused (the number replied STOP, or the rep has no texting number).

Any request can also answer 401, 402, 429 or 500 — errors.

curl -X PATCH https://app.hailmate.ai/api/v1/estimates/a41c9e20-2222-4000-8000-0000000000e1/line_items/a41c9e20-2222-4000-8000-0000000000e1 \
  -H "Authorization: Bearer $HAILMATE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "quantity": 44
}'
Response · 200
{
  "id": "0c7a1e52-5555-4000-8000-0000000000e2",
  "object": "estimate_line",
  "name": "Remove and replace architectural shingles",
  "description": null,
  "quantity": 32,
  "unit": "sq",
  "unit_price": 465,
  "line_total": 14880,
  "option": "better",
  "optional": false
}

Remove a line item from an estimate

DELETE/estimates/{id}/line_items/{line_id}

Path parameters

  • idstringuuidRequired
  • line_idstringuuidRequired

Headers

  • Idempotency-Keystring

    Any unique string (a UUID is ideal). A retry with the same key within 24 hours replays the first answer — with Idempotent-Replayed: true — instead of doing the work again. Reusing a key for a DIFFERENT request is a 409.

    Up to 255 characters

Returns

200Removed. A Deleted object.

  • 404not_foundNo such record in this workspace.
  • 409conflictA conflict: an Idempotency-Key clash, a record in a state that refuses the change, or a send refused (the number replied STOP, or the rep has no texting number).

Any request can also answer 401, 402, 429 or 500 — errors.

curl -X DELETE https://app.hailmate.ai/api/v1/estimates/a41c9e20-2222-4000-8000-0000000000e1/line_items/a41c9e20-2222-4000-8000-0000000000e1 \
  -H "Authorization: Bearer $HAILMATE_API_KEY"
Response · 200
{
  "id": "f2b1a0c4-1111-4000-8000-0000000000aa",
  "object": "job",
  "deleted": true
}

Send an estimate to the homeowner

POST/estimates/{id}/send

FOR REAL, as a rep: email attaches a fresh PDF; text sends a link that opens it. Goes to the job's homeowner unless you name a contact or to. A draft becomes sent. Confirm with the person before sending. Signing (BoldSign) is done in HailMate.

Path parameters

  • idstringuuidRequired

Headers

  • Idempotency-Keystring

    Any unique string (a UUID is ideal). A retry with the same key within 24 hours replays the first answer — with Idempotent-Replayed: true — instead of doing the work again. Reusing a key for a DIFFERENT request is a 409.

    Up to 255 characters

Request bodyapplication/json

  • methodstring
    emailtext

    Default email

  • contact_idstringuuid

    Who it goes to. Default: the job's homeowner.

  • toarray of string

    Email: addresses. Text: one phone number. Overrides the contact's.

  • subjectstring

    Email only.

  • messagestring

    Your words. A text gets the link added on the end.

  • from_user_idstringuuid

    The teammate it is sent as. Default: whoever made the key or connected the app.

Returns

200The estimate, and the message that went out.

  • 400invalid_requestSomething in the request was wrong; field names what.
  • 404not_foundNo such record in this workspace.
  • 409conflictA conflict: an Idempotency-Key clash, a record in a state that refuses the change, or a send refused (the number replied STOP, or the rep has no texting number).

Any request can also answer 401, 402, 429 or 500 — errors.

curl -X POST https://app.hailmate.ai/api/v1/estimates/a41c9e20-2222-4000-8000-0000000000e1/send \
  -H "Authorization: Bearer $HAILMATE_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "method": "email"
}'
Response · 200
{
  "id": "a41c9e20-2222-4000-8000-0000000000e1",
  "object": "estimate",
  "estimate_number": "EST-0214",
  "title": "Roof replacement — 1804 Cedar Ridge Dr",
  "document_type": "proposal",
  "status": "sent",
  "signature_status": "pending",
  "total": 21900,
  "package_totals": {
    "good": 18450,
    "better": 21900,
    "best": 26400
  },
  "upgrades_total": 1250,
  "selected_tier": null,
  "job_id": "f2b1a0c4-1111-4000-8000-0000000000aa",
  "valid_until": "2026-10-28T00:00:00.000Z",
  "sent_at": "2026-09-28T15:10:00.000Z",
  "first_viewed_at": "2026-09-28T18:42:00.000Z",
  "last_viewed_at": "2026-09-28T19:05:00.000Z",
  "view_count": 3,
  "signed_at": null,
  "signer_name": null,
  "pdf_url": "https://files.example-cdn.com/estimates/EST-0214.pdf",
  "signed_pdf_url": null,
  "created_at": "2026-09-27T21:30:00.000Z",
  "updated_at": "2026-09-28T19:05:00.000Z",
  "url": "https://app.hailmate.ai/estimates/a41c9e20-2222-4000-8000-0000000000e1",
  "view_url": "https://app.hailmate.ai/estimate/6f1d3b52-9c7e-4a10-8f3b-2d4e5a6b7c8d",
  "line_items": [
    {
      "id": "0c7a1e52-5555-4000-8000-0000000000e2",
      "object": "estimate_line",
      "name": "Remove and replace architectural shingles",
      "description": null,
      "quantity": 32,
      "unit": "sq",
      "unit_price": 465,
      "line_total": 14880,
      "option": "better",
      "optional": false
    }
  ],
  "message": {
    "id": "d1d2d3d4-cccc-4000-8000-000000000077",
    "object": "message",
    "channel": "text",
    "direction": "inbound",
    "contact_id": "b7c2d3e4-4444-4000-8000-0000000000dd",
    "job_id": "f2b1a0c4-1111-4000-8000-0000000000aa",
    "estimate_id": null,
    "invoice_id": null,
    "rep_id": "5d0e1c2b-7777-4000-8000-0000000000ab",
    "rep_name": "Sam Carter",
    "to": null,
    "from": null,
    "subject": null,
    "body": "Thursday at 3 works for the adjuster. Thanks!",
    "media_urls": [],
    "status": "received",
    "delivery_error": null,
    "call_status": null,
    "call_duration_seconds": null,
    "summary": null,
    "recording_url": null,
    "thread_id": null,
    "ai_drafted": false,
    "sent_at": "2026-09-16T18:12:00.000Z",
    "delivered_at": null,
    "opened_at": null,
    "read_at": null,
    "created_at": "2026-09-16T18:12:00.000Z",
    "url": "https://app.hailmate.ai/contact/b7c2d3e4-4444-4000-8000-0000000000dd"
  }
}

List estimate templates

GET/estimate_templates

The workspace's own templates, most recently changed first — what a "which template?" dropdown lists.

Query parameters

  • limitinteger

    Page size. Out-of-range values fall back to the default.

    1 to 200 · Default 50

Returns

200The templates. A list of EstimateTemplate objects in data.

  • 401unauthorizedThe key is missing, wrong or revoked.

Any request can also answer 401, 402, 429 or 500 — errors.

curl "https://app.hailmate.ai/api/v1/estimate_templates?limit=25" \
  -H "Authorization: Bearer $HAILMATE_API_KEY"
Response · 200
{
  "object": "list",
  "data": [
    {
      "id": "7a1c9e02-2222-4000-8000-0000000000c3",
      "object": "estimate_template",
      "name": "Insurance roof replacement",
      "template_number": "TPL-0003",
      "created_at": "2026-08-30T15:00:00.000Z",
      "updated_at": "2026-09-20T18:30:00.000Z"
    }
  ],
  "has_more": false,
  "next_cursor": null
}

Endpoints

Invoices

Invoices, totalled exactly as HailMate totals them — send them, mark them sent, void them, write them off.

List invoices

GET/invoices

Query parameters

  • limitinteger

    Page size. Out-of-range values fall back to the default.

    1 to 200 · Default 50

  • cursorstring

    The next_cursor from the previous page, exactly as received. A cursor we did not issue is a 400.

  • updated_sincestringdate-time

    Only records changed at or after this ISO date or date-time. The way to sync only what moved.

  • created_afterstringdate-time

    Only records created at or after this ISO date or date-time.

  • created_beforestringdate-time

    Only records created before this ISO date or date-time.

  • statusstring
    draftsentviewedpartially_paidpaidoverduevoidbad_debt
  • job_idstringuuid
  • contact_idstringuuid
  • invoice_numberstring

Returns

200A page of invoices. A page of Invoice objects in data, with has_more and next_cursor.

  • 401unauthorizedThe key is missing, wrong or revoked.

Any request can also answer 401, 402, 429 or 500 — errors.

curl "https://app.hailmate.ai/api/v1/invoices?limit=25" \
  -H "Authorization: Bearer $HAILMATE_API_KEY"
Response · 200
{
  "object": "list",
  "has_more": true,
  "next_cursor": "eyJjIjoiMjAyNi0wOS0yOFQxNDowMjowMFoiLCJpIjoiZjJiMWEwYzQifQ",
  "data": [
    {
      "id": "c90d7b31-3333-4000-8000-0000000000f2",
      "object": "invoice",
      "invoice_number": "INV-0311",
      "title": "Deductible",
      "status": "sent",
      "purpose": "deductible",
      "subtotal": 2500,
      "discount_amount": 0,
      "tax_amount": 0,
      "late_fee_amount": 0,
      "total_amount": 2500,
      "amount_paid": 0,
      "balance_due": 2500,
      "part_number": null,
      "part_count": null,
      "issue_date": "2026-09-28",
      "due_date": "2026-10-12",
      "sent_at": "2026-09-28T16:00:00.000Z",
      "first_viewed_at": null,
      "paid_at": null,
      "job_id": "f2b1a0c4-1111-4000-8000-0000000000aa",
      "contact_id": "b7c2d3e4-4444-4000-8000-0000000000dd",
      "estimate_id": null,
      "pdf_url": "https://files.example-cdn.com/invoices/INV-0311.pdf",
      "created_at": "2026-09-28T15:55:00.000Z",
      "updated_at": "2026-09-28T16:00:00.000Z",
      "url": "https://app.hailmate.ai/jobs/invoice/c90d7b31-3333-4000-8000-0000000000f2",
      "payment_url": "https://app.hailmate.ai/invoice/0b7e2c19-5d4a-4f3e-9a1b-8c6d2e4f1a37",
      "line_items": [
        {
          "id": "7d2b9f14-6666-4000-8000-0000000000f3",
          "object": "invoice_line",
          "name": "Deductible",
          "description": null,
          "quantity": 1,
          "unit": "ea",
          "unit_price": 2500,
          "line_total": 2500,
          "taxable": false,
          "late_fee": false
        }
      ]
    }
  ]
}

Create an invoice

POST/invoices

Makes a draft invoice for a job (job_id) or a contact (contact_id), with at least one line. HailMate numbers it (INV-0312) and totals it with the same calculator the app uses: lines, minus any discount, plus tax on the taxable lines. A negative price is a credit. purpose fills the matching figure on the job — a deductible invoice sets the job's deductible — exactly as in the app.

A draft is not sent. Send it from HailMate, or call mark_sent when it went out another way. Fires invoice.created.

Headers

  • Idempotency-Keystring

    Any unique string (a UUID is ideal). A retry with the same key within 24 hours replays the first answer — with Idempotent-Replayed: true — instead of doing the work again. Reusing a key for a DIFFERENT request is a 409.

    Up to 255 characters

Request bodyapplication/json

  • job_idstringuuid
  • contact_idstringuuid

    Who it bills.

  • estimate_idstringuuid
  • titlestring
  • purposestring
    claim_scopedeductiblesupplementdepreciationcontractother
  • issue_datestringdate

    Defaults to today.

  • due_datestringdate
  • line_itemsarray of LineItemInputRequired
  • tax_ratenumber

    A percent

    0 to 100

  • discount_typestring
    amountpercent
  • discount_valuenumber

    At least 0

  • notesstring
  • termsstring
  • allow_partial_paymentsboolean

Returns

201Created, as a draft. An Invoice object.

  • 400invalid_requestSomething in the request was wrong; field names what.
  • 403forbiddenA read-only key tried to change something.

Any request can also answer 401, 402, 429 or 500 — errors.

curl -X POST https://app.hailmate.ai/api/v1/invoices \
  -H "Authorization: Bearer $HAILMATE_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "job_id": "f2b1a0c4-1111-4000-8000-0000000000aa",
  "title": "Deductible",
  "purpose": "deductible",
  "due_date": "2026-10-12",
  "line_items": [
    {
      "name": "Insurance deductible",
      "quantity": 1,
      "unit_price": 2500
    }
  ]
}'
Response · 201
{
  "id": "c90d7b31-3333-4000-8000-0000000000f2",
  "object": "invoice",
  "invoice_number": "INV-0311",
  "title": "Deductible",
  "status": "sent",
  "purpose": "deductible",
  "subtotal": 2500,
  "discount_amount": 0,
  "tax_amount": 0,
  "late_fee_amount": 0,
  "total_amount": 2500,
  "amount_paid": 0,
  "balance_due": 2500,
  "part_number": null,
  "part_count": null,
  "issue_date": "2026-09-28",
  "due_date": "2026-10-12",
  "sent_at": "2026-09-28T16:00:00.000Z",
  "first_viewed_at": null,
  "paid_at": null,
  "job_id": "f2b1a0c4-1111-4000-8000-0000000000aa",
  "contact_id": "b7c2d3e4-4444-4000-8000-0000000000dd",
  "estimate_id": null,
  "pdf_url": "https://files.example-cdn.com/invoices/INV-0311.pdf",
  "created_at": "2026-09-28T15:55:00.000Z",
  "updated_at": "2026-09-28T16:00:00.000Z",
  "url": "https://app.hailmate.ai/jobs/invoice/c90d7b31-3333-4000-8000-0000000000f2",
  "payment_url": "https://app.hailmate.ai/invoice/0b7e2c19-5d4a-4f3e-9a1b-8c6d2e4f1a37",
  "line_items": [
    {
      "id": "7d2b9f14-6666-4000-8000-0000000000f3",
      "object": "invoice_line",
      "name": "Deductible",
      "description": null,
      "quantity": 1,
      "unit": "ea",
      "unit_price": 2500,
      "line_total": 2500,
      "taxable": false,
      "late_fee": false
    }
  ]
}

Get an invoice

GET/invoices/{id}

Path parameters

  • idstringuuidRequired

Returns

200The invoice. An Invoice object.

  • 404not_foundNo such record in this workspace.

Any request can also answer 401, 402, 429 or 500 — errors.

curl https://app.hailmate.ai/api/v1/invoices/c90d7b31-3333-4000-8000-0000000000f2 \
  -H "Authorization: Bearer $HAILMATE_API_KEY"
Response · 200
{
  "id": "c90d7b31-3333-4000-8000-0000000000f2",
  "object": "invoice",
  "invoice_number": "INV-0311",
  "title": "Deductible",
  "status": "sent",
  "purpose": "deductible",
  "subtotal": 2500,
  "discount_amount": 0,
  "tax_amount": 0,
  "late_fee_amount": 0,
  "total_amount": 2500,
  "amount_paid": 0,
  "balance_due": 2500,
  "part_number": null,
  "part_count": null,
  "issue_date": "2026-09-28",
  "due_date": "2026-10-12",
  "sent_at": "2026-09-28T16:00:00.000Z",
  "first_viewed_at": null,
  "paid_at": null,
  "job_id": "f2b1a0c4-1111-4000-8000-0000000000aa",
  "contact_id": "b7c2d3e4-4444-4000-8000-0000000000dd",
  "estimate_id": null,
  "pdf_url": "https://files.example-cdn.com/invoices/INV-0311.pdf",
  "created_at": "2026-09-28T15:55:00.000Z",
  "updated_at": "2026-09-28T16:00:00.000Z",
  "url": "https://app.hailmate.ai/jobs/invoice/c90d7b31-3333-4000-8000-0000000000f2",
  "payment_url": "https://app.hailmate.ai/invoice/0b7e2c19-5d4a-4f3e-9a1b-8c6d2e4f1a37",
  "line_items": [
    {
      "id": "7d2b9f14-6666-4000-8000-0000000000f3",
      "object": "invoice_line",
      "name": "Deductible",
      "description": null,
      "quantity": 1,
      "unit": "ea",
      "unit_price": 2500,
      "line_total": 2500,
      "taxable": false,
      "late_fee": false
    }
  ]
}

Update a draft invoice

PATCH/invoices/{id}

Only a draft can change — once an invoice is sent the homeowner holds a copy, so a sent one is voided and replaced instead (409). line_items, when sent, replace every line; the totals are worked out again either way.

Path parameters

  • idstringuuidRequired

Headers

  • Idempotency-Keystring

    Any unique string (a UUID is ideal). A retry with the same key within 24 hours replays the first answer — with Idempotent-Replayed: true — instead of doing the work again. Reusing a key for a DIFFERENT request is a 409.

    Up to 255 characters

Request bodyapplication/json

  • contact_idstring | nulluuid
  • estimate_idstring | nulluuid
  • titlestring | null
  • purposestring | null
    claim_scopedeductiblesupplementdepreciationcontractother
  • issue_datestring | nulldate
  • due_datestring | nulldate
  • line_itemsarray of LineItemInput

    Replaces every line.

  • tax_ratenumber

    0 to 100

  • discount_typestring
    amountpercent
  • discount_valuenumber | null

    0 or null takes the discount off.

    At least 0

  • notesstring | null
  • termsstring | null
  • allow_partial_paymentsboolean

Returns

200The invoice, as it is now. An Invoice object.

  • 400invalid_requestSomething in the request was wrong; field names what.
  • 404not_foundNo such record in this workspace.
  • 409conflictA conflict: an Idempotency-Key clash, a record in a state that refuses the change, or a send refused (the number replied STOP, or the rep has no texting number).

Any request can also answer 401, 402, 429 or 500 — errors.

curl -X PATCH https://app.hailmate.ai/api/v1/invoices/c90d7b31-3333-4000-8000-0000000000f2 \
  -H "Authorization: Bearer $HAILMATE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "due_date": "2026-10-20",
  "tax_rate": 8.25
}'
Response · 200
{
  "id": "c90d7b31-3333-4000-8000-0000000000f2",
  "object": "invoice",
  "invoice_number": "INV-0311",
  "title": "Deductible",
  "status": "sent",
  "purpose": "deductible",
  "subtotal": 2500,
  "discount_amount": 0,
  "tax_amount": 0,
  "late_fee_amount": 0,
  "total_amount": 2500,
  "amount_paid": 0,
  "balance_due": 2500,
  "part_number": null,
  "part_count": null,
  "issue_date": "2026-09-28",
  "due_date": "2026-10-12",
  "sent_at": "2026-09-28T16:00:00.000Z",
  "first_viewed_at": null,
  "paid_at": null,
  "job_id": "f2b1a0c4-1111-4000-8000-0000000000aa",
  "contact_id": "b7c2d3e4-4444-4000-8000-0000000000dd",
  "estimate_id": null,
  "pdf_url": "https://files.example-cdn.com/invoices/INV-0311.pdf",
  "created_at": "2026-09-28T15:55:00.000Z",
  "updated_at": "2026-09-28T16:00:00.000Z",
  "url": "https://app.hailmate.ai/jobs/invoice/c90d7b31-3333-4000-8000-0000000000f2",
  "payment_url": "https://app.hailmate.ai/invoice/0b7e2c19-5d4a-4f3e-9a1b-8c6d2e4f1a37",
  "line_items": [
    {
      "id": "7d2b9f14-6666-4000-8000-0000000000f3",
      "object": "invoice_line",
      "name": "Deductible",
      "description": null,
      "quantity": 1,
      "unit": "ea",
      "unit_price": 2500,
      "line_total": 2500,
      "taxable": false,
      "late_fee": false
    }
  ]
}

Delete a draft invoice

DELETE/invoices/{id}

Only a draft. A sent invoice is voided instead, so its history stays on the job.

Path parameters

  • idstringuuidRequired

Headers

  • Idempotency-Keystring

    Any unique string (a UUID is ideal). A retry with the same key within 24 hours replays the first answer — with Idempotent-Replayed: true — instead of doing the work again. Reusing a key for a DIFFERENT request is a 409.

    Up to 255 characters

Returns

200Deleted. A Deleted object.

  • 404not_foundNo such record in this workspace.
  • 409conflictA conflict: an Idempotency-Key clash, a record in a state that refuses the change, or a send refused (the number replied STOP, or the rep has no texting number).

Any request can also answer 401, 402, 429 or 500 — errors.

curl -X DELETE https://app.hailmate.ai/api/v1/invoices/c90d7b31-3333-4000-8000-0000000000f2 \
  -H "Authorization: Bearer $HAILMATE_API_KEY"
Response · 200
{
  "id": "c90d7b31-3333-4000-8000-0000000000f2",
  "object": "invoice",
  "deleted": true
}

Mark an invoice sent

POST/invoices/{id}/mark_sent

Records that the invoice went out some other way. A draft becomes sent, which turns on the homeowner's pay page (payment_url); an invoice already out keeps its status. Refused for a void invoice.

Path parameters

  • idstringuuidRequired

Headers

  • Idempotency-Keystring

    Any unique string (a UUID is ideal). A retry with the same key within 24 hours replays the first answer — with Idempotent-Replayed: true — instead of doing the work again. Reusing a key for a DIFFERENT request is a 409.

    Up to 255 characters

Returns

200The invoice, as it is now. An Invoice object.

  • 404not_foundNo such record in this workspace.
  • 409conflictA conflict: an Idempotency-Key clash, a record in a state that refuses the change, or a send refused (the number replied STOP, or the rep has no texting number).

Any request can also answer 401, 402, 429 or 500 — errors.

curl -X POST https://app.hailmate.ai/api/v1/invoices/c90d7b31-3333-4000-8000-0000000000f2/mark_sent \
  -H "Authorization: Bearer $HAILMATE_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"
Response · 200
{
  "id": "c90d7b31-3333-4000-8000-0000000000f2",
  "object": "invoice",
  "invoice_number": "INV-0311",
  "title": "Deductible",
  "status": "sent",
  "purpose": "deductible",
  "subtotal": 2500,
  "discount_amount": 0,
  "tax_amount": 0,
  "late_fee_amount": 0,
  "total_amount": 2500,
  "amount_paid": 0,
  "balance_due": 2500,
  "part_number": null,
  "part_count": null,
  "issue_date": "2026-09-28",
  "due_date": "2026-10-12",
  "sent_at": "2026-09-28T16:00:00.000Z",
  "first_viewed_at": null,
  "paid_at": null,
  "job_id": "f2b1a0c4-1111-4000-8000-0000000000aa",
  "contact_id": "b7c2d3e4-4444-4000-8000-0000000000dd",
  "estimate_id": null,
  "pdf_url": "https://files.example-cdn.com/invoices/INV-0311.pdf",
  "created_at": "2026-09-28T15:55:00.000Z",
  "updated_at": "2026-09-28T16:00:00.000Z",
  "url": "https://app.hailmate.ai/jobs/invoice/c90d7b31-3333-4000-8000-0000000000f2",
  "payment_url": "https://app.hailmate.ai/invoice/0b7e2c19-5d4a-4f3e-9a1b-8c6d2e4f1a37",
  "line_items": [
    {
      "id": "7d2b9f14-6666-4000-8000-0000000000f3",
      "object": "invoice_line",
      "name": "Deductible",
      "description": null,
      "quantity": 1,
      "unit": "ea",
      "unit_price": 2500,
      "line_total": 2500,
      "taxable": false,
      "late_fee": false
    }
  ]
}

Void an invoice

POST/invoices/{id}/void

Voids the invoice. Voiding one that is already void answers with it, unchanged.

Path parameters

  • idstringuuidRequired

Headers

  • Idempotency-Keystring

    Any unique string (a UUID is ideal). A retry with the same key within 24 hours replays the first answer — with Idempotent-Replayed: true — instead of doing the work again. Reusing a key for a DIFFERENT request is a 409.

    Up to 255 characters

Returns

200The invoice, now void. An Invoice object.

  • 404not_foundNo such record in this workspace.

Any request can also answer 401, 402, 429 or 500 — errors.

curl -X POST https://app.hailmate.ai/api/v1/invoices/c90d7b31-3333-4000-8000-0000000000f2/void \
  -H "Authorization: Bearer $HAILMATE_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"
Response · 200
{
  "id": "c90d7b31-3333-4000-8000-0000000000f2",
  "object": "invoice",
  "invoice_number": "INV-0311",
  "title": "Deductible",
  "status": "sent",
  "purpose": "deductible",
  "subtotal": 2500,
  "discount_amount": 0,
  "tax_amount": 0,
  "late_fee_amount": 0,
  "total_amount": 2500,
  "amount_paid": 0,
  "balance_due": 2500,
  "part_number": null,
  "part_count": null,
  "issue_date": "2026-09-28",
  "due_date": "2026-10-12",
  "sent_at": "2026-09-28T16:00:00.000Z",
  "first_viewed_at": null,
  "paid_at": null,
  "job_id": "f2b1a0c4-1111-4000-8000-0000000000aa",
  "contact_id": "b7c2d3e4-4444-4000-8000-0000000000dd",
  "estimate_id": null,
  "pdf_url": "https://files.example-cdn.com/invoices/INV-0311.pdf",
  "created_at": "2026-09-28T15:55:00.000Z",
  "updated_at": "2026-09-28T16:00:00.000Z",
  "url": "https://app.hailmate.ai/jobs/invoice/c90d7b31-3333-4000-8000-0000000000f2",
  "payment_url": "https://app.hailmate.ai/invoice/0b7e2c19-5d4a-4f3e-9a1b-8c6d2e4f1a37",
  "line_items": [
    {
      "id": "7d2b9f14-6666-4000-8000-0000000000f3",
      "object": "invoice_line",
      "name": "Deductible",
      "description": null,
      "quantity": 1,
      "unit": "ea",
      "unit_price": 2500,
      "line_total": 2500,
      "taxable": false,
      "late_fee": false
    }
  ]
}

Send an invoice to the customer

POST/invoices/{id}/send

FOR REAL, as a rep: email attaches a fresh PDF with the pay link; text sends the pay link. Goes to the invoice's contact, else the job's homeowner, unless you name one. Then a draft becomes sent (or paid / partially paid if money is already in). Confirm with the person before sending.

Path parameters

  • idstringuuidRequired

Headers

  • Idempotency-Keystring

    Any unique string (a UUID is ideal). A retry with the same key within 24 hours replays the first answer — with Idempotent-Replayed: true — instead of doing the work again. Reusing a key for a DIFFERENT request is a 409.

    Up to 255 characters

Request bodyapplication/json

  • methodstring
    emailtext

    Default email

  • contact_idstringuuid

    Who it goes to. Default: the job's homeowner.

  • toarray of string

    Email: addresses. Text: one phone number. Overrides the contact's.

  • subjectstring

    Email only.

  • messagestring

    Your words. A text gets the link added on the end.

  • from_user_idstringuuid

    The teammate it is sent as. Default: whoever made the key or connected the app.

Returns

200The invoice, and the message that went out.

  • 404not_foundNo such record in this workspace.
  • 409conflictA conflict: an Idempotency-Key clash, a record in a state that refuses the change, or a send refused (the number replied STOP, or the rep has no texting number).

Any request can also answer 401, 402, 429 or 500 — errors.

curl -X POST https://app.hailmate.ai/api/v1/invoices/c90d7b31-3333-4000-8000-0000000000f2/send \
  -H "Authorization: Bearer $HAILMATE_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "method": "email"
}'
Response · 200
{
  "id": "c90d7b31-3333-4000-8000-0000000000f2",
  "object": "invoice",
  "invoice_number": "INV-0311",
  "title": "Deductible",
  "status": "sent",
  "purpose": "deductible",
  "subtotal": 2500,
  "discount_amount": 0,
  "tax_amount": 0,
  "late_fee_amount": 0,
  "total_amount": 2500,
  "amount_paid": 0,
  "balance_due": 2500,
  "part_number": null,
  "part_count": null,
  "issue_date": "2026-09-28",
  "due_date": "2026-10-12",
  "sent_at": "2026-09-28T16:00:00.000Z",
  "first_viewed_at": null,
  "paid_at": null,
  "job_id": "f2b1a0c4-1111-4000-8000-0000000000aa",
  "contact_id": "b7c2d3e4-4444-4000-8000-0000000000dd",
  "estimate_id": null,
  "pdf_url": "https://files.example-cdn.com/invoices/INV-0311.pdf",
  "created_at": "2026-09-28T15:55:00.000Z",
  "updated_at": "2026-09-28T16:00:00.000Z",
  "url": "https://app.hailmate.ai/jobs/invoice/c90d7b31-3333-4000-8000-0000000000f2",
  "payment_url": "https://app.hailmate.ai/invoice/0b7e2c19-5d4a-4f3e-9a1b-8c6d2e4f1a37",
  "line_items": [
    {
      "id": "7d2b9f14-6666-4000-8000-0000000000f3",
      "object": "invoice_line",
      "name": "Deductible",
      "description": null,
      "quantity": 1,
      "unit": "ea",
      "unit_price": 2500,
      "line_total": 2500,
      "taxable": false,
      "late_fee": false
    }
  ],
  "message": {
    "id": "d1d2d3d4-cccc-4000-8000-000000000077",
    "object": "message",
    "channel": "text",
    "direction": "inbound",
    "contact_id": "b7c2d3e4-4444-4000-8000-0000000000dd",
    "job_id": "f2b1a0c4-1111-4000-8000-0000000000aa",
    "estimate_id": null,
    "invoice_id": null,
    "rep_id": "5d0e1c2b-7777-4000-8000-0000000000ab",
    "rep_name": "Sam Carter",
    "to": null,
    "from": null,
    "subject": null,
    "body": "Thursday at 3 works for the adjuster. Thanks!",
    "media_urls": [],
    "status": "received",
    "delivery_error": null,
    "call_status": null,
    "call_duration_seconds": null,
    "summary": null,
    "recording_url": null,
    "thread_id": null,
    "ai_drafted": false,
    "sent_at": "2026-09-16T18:12:00.000Z",
    "delivered_at": null,
    "opened_at": null,
    "read_at": null,
    "created_at": "2026-09-16T18:12:00.000Z",
    "url": "https://app.hailmate.ai/contact/b7c2d3e4-4444-4000-8000-0000000000dd"
  }
}

Write off what is still owed on an invoice

POST/invoices/{id}/write_off

For a sent, unpaid bill the company will not collect. It becomes bad_debt and comes off the job's balance. Undo with /reopen.

Path parameters

  • idstringuuidRequired

Headers

  • Idempotency-Keystring

    Any unique string (a UUID is ideal). A retry with the same key within 24 hours replays the first answer — with Idempotent-Replayed: true — instead of doing the work again. Reusing a key for a DIFFERENT request is a 409.

    Up to 255 characters

Returns

200The invoice. An Invoice object.

  • 404not_foundNo such record in this workspace.
  • 409conflictA conflict: an Idempotency-Key clash, a record in a state that refuses the change, or a send refused (the number replied STOP, or the rep has no texting number).

Any request can also answer 401, 402, 429 or 500 — errors.

curl -X POST https://app.hailmate.ai/api/v1/invoices/c90d7b31-3333-4000-8000-0000000000f2/write_off \
  -H "Authorization: Bearer $HAILMATE_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"
Response · 200
{
  "id": "c90d7b31-3333-4000-8000-0000000000f2",
  "object": "invoice",
  "invoice_number": "INV-0311",
  "title": "Deductible",
  "status": "sent",
  "purpose": "deductible",
  "subtotal": 2500,
  "discount_amount": 0,
  "tax_amount": 0,
  "late_fee_amount": 0,
  "total_amount": 2500,
  "amount_paid": 0,
  "balance_due": 2500,
  "part_number": null,
  "part_count": null,
  "issue_date": "2026-09-28",
  "due_date": "2026-10-12",
  "sent_at": "2026-09-28T16:00:00.000Z",
  "first_viewed_at": null,
  "paid_at": null,
  "job_id": "f2b1a0c4-1111-4000-8000-0000000000aa",
  "contact_id": "b7c2d3e4-4444-4000-8000-0000000000dd",
  "estimate_id": null,
  "pdf_url": "https://files.example-cdn.com/invoices/INV-0311.pdf",
  "created_at": "2026-09-28T15:55:00.000Z",
  "updated_at": "2026-09-28T16:00:00.000Z",
  "url": "https://app.hailmate.ai/jobs/invoice/c90d7b31-3333-4000-8000-0000000000f2",
  "payment_url": "https://app.hailmate.ai/invoice/0b7e2c19-5d4a-4f3e-9a1b-8c6d2e4f1a37",
  "line_items": [
    {
      "id": "7d2b9f14-6666-4000-8000-0000000000f3",
      "object": "invoice_line",
      "name": "Deductible",
      "description": null,
      "quantity": 1,
      "unit": "ea",
      "unit_price": 2500,
      "line_total": 2500,
      "taxable": false,
      "late_fee": false
    }
  ]
}

Undo a write-off

POST/invoices/{id}/reopen

Path parameters

  • idstringuuidRequired

Headers

  • Idempotency-Keystring

    Any unique string (a UUID is ideal). A retry with the same key within 24 hours replays the first answer — with Idempotent-Replayed: true — instead of doing the work again. Reusing a key for a DIFFERENT request is a 409.

    Up to 255 characters

Returns

200The invoice, back to being collected. An Invoice object.

  • 404not_foundNo such record in this workspace.
  • 409conflictA conflict: an Idempotency-Key clash, a record in a state that refuses the change, or a send refused (the number replied STOP, or the rep has no texting number).

Any request can also answer 401, 402, 429 or 500 — errors.

curl -X POST https://app.hailmate.ai/api/v1/invoices/c90d7b31-3333-4000-8000-0000000000f2/reopen \
  -H "Authorization: Bearer $HAILMATE_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"
Response · 200
{
  "id": "c90d7b31-3333-4000-8000-0000000000f2",
  "object": "invoice",
  "invoice_number": "INV-0311",
  "title": "Deductible",
  "status": "sent",
  "purpose": "deductible",
  "subtotal": 2500,
  "discount_amount": 0,
  "tax_amount": 0,
  "late_fee_amount": 0,
  "total_amount": 2500,
  "amount_paid": 0,
  "balance_due": 2500,
  "part_number": null,
  "part_count": null,
  "issue_date": "2026-09-28",
  "due_date": "2026-10-12",
  "sent_at": "2026-09-28T16:00:00.000Z",
  "first_viewed_at": null,
  "paid_at": null,
  "job_id": "f2b1a0c4-1111-4000-8000-0000000000aa",
  "contact_id": "b7c2d3e4-4444-4000-8000-0000000000dd",
  "estimate_id": null,
  "pdf_url": "https://files.example-cdn.com/invoices/INV-0311.pdf",
  "created_at": "2026-09-28T15:55:00.000Z",
  "updated_at": "2026-09-28T16:00:00.000Z",
  "url": "https://app.hailmate.ai/jobs/invoice/c90d7b31-3333-4000-8000-0000000000f2",
  "payment_url": "https://app.hailmate.ai/invoice/0b7e2c19-5d4a-4f3e-9a1b-8c6d2e4f1a37",
  "line_items": [
    {
      "id": "7d2b9f14-6666-4000-8000-0000000000f3",
      "object": "invoice_line",
      "name": "Deductible",
      "description": null,
      "quantity": 1,
      "unit": "ea",
      "unit_price": 2500,
      "line_total": 2500,
      "taxable": false,
      "late_fee": false
    }
  ]
}

Endpoints

Payments

Money received against a job — carrier cheques, deductibles, card payments.

List payments

GET/payments

A refund is its own row with a negative amount, so summing amount gives the net.

Query parameters

  • limitinteger

    Page size. Out-of-range values fall back to the default.

    1 to 200 · Default 50

  • cursorstring

    The next_cursor from the previous page, exactly as received. A cursor we did not issue is a 400.

  • updated_sincestringdate-time

    Only records changed at or after this ISO date or date-time. The way to sync only what moved.

  • created_afterstringdate-time

    Only records created at or after this ISO date or date-time.

  • created_beforestringdate-time

    Only records created before this ISO date or date-time.

  • job_idstringuuid
  • invoice_idstringuuid
  • payment_typestring
    acvdeductiblesupplementdepreciationretailother

Returns

200A page of payments. A page of Payment objects in data, with has_more and next_cursor.

  • 401unauthorizedThe key is missing, wrong or revoked.

Any request can also answer 401, 402, 429 or 500 — errors.

curl "https://app.hailmate.ai/api/v1/payments?job_id=f2b1a0c4-1111-4000-8000-0000000000aa" \
  -H "Authorization: Bearer $HAILMATE_API_KEY"
Response · 200
{
  "object": "list",
  "has_more": true,
  "next_cursor": "eyJjIjoiMjAyNi0wOS0yOFQxNDowMjowMFoiLCJpIjoiZjJiMWEwYzQifQ",
  "data": [
    {
      "id": "9fa3e1d2-5555-4000-8000-0000000000c3",
      "object": "payment",
      "job_id": "f2b1a0c4-1111-4000-8000-0000000000aa",
      "invoice_id": null,
      "amount": 13164,
      "payment_type": "acv",
      "payer_type": "insurance",
      "payment_method": "check",
      "status": "received",
      "check_number": "4471",
      "date_received": "2026-09-26",
      "date_deposited": null,
      "notes": "First ACV check from Example Mutual",
      "is_refund": false,
      "refund_of_payment_id": null,
      "online": false,
      "created_at": "2026-09-26T20:14:00.000Z",
      "updated_at": "2026-09-26T20:14:00.000Z",
      "url": "https://app.hailmate.ai/job/f2b1a0c4-1111-4000-8000-0000000000aa"
    }
  ]
}

Record a payment

POST/payments

Records money that arrived — a cheque logged in your accounting app, a deposit from a bank feed. The job's money and, when you name one, the invoice's balance and status update exactly as they do for a payment logged in HailMate.

The invoice it pays is never guessed. Send invoice_id to apply it to an invoice on the same job; leave it out and the payment sits on the job. Fires payment.received.

Headers

  • Idempotency-Keystring

    Any unique string (a UUID is ideal). A retry with the same key within 24 hours replays the first answer — with Idempotent-Replayed: true — instead of doing the work again. Reusing a key for a DIFFERENT request is a 409.

    Up to 255 characters

Request bodyapplication/json

  • job_idstringuuidRequired
  • amountnumberRequired

    More than 0

  • invoice_idstringuuid

    An invoice ON THIS JOB to apply it to. Never guessed.

  • payment_typestring
    acvdeductiblesupplementdepreciationretailother

    Default other

  • payer_typestring
    insurancehomeownermortgage_companyother

    Default homeowner

  • payment_methodstring
    checkcashcardachfinancingother

    Default check

  • statusstring
    expectedreceivedsent_to_mortgageendorseddeposited

    Default received

  • check_numberstring
  • date_receivedstringdate

    Defaults to today (US Central).

  • date_depositedstringdate
  • notesstring

Returns

201Recorded. A Payment object.

  • 400invalid_requestSomething in the request was wrong; field names what.

Any request can also answer 401, 402, 429 or 500 — errors.

curl -X POST https://app.hailmate.ai/api/v1/payments \
  -H "Authorization: Bearer $HAILMATE_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "job_id": "f2b1a0c4-1111-4000-8000-0000000000aa",
  "amount": 13164.2,
  "payment_type": "acv",
  "payer_type": "insurance",
  "payment_method": "check",
  "check_number": "004471",
  "date_received": "2026-09-28"
}'
Response · 201
{
  "id": "9fa3e1d2-5555-4000-8000-0000000000c3",
  "object": "payment",
  "job_id": "f2b1a0c4-1111-4000-8000-0000000000aa",
  "invoice_id": null,
  "amount": 13164,
  "payment_type": "acv",
  "payer_type": "insurance",
  "payment_method": "check",
  "status": "received",
  "check_number": "4471",
  "date_received": "2026-09-26",
  "date_deposited": null,
  "notes": "First ACV check from Example Mutual",
  "is_refund": false,
  "refund_of_payment_id": null,
  "online": false,
  "created_at": "2026-09-26T20:14:00.000Z",
  "updated_at": "2026-09-26T20:14:00.000Z",
  "url": "https://app.hailmate.ai/job/f2b1a0c4-1111-4000-8000-0000000000aa"
}

Get a payment

GET/payments/{id}

Path parameters

  • idstringuuidRequired

Returns

200The payment. A Payment object.

  • 404not_foundNo such record in this workspace.

Any request can also answer 401, 402, 429 or 500 — errors.

curl https://app.hailmate.ai/api/v1/payments/9fa3e1d2-5555-4000-8000-0000000000c3 \
  -H "Authorization: Bearer $HAILMATE_API_KEY"
Response · 200
{
  "id": "9fa3e1d2-5555-4000-8000-0000000000c3",
  "object": "payment",
  "job_id": "f2b1a0c4-1111-4000-8000-0000000000aa",
  "invoice_id": null,
  "amount": 13164,
  "payment_type": "acv",
  "payer_type": "insurance",
  "payment_method": "check",
  "status": "received",
  "check_number": "4471",
  "date_received": "2026-09-26",
  "date_deposited": null,
  "notes": "First ACV check from Example Mutual",
  "is_refund": false,
  "refund_of_payment_id": null,
  "online": false,
  "created_at": "2026-09-26T20:14:00.000Z",
  "updated_at": "2026-09-26T20:14:00.000Z",
  "url": "https://app.hailmate.ai/job/f2b1a0c4-1111-4000-8000-0000000000aa"
}

Fix a payment logged by hand

PATCH/payments/{id}

A payment taken online (Stripe) cannot be changed — refund it in HailMate. A refund logged by hand can only be deleted.

Path parameters

  • idstringuuidRequired

Headers

  • Idempotency-Keystring

    Any unique string (a UUID is ideal). A retry with the same key within 24 hours replays the first answer — with Idempotent-Replayed: true — instead of doing the work again. Reusing a key for a DIFFERENT request is a 409.

    Up to 255 characters

Request bodyapplication/json

  • amountnumber
  • invoice_idstring | nulluuid
  • payment_typestring
    acvdeductiblesupplementdepreciationretailother
  • payer_typestring
    insurancehomeownermortgage_companyother
  • payment_methodstring
    checkcashcardachfinancingother
  • statusstring
  • check_numberstring | null
  • date_receivedstring | nulldate
  • date_depositedstring | nulldate
  • notesstring | null

Returns

200The payment. A Payment object.

  • 404not_foundNo such record in this workspace.
  • 409conflictA conflict: an Idempotency-Key clash, a record in a state that refuses the change, or a send refused (the number replied STOP, or the rep has no texting number).

Any request can also answer 401, 402, 429 or 500 — errors.

curl -X PATCH https://app.hailmate.ai/api/v1/payments/9fa3e1d2-5555-4000-8000-0000000000c3 \
  -H "Authorization: Bearer $HAILMATE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "check_number": "004472",
  "date_deposited": "2026-10-02"
}'
Response · 200
{
  "id": "9fa3e1d2-5555-4000-8000-0000000000c3",
  "object": "payment",
  "job_id": "f2b1a0c4-1111-4000-8000-0000000000aa",
  "invoice_id": null,
  "amount": 13164,
  "payment_type": "acv",
  "payer_type": "insurance",
  "payment_method": "check",
  "status": "received",
  "check_number": "4471",
  "date_received": "2026-09-26",
  "date_deposited": null,
  "notes": "First ACV check from Example Mutual",
  "is_refund": false,
  "refund_of_payment_id": null,
  "online": false,
  "created_at": "2026-09-26T20:14:00.000Z",
  "updated_at": "2026-09-26T20:14:00.000Z",
  "url": "https://app.hailmate.ai/job/f2b1a0c4-1111-4000-8000-0000000000aa"
}

Delete a payment logged by hand

DELETE/payments/{id}

Its refunds go with it. Not for a payment taken online.

Path parameters

  • idstringuuidRequired

Headers

  • Idempotency-Keystring

    Any unique string (a UUID is ideal). A retry with the same key within 24 hours replays the first answer — with Idempotent-Replayed: true — instead of doing the work again. Reusing a key for a DIFFERENT request is a 409.

    Up to 255 characters

Returns

200Deleted. A Deleted object.

  • 404not_foundNo such record in this workspace.
  • 409conflictA conflict: an Idempotency-Key clash, a record in a state that refuses the change, or a send refused (the number replied STOP, or the rep has no texting number).

Any request can also answer 401, 402, 429 or 500 — errors.

curl -X DELETE https://app.hailmate.ai/api/v1/payments/9fa3e1d2-5555-4000-8000-0000000000c3 \
  -H "Authorization: Bearer $HAILMATE_API_KEY"
Response · 200
{
  "id": "f2b1a0c4-1111-4000-8000-0000000000aa",
  "object": "job",
  "deleted": true
}

Log a refund made outside Stripe

POST/payments/{id}/refund

A cheque or cash given back. Records a negative payment against this one; never more than was paid. A card payment is refunded in HailMate, through Stripe.

Path parameters

  • idstringuuidRequired

Headers

  • Idempotency-Keystring

    Any unique string (a UUID is ideal). A retry with the same key within 24 hours replays the first answer — with Idempotent-Replayed: true — instead of doing the work again. Reusing a key for a DIFFERENT request is a 409.

    Up to 255 characters

Request bodyapplication/json

  • amountnumberRequired

    The amount given back (positive; it is stored negative).

  • date_receivedstringdate

    Default: today.

  • notesstring

Returns

201The refund (a negative payment). A Payment object.

  • 404not_foundNo such record in this workspace.
  • 409conflictA conflict: an Idempotency-Key clash, a record in a state that refuses the change, or a send refused (the number replied STOP, or the rep has no texting number).

Any request can also answer 401, 402, 429 or 500 — errors.

curl -X POST https://app.hailmate.ai/api/v1/payments/9fa3e1d2-5555-4000-8000-0000000000c3/refund \
  -H "Authorization: Bearer $HAILMATE_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "amount": 250,
  "notes": "Overpaid deductible returned by cheque"
}'
Response · 201
{
  "id": "9fa3e1d2-5555-4000-8000-0000000000c3",
  "object": "payment",
  "job_id": "f2b1a0c4-1111-4000-8000-0000000000aa",
  "invoice_id": null,
  "amount": 13164,
  "payment_type": "acv",
  "payer_type": "insurance",
  "payment_method": "check",
  "status": "received",
  "check_number": "4471",
  "date_received": "2026-09-26",
  "date_deposited": null,
  "notes": "First ACV check from Example Mutual",
  "is_refund": false,
  "refund_of_payment_id": null,
  "online": false,
  "created_at": "2026-09-26T20:14:00.000Z",
  "updated_at": "2026-09-26T20:14:00.000Z",
  "url": "https://app.hailmate.ai/job/f2b1a0c4-1111-4000-8000-0000000000aa"
}

Endpoints

Price Book

The items and prices your estimate lines are built from.

List your price book

GET/products

Query parameters

  • limitinteger

    Page size. Out-of-range values fall back to the default.

    1 to 200 · Default 50

  • cursorstring

    The next_cursor from the previous page, exactly as received. A cursor we did not issue is a 400.

  • updated_sincestringdate-time

    Only records changed at or after this ISO date or date-time. The way to sync only what moved.

  • searchstring

    Matches the name or SKU.

  • categorystring
  • activestring

    true (default view in the app), false, or any.

Returns

200A page of items. A page of Product objects in data, with has_more and next_cursor.

Any request can also answer 401, 402, 429 or 500 — errors.

curl "https://app.hailmate.ai/api/v1/products?limit=25" \
  -H "Authorization: Bearer $HAILMATE_API_KEY"
Response · 200
{
  "object": "list",
  "has_more": true,
  "next_cursor": "eyJjIjoiMjAyNi0wOS0yOFQxNDowMjowMFoiLCJpIjoiZjJiMWEwYzQifQ",
  "data": [
    {
      "id": "8d9654e8-e5cc-474e-a6e7-06ae135422e4",
      "object": "product",
      "name": "Ridge vent",
      "description": null,
      "sku": "RV-20",
      "unit": "lf",
      "price": 8.5,
      "cost": 4.1,
      "category": "Ventilation",
      "kind": "regular",
      "measurement_basis": "ridge_lf",
      "coverage_per_unit": null,
      "waste_percent": 10,
      "active": true,
      "created_at": "2026-10-01T15:00:00.000Z",
      "updated_at": "2026-10-01T15:00:00.000Z"
    }
  ]
}

Add an item to your price book

POST/products

Headers

  • Idempotency-Keystring

    Any unique string (a UUID is ideal). A retry with the same key within 24 hours replays the first answer — with Idempotent-Replayed: true — instead of doing the work again. Reusing a key for a DIFFERENT request is a 409.

    Up to 255 characters

Request bodyapplication/json

  • namestringRequired
  • descriptionstring
  • skustring
  • unitstring

    Default ea

  • pricenumber
  • costnumber
  • categorystring
  • kindstring
    regularupgrade

    Default regular

  • measurement_basisstring
    squarestotal_area_sqftridge_lfhip_lfvalley_lfeave_lfrake_lfdrip_edge_lfstep_flashing_lfflashing_lfridge_plus_hipeave_plus_rakepipe_countvent_countskylight_countchimney_count
  • coverage_per_unitnumber
  • waste_percentnumber
  • activeboolean

    Default true

Returns

201The item. A Product object.

  • 409conflictA conflict: an Idempotency-Key clash, a record in a state that refuses the change, or a send refused (the number replied STOP, or the rep has no texting number).

Any request can also answer 401, 402, 429 or 500 — errors.

curl -X POST https://app.hailmate.ai/api/v1/products \
  -H "Authorization: Bearer $HAILMATE_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "name": "Ridge vent",
  "unit": "lf",
  "price": 8.5,
  "cost": 4.1,
  "category": "Ventilation"
}'
Response · 201
{
  "id": "8d9654e8-e5cc-474e-a6e7-06ae135422e4",
  "object": "product",
  "name": "Ridge vent",
  "description": null,
  "sku": "RV-20",
  "unit": "lf",
  "price": 8.5,
  "cost": 4.1,
  "category": "Ventilation",
  "kind": "regular",
  "measurement_basis": "ridge_lf",
  "coverage_per_unit": null,
  "waste_percent": 10,
  "active": true,
  "created_at": "2026-10-01T15:00:00.000Z",
  "updated_at": "2026-10-01T15:00:00.000Z"
}

Get a price-book item

GET/products/{id}

Path parameters

  • idstringuuidRequired

Returns

200The item. A Product object.

  • 404not_foundNo such record in this workspace.

Any request can also answer 401, 402, 429 or 500 — errors.

curl https://app.hailmate.ai/api/v1/products/00000000-0000-4000-8000-000000000000 \
  -H "Authorization: Bearer $HAILMATE_API_KEY"
Response · 200
{
  "id": "8d9654e8-e5cc-474e-a6e7-06ae135422e4",
  "object": "product",
  "name": "Ridge vent",
  "description": null,
  "sku": "RV-20",
  "unit": "lf",
  "price": 8.5,
  "cost": 4.1,
  "category": "Ventilation",
  "kind": "regular",
  "measurement_basis": "ridge_lf",
  "coverage_per_unit": null,
  "waste_percent": 10,
  "active": true,
  "created_at": "2026-10-01T15:00:00.000Z",
  "updated_at": "2026-10-01T15:00:00.000Z"
}

Change a price-book item

PATCH/products/{id}

Set active false to hide it from pickers without deleting it.

Path parameters

  • idstringuuidRequired

Headers

  • Idempotency-Keystring

    Any unique string (a UUID is ideal). A retry with the same key within 24 hours replays the first answer — with Idempotent-Replayed: true — instead of doing the work again. Reusing a key for a DIFFERENT request is a 409.

    Up to 255 characters

Request bodyapplication/json

  • namestring
  • descriptionstring | null
  • skustring | null
  • unitstring
  • pricenumber | null
  • costnumber | null
  • categorystring | null
  • kindstring
    regularupgrade
  • measurement_basisstring | null
  • coverage_per_unitnumber | null
  • waste_percentnumber | null
  • activeboolean

Returns

200The item. A Product object.

  • 404not_foundNo such record in this workspace.
  • 409conflictA conflict: an Idempotency-Key clash, a record in a state that refuses the change, or a send refused (the number replied STOP, or the rep has no texting number).

Any request can also answer 401, 402, 429 or 500 — errors.

curl -X PATCH https://app.hailmate.ai/api/v1/products/00000000-0000-4000-8000-000000000000 \
  -H "Authorization: Bearer $HAILMATE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "string",
  "description": null,
  "sku": null,
  "unit": "string",
  "price": null,
  "cost": null,
  "category": null,
  "kind": "regular",
  "measurement_basis": null,
  "coverage_per_unit": null,
  "waste_percent": null,
  "active": false
}'
Response · 200
{
  "id": "8d9654e8-e5cc-474e-a6e7-06ae135422e4",
  "object": "product",
  "name": "Ridge vent",
  "description": null,
  "sku": "RV-20",
  "unit": "lf",
  "price": 8.5,
  "cost": 4.1,
  "category": "Ventilation",
  "kind": "regular",
  "measurement_basis": "ridge_lf",
  "coverage_per_unit": null,
  "waste_percent": 10,
  "active": true,
  "created_at": "2026-10-01T15:00:00.000Z",
  "updated_at": "2026-10-01T15:00:00.000Z"
}

Delete a price-book item

DELETE/products/{id}

Estimate lines priced from it keep their words and price.

Path parameters

  • idstringuuidRequired

Headers

  • Idempotency-Keystring

    Any unique string (a UUID is ideal). A retry with the same key within 24 hours replays the first answer — with Idempotent-Replayed: true — instead of doing the work again. Reusing a key for a DIFFERENT request is a 409.

    Up to 255 characters

Returns

200Deleted. A Deleted object.

  • 404not_foundNo such record in this workspace.

Any request can also answer 401, 402, 429 or 500 — errors.

curl -X DELETE https://app.hailmate.ai/api/v1/products/00000000-0000-4000-8000-000000000000 \
  -H "Authorization: Bearer $HAILMATE_API_KEY"
Response · 200
{
  "id": "f2b1a0c4-1111-4000-8000-0000000000aa",
  "object": "job",
  "deleted": true
}

Endpoints

Job Costing

What each job cost to build — materials, labor, dumpsters — and credits.

List a job's costs

GET/jobs/{id}/costs

What the job cost to build; a negative amount is a credit.

Path parameters

  • idstringuuidRequired

Query parameters

  • limitinteger

    Page size. Out-of-range values fall back to the default.

    1 to 200 · Default 50

  • cursorstring

    The next_cursor from the previous page, exactly as received. A cursor we did not issue is a 400.

Returns

200The list. A page of JobCost objects in data, with has_more and next_cursor.

  • 404not_foundNo such record in this workspace.

Any request can also answer 401, 402, 429 or 500 — errors.

curl "https://app.hailmate.ai/api/v1/jobs/f2b1a0c4-1111-4000-8000-0000000000aa/costs?limit=25" \
  -H "Authorization: Bearer $HAILMATE_API_KEY"
Response · 200
{
  "object": "list",
  "has_more": true,
  "next_cursor": "eyJjIjoiMjAyNi0wOS0yOFQxNDowMjowMFoiLCJpIjoiZjJiMWEwYzQifQ",
  "data": [
    {
      "id": "3c4d5e6f-3333-4000-8000-0000000000c3",
      "object": "job_cost",
      "job_id": "f2b1a0c4-1111-4000-8000-0000000000aa",
      "category": "materials",
      "description": "Shingles and underlayment",
      "vendor": "ABC Supply",
      "amount": 4200,
      "incurred_on": "2026-10-02",
      "file_id": null,
      "created_at": "2026-10-02T15:00:00.000Z",
      "updated_at": "2026-10-02T15:00:00.000Z",
      "url": "https://app.hailmate.ai/job/f2b1a0c4-1111-4000-8000-0000000000aa"
    }
  ]
}

List job costs

GET/job_costs

Query parameters

  • limitinteger

    Page size. Out-of-range values fall back to the default.

    1 to 200 · Default 50

  • cursorstring

    The next_cursor from the previous page, exactly as received. A cursor we did not issue is a 400.

  • updated_sincestringdate-time

    Only records changed at or after this ISO date or date-time. The way to sync only what moved.

  • job_idstringuuid
  • categorystring

Returns

200A page of costs. A page of JobCost objects in data, with has_more and next_cursor.

Any request can also answer 401, 402, 429 or 500 — errors.

curl "https://app.hailmate.ai/api/v1/job_costs?limit=25" \
  -H "Authorization: Bearer $HAILMATE_API_KEY"
Response · 200
{
  "object": "list",
  "has_more": true,
  "next_cursor": "eyJjIjoiMjAyNi0wOS0yOFQxNDowMjowMFoiLCJpIjoiZjJiMWEwYzQifQ",
  "data": [
    {
      "id": "3c4d5e6f-3333-4000-8000-0000000000c3",
      "object": "job_cost",
      "job_id": "f2b1a0c4-1111-4000-8000-0000000000aa",
      "category": "materials",
      "description": "Shingles and underlayment",
      "vendor": "ABC Supply",
      "amount": 4200,
      "incurred_on": "2026-10-02",
      "file_id": null,
      "created_at": "2026-10-02T15:00:00.000Z",
      "updated_at": "2026-10-02T15:00:00.000Z",
      "url": "https://app.hailmate.ai/job/f2b1a0c4-1111-4000-8000-0000000000aa"
    }
  ]
}

Add a cost to a job

POST/job_costs

Materials, labor, a dumpster… A negative amount is a credit (returned material).

Headers

  • Idempotency-Keystring

    Any unique string (a UUID is ideal). A retry with the same key within 24 hours replays the first answer — with Idempotent-Replayed: true — instead of doing the work again. Reusing a key for a DIFFERENT request is a 409.

    Up to 255 characters

Request bodyapplication/json

  • job_idstringuuidRequired
  • categorystring
    materialslaborsubcontractorpermitsdumpsterequipmentfuelmarketingother

    Default other

  • amountnumberRequired

    Negative for a credit.

  • descriptionstring
  • vendorstring
  • incurred_onstringdate

Returns

201The cost. A JobCost object.

  • 400invalid_requestSomething in the request was wrong; field names what.

Any request can also answer 401, 402, 429 or 500 — errors.

curl -X POST https://app.hailmate.ai/api/v1/job_costs \
  -H "Authorization: Bearer $HAILMATE_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "job_id": "f2b1a0c4-1111-4000-8000-0000000000aa",
  "category": "materials",
  "amount": 4200,
  "vendor": "ABC Supply",
  "incurred_on": "2026-10-02"
}'
Response · 201
{
  "id": "3c4d5e6f-3333-4000-8000-0000000000c3",
  "object": "job_cost",
  "job_id": "f2b1a0c4-1111-4000-8000-0000000000aa",
  "category": "materials",
  "description": "Shingles and underlayment",
  "vendor": "ABC Supply",
  "amount": 4200,
  "incurred_on": "2026-10-02",
  "file_id": null,
  "created_at": "2026-10-02T15:00:00.000Z",
  "updated_at": "2026-10-02T15:00:00.000Z",
  "url": "https://app.hailmate.ai/job/f2b1a0c4-1111-4000-8000-0000000000aa"
}

Get a job cost

GET/job_costs/{id}

Path parameters

  • idstringuuidRequired

Returns

200The cost. A JobCost object.

  • 404not_foundNo such record in this workspace.

Any request can also answer 401, 402, 429 or 500 — errors.

curl https://app.hailmate.ai/api/v1/job_costs/00000000-0000-4000-8000-000000000000 \
  -H "Authorization: Bearer $HAILMATE_API_KEY"
Response · 200
{
  "id": "3c4d5e6f-3333-4000-8000-0000000000c3",
  "object": "job_cost",
  "job_id": "f2b1a0c4-1111-4000-8000-0000000000aa",
  "category": "materials",
  "description": "Shingles and underlayment",
  "vendor": "ABC Supply",
  "amount": 4200,
  "incurred_on": "2026-10-02",
  "file_id": null,
  "created_at": "2026-10-02T15:00:00.000Z",
  "updated_at": "2026-10-02T15:00:00.000Z",
  "url": "https://app.hailmate.ai/job/f2b1a0c4-1111-4000-8000-0000000000aa"
}

Change a job cost

PATCH/job_costs/{id}

A cost a delivered material order keeps in step cannot be changed here (409).

Path parameters

  • idstringuuidRequired

Headers

  • Idempotency-Keystring

    Any unique string (a UUID is ideal). A retry with the same key within 24 hours replays the first answer — with Idempotent-Replayed: true — instead of doing the work again. Reusing a key for a DIFFERENT request is a 409.

    Up to 255 characters

Request bodyapplication/json

  • categorystring
    materialslaborsubcontractorpermitsdumpsterequipmentfuelmarketingother
  • amountnumber
  • descriptionstring | null
  • vendorstring | null
  • incurred_onstring | nulldate

Returns

200The cost. A JobCost object.

  • 404not_foundNo such record in this workspace.
  • 409conflictA conflict: an Idempotency-Key clash, a record in a state that refuses the change, or a send refused (the number replied STOP, or the rep has no texting number).

Any request can also answer 401, 402, 429 or 500 — errors.

curl -X PATCH https://app.hailmate.ai/api/v1/job_costs/00000000-0000-4000-8000-000000000000 \
  -H "Authorization: Bearer $HAILMATE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "category": "materials",
  "amount": 0,
  "description": null,
  "vendor": null,
  "incurred_on": null
}'
Response · 200
{
  "id": "3c4d5e6f-3333-4000-8000-0000000000c3",
  "object": "job_cost",
  "job_id": "f2b1a0c4-1111-4000-8000-0000000000aa",
  "category": "materials",
  "description": "Shingles and underlayment",
  "vendor": "ABC Supply",
  "amount": 4200,
  "incurred_on": "2026-10-02",
  "file_id": null,
  "created_at": "2026-10-02T15:00:00.000Z",
  "updated_at": "2026-10-02T15:00:00.000Z",
  "url": "https://app.hailmate.ai/job/f2b1a0c4-1111-4000-8000-0000000000aa"
}

Delete a job cost

DELETE/job_costs/{id}

Path parameters

  • idstringuuidRequired

Headers

  • Idempotency-Keystring

    Any unique string (a UUID is ideal). A retry with the same key within 24 hours replays the first answer — with Idempotent-Replayed: true — instead of doing the work again. Reusing a key for a DIFFERENT request is a 409.

    Up to 255 characters

Returns

200Deleted. A Deleted object.

  • 404not_foundNo such record in this workspace.
  • 409conflictA conflict: an Idempotency-Key clash, a record in a state that refuses the change, or a send refused (the number replied STOP, or the rep has no texting number).

Any request can also answer 401, 402, 429 or 500 — errors.

curl -X DELETE https://app.hailmate.ai/api/v1/job_costs/00000000-0000-4000-8000-000000000000 \
  -H "Authorization: Bearer $HAILMATE_API_KEY"
Response · 200
{
  "id": "f2b1a0c4-1111-4000-8000-0000000000aa",
  "object": "job",
  "deleted": true
}

Endpoints

Money Goals

The company's monthly money goals and overhead — what the Money overview measures this month against.

Get the company's monthly money goals and overhead

GET/money_targets

What the Money overview measures against: the money-in goal, the sold-work goal and the monthly overhead (rent, trucks, insurance, office pay). A field is null when it has not been set, which is not the same as zero. There is one record per company, so no id.

Returns

200The goals; every field null until the company sets them. A MoneyTargets object.

Any request can also answer 401, 402, 429 or 500 — errors.

curl https://app.hailmate.ai/api/v1/money_targets \
  -H "Authorization: Bearer $HAILMATE_API_KEY"
Response · 200
{
  "object": "money_targets",
  "monthly_collected_goal": 120000,
  "monthly_sold_goal": 150000,
  "monthly_overhead": 38000,
  "updated_at": "2026-10-31T15:00:00.000Z"
}

Set the company's monthly money goals and overhead

PATCH/money_targets

Send only what changes: a field left out is untouched, a field sent as null is cleared back to "not set". Each is dollars, 0 or more. The first save creates the record. Without an overhead the Money overview shows gross profit only, never a guess at net.

Headers

  • Idempotency-Keystring

    Any unique string (a UUID is ideal). A retry with the same key within 24 hours replays the first answer — with Idempotent-Replayed: true — instead of doing the work again. Reusing a key for a DIFFERENT request is a 409.

    Up to 255 characters

Request bodyapplication/json

  • monthly_collected_goalnumber | null

    At least 0

  • monthly_sold_goalnumber | null

    At least 0

  • monthly_overheadnumber | null

    At least 0

Returns

200The goals as they now stand. A MoneyTargets object.

  • 400invalid_requestSomething in the request was wrong; field names what.
  • 403forbiddenA read-only key tried to change something.

Any request can also answer 401, 402, 429 or 500 — errors.

curl -X PATCH https://app.hailmate.ai/api/v1/money_targets \
  -H "Authorization: Bearer $HAILMATE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "monthly_collected_goal": 120000,
  "monthly_sold_goal": 150000,
  "monthly_overhead": 38000
}'
Response · 200
{
  "object": "money_targets",
  "monthly_collected_goal": 120000,
  "monthly_sold_goal": 150000,
  "monthly_overhead": 38000,
  "updated_at": "2026-10-31T15:00:00.000Z"
}

Endpoints

Insurance

Roof measurements, the carrier's estimates as HailMate read them, and supplements.

Read a job's roof measurements

GET/jobs/{id}/measurements

Newest first; the first is the one HailMate uses. squares_with_waste adds the waste in effect.

Path parameters

  • idstringuuidRequired

Returns

200The list. A page of Measurement objects in data, with has_more and next_cursor.

  • 404not_foundNo such record in this workspace.

Any request can also answer 401, 402, 429 or 500 — errors.

curl https://app.hailmate.ai/api/v1/jobs/f2b1a0c4-1111-4000-8000-0000000000aa/measurements \
  -H "Authorization: Bearer $HAILMATE_API_KEY"
Response · 200
{
  "object": "list",
  "has_more": true,
  "next_cursor": "eyJjIjoiMjAyNi0wOS0yOFQxNDowMjowMFoiLCJpIjoiZjJiMWEwYzQifQ",
  "data": [
    {
      "id": "4d5e6f70-4444-4000-8000-0000000000d4",
      "object": "measurement",
      "job_id": "f2b1a0c4-1111-4000-8000-0000000000aa",
      "source": "eagleview",
      "status": "completed",
      "squares": 31.4,
      "waste_percent": 12,
      "squares_with_waste": 35.17,
      "area_sqft": 3140,
      "predominant_pitch": "7/12",
      "stories": 2,
      "ridge_lf": 64,
      "hip_lf": 88,
      "valley_lf": 22,
      "eave_lf": 180,
      "rake_lf": 46,
      "drip_edge_lf": 226,
      "step_flashing_lf": 18,
      "flashing_lf": 12,
      "pitch_breakdown": null,
      "created_at": "2026-09-20T15:00:00.000Z",
      "url": "https://app.hailmate.ai/job/f2b1a0c4-1111-4000-8000-0000000000aa"
    }
  ]
}

List the carrier estimates read on a job

GET/jobs/{id}/carrier_scopes

Each insurance estimate HailMate read from the paperwork, newest first. Get one for its lines.

Path parameters

  • idstringuuidRequired

Returns

200The list. A page of CarrierScope objects in data, with has_more and next_cursor.

  • 404not_foundNo such record in this workspace.

Any request can also answer 401, 402, 429 or 500 — errors.

curl https://app.hailmate.ai/api/v1/jobs/f2b1a0c4-1111-4000-8000-0000000000aa/carrier_scopes \
  -H "Authorization: Bearer $HAILMATE_API_KEY"
Response · 200
{
  "object": "list",
  "has_more": true,
  "next_cursor": "eyJjIjoiMjAyNi0wOS0yOFQxNDowMjowMFoiLCJpIjoiZjJiMWEwYzQifQ",
  "data": [
    {
      "id": "5e6f7081-5555-4000-8000-0000000000e5",
      "object": "carrier_scope",
      "job_id": "f2b1a0c4-1111-4000-8000-0000000000aa",
      "status": "completed",
      "kind": "initial",
      "carrier": "Example Mutual",
      "claim_number": "CLM-88213",
      "policy_number": null,
      "adjuster_name": "Pat Lee",
      "date_of_loss": "2026-09-12",
      "total_rcv": 24380.5,
      "total_acv": 19240,
      "depreciation": 5140.5,
      "deductible": 2500,
      "net_claim": 16740,
      "tax_rate": 8.25,
      "line_item_count": 38,
      "revises_scope_id": null,
      "source_file_id": null,
      "created_at": "2026-09-21T15:00:00.000Z",
      "url": "https://app.hailmate.ai/job/f2b1a0c4-1111-4000-8000-0000000000aa",
      "lines_total": 24380.5,
      "line_items": [
        {
          "name": "Remove 3 tab shingles",
          "code": "RFG 220",
          "quantity": 31.4,
          "unit": "SQ",
          "unit_price": 61.2,
          "total": 1921.68,
          "kind": "item",
          "counted_in_total": true
        }
      ]
    }
  ]
}

List a job's supplements

GET/jobs/{id}/supplements

Path parameters

  • idstringuuidRequired

Query parameters

  • limitinteger

    Page size. Out-of-range values fall back to the default.

    1 to 200 · Default 50

  • cursorstring

    The next_cursor from the previous page, exactly as received. A cursor we did not issue is a 400.

Returns

200The list. A page of Supplement objects in data, with has_more and next_cursor.

  • 404not_foundNo such record in this workspace.

Any request can also answer 401, 402, 429 or 500 — errors.

curl "https://app.hailmate.ai/api/v1/jobs/f2b1a0c4-1111-4000-8000-0000000000aa/supplements?limit=25" \
  -H "Authorization: Bearer $HAILMATE_API_KEY"
Response · 200
{
  "object": "list",
  "has_more": true,
  "next_cursor": "eyJjIjoiMjAyNi0wOS0yOFQxNDowMjowMFoiLCJpIjoiZjJiMWEwYzQifQ",
  "data": [
    {
      "id": "6f708192-6666-4000-8000-0000000000f6",
      "object": "supplement",
      "job_id": "f2b1a0c4-1111-4000-8000-0000000000aa",
      "round": 1,
      "status": "closed",
      "outcome": "partial",
      "amount_requested": 3100,
      "amount_approved": 2400,
      "item_count": 0,
      "source": "manual",
      "carrier_scope_id": null,
      "sent_at": "2026-10-01T18:00:00.000Z",
      "replied_at": null,
      "closed_at": "2026-10-09T15:00:00.000Z",
      "notes": null,
      "created_at": "2026-10-01T18:00:00.000Z",
      "updated_at": "2026-10-09T15:00:00.000Z",
      "url": "https://app.hailmate.ai/job/f2b1a0c4-1111-4000-8000-0000000000aa"
    }
  ]
}

Get a carrier estimate with its lines

GET/carrier_scopes/{id}

Quote the claim totals (total_rcv, total_acv…), never a sum of line totals: a line's total already includes its tax. Each line's kind says whether it is work (item), tax, overhead & profit (op) or a summary row.

Path parameters

  • idstringuuidRequired

Returns

200The carrier estimate. A CarrierScope object.

  • 404not_foundNo such record in this workspace.

Any request can also answer 401, 402, 429 or 500 — errors.

curl https://app.hailmate.ai/api/v1/carrier_scopes/00000000-0000-4000-8000-000000000000 \
  -H "Authorization: Bearer $HAILMATE_API_KEY"
Response · 200
{
  "id": "5e6f7081-5555-4000-8000-0000000000e5",
  "object": "carrier_scope",
  "job_id": "f2b1a0c4-1111-4000-8000-0000000000aa",
  "status": "completed",
  "kind": "initial",
  "carrier": "Example Mutual",
  "claim_number": "CLM-88213",
  "policy_number": null,
  "adjuster_name": "Pat Lee",
  "date_of_loss": "2026-09-12",
  "total_rcv": 24380.5,
  "total_acv": 19240,
  "depreciation": 5140.5,
  "deductible": 2500,
  "net_claim": 16740,
  "tax_rate": 8.25,
  "line_item_count": 38,
  "revises_scope_id": null,
  "source_file_id": null,
  "created_at": "2026-09-21T15:00:00.000Z",
  "url": "https://app.hailmate.ai/job/f2b1a0c4-1111-4000-8000-0000000000aa",
  "lines_total": 24380.5,
  "line_items": [
    {
      "name": "Remove 3 tab shingles",
      "code": "RFG 220",
      "quantity": 31.4,
      "unit": "SQ",
      "unit_price": 61.2,
      "total": 1921.68,
      "kind": "item",
      "counted_in_total": true
    }
  ]
}

List supplements

GET/supplements

Query parameters

  • limitinteger

    Page size. Out-of-range values fall back to the default.

    1 to 200 · Default 50

  • cursorstring

    The next_cursor from the previous page, exactly as received. A cursor we did not issue is a 400.

  • updated_sincestringdate-time

    Only records changed at or after this ISO date or date-time. The way to sync only what moved.

  • job_idstringuuid
  • statusstring
    draftsentopenedrepliedclosed

Returns

200A page of supplements. A page of Supplement objects in data, with has_more and next_cursor.

Any request can also answer 401, 402, 429 or 500 — errors.

curl "https://app.hailmate.ai/api/v1/supplements?limit=25" \
  -H "Authorization: Bearer $HAILMATE_API_KEY"
Response · 200
{
  "object": "list",
  "has_more": true,
  "next_cursor": "eyJjIjoiMjAyNi0wOS0yOFQxNDowMjowMFoiLCJpIjoiZjJiMWEwYzQifQ",
  "data": [
    {
      "id": "6f708192-6666-4000-8000-0000000000f6",
      "object": "supplement",
      "job_id": "f2b1a0c4-1111-4000-8000-0000000000aa",
      "round": 1,
      "status": "closed",
      "outcome": "partial",
      "amount_requested": 3100,
      "amount_approved": 2400,
      "item_count": 0,
      "source": "manual",
      "carrier_scope_id": null,
      "sent_at": "2026-10-01T18:00:00.000Z",
      "replied_at": null,
      "closed_at": "2026-10-09T15:00:00.000Z",
      "notes": null,
      "created_at": "2026-10-01T18:00:00.000Z",
      "updated_at": "2026-10-09T15:00:00.000Z",
      "url": "https://app.hailmate.ai/job/f2b1a0c4-1111-4000-8000-0000000000aa"
    }
  ]
}

Log a supplement sent to the carrier

POST/supplements

Tracks one sent outside HailMate. The round defaults to the job's next. Recording an outcome closes it.

Headers

  • Idempotency-Keystring

    Any unique string (a UUID is ideal). A retry with the same key within 24 hours replays the first answer — with Idempotent-Replayed: true — instead of doing the work again. Reusing a key for a DIFFERENT request is a 409.

    Up to 255 characters

Request bodyapplication/json

  • job_idstringuuidRequired
  • roundinteger

    Default: the job's next round.

  • statusstring
    draftsentopenedrepliedclosed

    Default sent

  • outcomestring
    approvedpartialdenied
  • amount_requestednumber
  • amount_approvednumber
  • submitted_onstringdate
  • notesstring

Returns

201The supplement. A Supplement object.

Any request can also answer 401, 402, 429 or 500 — errors.

curl -X POST https://app.hailmate.ai/api/v1/supplements \
  -H "Authorization: Bearer $HAILMATE_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "job_id": "f2b1a0c4-1111-4000-8000-0000000000aa",
  "amount_requested": 3100,
  "submitted_on": "2026-10-01"
}'
Response · 201
{
  "id": "6f708192-6666-4000-8000-0000000000f6",
  "object": "supplement",
  "job_id": "f2b1a0c4-1111-4000-8000-0000000000aa",
  "round": 1,
  "status": "closed",
  "outcome": "partial",
  "amount_requested": 3100,
  "amount_approved": 2400,
  "item_count": 0,
  "source": "manual",
  "carrier_scope_id": null,
  "sent_at": "2026-10-01T18:00:00.000Z",
  "replied_at": null,
  "closed_at": "2026-10-09T15:00:00.000Z",
  "notes": null,
  "created_at": "2026-10-01T18:00:00.000Z",
  "updated_at": "2026-10-09T15:00:00.000Z",
  "url": "https://app.hailmate.ai/job/f2b1a0c4-1111-4000-8000-0000000000aa"
}

Get a supplement

GET/supplements/{id}

Path parameters

  • idstringuuidRequired

Returns

200The supplement. A Supplement object.

  • 404not_foundNo such record in this workspace.

Any request can also answer 401, 402, 429 or 500 — errors.

curl https://app.hailmate.ai/api/v1/supplements/00000000-0000-4000-8000-000000000000 \
  -H "Authorization: Bearer $HAILMATE_API_KEY"
Response · 200
{
  "id": "6f708192-6666-4000-8000-0000000000f6",
  "object": "supplement",
  "job_id": "f2b1a0c4-1111-4000-8000-0000000000aa",
  "round": 1,
  "status": "closed",
  "outcome": "partial",
  "amount_requested": 3100,
  "amount_approved": 2400,
  "item_count": 0,
  "source": "manual",
  "carrier_scope_id": null,
  "sent_at": "2026-10-01T18:00:00.000Z",
  "replied_at": null,
  "closed_at": "2026-10-09T15:00:00.000Z",
  "notes": null,
  "created_at": "2026-10-01T18:00:00.000Z",
  "updated_at": "2026-10-09T15:00:00.000Z",
  "url": "https://app.hailmate.ai/job/f2b1a0c4-1111-4000-8000-0000000000aa"
}

Record what the carrier answered

PATCH/supplements/{id}

An outcome (approved, partial, denied) closes it; amount_approved counts for approved or partial.

Path parameters

  • idstringuuidRequired

Headers

  • Idempotency-Keystring

    Any unique string (a UUID is ideal). A retry with the same key within 24 hours replays the first answer — with Idempotent-Replayed: true — instead of doing the work again. Reusing a key for a DIFFERENT request is a 409.

    Up to 255 characters

Request bodyapplication/json

  • roundinteger
  • statusstring
    draftsentopenedrepliedclosed
  • outcomestring | null
    approvedpartialdenied
  • amount_requestednumber | null
  • amount_approvednumber | null
  • submitted_onstring | nulldate
  • notesstring | null

Returns

200The supplement. A Supplement object.

  • 404not_foundNo such record in this workspace.

Any request can also answer 401, 402, 429 or 500 — errors.

curl -X PATCH https://app.hailmate.ai/api/v1/supplements/00000000-0000-4000-8000-000000000000 \
  -H "Authorization: Bearer $HAILMATE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "outcome": "partial",
  "amount_approved": 2400
}'
Response · 200
{
  "id": "6f708192-6666-4000-8000-0000000000f6",
  "object": "supplement",
  "job_id": "f2b1a0c4-1111-4000-8000-0000000000aa",
  "round": 1,
  "status": "closed",
  "outcome": "partial",
  "amount_requested": 3100,
  "amount_approved": 2400,
  "item_count": 0,
  "source": "manual",
  "carrier_scope_id": null,
  "sent_at": "2026-10-01T18:00:00.000Z",
  "replied_at": null,
  "closed_at": "2026-10-09T15:00:00.000Z",
  "notes": null,
  "created_at": "2026-10-01T18:00:00.000Z",
  "updated_at": "2026-10-09T15:00:00.000Z",
  "url": "https://app.hailmate.ai/job/f2b1a0c4-1111-4000-8000-0000000000aa"
}

Endpoints

Messages

Texts, emails, calls and voicemails — read a job's or a contact's conversation, and send a text or an email as a rep.

Read a job's texts, emails and calls

GET/jobs/{id}/messages

The job's conversation, newest first — the same history the job's page shows: its own messages and the threads they started. Use it to answer "what did the homeowner say?" before writing back.

Path parameters

  • idstringuuidRequired

Query parameters

  • limitinteger

    Page size. Out-of-range values fall back to the default.

    1 to 200 · Default 50

  • cursorstring

    The next_cursor from the previous page, exactly as received. A cursor we did not issue is a 400.

  • channelstring

    Only this kind of message.

    textemailcallvoicemail
  • directionstring

    inbound (they wrote or called us) or outbound (we did).

    inboundoutbound

Returns

200A page of messages. A page of Message objects in data, with has_more and next_cursor.

  • 404not_foundNo such record in this workspace.

Any request can also answer 401, 402, 429 or 500 — errors.

curl "https://app.hailmate.ai/api/v1/jobs/f2b1a0c4-1111-4000-8000-0000000000aa/messages?limit=25" \
  -H "Authorization: Bearer $HAILMATE_API_KEY"
Response · 200
{
  "object": "list",
  "has_more": true,
  "next_cursor": "eyJjIjoiMjAyNi0wOS0yOFQxNDowMjowMFoiLCJpIjoiZjJiMWEwYzQifQ",
  "data": [
    {
      "id": "d1d2d3d4-cccc-4000-8000-000000000077",
      "object": "message",
      "channel": "text",
      "direction": "inbound",
      "contact_id": "b7c2d3e4-4444-4000-8000-0000000000dd",
      "job_id": "f2b1a0c4-1111-4000-8000-0000000000aa",
      "estimate_id": null,
      "invoice_id": null,
      "rep_id": "5d0e1c2b-7777-4000-8000-0000000000ab",
      "rep_name": "Sam Carter",
      "to": null,
      "from": null,
      "subject": null,
      "body": "Thursday at 3 works for the adjuster. Thanks!",
      "media_urls": [],
      "status": "received",
      "delivery_error": null,
      "call_status": null,
      "call_duration_seconds": null,
      "summary": null,
      "recording_url": null,
      "thread_id": null,
      "ai_drafted": false,
      "sent_at": "2026-09-16T18:12:00.000Z",
      "delivered_at": null,
      "opened_at": null,
      "read_at": null,
      "created_at": "2026-09-16T18:12:00.000Z",
      "url": "https://app.hailmate.ai/contact/b7c2d3e4-4444-4000-8000-0000000000dd"
    }
  ]
}

Read a contact's texts, emails and calls

GET/contacts/{id}/messages

Everything said with this person, newest first: their texts, emails (including mail from their address), calls and voicemails.

Path parameters

  • idstringuuidRequired

Query parameters

  • limitinteger

    Page size. Out-of-range values fall back to the default.

    1 to 200 · Default 50

  • cursorstring

    The next_cursor from the previous page, exactly as received. A cursor we did not issue is a 400.

  • channelstring

    Only this kind of message.

    textemailcallvoicemail
  • directionstring

    inbound (they wrote or called us) or outbound (we did).

    inboundoutbound

Returns

200A page of messages. A page of Message objects in data, with has_more and next_cursor.

  • 404not_foundNo such record in this workspace.

Any request can also answer 401, 402, 429 or 500 — errors.

curl "https://app.hailmate.ai/api/v1/contacts/b7c2d3e4-4444-4000-8000-0000000000dd/messages?limit=25" \
  -H "Authorization: Bearer $HAILMATE_API_KEY"
Response · 200
{
  "object": "list",
  "has_more": true,
  "next_cursor": "eyJjIjoiMjAyNi0wOS0yOFQxNDowMjowMFoiLCJpIjoiZjJiMWEwYzQifQ",
  "data": [
    {
      "id": "d1d2d3d4-cccc-4000-8000-000000000077",
      "object": "message",
      "channel": "text",
      "direction": "inbound",
      "contact_id": "b7c2d3e4-4444-4000-8000-0000000000dd",
      "job_id": "f2b1a0c4-1111-4000-8000-0000000000aa",
      "estimate_id": null,
      "invoice_id": null,
      "rep_id": "5d0e1c2b-7777-4000-8000-0000000000ab",
      "rep_name": "Sam Carter",
      "to": null,
      "from": null,
      "subject": null,
      "body": "Thursday at 3 works for the adjuster. Thanks!",
      "media_urls": [],
      "status": "received",
      "delivery_error": null,
      "call_status": null,
      "call_duration_seconds": null,
      "summary": null,
      "recording_url": null,
      "thread_id": null,
      "ai_drafted": false,
      "sent_at": "2026-09-16T18:12:00.000Z",
      "delivered_at": null,
      "opened_at": null,
      "read_at": null,
      "created_at": "2026-09-16T18:12:00.000Z",
      "url": "https://app.hailmate.ai/contact/b7c2d3e4-4444-4000-8000-0000000000dd"
    }
  ]
}

List texts, emails and calls

GET/messages

The workspace's conversations, newest first. Narrow with job_id or contact_id.

Query parameters

  • limitinteger

    Page size. Out-of-range values fall back to the default.

    1 to 200 · Default 50

  • cursorstring

    The next_cursor from the previous page, exactly as received. A cursor we did not issue is a 400.

  • created_afterstringdate-time

    Only records created at or after this ISO date or date-time.

  • created_beforestringdate-time

    Only records created before this ISO date or date-time.

  • job_idstringuuid
  • contact_idstringuuid
  • channelstring

    Only this kind of message.

    textemailcallvoicemail
  • directionstring

    inbound (they wrote or called us) or outbound (we did).

    inboundoutbound

Returns

200A page of messages. A page of Message objects in data, with has_more and next_cursor.

  • 401unauthorizedThe key is missing, wrong or revoked.

Any request can also answer 401, 402, 429 or 500 — errors.

curl "https://app.hailmate.ai/api/v1/messages?limit=25" \
  -H "Authorization: Bearer $HAILMATE_API_KEY"
Response · 200
{
  "object": "list",
  "has_more": true,
  "next_cursor": "eyJjIjoiMjAyNi0wOS0yOFQxNDowMjowMFoiLCJpIjoiZjJiMWEwYzQifQ",
  "data": [
    {
      "id": "d1d2d3d4-cccc-4000-8000-000000000077",
      "object": "message",
      "channel": "text",
      "direction": "inbound",
      "contact_id": "b7c2d3e4-4444-4000-8000-0000000000dd",
      "job_id": "f2b1a0c4-1111-4000-8000-0000000000aa",
      "estimate_id": null,
      "invoice_id": null,
      "rep_id": "5d0e1c2b-7777-4000-8000-0000000000ab",
      "rep_name": "Sam Carter",
      "to": null,
      "from": null,
      "subject": null,
      "body": "Thursday at 3 works for the adjuster. Thanks!",
      "media_urls": [],
      "status": "received",
      "delivery_error": null,
      "call_status": null,
      "call_duration_seconds": null,
      "summary": null,
      "recording_url": null,
      "thread_id": null,
      "ai_drafted": false,
      "sent_at": "2026-09-16T18:12:00.000Z",
      "delivered_at": null,
      "opened_at": null,
      "read_at": null,
      "created_at": "2026-09-16T18:12:00.000Z",
      "url": "https://app.hailmate.ai/contact/b7c2d3e4-4444-4000-8000-0000000000dd"
    }
  ]
}

Get one text, email or call

GET/messages/{id}

Path parameters

  • idstringuuidRequired

Returns

200The message. A Message object.

  • 404not_foundNo such record in this workspace.

Any request can also answer 401, 402, 429 or 500 — errors.

curl https://app.hailmate.ai/api/v1/messages/00000000-0000-4000-8000-000000000000 \
  -H "Authorization: Bearer $HAILMATE_API_KEY"
Response · 200
{
  "id": "d1d2d3d4-cccc-4000-8000-000000000077",
  "object": "message",
  "channel": "text",
  "direction": "inbound",
  "contact_id": "b7c2d3e4-4444-4000-8000-0000000000dd",
  "job_id": "f2b1a0c4-1111-4000-8000-0000000000aa",
  "estimate_id": null,
  "invoice_id": null,
  "rep_id": "5d0e1c2b-7777-4000-8000-0000000000ab",
  "rep_name": "Sam Carter",
  "to": null,
  "from": null,
  "subject": null,
  "body": "Thursday at 3 works for the adjuster. Thanks!",
  "media_urls": [],
  "status": "received",
  "delivery_error": null,
  "call_status": null,
  "call_duration_seconds": null,
  "summary": null,
  "recording_url": null,
  "thread_id": null,
  "ai_drafted": false,
  "sent_at": "2026-09-16T18:12:00.000Z",
  "delivered_at": null,
  "opened_at": null,
  "read_at": null,
  "created_at": "2026-09-16T18:12:00.000Z",
  "url": "https://app.hailmate.ai/contact/b7c2d3e4-4444-4000-8000-0000000000dd"
}

Send a text message

POST/texts

Texts a contact (their main number) or a number, FOR REAL, from the sending rep's own HailMate number, into their inbox thread. Refused if the number replied STOP. Confirm the wording and recipient with the person before sending. At most 20 sends a minute per key.

Headers

  • Idempotency-Keystring

    Any unique string (a UUID is ideal). A retry with the same key within 24 hours replays the first answer — with Idempotent-Replayed: true — instead of doing the work again. Reusing a key for a DIFFERENT request is a 409.

    Up to 255 characters

Request bodyapplication/json

  • contact_idstringuuid

    Texts the contact's main number.

  • tostring

    A phone number, e.g. (972) 555-0148 or +19725550148.

  • bodystringRequired

    Up to 1600 characters

  • job_idstringuuid

    Files the text on this job too.

  • from_user_idstringuuid

    The teammate it is sent as (must have a HailMate number). Default: whoever made the key or connected the app.

  • media_urlsarray of stringuri

    Public https images

Returns

201Sent. A Message object.

  • 400invalid_requestSomething in the request was wrong; field names what.
  • 409conflictA conflict: an Idempotency-Key clash, a record in a state that refuses the change, or a send refused (the number replied STOP, or the rep has no texting number).

Any request can also answer 401, 402, 429 or 500 — errors.

curl -X POST https://app.hailmate.ai/api/v1/texts \
  -H "Authorization: Bearer $HAILMATE_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "contact_id": "b7c2d3e4-4444-4000-8000-0000000000dd",
  "body": "Hi Dana, the adjuster is confirmed for Thursday at 3.",
  "job_id": "f2b1a0c4-1111-4000-8000-0000000000aa"
}'
Response · 201
{
  "id": "d1d2d3d4-cccc-4000-8000-000000000077",
  "object": "message",
  "channel": "text",
  "direction": "inbound",
  "contact_id": "b7c2d3e4-4444-4000-8000-0000000000dd",
  "job_id": "f2b1a0c4-1111-4000-8000-0000000000aa",
  "estimate_id": null,
  "invoice_id": null,
  "rep_id": "5d0e1c2b-7777-4000-8000-0000000000ab",
  "rep_name": "Sam Carter",
  "to": null,
  "from": null,
  "subject": null,
  "body": "Thursday at 3 works for the adjuster. Thanks!",
  "media_urls": [],
  "status": "received",
  "delivery_error": null,
  "call_status": null,
  "call_duration_seconds": null,
  "summary": null,
  "recording_url": null,
  "thread_id": null,
  "ai_drafted": false,
  "sent_at": "2026-09-16T18:12:00.000Z",
  "delivered_at": null,
  "opened_at": null,
  "read_at": null,
  "created_at": "2026-09-16T18:12:00.000Z",
  "url": "https://app.hailmate.ai/contact/b7c2d3e4-4444-4000-8000-0000000000dd"
}

Send an email

POST/emails

Emails a contact (their address) or named addresses, FOR REAL, from the sending rep's connected mailbox when they have one, else the company address. The body is Markdown. Attach a job's files by file_id. Confirm the wording and recipient with the person before sending. At most 20 sends a minute per key.

Headers

  • Idempotency-Keystring

    Any unique string (a UUID is ideal). A retry with the same key within 24 hours replays the first answer — with Idempotent-Replayed: true — instead of doing the work again. Reusing a key for a DIFFERENT request is a 409.

    Up to 255 characters

Request bodyapplication/json

  • contact_idstringuuid

    Emails the contact's address.

  • toarray of stringemail
  • ccarray of stringemail
  • bccarray of stringemail
  • subjectstringRequired

    Up to 300 characters

  • bodystringRequired

    Markdown.

  • job_idstringuuid
  • estimate_idstringuuid
  • invoice_idstringuuid
  • from_user_idstringuuid

    The teammate it is sent as. Default: whoever made the key or connected the app.

  • send_asstring

    mailbox (default when connected) sends from the rep's own email; workspace from the company address.

    mailboxworkspace
  • attachmentsarray of object

    At most 5. A file on the job by file_id, or a public https link elsewhere.

  • attachments[].file_idstringuuid
  • attachments[].urlstringuri
  • attachments[].filenamestring

Returns

201Sent. A Message object.

  • 400invalid_requestSomething in the request was wrong; field names what.

Any request can also answer 401, 402, 429 or 500 — errors.

curl -X POST https://app.hailmate.ai/api/v1/emails \
  -H "Authorization: Bearer $HAILMATE_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "contact_id": "b7c2d3e4-4444-4000-8000-0000000000dd",
  "subject": "Your roof inspection",
  "body": "Hi Dana,\n\nThe adjuster is confirmed for **Thursday at 3**."
}'
Response · 201
{
  "id": "d1d2d3d4-cccc-4000-8000-000000000077",
  "object": "message",
  "channel": "text",
  "direction": "inbound",
  "contact_id": "b7c2d3e4-4444-4000-8000-0000000000dd",
  "job_id": "f2b1a0c4-1111-4000-8000-0000000000aa",
  "estimate_id": null,
  "invoice_id": null,
  "rep_id": "5d0e1c2b-7777-4000-8000-0000000000ab",
  "rep_name": "Sam Carter",
  "to": null,
  "from": null,
  "subject": null,
  "body": "Thursday at 3 works for the adjuster. Thanks!",
  "media_urls": [],
  "status": "received",
  "delivery_error": null,
  "call_status": null,
  "call_duration_seconds": null,
  "summary": null,
  "recording_url": null,
  "thread_id": null,
  "ai_drafted": false,
  "sent_at": "2026-09-16T18:12:00.000Z",
  "delivered_at": null,
  "opened_at": null,
  "read_at": null,
  "created_at": "2026-09-16T18:12:00.000Z",
  "url": "https://app.hailmate.ai/contact/b7c2d3e4-4444-4000-8000-0000000000dd"
}

List email drafts

GET/email_drafts

Unsent emails waiting in teammates' Drafts, newest first. A key sees its own person's drafts; an owner's or admin's key sees every teammate's.

Query parameters

  • limitinteger

    Page size. Out-of-range values fall back to the default.

    1 to 200 · Default 50

  • cursorstring

    The next_cursor from the previous page, exactly as received. A cursor we did not issue is a 400.

  • updated_sincestringdate-time

    Only records changed at or after this ISO date or date-time. The way to sync only what moved.

  • user_idstringuuid

    Only this teammate's drafts.

  • contact_idstringuuid
  • job_idstringuuid

Returns

200A page of drafts. A page of EmailDraft objects in data, with has_more and next_cursor.

  • 401unauthorizedThe key is missing, wrong or revoked.

Any request can also answer 401, 402, 429 or 500 — errors.

curl "https://app.hailmate.ai/api/v1/email_drafts?limit=25" \
  -H "Authorization: Bearer $HAILMATE_API_KEY"
Response · 200
{
  "object": "list",
  "has_more": true,
  "next_cursor": "eyJjIjoiMjAyNi0wOS0yOFQxNDowMjowMFoiLCJpIjoiZjJiMWEwYzQifQ",
  "data": [
    {
      "id": "3c2b1a00-5d4e-4f6a-8b7c-9d0e1f2a3b4c",
      "object": "email_draft",
      "user_id": "7a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d",
      "user_name": "Luis Ortega",
      "to": [
        "dana.smith@example.com"
      ],
      "cc": [],
      "bcc": [],
      "subject": "Your roof estimate for 1108 Spring Path Ln",
      "body": "Hi Dana,\n\nHere is the estimate we talked about.",
      "contact_id": "0f1e2d3c-4b5a-4968-8776-655443322110",
      "job_id": "9e8d7c6b-5a49-4382-9170-6f5e4d3c2b1a",
      "created_at": "2026-11-18T15:04:05Z",
      "updated_at": "2026-11-18T15:10:00Z",
      "url": "https://app.hailmate.ai/messages?draft=3c2b1a00-5d4e-4f6a-8b7c-9d0e1f2a3b4c"
    }
  ]
}

Write an email draft for a teammate

POST/email_drafts

Puts an email in a teammate's Drafts for them to read, change and send from HailMate. NOTHING IS SENT. It opens in their email composer under Drafts, where their signature is added, so leave the signature out of the body. user_id picks whose Drafts (default: whoever made the key); only an owner's or admin's key may write in someone else's. The body is Markdown.

Headers

  • Idempotency-Keystring

    Any unique string (a UUID is ideal). A retry with the same key within 24 hours replays the first answer — with Idempotent-Replayed: true — instead of doing the work again. Reusing a key for a DIFFERENT request is a 409.

    Up to 255 characters

Request bodyapplication/json

  • user_idstringuuid

    Whose Drafts it goes in (GET /users). Default: whoever made the key. Another teammate needs an owner's or admin's key.

  • contact_idstringuuid

    Addressed to the contact's email when to is empty, and filed on the contact.

  • job_idstringuuid
  • toarray of stringemail
  • ccarray of stringemail
  • bccarray of stringemail
  • subjectstring

    Up to 300 characters

  • bodystringRequired

    Markdown. Leave the signature out; the composer adds it.

Returns

201Saved as a draft. Not sent. An EmailDraft object.

  • 400invalid_requestSomething in the request was wrong; field names what.
  • 403forbiddenA read-only key tried to change something.

Any request can also answer 401, 402, 429 or 500 — errors.

curl -X POST https://app.hailmate.ai/api/v1/email_drafts \
  -H "Authorization: Bearer $HAILMATE_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "contact_id": "b7c2d3e4-4444-4000-8000-0000000000dd",
  "subject": "Your roof inspection",
  "body": "Hi Dana,\n\nThe adjuster is confirmed for **Thursday at 3**."
}'
Response · 201
{
  "id": "3c2b1a00-5d4e-4f6a-8b7c-9d0e1f2a3b4c",
  "object": "email_draft",
  "user_id": "7a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d",
  "user_name": "Luis Ortega",
  "to": [
    "dana.smith@example.com"
  ],
  "cc": [],
  "bcc": [],
  "subject": "Your roof estimate for 1108 Spring Path Ln",
  "body": "Hi Dana,\n\nHere is the estimate we talked about.",
  "contact_id": "0f1e2d3c-4b5a-4968-8776-655443322110",
  "job_id": "9e8d7c6b-5a49-4382-9170-6f5e4d3c2b1a",
  "created_at": "2026-11-18T15:04:05Z",
  "updated_at": "2026-11-18T15:10:00Z",
  "url": "https://app.hailmate.ai/messages?draft=3c2b1a00-5d4e-4f6a-8b7c-9d0e1f2a3b4c"
}

Get an email draft

GET/email_drafts/{id}

Path parameters

  • idstringuuidRequired

Returns

200The draft. An EmailDraft object.

  • 404not_foundNo such record in this workspace.

Any request can also answer 401, 402, 429 or 500 — errors.

curl https://app.hailmate.ai/api/v1/email_drafts/00000000-0000-4000-8000-000000000000 \
  -H "Authorization: Bearer $HAILMATE_API_KEY"
Response · 200
{
  "id": "3c2b1a00-5d4e-4f6a-8b7c-9d0e1f2a3b4c",
  "object": "email_draft",
  "user_id": "7a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d",
  "user_name": "Luis Ortega",
  "to": [
    "dana.smith@example.com"
  ],
  "cc": [],
  "bcc": [],
  "subject": "Your roof estimate for 1108 Spring Path Ln",
  "body": "Hi Dana,\n\nHere is the estimate we talked about.",
  "contact_id": "0f1e2d3c-4b5a-4968-8776-655443322110",
  "job_id": "9e8d7c6b-5a49-4382-9170-6f5e4d3c2b1a",
  "created_at": "2026-11-18T15:04:05Z",
  "updated_at": "2026-11-18T15:10:00Z",
  "url": "https://app.hailmate.ai/messages?draft=3c2b1a00-5d4e-4f6a-8b7c-9d0e1f2a3b4c"
}

Change an email draft

PATCH/email_drafts/{id}

Its recipients, subject or body. Whose draft it is never changes. Still nothing is sent.

Path parameters

  • idstringuuidRequired

Headers

  • Idempotency-Keystring

    Any unique string (a UUID is ideal). A retry with the same key within 24 hours replays the first answer — with Idempotent-Replayed: true — instead of doing the work again. Reusing a key for a DIFFERENT request is a 409.

    Up to 255 characters

Request bodyapplication/json

  • toarray of stringemail
  • ccarray of stringemail
  • bccarray of stringemail
  • subjectstring

    Up to 300 characters

  • bodystring

Returns

200The draft. An EmailDraft object.

  • 404not_foundNo such record in this workspace.

Any request can also answer 401, 402, 429 or 500 — errors.

curl -X PATCH https://app.hailmate.ai/api/v1/email_drafts/00000000-0000-4000-8000-000000000000 \
  -H "Authorization: Bearer $HAILMATE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "to": [
    "dana@example.com"
  ],
  "cc": [
    "dana@example.com"
  ],
  "bcc": [
    "dana@example.com"
  ],
  "subject": "string",
  "body": "string"
}'
Response · 200
{
  "id": "3c2b1a00-5d4e-4f6a-8b7c-9d0e1f2a3b4c",
  "object": "email_draft",
  "user_id": "7a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d",
  "user_name": "Luis Ortega",
  "to": [
    "dana.smith@example.com"
  ],
  "cc": [],
  "bcc": [],
  "subject": "Your roof estimate for 1108 Spring Path Ln",
  "body": "Hi Dana,\n\nHere is the estimate we talked about.",
  "contact_id": "0f1e2d3c-4b5a-4968-8776-655443322110",
  "job_id": "9e8d7c6b-5a49-4382-9170-6f5e4d3c2b1a",
  "created_at": "2026-11-18T15:04:05Z",
  "updated_at": "2026-11-18T15:10:00Z",
  "url": "https://app.hailmate.ai/messages?draft=3c2b1a00-5d4e-4f6a-8b7c-9d0e1f2a3b4c"
}

Delete an email draft

DELETE/email_drafts/{id}

Path parameters

  • idstringuuidRequired

Headers

  • Idempotency-Keystring

    Any unique string (a UUID is ideal). A retry with the same key within 24 hours replays the first answer — with Idempotent-Replayed: true — instead of doing the work again. Reusing a key for a DIFFERENT request is a 409.

    Up to 255 characters

Returns

200Deleted. A Deleted object.

  • 404not_foundNo such record in this workspace.

Any request can also answer 401, 402, 429 or 500 — errors.

curl -X DELETE https://app.hailmate.ai/api/v1/email_drafts/00000000-0000-4000-8000-000000000000 \
  -H "Authorization: Bearer $HAILMATE_API_KEY"
Response · 200
{
  "id": "f2b1a0c4-1111-4000-8000-0000000000aa",
  "object": "job",
  "deleted": true
}

Endpoints

Notes

Notes on a job's timeline.

List notes

GET/notes

Query parameters

  • limitinteger

    Page size. Out-of-range values fall back to the default.

    1 to 200 · Default 50

  • cursorstring

    The next_cursor from the previous page, exactly as received. A cursor we did not issue is a 400.

  • updated_sincestringdate-time

    Only records changed at or after this ISO date or date-time. The way to sync only what moved.

  • job_idstringuuid

Returns

200A page of notes. A page of Note objects in data, with has_more and next_cursor.

  • 401unauthorizedThe key is missing, wrong or revoked.

Any request can also answer 401, 402, 429 or 500 — errors.

curl "https://app.hailmate.ai/api/v1/notes?limit=25" \
  -H "Authorization: Bearer $HAILMATE_API_KEY"
Response · 200
{
  "object": "list",
  "has_more": true,
  "next_cursor": "eyJjIjoiMjAyNi0wOS0yOFQxNDowMjowMFoiLCJpIjoiZjJiMWEwYzQifQ",
  "data": [
    {
      "id": "3c8b1a07-6666-4000-8000-0000000000b4",
      "object": "note",
      "job_id": "f2b1a0c4-1111-4000-8000-0000000000aa",
      "content": "Adjuster meeting moved to Thursday 10am. Homeowner will be home.",
      "author_id": "5d0e1c2b-7777-4000-8000-0000000000ab",
      "author_name": "Sam Carter",
      "created_at": "2026-09-27T14:20:00.000Z",
      "updated_at": "2026-09-27T14:20:00.000Z",
      "url": "https://app.hailmate.ai/job/f2b1a0c4-1111-4000-8000-0000000000aa"
    }
  ]
}

Add a note to a job

POST/notes

Headers

  • Idempotency-Keystring

    Any unique string (a UUID is ideal). A retry with the same key within 24 hours replays the first answer — with Idempotent-Replayed: true — instead of doing the work again. Reusing a key for a DIFFERENT request is a 409.

    Up to 255 characters

Request bodyapplication/json

  • job_idstringuuidRequired
  • contentstringRequired

    Up to 10000 characters

Returns

201Created. A Note object.

  • 400invalid_requestSomething in the request was wrong; field names what.

Any request can also answer 401, 402, 429 or 500 — errors.

curl -X POST https://app.hailmate.ai/api/v1/notes \
  -H "Authorization: Bearer $HAILMATE_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "job_id": "f2b1a0c4-1111-4000-8000-0000000000aa",
  "content": "Adjuster confirmed for Thursday at 3."
}'
Response · 201
{
  "id": "3c8b1a07-6666-4000-8000-0000000000b4",
  "object": "note",
  "job_id": "f2b1a0c4-1111-4000-8000-0000000000aa",
  "content": "Adjuster meeting moved to Thursday 10am. Homeowner will be home.",
  "author_id": "5d0e1c2b-7777-4000-8000-0000000000ab",
  "author_name": "Sam Carter",
  "created_at": "2026-09-27T14:20:00.000Z",
  "updated_at": "2026-09-27T14:20:00.000Z",
  "url": "https://app.hailmate.ai/job/f2b1a0c4-1111-4000-8000-0000000000aa"
}

Get a note

GET/notes/{id}

Path parameters

  • idstringuuidRequired

Returns

200The note. A Note object.

  • 404not_foundNo such record in this workspace.

Any request can also answer 401, 402, 429 or 500 — errors.

curl https://app.hailmate.ai/api/v1/notes/3c8b1a07-6666-4000-8000-0000000000b4 \
  -H "Authorization: Bearer $HAILMATE_API_KEY"
Response · 200
{
  "id": "3c8b1a07-6666-4000-8000-0000000000b4",
  "object": "note",
  "job_id": "f2b1a0c4-1111-4000-8000-0000000000aa",
  "content": "Adjuster meeting moved to Thursday 10am. Homeowner will be home.",
  "author_id": "5d0e1c2b-7777-4000-8000-0000000000ab",
  "author_name": "Sam Carter",
  "created_at": "2026-09-27T14:20:00.000Z",
  "updated_at": "2026-09-27T14:20:00.000Z",
  "url": "https://app.hailmate.ai/job/f2b1a0c4-1111-4000-8000-0000000000aa"
}

Change a note's words

PATCH/notes/{id}

Only the note's author can — through the API, whoever made the key or connected the app.

Path parameters

  • idstringuuidRequired

Headers

  • Idempotency-Keystring

    Any unique string (a UUID is ideal). A retry with the same key within 24 hours replays the first answer — with Idempotent-Replayed: true — instead of doing the work again. Reusing a key for a DIFFERENT request is a 409.

    Up to 255 characters

Request bodyapplication/json

  • contentstringRequired

    Up to 10000 characters

Returns

200The note. A Note object.

  • 403forbiddenA read-only key tried to change something.
  • 404not_foundNo such record in this workspace.

Any request can also answer 401, 402, 429 or 500 — errors.

curl -X PATCH https://app.hailmate.ai/api/v1/notes/3c8b1a07-6666-4000-8000-0000000000b4 \
  -H "Authorization: Bearer $HAILMATE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "content": "string"
}'
Response · 200
{
  "id": "3c8b1a07-6666-4000-8000-0000000000b4",
  "object": "note",
  "job_id": "f2b1a0c4-1111-4000-8000-0000000000aa",
  "content": "Adjuster meeting moved to Thursday 10am. Homeowner will be home.",
  "author_id": "5d0e1c2b-7777-4000-8000-0000000000ab",
  "author_name": "Sam Carter",
  "created_at": "2026-09-27T14:20:00.000Z",
  "updated_at": "2026-09-27T14:20:00.000Z",
  "url": "https://app.hailmate.ai/job/f2b1a0c4-1111-4000-8000-0000000000aa"
}

Delete a note

DELETE/notes/{id}

Path parameters

  • idstringuuidRequired

Headers

  • Idempotency-Keystring

    Any unique string (a UUID is ideal). A retry with the same key within 24 hours replays the first answer — with Idempotent-Replayed: true — instead of doing the work again. Reusing a key for a DIFFERENT request is a 409.

    Up to 255 characters

Returns

200Deleted. A Deleted object.

  • 404not_foundNo such record in this workspace.

Any request can also answer 401, 402, 429 or 500 — errors.

curl -X DELETE https://app.hailmate.ai/api/v1/notes/3c8b1a07-6666-4000-8000-0000000000b4 \
  -H "Authorization: Bearer $HAILMATE_API_KEY"
Response · 200
{
  "id": "f2b1a0c4-1111-4000-8000-0000000000aa",
  "object": "job",
  "deleted": true
}

Endpoints

Files

Photos and documents on a job.

List photos and documents

GET/files

Query parameters

  • limitinteger

    Page size. Out-of-range values fall back to the default.

    1 to 200 · Default 50

  • cursorstring

    The next_cursor from the previous page, exactly as received. A cursor we did not issue is a 400.

  • created_afterstringdate-time

    Only records created at or after this ISO date or date-time.

  • created_beforestringdate-time

    Only records created before this ISO date or date-time.

  • job_idstringuuid
  • categorystring
    photodocumentscopeestimatecontractother

Returns

200A page of files. A page of File objects in data, with has_more and next_cursor.

  • 401unauthorizedThe key is missing, wrong or revoked.

Any request can also answer 401, 402, 429 or 500 — errors.

curl "https://app.hailmate.ai/api/v1/files?limit=25" \
  -H "Authorization: Bearer $HAILMATE_API_KEY"
Response · 200
{
  "object": "list",
  "has_more": true,
  "next_cursor": "eyJjIjoiMjAyNi0wOS0yOFQxNDowMjowMFoiLCJpIjoiZjJiMWEwYzQifQ",
  "data": [
    {
      "id": "7e2d9c40-8888-4000-8000-0000000000a5",
      "object": "file",
      "job_id": "f2b1a0c4-1111-4000-8000-0000000000aa",
      "name": "north-slope-hits.jpg",
      "category": "photo",
      "mime_type": "image/jpeg",
      "is_photo": true,
      "is_video": false,
      "size_bytes": 1532410,
      "description": "Hail hits on the north slope, chalked",
      "tags": [
        "damage",
        "north slope"
      ],
      "latitude": 33.0726,
      "longitude": -96.7512,
      "taken_at": "2026-09-16T15:12:08.000Z",
      "uploaded_by_id": "5d0e1c2b-7777-4000-8000-0000000000ab",
      "uploaded_by_name": "Sam Carter",
      "download_url": "https://files.example-cdn.com/jobs/f2b1a0c4/north-slope-hits.jpg",
      "created_at": "2026-09-16T15:12:40.000Z",
      "url": "https://app.hailmate.ai/job/f2b1a0c4-1111-4000-8000-0000000000aa"
    }
  ]
}

Upload a photo or document to a job

POST/files

Two ways in:

  • multipart/form-data with a file field and a job_id field (plus optional category, description, file_name).
  • JSON with a public file_url HailMate downloads for you.

Up to 25 MB. A JPEG, PNG, WebP, GIF or MP4 is filed as a photo; anything else (a PDF, a HEIC, a spreadsheet) as a document, so it never shows as a broken tile. Fires file.created.

Headers

  • Idempotency-Keystring

    Any unique string (a UUID is ideal). A retry with the same key within 24 hours replays the first answer — with Idempotent-Replayed: true — instead of doing the work again. Reusing a key for a DIFFERENT request is a 409.

    Up to 255 characters

Request bodyapplication/json

  • job_idstringuuidRequired
  • file_urlstringuriRequired

    A public https address. Redirects are followed (up to 3).

  • categorystring
    photodocumentscopeestimatecontractother
  • descriptionstring
  • file_namestring

Request bodymultipart/form-data

Or send the file itself as a form upload:

  • filestringbinaryRequired
  • job_idstringuuidRequired
  • categorystring
    photodocumentscopeestimatecontractother
  • descriptionstring
  • file_namestring

Returns

201Stored. A File object.

  • 400invalid_requestSomething in the request was wrong; field names what.
  • 413payload_too_largeThe file is larger than 25 MB.

Any request can also answer 401, 402, 429 or 500 — errors.

curl -X POST https://app.hailmate.ai/api/v1/files \
  -H "Authorization: Bearer $HAILMATE_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "job_id": "f2b1a0c4-1111-4000-8000-0000000000aa",
  "file_url": "https://example.com/claim/scope-of-loss.pdf",
  "category": "scope"
}'
Upload a file (multipart/form-data)
curl -X POST https://app.hailmate.ai/api/v1/files \
  -H "Authorization: Bearer $HAILMATE_API_KEY" \
  -F "file=@roof-front.jpg" \
  -F "job_id=f2b1a0c4-1111-4000-8000-0000000000aa" \
  -F "description=Front slope, hail hits circled"
Response · 201
{
  "id": "7e2d9c40-8888-4000-8000-0000000000a5",
  "object": "file",
  "job_id": "f2b1a0c4-1111-4000-8000-0000000000aa",
  "name": "north-slope-hits.jpg",
  "category": "photo",
  "mime_type": "image/jpeg",
  "is_photo": true,
  "is_video": false,
  "size_bytes": 1532410,
  "description": "Hail hits on the north slope, chalked",
  "tags": [
    "damage",
    "north slope"
  ],
  "latitude": 33.0726,
  "longitude": -96.7512,
  "taken_at": "2026-09-16T15:12:08.000Z",
  "uploaded_by_id": "5d0e1c2b-7777-4000-8000-0000000000ab",
  "uploaded_by_name": "Sam Carter",
  "download_url": "https://files.example-cdn.com/jobs/f2b1a0c4/north-slope-hits.jpg",
  "created_at": "2026-09-16T15:12:40.000Z",
  "url": "https://app.hailmate.ai/job/f2b1a0c4-1111-4000-8000-0000000000aa"
}

Get a file

GET/files/{id}

Path parameters

  • idstringuuidRequired

Returns

200The file. A File object.

  • 404not_foundNo such record in this workspace.

Any request can also answer 401, 402, 429 or 500 — errors.

curl https://app.hailmate.ai/api/v1/files/7e2d9c40-8888-4000-8000-0000000000a5 \
  -H "Authorization: Bearer $HAILMATE_API_KEY"
Response · 200
{
  "id": "7e2d9c40-8888-4000-8000-0000000000a5",
  "object": "file",
  "job_id": "f2b1a0c4-1111-4000-8000-0000000000aa",
  "name": "north-slope-hits.jpg",
  "category": "photo",
  "mime_type": "image/jpeg",
  "is_photo": true,
  "is_video": false,
  "size_bytes": 1532410,
  "description": "Hail hits on the north slope, chalked",
  "tags": [
    "damage",
    "north slope"
  ],
  "latitude": 33.0726,
  "longitude": -96.7512,
  "taken_at": "2026-09-16T15:12:08.000Z",
  "uploaded_by_id": "5d0e1c2b-7777-4000-8000-0000000000ab",
  "uploaded_by_name": "Sam Carter",
  "download_url": "https://files.example-cdn.com/jobs/f2b1a0c4/north-slope-hits.jpg",
  "created_at": "2026-09-16T15:12:40.000Z",
  "url": "https://app.hailmate.ai/job/f2b1a0c4-1111-4000-8000-0000000000aa"
}

Rename, caption, recategorise or tag a file

PATCH/files/{id}

Tags replace the list (at most 10, 24 characters each). The description is the photo's caption, shown on reports and the homeowner page.

Path parameters

  • idstringuuidRequired

Headers

  • Idempotency-Keystring

    Any unique string (a UUID is ideal). A retry with the same key within 24 hours replays the first answer — with Idempotent-Replayed: true — instead of doing the work again. Reusing a key for a DIFFERENT request is a 409.

    Up to 255 characters

Request bodyapplication/json

  • namestring

    The file name shown in HailMate.

  • descriptionstring | null

    The caption.

  • categorystring
    photodocumentscopeestimatecontractother
  • tagsarray of string | null

Returns

200The file. A File object.

  • 404not_foundNo such record in this workspace.

Any request can also answer 401, 402, 429 or 500 — errors.

curl -X PATCH https://app.hailmate.ai/api/v1/files/7e2d9c40-8888-4000-8000-0000000000a5 \
  -H "Authorization: Bearer $HAILMATE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "Front slope.jpg",
  "description": "Hail hits on the front slope",
  "tags": [
    "Damage",
    "Before"
  ]
}'
Response · 200
{
  "id": "7e2d9c40-8888-4000-8000-0000000000a5",
  "object": "file",
  "job_id": "f2b1a0c4-1111-4000-8000-0000000000aa",
  "name": "north-slope-hits.jpg",
  "category": "photo",
  "mime_type": "image/jpeg",
  "is_photo": true,
  "is_video": false,
  "size_bytes": 1532410,
  "description": "Hail hits on the north slope, chalked",
  "tags": [
    "damage",
    "north slope"
  ],
  "latitude": 33.0726,
  "longitude": -96.7512,
  "taken_at": "2026-09-16T15:12:08.000Z",
  "uploaded_by_id": "5d0e1c2b-7777-4000-8000-0000000000ab",
  "uploaded_by_name": "Sam Carter",
  "download_url": "https://files.example-cdn.com/jobs/f2b1a0c4/north-slope-hits.jpg",
  "created_at": "2026-09-16T15:12:40.000Z",
  "url": "https://app.hailmate.ai/job/f2b1a0c4-1111-4000-8000-0000000000aa"
}

Delete a photo or document

DELETE/files/{id}

It stays restorable in Settings → Recently Deleted for 30 days.

Path parameters

  • idstringuuidRequired

Headers

  • Idempotency-Keystring

    Any unique string (a UUID is ideal). A retry with the same key within 24 hours replays the first answer — with Idempotent-Replayed: true — instead of doing the work again. Reusing a key for a DIFFERENT request is a 409.

    Up to 255 characters

Returns

200Deleted. A Deleted object.

  • 404not_foundNo such record in this workspace.

Any request can also answer 401, 402, 429 or 500 — errors.

curl -X DELETE https://app.hailmate.ai/api/v1/files/7e2d9c40-8888-4000-8000-0000000000a5 \
  -H "Authorization: Bearer $HAILMATE_API_KEY"
Response · 200
{
  "id": "f2b1a0c4-1111-4000-8000-0000000000aa",
  "object": "job",
  "deleted": true
}

Endpoints

Canvassing

Door knocks — pins on the canvassing map with a knock result.

List canvassing pins

GET/pins

Every door a rep dropped a pin on, newest first.

Query parameters

  • limitinteger

    Page size. Out-of-range values fall back to the default.

    1 to 200 · Default 50

  • cursorstring

    The next_cursor from the previous page, exactly as received. A cursor we did not issue is a 400.

  • updated_sincestringdate-time

    Only records changed at or after this ISO date or date-time. The way to sync only what moved.

  • created_afterstringdate-time

    Only records created at or after this ISO date or date-time.

  • created_beforestringdate-time

    Only records created before this ISO date or date-time.

  • knock_resultstring
    interestednot_interestedcontactedno_answerdoor_hangerfollow_upappointment_scheduleddont_knockrenterno_damagecash_quotelost
  • pin_typestring
    knockinspectionjob
  • job_idstringuuid
  • created_bystringuuid

    The rep who dropped the pin.

Returns

200A page of pins. A page of Pin objects in data, with has_more and next_cursor.

  • 401unauthorizedThe key is missing, wrong or revoked.

Any request can also answer 401, 402, 429 or 500 — errors.

curl "https://app.hailmate.ai/api/v1/pins?limit=25" \
  -H "Authorization: Bearer $HAILMATE_API_KEY"
Response · 200
{
  "object": "list",
  "has_more": true,
  "next_cursor": "eyJjIjoiMjAyNi0wOS0yOFQxNDowMjowMFoiLCJpIjoiZjJiMWEwYzQifQ",
  "data": [
    {
      "id": "2b6f4e18-9999-4000-8000-0000000000d6",
      "object": "pin",
      "pin_type": "knock",
      "knock_result": "interested",
      "address": "1812 Cedar Ridge Dr",
      "city": "Plano",
      "state": "TX",
      "postal_code": "75024",
      "latitude": 33.0731,
      "longitude": -96.7519,
      "homeowner_name": "Chris Lane",
      "homeowner_first_name": "Chris",
      "homeowner_last_name": "Lane",
      "phone": "(972) 555-0193",
      "email": null,
      "notes": "Wants an inspection Saturday morning",
      "job_id": null,
      "created_by_id": "5d0e1c2b-7777-4000-8000-0000000000ab",
      "created_by_name": "Sam Carter",
      "created_at": "2026-09-27T17:45:00.000Z",
      "updated_at": "2026-09-27T17:45:00.000Z",
      "map_url": "https://www.google.com/maps?q=33.0731,-96.7519",
      "url": "https://app.hailmate.ai/canvassing"
    }
  ]
}

Log a door knock

POST/pins

Drops a pin on the canvassing map. Send latitude and longitude, or an address and HailMate places it. It is credited to the teammate in created_by_id, else to whoever connected the integration. Fires pin.created.

Headers

  • Idempotency-Keystring

    Any unique string (a UUID is ideal). A retry with the same key within 24 hours replays the first answer — with Idempotent-Replayed: true — instead of doing the work again. Reusing a key for a DIFFERENT request is a 409.

    Up to 255 characters

Request bodyapplication/json

  • latitudenumber

    -90 to 90

  • longitudenumber

    -180 to 180

  • addressstring
  • citystring
  • statestring

    A code or a name — "TX" or "Texas".

  • postal_codestring
  • knock_resultstring
    interestednot_interestedcontactedno_answerdoor_hangerfollow_upappointment_scheduleddont_knockrenterno_damagecash_quotelost
  • pin_typestring
    knockinspection

    Default knock

  • homeowner_namestring

    Split into first and last for you.

  • homeowner_first_namestring
  • homeowner_last_namestring
  • phonestring
  • emailstringemail
  • notesstring
  • created_by_idstringuuid

    The teammate who knocked. Defaults to whoever connected the integration.

Returns

201Logged. A Pin object.

  • 400invalid_requestSomething in the request was wrong; field names what.
  • 403forbiddenA read-only key tried to change something.

Any request can also answer 401, 402, 429 or 500 — errors.

curl -X POST https://app.hailmate.ai/api/v1/pins \
  -H "Authorization: Bearer $HAILMATE_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "address": "1804 Cedar Ridge Dr",
  "city": "Plano",
  "state": "TX",
  "postal_code": "75024",
  "knock_result": "interested",
  "homeowner_name": "Dana Reed"
}'
Response · 201
{
  "id": "2b6f4e18-9999-4000-8000-0000000000d6",
  "object": "pin",
  "pin_type": "knock",
  "knock_result": "interested",
  "address": "1812 Cedar Ridge Dr",
  "city": "Plano",
  "state": "TX",
  "postal_code": "75024",
  "latitude": 33.0731,
  "longitude": -96.7519,
  "homeowner_name": "Chris Lane",
  "homeowner_first_name": "Chris",
  "homeowner_last_name": "Lane",
  "phone": "(972) 555-0193",
  "email": null,
  "notes": "Wants an inspection Saturday morning",
  "job_id": null,
  "created_by_id": "5d0e1c2b-7777-4000-8000-0000000000ab",
  "created_by_name": "Sam Carter",
  "created_at": "2026-09-27T17:45:00.000Z",
  "updated_at": "2026-09-27T17:45:00.000Z",
  "map_url": "https://www.google.com/maps?q=33.0731,-96.7519",
  "url": "https://app.hailmate.ai/canvassing"
}

Get a pin

GET/pins/{id}

Path parameters

  • idstringuuidRequired

Returns

200The pin. A Pin object.

  • 404not_foundNo such record in this workspace.

Any request can also answer 401, 402, 429 or 500 — errors.

curl https://app.hailmate.ai/api/v1/pins/2b6f4e18-9999-4000-8000-0000000000d6 \
  -H "Authorization: Bearer $HAILMATE_API_KEY"
Response · 200
{
  "id": "2b6f4e18-9999-4000-8000-0000000000d6",
  "object": "pin",
  "pin_type": "knock",
  "knock_result": "interested",
  "address": "1812 Cedar Ridge Dr",
  "city": "Plano",
  "state": "TX",
  "postal_code": "75024",
  "latitude": 33.0731,
  "longitude": -96.7519,
  "homeowner_name": "Chris Lane",
  "homeowner_first_name": "Chris",
  "homeowner_last_name": "Lane",
  "phone": "(972) 555-0193",
  "email": null,
  "notes": "Wants an inspection Saturday morning",
  "job_id": null,
  "created_by_id": "5d0e1c2b-7777-4000-8000-0000000000ab",
  "created_by_name": "Sam Carter",
  "created_at": "2026-09-27T17:45:00.000Z",
  "updated_at": "2026-09-27T17:45:00.000Z",
  "map_url": "https://www.google.com/maps?q=33.0731,-96.7519",
  "url": "https://app.hailmate.ai/canvassing"
}

Update a door knock

PATCH/pins/{id}

Most often its knock result. The rep who logged it never changes. Fires pin.result_changed when the result moves.

Path parameters

  • idstringuuidRequired

Headers

  • Idempotency-Keystring

    Any unique string (a UUID is ideal). A retry with the same key within 24 hours replays the first answer — with Idempotent-Replayed: true — instead of doing the work again. Reusing a key for a DIFFERENT request is a 409.

    Up to 255 characters

Request bodyapplication/json

  • knock_resultstring | null
    interestednot_interestedcontactedno_answerdoor_hangerfollow_upappointment_scheduleddont_knockrenterno_damagecash_quotelost
  • pin_typestring
    knockinspection
  • latitudenumber
  • longitudenumber
  • addressstring | null
  • citystring | null
  • statestring | null
  • postal_codestring | null
  • homeowner_namestring
  • homeowner_first_namestring | null
  • homeowner_last_namestring | null
  • phonestring | null
  • emailstring | nullemail
  • notesstring | null

Returns

200The pin, as it is now. A Pin object.

  • 400invalid_requestSomething in the request was wrong; field names what.
  • 404not_foundNo such record in this workspace.

Any request can also answer 401, 402, 429 or 500 — errors.

curl -X PATCH https://app.hailmate.ai/api/v1/pins/2b6f4e18-9999-4000-8000-0000000000d6 \
  -H "Authorization: Bearer $HAILMATE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "knock_result": "appointment_scheduled"
}'
Response · 200
{
  "id": "2b6f4e18-9999-4000-8000-0000000000d6",
  "object": "pin",
  "pin_type": "knock",
  "knock_result": "interested",
  "address": "1812 Cedar Ridge Dr",
  "city": "Plano",
  "state": "TX",
  "postal_code": "75024",
  "latitude": 33.0731,
  "longitude": -96.7519,
  "homeowner_name": "Chris Lane",
  "homeowner_first_name": "Chris",
  "homeowner_last_name": "Lane",
  "phone": "(972) 555-0193",
  "email": null,
  "notes": "Wants an inspection Saturday morning",
  "job_id": null,
  "created_by_id": "5d0e1c2b-7777-4000-8000-0000000000ab",
  "created_by_name": "Sam Carter",
  "created_at": "2026-09-27T17:45:00.000Z",
  "updated_at": "2026-09-27T17:45:00.000Z",
  "map_url": "https://www.google.com/maps?q=33.0731,-96.7519",
  "url": "https://app.hailmate.ai/canvassing"
}

Delete a door knock

DELETE/pins/{id}

Path parameters

  • idstringuuidRequired

Headers

  • Idempotency-Keystring

    Any unique string (a UUID is ideal). A retry with the same key within 24 hours replays the first answer — with Idempotent-Replayed: true — instead of doing the work again. Reusing a key for a DIFFERENT request is a 409.

    Up to 255 characters

Returns

200Deleted. A Deleted object.

  • 404not_foundNo such record in this workspace.

Any request can also answer 401, 402, 429 or 500 — errors.

curl -X DELETE https://app.hailmate.ai/api/v1/pins/2b6f4e18-9999-4000-8000-0000000000d6 \
  -H "Authorization: Bearer $HAILMATE_API_KEY"
Response · 200
{
  "id": "0e4c2a19-8888-4000-8000-0000000000c1",
  "object": "pin",
  "deleted": true
}

Endpoints

Storm Lists

Every property under hail of a chosen size, with the owner of record (read only).

List storm lists

GET/storm_lists

Read only — building a list spends data credits and happens in HailMate. source: auto is a nightly build off the hail data; manual is one somebody made.

Query parameters

  • limitinteger

    Page size. Out-of-range values fall back to the default.

    1 to 200 · Default 50

  • cursorstring

    The next_cursor from the previous page, exactly as received. A cursor we did not issue is a 400.

  • updated_sincestringdate-time

    Only records changed at or after this ISO date or date-time. The way to sync only what moved.

  • statusstring
    buildingreadypartialfailed

Returns

200A page of storm lists. A page of StormList objects in data, with has_more and next_cursor.

  • 401unauthorizedThe key is missing, wrong or revoked.

Any request can also answer 401, 402, 429 or 500 — errors.

curl "https://app.hailmate.ai/api/v1/storm_lists?limit=25" \
  -H "Authorization: Bearer $HAILMATE_API_KEY"
Response · 200
{
  "object": "list",
  "has_more": true,
  "next_cursor": "eyJjIjoiMjAyNi0wOS0yOFQxNDowMjowMFoiLCJpIjoiZjJiMWEwYzQifQ",
  "data": [
    {
      "id": "e5a1c7d9-aaaa-4000-8000-0000000000e7",
      "object": "storm_list",
      "name": "Plano 1.25″+ — Sep 12",
      "status": "ready",
      "source": "manual",
      "window_from": "2026-09-12",
      "window_to": "2026-09-12",
      "min_size_in": 1.25,
      "area_kind": "drawn",
      "territory_id": null,
      "clipped_area_sq_mi": 4.2,
      "property_cap": 1000,
      "property_count": 412,
      "skipped_duplicates": 18,
      "dedupe_days": 90,
      "credits_spent": 412,
      "total_available": 430,
      "storm_date": "2026-09-12",
      "built_at": "2026-09-13T13:04:00.000Z",
      "created_at": "2026-09-13T13:02:00.000Z",
      "updated_at": "2026-09-13T13:04:00.000Z",
      "url": "https://app.hailmate.ai/canvassing/lists/e5a1c7d9-aaaa-4000-8000-0000000000e7"
    }
  ]
}

Get a storm list

GET/storm_lists/{id}

Path parameters

  • idstringuuidRequired

Returns

200The storm list. A StormList object.

  • 404not_foundNo such record in this workspace.

Any request can also answer 401, 402, 429 or 500 — errors.

curl https://app.hailmate.ai/api/v1/storm_lists/e5a1c7d9-aaaa-4000-8000-0000000000e7 \
  -H "Authorization: Bearer $HAILMATE_API_KEY"
Response · 200
{
  "id": "e5a1c7d9-aaaa-4000-8000-0000000000e7",
  "object": "storm_list",
  "name": "Plano 1.25″+ — Sep 12",
  "status": "ready",
  "source": "manual",
  "window_from": "2026-09-12",
  "window_to": "2026-09-12",
  "min_size_in": 1.25,
  "area_kind": "drawn",
  "territory_id": null,
  "clipped_area_sq_mi": 4.2,
  "property_cap": 1000,
  "property_count": 412,
  "skipped_duplicates": 18,
  "dedupe_days": 90,
  "credits_spent": 412,
  "total_available": 430,
  "storm_date": "2026-09-12",
  "built_at": "2026-09-13T13:04:00.000Z",
  "created_at": "2026-09-13T13:02:00.000Z",
  "updated_at": "2026-09-13T13:04:00.000Z",
  "url": "https://app.hailmate.ai/canvassing/lists/e5a1c7d9-aaaa-4000-8000-0000000000e7"
}

List the properties on a storm list

GET/storm_lists/{id}/properties

The rows a mail house wants. mail_deliverable is our own judgement from the address we hold — it is NOT a CASS or NCOA result; run your own validation before you spend postage.

Path parameters

  • idstringuuidRequired

Query parameters

  • limitinteger

    Page size. Out-of-range values fall back to the default.

    1 to 200 · Default 50

  • cursorstring

    The next_cursor from the previous page, exactly as received. A cursor we did not issue is a 400.

  • mailablestring

    true drops properties with no usable mailing address or owner name.

    true
  • residentialstring
    true

Returns

200A page of properties. A page of StormListProperty objects in data, with has_more and next_cursor.

  • 401unauthorizedThe key is missing, wrong or revoked.

Any request can also answer 401, 402, 429 or 500 — errors.

curl "https://app.hailmate.ai/api/v1/storm_lists/e5a1c7d9-aaaa-4000-8000-0000000000e7/properties?mailable=true&limit=100" \
  -H "Authorization: Bearer $HAILMATE_API_KEY"
Response · 200
{
  "object": "list",
  "has_more": true,
  "next_cursor": "eyJjIjoiMjAyNi0wOS0yOFQxNDowMjowMFoiLCJpIjoiZjJiMWEwYzQifQ",
  "data": [
    {
      "id": "d4b3a2c1-bbbb-4000-8000-0000000000f8",
      "object": "storm_list_property",
      "storm_list_id": "e5a1c7d9-aaaa-4000-8000-0000000000e7",
      "address": "1804 Cedar Ridge Dr",
      "city": "Plano",
      "state": "TX",
      "zip": "75024",
      "owner_name": "Dana Reed",
      "owner_occupied": true,
      "mailing_address": "1804 Cedar Ridge Dr",
      "mailing_city": "Plano",
      "mailing_state": "TX",
      "mailing_zip": "75024",
      "mail_deliverable": true,
      "mail_exclude_reason": null,
      "hail_size_in": 1.5,
      "hail_event_date": "2026-09-12",
      "nearest_report_mi": 1.8,
      "nearest_report_size_in": 1.75,
      "year_built": 2004,
      "property_use": "Single family",
      "is_residential": true,
      "latitude": 33.0726,
      "longitude": -96.7512,
      "created_at": "2026-09-13T13:04:00.000Z"
    }
  ]
}

Endpoints

Hail

Hail and damaging-wind history at an address.

Hail and wind history at an address

GET/hail_history

Every hail day and damaging-wind day at an address (or a latitude and longitude) since since — the same Evidence Grade™ ruling HailMate shows on its maps and storm reports, combining radar-estimated hail size, severe-hail probability and verified ground reports.

confidence is confirmed (a ground report backs the size), likely or radar (radar only). Default window: the last five years. United States only. Limited to 20 lookups a minute per key, inside the general limit.

Query parameters

  • addressstring

    A US street address. Or send latitude and longitude.

  • latitudenumber
  • longitudenumber
  • sincestringdate

    YYYY-MM-DD. Defaults to five years ago.

Returns

200The history. A HailReport object.

  • 400invalid_requestSomething in the request was wrong; field names what.
  • 429rate_limitedOver 120 requests a minute (or 20 hail lookups a minute). Wait Retry-After seconds.

Any request can also answer 401, 402, 429 or 500 — errors.

curl "https://app.hailmate.ai/api/v1/hail_history?address=1804%20Cedar%20Ridge%20Dr%2C%20Plano%2C%20TX%2075024" \
  -H "Authorization: Bearer $HAILMATE_API_KEY"
Response · 200
{
  "object": "hail_report",
  "address": "1804 Cedar Ridge Dr, Plano, TX 75024, USA",
  "latitude": 33.0198,
  "longitude": -96.6989,
  "since": "2021-09-28",
  "hail_day_count": 2,
  "largest_hail_in": 1.5,
  "last_hail_date": "2025-03-25",
  "hail_events": [
    {
      "date": "2025-03-25",
      "size_in": 1.5,
      "confidence": "confirmed",
      "confirmed_by_ground_report": true,
      "radar_estimated_size_in": null,
      "severe_hail_probability": null,
      "ground_report_size_in": 1.5,
      "ground_report_distance_mi": 1.4,
      "ground_report_count": 11
    },
    {
      "date": "2024-05-28",
      "size_in": 1.5,
      "confidence": "likely",
      "confirmed_by_ground_report": false,
      "radar_estimated_size_in": 1.5,
      "severe_hail_probability": null,
      "ground_report_size_in": 1.25,
      "ground_report_distance_mi": 9,
      "ground_report_count": 1
    }
  ],
  "wind_events": [
    {
      "date": "2025-03-04",
      "max_gust_mph": 90
    }
  ]
}

Endpoints

Lookups

Pipelines, stages, teammates and the event catalogue — what a dropdown is built from.

List pipelines and their stages

GET/pipelines

Returns

200Every pipeline, default first, with its stages in board order. A list of Pipeline objects in data.

  • 401unauthorizedThe key is missing, wrong or revoked.

Any request can also answer 401, 402, 429 or 500 — errors.

curl https://app.hailmate.ai/api/v1/pipelines \
  -H "Authorization: Bearer $HAILMATE_API_KEY"
Response · 200
{
  "object": "list",
  "data": [
    {
      "id": "1cf7d87b-7d99-4ba0-b277-0e88ac127e75",
      "object": "pipeline",
      "name": "Insurance",
      "is_default": true,
      "order": 0,
      "stages": [
        {
          "id": "8a7b6c5d-cccc-4000-8000-000000000010",
          "object": "pipeline_stage",
          "pipeline_id": "1cf7d87b-7d99-4ba0-b277-0e88ac127e75",
          "key": "lead",
          "label": "Lead",
          "order": 0,
          "is_completed": false,
          "is_lost": false
        },
        {
          "id": "8a7b6c5d-cccc-4000-8000-000000000011",
          "object": "pipeline_stage",
          "pipeline_id": "1cf7d87b-7d99-4ba0-b277-0e88ac127e75",
          "key": "claim_approved",
          "label": "Claim Approved",
          "order": 6,
          "is_completed": false,
          "is_lost": false
        }
      ]
    }
  ]
}

Add a pipeline (a board)

POST/pipelines

Name it and, optionally, its first stages in order.

Headers

  • Idempotency-Keystring

    Any unique string (a UUID is ideal). A retry with the same key within 24 hours replays the first answer — with Idempotent-Replayed: true — instead of doing the work again. Reusing a key for a DIFFERENT request is a 409.

    Up to 255 characters

Request bodyapplication/json

  • namestringRequired
  • stagesarray of string

    Its first stages' labels

  • is_defaultboolean

Returns

201The pipeline, with its stages. A Pipeline object.

Any request can also answer 401, 402, 429 or 500 — errors.

curl -X POST https://app.hailmate.ai/api/v1/pipelines \
  -H "Authorization: Bearer $HAILMATE_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "name": "Commercial",
  "stages": [
    "New Lead",
    "Bid Sent",
    "Won"
  ]
}'
Response · 201
{
  "id": "1cf7d87b-7d99-4ba0-b277-0e88ac127e75",
  "object": "pipeline",
  "name": "Insurance",
  "is_default": true,
  "order": 0,
  "stages": [
    {
      "id": "8a7b6c5d-cccc-4000-8000-000000000010",
      "object": "pipeline_stage",
      "pipeline_id": "1cf7d87b-7d99-4ba0-b277-0e88ac127e75",
      "key": "lead",
      "label": "Lead",
      "order": 0,
      "is_completed": false,
      "is_lost": false
    },
    {
      "id": "8a7b6c5d-cccc-4000-8000-000000000011",
      "object": "pipeline_stage",
      "pipeline_id": "1cf7d87b-7d99-4ba0-b277-0e88ac127e75",
      "key": "claim_approved",
      "label": "Claim Approved",
      "order": 6,
      "is_completed": false,
      "is_lost": false
    }
  ]
}

Get a pipeline and its stages

GET/pipelines/{id}

Path parameters

  • idstringuuidRequired

Returns

200The pipeline. A Pipeline object.

  • 404not_foundNo such record in this workspace.

Any request can also answer 401, 402, 429 or 500 — errors.

curl https://app.hailmate.ai/api/v1/pipelines/00000000-0000-4000-8000-000000000000 \
  -H "Authorization: Bearer $HAILMATE_API_KEY"
Response · 200
{
  "id": "1cf7d87b-7d99-4ba0-b277-0e88ac127e75",
  "object": "pipeline",
  "name": "Insurance",
  "is_default": true,
  "order": 0,
  "stages": [
    {
      "id": "8a7b6c5d-cccc-4000-8000-000000000010",
      "object": "pipeline_stage",
      "pipeline_id": "1cf7d87b-7d99-4ba0-b277-0e88ac127e75",
      "key": "lead",
      "label": "Lead",
      "order": 0,
      "is_completed": false,
      "is_lost": false
    },
    {
      "id": "8a7b6c5d-cccc-4000-8000-000000000011",
      "object": "pipeline_stage",
      "pipeline_id": "1cf7d87b-7d99-4ba0-b277-0e88ac127e75",
      "key": "claim_approved",
      "label": "Claim Approved",
      "order": 6,
      "is_completed": false,
      "is_lost": false
    }
  ]
}

Rename a pipeline, or make it the default

PATCH/pipelines/{id}

Path parameters

  • idstringuuidRequired

Headers

  • Idempotency-Keystring

    Any unique string (a UUID is ideal). A retry with the same key within 24 hours replays the first answer — with Idempotent-Replayed: true — instead of doing the work again. Reusing a key for a DIFFERENT request is a 409.

    Up to 255 characters

Request bodyapplication/json

  • namestring
  • is_defaultboolean

    Send true to make it the default board.

Returns

200The pipeline. A Pipeline object.

  • 404not_foundNo such record in this workspace.

Any request can also answer 401, 402, 429 or 500 — errors.

curl -X PATCH https://app.hailmate.ai/api/v1/pipelines/00000000-0000-4000-8000-000000000000 \
  -H "Authorization: Bearer $HAILMATE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "string",
  "is_default": false
}'
Response · 200
{
  "id": "1cf7d87b-7d99-4ba0-b277-0e88ac127e75",
  "object": "pipeline",
  "name": "Insurance",
  "is_default": true,
  "order": 0,
  "stages": [
    {
      "id": "8a7b6c5d-cccc-4000-8000-000000000010",
      "object": "pipeline_stage",
      "pipeline_id": "1cf7d87b-7d99-4ba0-b277-0e88ac127e75",
      "key": "lead",
      "label": "Lead",
      "order": 0,
      "is_completed": false,
      "is_lost": false
    },
    {
      "id": "8a7b6c5d-cccc-4000-8000-000000000011",
      "object": "pipeline_stage",
      "pipeline_id": "1cf7d87b-7d99-4ba0-b277-0e88ac127e75",
      "key": "claim_approved",
      "label": "Claim Approved",
      "order": 6,
      "is_completed": false,
      "is_lost": false
    }
  ]
}

Delete a pipeline

DELETE/pipelines/{id}

Its jobs move to the next board. The default pipeline, or the only one, cannot be deleted (409).

Path parameters

  • idstringuuidRequired

Headers

  • Idempotency-Keystring

    Any unique string (a UUID is ideal). A retry with the same key within 24 hours replays the first answer — with Idempotent-Replayed: true — instead of doing the work again. Reusing a key for a DIFFERENT request is a 409.

    Up to 255 characters

Returns

200Deleted. A Deleted object.

  • 404not_foundNo such record in this workspace.
  • 409conflictA conflict: an Idempotency-Key clash, a record in a state that refuses the change, or a send refused (the number replied STOP, or the rep has no texting number).

Any request can also answer 401, 402, 429 or 500 — errors.

curl -X DELETE https://app.hailmate.ai/api/v1/pipelines/00000000-0000-4000-8000-000000000000 \
  -H "Authorization: Bearer $HAILMATE_API_KEY"
Response · 200
{
  "id": "f2b1a0c4-1111-4000-8000-0000000000aa",
  "object": "job",
  "deleted": true
}

List pipeline stages

GET/stages

Every stage on every board. key is what you send and filter on; label is what to show a person. /pipeline_stages is the same list.

Returns

200The stages, default pipeline first, in board order. A list of PipelineStage objects in data.

  • 401unauthorizedThe key is missing, wrong or revoked.

Any request can also answer 401, 402, 429 or 500 — errors.

curl https://app.hailmate.ai/api/v1/stages \
  -H "Authorization: Bearer $HAILMATE_API_KEY"
Response · 200
{
  "object": "list",
  "data": [
    {
      "id": "8a7b6c5d-cccc-4000-8000-000000000011",
      "object": "pipeline_stage",
      "pipeline_id": "1cf7d87b-7d99-4ba0-b277-0e88ac127e75",
      "key": "claim_approved",
      "label": "Claim Approved",
      "color": "#22c55e",
      "order": 6,
      "is_completed": false,
      "is_lost": false
    }
  ]
}

Add a stage (a column) to a pipeline

POST/stages

Its key is made from the label and never changes. position is 1-based; default is the end.

Headers

  • Idempotency-Keystring

    Any unique string (a UUID is ideal). A retry with the same key within 24 hours replays the first answer — with Idempotent-Replayed: true — instead of doing the work again. Reusing a key for a DIFFERENT request is a 409.

    Up to 255 characters

Request bodyapplication/json

  • pipeline_idstringuuidRequired
  • labelstringRequired
  • colorstring

    Hex, like #3B82F6.

  • is_completedboolean

    A won column.

  • is_lostboolean

    A lost column.

  • positioninteger

    1-based.

Returns

201The stage. A PipelineStage object.

  • 400invalid_requestSomething in the request was wrong; field names what.

Any request can also answer 401, 402, 429 or 500 — errors.

curl -X POST https://app.hailmate.ai/api/v1/stages \
  -H "Authorization: Bearer $HAILMATE_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "pipeline_id": "1cf7d87b-7d99-4ba0-b277-0e88ac127e75",
  "label": "Permit Pulled",
  "position": 7
}'
Response · 201
{
  "id": "8a7b6c5d-cccc-4000-8000-000000000011",
  "object": "pipeline_stage",
  "pipeline_id": "1cf7d87b-7d99-4ba0-b277-0e88ac127e75",
  "key": "claim_approved",
  "label": "Claim Approved",
  "color": "#22c55e",
  "order": 6,
  "is_completed": false,
  "is_lost": false
}

Rename, recolour, move or mark a stage won or lost

PATCH/stages/{id}

The key never changes — jobs store it.

Path parameters

  • idstringuuidRequired

Headers

  • Idempotency-Keystring

    Any unique string (a UUID is ideal). A retry with the same key within 24 hours replays the first answer — with Idempotent-Replayed: true — instead of doing the work again. Reusing a key for a DIFFERENT request is a 409.

    Up to 255 characters

Request bodyapplication/json

  • labelstring
  • colorstring
  • is_completedboolean
  • is_lostboolean
  • positioninteger

Returns

200The stage. A PipelineStage object.

  • 404not_foundNo such record in this workspace.

Any request can also answer 401, 402, 429 or 500 — errors.

curl -X PATCH https://app.hailmate.ai/api/v1/stages/00000000-0000-4000-8000-000000000000 \
  -H "Authorization: Bearer $HAILMATE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "label": "string",
  "color": "string",
  "is_completed": false,
  "is_lost": false,
  "position": 0
}'
Response · 200
{
  "id": "8a7b6c5d-cccc-4000-8000-000000000011",
  "object": "pipeline_stage",
  "pipeline_id": "1cf7d87b-7d99-4ba0-b277-0e88ac127e75",
  "key": "claim_approved",
  "label": "Claim Approved",
  "color": "#22c55e",
  "order": 6,
  "is_completed": false,
  "is_lost": false
}

Delete a stage

DELETE/stages/{id}

Its jobs move to the board's default column. A board's last stage cannot be deleted (409).

Path parameters

  • idstringuuidRequired

Headers

  • Idempotency-Keystring

    Any unique string (a UUID is ideal). A retry with the same key within 24 hours replays the first answer — with Idempotent-Replayed: true — instead of doing the work again. Reusing a key for a DIFFERENT request is a 409.

    Up to 255 characters

Returns

200Deleted. A Deleted object.

  • 404not_foundNo such record in this workspace.
  • 409conflictA conflict: an Idempotency-Key clash, a record in a state that refuses the change, or a send refused (the number replied STOP, or the rep has no texting number).

Any request can also answer 401, 402, 429 or 500 — errors.

curl -X DELETE https://app.hailmate.ai/api/v1/stages/00000000-0000-4000-8000-000000000000 \
  -H "Authorization: Bearer $HAILMATE_API_KEY"
Response · 200
{
  "id": "f2b1a0c4-1111-4000-8000-0000000000aa",
  "object": "job",
  "deleted": true
}

Search jobs and contacts at once

GET/search

By a name (first, last or both), a street, a job or claim number, an email or a phone in any format. The fastest way to find "the Johnson job" before acting on it.

Query parameters

  • qstringRequired

    At least two characters.

  • limitinteger

    Per kind; default 5

Returns

200The matches. A SearchResult object.

  • 400invalid_requestSomething in the request was wrong; field names what.

Any request can also answer 401, 402, 429 or 500 — errors.

curl "https://app.hailmate.ai/api/v1/search?limit=25" \
  -H "Authorization: Bearer $HAILMATE_API_KEY"
Response · 200
{
  "object": "search",
  "query": "spring path",
  "jobs": [],
  "contacts": []
}

List your team

GET/users

Returns

200The workspace's people. A list of User objects in data.

  • 401unauthorizedThe key is missing, wrong or revoked.

Any request can also answer 401, 402, 429 or 500 — errors.

curl https://app.hailmate.ai/api/v1/users \
  -H "Authorization: Bearer $HAILMATE_API_KEY"
Response · 200
{
  "object": "list",
  "data": [
    {
      "id": "5d0e1c2b-7777-4000-8000-0000000000ab",
      "object": "user",
      "name": "Sam Carter",
      "email": "sam@ridgelineroofing.example",
      "role": "member"
    }
  ]
}

List every webhook event

GET/events

Returns

200The event catalogue, with the filters each one accepts. A list of EventDefinition objects in data.

  • 401unauthorizedThe key is missing, wrong or revoked.

Any request can also answer 401, 402, 429 or 500 — errors.

curl https://app.hailmate.ai/api/v1/events \
  -H "Authorization: Bearer $HAILMATE_API_KEY"
Response · 200
{
  "object": "list",
  "data": [
    {
      "event": "job.stage_changed",
      "resource": "job",
      "label": "Job Stage Changed",
      "description": "A job moved to a different stage on the board.",
      "filters": [
        {
          "key": "stage",
          "label": "Stage",
          "kind": "stage"
        },
        {
          "key": "previous_stage",
          "label": "Previous stage",
          "kind": "stage"
        },
        {
          "key": "job_type",
          "label": "Job type",
          "kind": "enum",
          "values": [
            "insurance",
            "retail"
          ]
        },
        {
          "key": "pipeline_id",
          "label": "Pipeline",
          "kind": "pipeline"
        }
      ]
    }
  ]
}

Endpoints

Actions

Every change the HailMate app can make, by name: the same code the app's own screens run, run as the person who made the key.

List every change the app can make

GET/actions

The changes the HailMate app's own screens make, each with its name, a plain title, its risk (everyday, sends a text or an email, money, deletes, setup) and the JSON Schema of its input. Run one with POST /actions/{name}. Use the resource endpoints (jobs, contacts, invoices…) where one fits; an action covers everything else the app can do.

Returns

200Every action. A list of Action objects in data.

  • 401unauthorizedThe key is missing, wrong or revoked.

Any request can also answer 401, 402, 429 or 500 — errors.

curl https://app.hailmate.ai/api/v1/actions \
  -H "Authorization: Bearer $HAILMATE_API_KEY"
Response · 200
{
  "object": "list",
  "data": [
    {
      "name": "record_processor_payment",
      "title": "Record a payment taken through another processor (Square, PayPal, a bank)",
      "risk": "money",
      "input_schema": {
        "type": "object",
        "properties": {
          "processor": {
            "type": "string"
          },
          "reference": {
            "type": "string"
          },
          "amount": {
            "type": "number"
          }
        },
        "required": [
          "processor",
          "reference",
          "amount"
        ]
      }
    }
  ]
}

Get one action and its input schema

GET/actions/{name}

Path parameters

  • namestringRequired

    The action's name, from GET /actions (for example mark_invoice_sent).

Returns

200The action. An Action object.

  • 404not_foundNo such record in this workspace.

Any request can also answer 401, 402, 429 or 500 — errors.

curl https://app.hailmate.ai/api/v1/actions/00000000-0000-4000-8000-000000000000 \
  -H "Authorization: Bearer $HAILMATE_API_KEY"
Response · 200
{
  "name": "record_processor_payment",
  "title": "Record a payment taken through another processor (Square, PayPal, a bank)",
  "risk": "money",
  "input_schema": {
    "type": "object",
    "properties": {
      "processor": {
        "type": "string"
      },
      "reference": {
        "type": "string"
      },
      "amount": {
        "type": "number"
      }
    },
    "required": [
      "processor",
      "reference",
      "amount"
    ]
  }
}

Make one change, as the person who made the key

POST/actions/{name}

Runs the action with the body's input (shaped as the action's input_schema). It runs as the teammate who made the key or connected the app, with exactly the permissions they have in the app: a change their role does not allow is refused (403), and so is a key nobody in the company owns. Webhooks fire as for any other change. A sends or money action does it for real.

Path parameters

  • namestringRequired

    The action's name, from GET /actions (for example mark_invoice_sent).

Headers

  • Idempotency-Keystring

    Any unique string (a UUID is ideal). A retry with the same key within 24 hours replays the first answer — with Idempotent-Replayed: true — instead of doing the work again. Reusing a key for a DIFFERENT request is a 409.

    Up to 255 characters

Request bodyapplication/json

  • inputobjectRequired

    The change's details, shaped as the action's input_schema (GET /actions/{name}).

Returns

200Done. `data` is what the change made or changed. An ActionResult object.

  • 400invalid_requestSomething in the request was wrong; field names what.
  • 403forbiddenA read-only key tried to change something.
  • 404not_foundNo such record in this workspace.
  • 409conflictA conflict: an Idempotency-Key clash, a record in a state that refuses the change, or a send refused (the number replied STOP, or the rep has no texting number).

Any request can also answer 401, 402, 429 or 500 — errors.

curl -X POST https://app.hailmate.ai/api/v1/actions/00000000-0000-4000-8000-000000000000 \
  -H "Authorization: Bearer $HAILMATE_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "input": {
    "job_id": "f2b1a0c4-1111-4000-8000-0000000000aa",
    "content": "Adjuster confirmed for Thursday at 3."
  }
}'
Response · 200
{
  "object": "action_result",
  "action": "record_processor_payment",
  "data": {
    "outcome": "recorded",
    "payment_id": "5b1c2d3e-4f50-4a61-8b72-9c83d4e5f601",
    "invoice_id": "6c2d3e4f-5061-4b72-8c83-9d94e5f60712"
  }
}

Endpoints

Records

Every other kind of record those changes touch (email templates, contract templates, suppliers, commissions…), looked up as the person who made the key.

List the kinds of record you can look up here

GET/records

Every kind of record the company holds that has no endpoint of its own: door knocks, each job's time in each stage, mailings and the homes they went to, crews and who is on them, templates, suppliers, commission plans, material orders, workflow runs, QuickBooks sync records and the rest. Jobs, contacts, invoices and the other resources keep their own endpoints; the audit log is GET /audit_log. Each kind comes with its fields (name, type, whether it may be empty): this list is the data dictionary. Read with GET /records/{kind}.

Returns

200Every kind this key may look up. A list in data.

  • 401unauthorizedThe key is missing, wrong or revoked.

Any request can also answer 401, 402, 429 or 500 — errors.

curl https://app.hailmate.ai/api/v1/records \
  -H "Authorization: Bearer $HAILMATE_API_KEY"
Response · 200
{
  "object": "list",
  "data": [
    {
      "kind": "canvassing_knocks",
      "title": "Door knocks: every knock on every door",
      "columns": [
        "id",
        "knock_result",
        "knocked_at",
        "pin_id",
        "user_id"
      ],
      "fields": [
        {
          "name": "id",
          "type": "text",
          "nullable": false
        },
        {
          "name": "knock_result",
          "type": "text",
          "nullable": false
        },
        {
          "name": "knocked_at",
          "type": "text",
          "nullable": false
        },
        {
          "name": "pin_id",
          "type": "text",
          "nullable": false
        },
        {
          "name": "user_id",
          "type": "text",
          "nullable": true
        }
      ],
      "search": [],
      "filters": [
        "pin_id",
        "user_id",
        "knock_result"
      ],
      "money": false,
      "by_id": true,
      "changed_at": "knocked_at"
    }
  ]
}

Read the company's audit log (every delete, export, import and sign-in)

GET/audit_log

Every delete, restore, purge, export, import, role change and sign-in, kept for good, newest first: the same log as Settings → Audit log, read as the person who made the key. Only an owner's or admin's key reads it (anyone else is a 403).

Which locations. A location's own key reads that location. A company key reads every location of the company until the request names one (location_id or the HailMate-Location header), which narrows it to that location. Each line says where it happened.

Examples. - Everything deleted in November, in every location: GET /audit_log?kind=deletes&since=2026-11-01&until=2026-12-01 - What one person did in Cincinnati: GET /audit_log?actor_id=…&location_id=… - Exports and API keys this week: GET /audit_log?kind=data&since=2026-11-16 - Keep a copy in step: read once, then ask for since your last line's occurred_at; page back with cursor.

Query parameters

  • kindstring

    One kind of line, as the audit log screen groups them: access (roles and access), people (people added or removed, invitations), data (exports, imports, API keys), deletes (every delete, restore and permanent delete) or signins. Sign-ins are left out unless asked for by kind or action.

    allaccesspeopledatadeletessignins
  • actionstring

    Only these actions, separated by commas, for example job.deleted,data.exported. With kind, the actions inside it.

  • actor_idstringuuid

    Only what this teammate did (a user id from GET /users).

  • location_idstringuuid

    A company key: only this location (an id from GET /locations). Leave it out for every location.

  • sincestringdate-time

    Only lines at or after this ISO date or date-time (the start of the range).

  • untilstringdate-time

    Only lines before this ISO date or date-time (the end of the range, not included).

  • updated_sincestringdate-time

    since's older name; still read when since is not sent.

  • qstring

    Words in what was changed, who did it, or the job it was on.

  • limitinteger

    Page size. Out-of-range values fall back to the default.

    1 to 200 · Default 50

  • cursorstring

    The next_cursor from the previous page, exactly as received. A cursor we did not issue is a 400.

Returns

200A page of audit lines, newest first. A list in data.

  • 400invalid_requestSomething in the request was wrong; field names what.
  • 401unauthorizedThe key is missing, wrong or revoked.
  • 403forbiddenA read-only key tried to change something.

Any request can also answer 401, 402, 429 or 500 — errors.

curl "https://app.hailmate.ai/api/v1/audit_log?limit=25" \
  -H "Authorization: Bearer $HAILMATE_API_KEY"
Response · 200
{
  "object": "list",
  "data": [
    {
      "id": "0c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f",
      "occurred_at": "2026-11-19T02:50:42Z",
      "action": "job.deleted",
      "actor_id": "7a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d",
      "actor_name": "Luis Ortega",
      "target_type": "job",
      "target_id": "9e8d7c6b-5a49-4382-9170-6f5e4d3c2b1a",
      "target_label": "Sam Rivera – 4522 Oak Ln",
      "location_id": "7a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d",
      "location_name": "Cincinnati",
      "detail": {
        "job_label": "Sam Rivera – 4522 Oak Ln"
      },
      "via": "app",
      "restorable": true
    }
  ],
  "has_more": true,
  "next_cursor": "eyJjIjoiMjAyNi0xMS0xOVQwMjo1MDo0MloiLCJpIjoiMGMxZDJlM2YifQ"
}

Find records of one kind

GET/records/{kind}

A page of one kind of record, newest first, as the person who made the key sees them in the app (their role decides). Narrow it with q (words, matched anywhere in the kind's search columns) and filter (exact values). Use the id of what you find in an action's input.

Path parameters

  • kindstringRequired

    The kind of record, from GET /records (for example email_templates).

Query parameters

  • qstring

    Words to look for, for example a template's name.

  • filterstring

    Exact values, column:value pairs separated by commas, on the kind's filter columns (GET /records), for example job_id:5b1c…,status:sent. null matches an empty value.

  • updated_sincestringdate-time

    Only records changed at or after this ISO date or date-time (the kind's changed_at). Keep a copy in step: read everything once, then ask for what changed since your last read. Deletions are lines in GET /audit_log.

  • limitinteger

    Page size, at most 100.

    1 to 100 · Default 50

  • cursorstring

    The next_cursor from the previous page, exactly as received. A cursor we did not issue is a 400.

Returns

200A page of records. A list in data.

  • 400invalid_requestSomething in the request was wrong; field names what.
  • 404not_foundNo such record in this workspace.

Any request can also answer 401, 402, 429 or 500 — errors.

curl "https://app.hailmate.ai/api/v1/records/00000000-0000-4000-8000-000000000000?limit=25" \
  -H "Authorization: Bearer $HAILMATE_API_KEY"
Response · 200
{
  "object": "list",
  "kind": "canvassing_knocks",
  "data": [
    {
      "id": "4d5e6f70-8192-4a3b-9c4d-5e6f708192a3",
      "knock_result": "not_home",
      "knocked_at": "2026-11-18T00:44:58Z",
      "pin_id": "5e6f7081-92a3-4b4c-8d5e-6f708192a3b4",
      "user_id": "7a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d"
    }
  ],
  "has_more": true,
  "next_cursor": "eyJjIjoiMjAyNi0xMS0xOFQwMDo0NDo1OFoiLCJpIjoiNGQ1ZTZmNzAifQ"
}

Get one record by its id

GET/records/{kind}/{id}

One record of a kind from GET /records, by the id GET /records/{kind} returned, as the person who made the key sees it in the app.

Path parameters

  • kindstringRequired

    The kind of record, from GET /records.

  • idstringuuidRequired

    The record's id.

Returns

200The record.

  • 404not_foundNo such record in this workspace.

Any request can also answer 401, 402, 429 or 500 — errors.

curl https://app.hailmate.ai/api/v1/records/00000000-0000-4000-8000-000000000000/00000000-0000-4000-8000-000000000000 \
  -H "Authorization: Bearer $HAILMATE_API_KEY"
Response · 200
{
  "object": "record",
  "kind": "email_templates",
  "data": {
    "id": "8f9a0b1c-2d3e-4f5a-8b6c-7d8e9f0a1b2c",
    "name": "Inspection follow-up",
    "subject": "Your roof inspection",
    "body": "Thanks for having us out today.",
    "is_shared": true,
    "created_at": "2026-11-01T14:00:00Z",
    "updated_at": "2026-11-10T09:30:00Z"
  }
}

Endpoints

Webhooks

Subscribe a URL to events.

List this key's webhooks

GET/webhooks

A key only ever sees the subscriptions it created, paused ones included (enabled: false, with disabled_reason). A webhook switches itself off after failing again and again; resume it with PATCH.

Query parameters

  • enabledboolean

    true for live ones only, false for paused or switched-off ones only.

Returns

200The subscriptions. A list of Webhook objects in data.

  • 401unauthorizedThe key is missing, wrong or revoked.

Any request can also answer 401, 402, 429 or 500 — errors.

curl https://app.hailmate.ai/api/v1/webhooks \
  -H "Authorization: Bearer $HAILMATE_API_KEY"
Response · 200
{
  "object": "list",
  "data": [
    {
      "id": "0f8c8c1b-dddd-4000-8000-000000000022",
      "object": "webhook",
      "event": "job.stage_changed",
      "location_id": "5f0c2a8e-1b3d-4c7a-9e21-7a3b8d4c6e10",
      "company_wide": false,
      "target_url": "https://hooks.zapier.com/hooks/standard/1234567/abcdef/",
      "description": "Slack: approved claims",
      "filters": {
        "stage": "claim_approved"
      },
      "enabled": true,
      "created_at": "2026-09-20T18:30:00.000Z",
      "disabled_at": null,
      "disabled_reason": null,
      "failure_count": 0,
      "last_delivery_at": "2026-10-12T14:02:11.000Z",
      "last_delivery_status": "delivered"
    }
  ]
}

Subscribe to an event

POST/webhooks

Send event (one event, or "*" for every event including ones added later) or events (several). The URL must be https, public, and not a private or link-local address. The response carries the signing secret — once. Several events for one URL share one secret.

filters narrows a single-event subscription, e.g. {"stage": "Claim Approved"} on job.stage_changed fires only when a job enters that stage. GET /events lists what each event accepts.

Subscribing the same event, URL and filters twice returns the existing subscription. A read-only key can subscribe.

Headers

  • Idempotency-Keystring

    Any unique string (a UUID is ideal). A retry with the same key within 24 hours replays the first answer — with Idempotent-Replayed: true — instead of doing the work again. Reusing a key for a DIFFERENT request is a 409.

    Up to 255 characters

Request bodyapplication/json

  • eventstring

    One event, or "*".

  • eventsarray of string

    Several events for one URL.

  • target_urlstringuriRequired

    targetUrl works too (Zapier's spelling).

  • descriptionstring
  • filtersobject

    Only with a single event. See GET /events.

Returns

201Subscribed. One event returns the subscription; several return `{ "object": "list", "data": [...], "secret": "…" }`. A WebhookCreated object.

  • 400invalid_requestSomething in the request was wrong; field names what.

Any request can also answer 401, 402, 429 or 500 — errors.

curl -X POST https://app.hailmate.ai/api/v1/webhooks \
  -H "Authorization: Bearer $HAILMATE_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "event": "job.stage_changed",
  "target_url": "https://yourapp.example.com/hooks/hailmate",
  "filters": {
    "stage": "claim_approved"
  }
}'
Response · 201
{
  "id": "0f8c8c1b-dddd-4000-8000-000000000022",
  "object": "webhook",
  "event": "job.stage_changed",
  "location_id": "5f0c2a8e-1b3d-4c7a-9e21-7a3b8d4c6e10",
  "company_wide": false,
  "target_url": "https://hooks.zapier.com/hooks/standard/1234567/abcdef/",
  "description": "Slack: approved claims",
  "filters": {
    "stage": "claim_approved"
  },
  "enabled": true,
  "created_at": "2026-09-20T18:30:00.000Z",
  "disabled_at": null,
  "disabled_reason": null,
  "failure_count": 0,
  "last_delivery_at": "2026-10-12T14:02:11.000Z",
  "last_delivery_status": "delivered",
  "secret": "whsec_3a2b1c5f…"
}

Get a webhook

GET/webhooks/{id}

Path parameters

  • idstringuuidRequired

Returns

200The subscription. A Webhook object.

  • 404not_foundNo such record in this workspace.

Any request can also answer 401, 402, 429 or 500 — errors.

curl https://app.hailmate.ai/api/v1/webhooks/0f8c8c1b-dddd-4000-8000-000000000022 \
  -H "Authorization: Bearer $HAILMATE_API_KEY"
Response · 200
{
  "id": "0f8c8c1b-dddd-4000-8000-000000000022",
  "object": "webhook",
  "event": "job.stage_changed",
  "location_id": "5f0c2a8e-1b3d-4c7a-9e21-7a3b8d4c6e10",
  "company_wide": false,
  "target_url": "https://hooks.zapier.com/hooks/standard/1234567/abcdef/",
  "description": "Slack: approved claims",
  "filters": {
    "stage": "claim_approved"
  },
  "enabled": true,
  "created_at": "2026-09-20T18:30:00.000Z",
  "disabled_at": null,
  "disabled_reason": null,
  "failure_count": 0,
  "last_delivery_at": "2026-10-12T14:02:11.000Z",
  "last_delivery_status": "delivered"
}

Change, pause or resume a webhook

PATCH/webhooks/{id}

Change where it goes (target_url), its label, or its filters, or pause it (enabled: false) and resume it (enabled: true, which also clears its failure count). The event cannot change: delete it and subscribe again.

Path parameters

  • idstringuuidRequired

Request bodyapplication/json

  • target_urlstringuri
  • descriptionstring | null
  • filtersobject | null

    null clears them.

  • enabledboolean

    false pauses it

Returns

200The subscription, changed. A Webhook object.

  • 400invalid_requestSomething in the request was wrong; field names what.
  • 404not_foundNo such record in this workspace.

Any request can also answer 401, 402, 429 or 500 — errors.

curl -X PATCH https://app.hailmate.ai/api/v1/webhooks/0f8c8c1b-dddd-4000-8000-000000000022 \
  -H "Authorization: Bearer $HAILMATE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "enabled": true
}'
Response · 200
{
  "id": "0f8c8c1b-dddd-4000-8000-000000000022",
  "object": "webhook",
  "event": "job.stage_changed",
  "location_id": "5f0c2a8e-1b3d-4c7a-9e21-7a3b8d4c6e10",
  "company_wide": false,
  "target_url": "https://hooks.zapier.com/hooks/standard/1234567/abcdef/",
  "description": "Slack: approved claims",
  "filters": {
    "stage": "claim_approved"
  },
  "enabled": true,
  "created_at": "2026-09-20T18:30:00.000Z",
  "disabled_at": null,
  "disabled_reason": null,
  "failure_count": 0,
  "last_delivery_at": "2026-10-12T14:02:11.000Z",
  "last_delivery_status": "delivered"
}

Unsubscribe

DELETE/webhooks/{id}

Answering a delivery with 410 Gone unsubscribes too.

Path parameters

  • idstringuuidRequired

Returns

200Removed. A Deleted object.

  • 404not_foundNo such record in this workspace.

Any request can also answer 401, 402, 429 or 500 — errors.

curl -X DELETE https://app.hailmate.ai/api/v1/webhooks/0f8c8c1b-dddd-4000-8000-000000000022 \
  -H "Authorization: Bearer $HAILMATE_API_KEY"
Response · 200
{
  "id": "f2b1a0c4-1111-4000-8000-0000000000aa",
  "object": "job",
  "deleted": true
}

Send a test delivery now

POST/webhooks/{id}/test

Posts a REAL recent record of the webhook's event to its URL right now, signed with its secret and marked event_test: true, and answers with what your endpoint said. Paused webhooks can be tested too. For a "*" webhook, name the event to test.

Path parameters

  • idstringuuidRequired

Request bodyapplication/json

  • eventstring

    Only for a "*" webhook: which event to send.

Returns

200What your endpoint answered. `ok` is true for a 2xx. A WebhookTest object.

  • 400invalid_requestSomething in the request was wrong; field names what.
  • 404not_foundNo such record in this workspace.

Any request can also answer 401, 402, 429 or 500 — errors.

curl -X POST https://app.hailmate.ai/api/v1/webhooks/0f8c8c1b-dddd-4000-8000-000000000022/test \
  -H "Authorization: Bearer $HAILMATE_API_KEY" \
  -H "Content-Type: application/json" \
  -d 'null'
Response · 200
{
  "object": "webhook_test",
  "webhook_id": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
  "ok": true,
  "status": 200,
  "response": "ok",
  "duration_ms": 182,
  "event": "job.created",
  "payload": {
    "event": "job.created",
    "data": {
      "id": "9e8d7c6b-5a49-4382-9170-6f5e4d3c2b1a"
    }
  }
}

A webhook's delivery log

GET/webhooks/{id}/deliveries

What we sent, when, and what your endpoint answered, newest first. Get one delivery by id to see the exact body we posted.

Path parameters

  • idstringuuidRequired

Query parameters

  • limitinteger

    Page size. Out-of-range values fall back to the default.

    1 to 200 · Default 50

  • cursorstring

    The next_cursor from the previous page, exactly as received. A cursor we did not issue is a 400.

  • statusstring
    pendingdeliveringdeliveredfailedskipped

Returns

200A page of deliveries. A list of WebhookDelivery objects in data.

  • 404not_foundNo such record in this workspace.

Any request can also answer 401, 402, 429 or 500 — errors.

curl "https://app.hailmate.ai/api/v1/webhooks/0f8c8c1b-dddd-4000-8000-000000000022/deliveries?limit=25" \
  -H "Authorization: Bearer $HAILMATE_API_KEY"
Response · 200
{
  "object": "list",
  "data": [
    {
      "id": "2b3c4d5e-6f70-4a81-9b92-a3b4c5d6e7f8",
      "object": "webhook_delivery",
      "webhook_id": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
      "event": "invoice.paid",
      "resource": "invoice",
      "resource_id": "6c2d3e4f-5061-4b72-8c83-9d94e5f60712",
      "status": "delivered",
      "attempts": 1,
      "next_attempt_at": null,
      "response_status": 200,
      "last_error": null,
      "created_at": "2026-11-18T15:04:05Z",
      "delivered_at": "2026-11-18T15:04:06Z",
      "payload": {
        "event": "invoice.paid",
        "data": {
          "id": "6c2d3e4f-5061-4b72-8c83-9d94e5f60712"
        }
      }
    }
  ],
  "has_more": false,
  "next_cursor": null
}

One delivery, with the body we sent

GET/webhooks/{id}/deliveries/{delivery_id}

Path parameters

  • idstringuuidRequired
  • delivery_idstringuuidRequired

Returns

200The delivery. `payload` is the exact body we posted (null until it has been sent). A WebhookDelivery object.

  • 404not_foundNo such record in this workspace.

Any request can also answer 401, 402, 429 or 500 — errors.

curl https://app.hailmate.ai/api/v1/webhooks/0f8c8c1b-dddd-4000-8000-000000000022/deliveries/0f8c8c1b-dddd-4000-8000-000000000022 \
  -H "Authorization: Bearer $HAILMATE_API_KEY"
Response · 200
{
  "id": "2b3c4d5e-6f70-4a81-9b92-a3b4c5d6e7f8",
  "object": "webhook_delivery",
  "webhook_id": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
  "event": "invoice.paid",
  "resource": "invoice",
  "resource_id": "6c2d3e4f-5061-4b72-8c83-9d94e5f60712",
  "status": "delivered",
  "attempts": 1,
  "next_attempt_at": null,
  "response_status": 200,
  "last_error": null,
  "created_at": "2026-11-18T15:04:05Z",
  "delivered_at": "2026-11-18T15:04:06Z",
  "payload": {
    "event": "invoice.paid",
    "data": {
      "id": "6c2d3e4f-5061-4b72-8c83-9d94e5f60712"
    }
  }
}

Send a delivery again

POST/webhooks/{id}/deliveries/{delivery_id}/retry

Queues it to go again now, with a fresh set of retries. It keeps its event_id, so an endpoint that skips events it has seen will skip it.

Path parameters

  • idstringuuidRequired
  • delivery_idstringuuidRequired

Returns

202Queued. A WebhookDelivery object.

  • 404not_foundNo such record in this workspace.
  • 409conflictA conflict: an Idempotency-Key clash, a record in a state that refuses the change, or a send refused (the number replied STOP, or the rep has no texting number).

Any request can also answer 401, 402, 429 or 500 — errors.

curl -X POST https://app.hailmate.ai/api/v1/webhooks/0f8c8c1b-dddd-4000-8000-000000000022/deliveries/0f8c8c1b-dddd-4000-8000-000000000022/retry \
  -H "Authorization: Bearer $HAILMATE_API_KEY"
Response · 202
{
  "id": "2b3c4d5e-6f70-4a81-9b92-a3b4c5d6e7f8",
  "object": "webhook_delivery",
  "webhook_id": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
  "event": "invoice.paid",
  "resource": "invoice",
  "resource_id": "6c2d3e4f-5061-4b72-8c83-9d94e5f60712",
  "status": "delivered",
  "attempts": 1,
  "next_attempt_at": null,
  "response_status": 200,
  "last_error": null,
  "created_at": "2026-11-18T15:04:05Z",
  "delivered_at": "2026-11-18T15:04:06Z",
  "payload": {
    "event": "invoice.paid",
    "data": {
      "id": "6c2d3e4f-5061-4b72-8c83-9d94e5f60712"
    }
  }
}

See what an event delivers

GET/webhooks/samples/{event}

Up to three REAL recent records from your workspace, wrapped exactly as a delivery of that event wraps them. Use it to map fields before any event has happened.

Path parameters

  • eventstringRequired

Returns

200Sample deliveries. A list in data.

  • 404not_foundNo such record in this workspace.

Any request can also answer 401, 402, 429 or 500 — errors.

curl https://app.hailmate.ai/api/v1/webhooks/samples/job.created \
  -H "Authorization: Bearer $HAILMATE_API_KEY"
Response · 200
{
  "object": "list",
  "data": [
    {
      "event": "job.created",
      "created_at": "2026-11-18T15:04:05Z",
      "data": {
        "id": "9e8d7c6b-5a49-4382-9170-6f5e4d3c2b1a",
        "object": "job",
        "name": "Sam Rivera"
      }
    }
  ]
}

Endpoints

OAuth

Log in with HailMate: the token endpoints for an app that connects on a person's behalf.

Get or refresh an access token

POST/oauth/token

The token endpoint of the OAuth 2.0 authorization-code flow. After the person presses Allow at https://app.hailmate.ai/oauth/authorize, your app is sent back with ?code=…&state=…; trade the code here within ten minutes. The access token lasts an hour — trade the refresh token for a new one. The refresh token does not change.

Authenticate your app with client_id and client_secret in the body or as HTTP Basic. The body may be form-encoded (the standard) or JSON. Errors use the OAuth standard's own shape: { "error": "invalid_grant", "error_description": "…" }. A code used twice disconnects the connection it made.

Request bodyapplication/x-www-form-urlencoded

  • grant_typestringRequired
    authorization_coderefresh_token
  • codestring

    For authorization_code.

  • redirect_uristringuri

    For authorization_code — the same address the person was sent back to.

  • refresh_tokenstring

    For refresh_token.

  • client_idstringRequired
  • client_secretstringRequired

Returns

200A token. An OAuthToken object.

  • 400invalid_requestThe code or refresh token is not valid (invalid_grant), or the request is malformed.
  • 401unauthorizedUnknown app or wrong secret (invalid_client).

Any request can also answer 401, 402, 429 or 500 — errors.

curl -X POST https://app.hailmate.ai/api/v1/oauth/token \
  -H "Authorization: Bearer $HAILMATE_API_KEY"
Response · 200
{
  "access_token": "hm_oat_1q2w3e4r5t6y7u8i9o0p1a2s3d4f5g6h7j8k9l0z",
  "token_type": "Bearer",
  "expires_in": 3600,
  "refresh_token": "hm_ort_8d2k6m1q9x4w7c3t0r5p6n2j8h1g4f7d3s9a2l6e",
  "scope": "write",
  "workspace_id": "5f0c2a8e-1b3d-4c7a-9e21-7a3b8d4c6e10",
  "workspace": "Ridgeline Roofing"
}

Disconnect

POST/oauth/revoke

RFC 7009. Send a refresh token to disconnect the connection — its tokens stop working and the webhooks it set up are switched off — or an access token to retire just that token. Always answers 200.

Request bodyapplication/x-www-form-urlencoded

  • tokenstringRequired
  • client_idstringRequired
  • client_secretstringRequired

Returns

200Done.

  • 401unauthorizedUnknown app or wrong secret.

Any request can also answer 401, 402, 429 or 500 — errors.

curl -X POST https://app.hailmate.ai/api/v1/oauth/revoke \
  -H "Authorization: Bearer $HAILMATE_API_KEY"
Response · 200
{}

Objects

What the API returns

Every record carries id and object. Fields are only ever added, so ignore any you do not recognise. A webhook delivery carries the same fields at its top level.

Action

Fields

  • namestringRequired

    The action's name, used in POST /actions/{name}.

  • titlestringRequired

    What it does

  • riskstringRequired

    sends reaches a homeowner or anyone outside HailMate; money charges, refunds, pays or credits; deletes removes something; setup changes settings, the team or a connection.

    everydaysendsmoneydeletessetup
  • input_schemaobjectRequired

    JSON Schema (draft 2020-12) of the input POST /actions/{name} takes.

Action object
{
  "name": "record_processor_payment",
  "title": "Record a payment taken through another processor (Square, PayPal, a bank)",
  "risk": "money",
  "input_schema": {
    "type": "object",
    "properties": {
      "processor": {
        "type": "string"
      },
      "reference": {
        "type": "string"
      },
      "amount": {
        "type": "number"
      }
    },
    "required": [
      "processor",
      "reference",
      "amount"
    ]
  }
}

ActionResult

Fields

  • objectstringRequiredalways "action_result"
  • actionstringRequired
  • dataanyRequired

    What the change made or changed (the saved record, a list of ids, or null).

ActionResult object
{
  "object": "action_result",
  "action": "record_processor_payment",
  "data": {
    "outcome": "recorded",
    "payment_id": "5b1c2d3e-4f50-4a61-8b72-9c83d4e5f601",
    "invoice_id": "6c2d3e4f-5061-4b72-8c83-9d94e5f60712"
  }
}

Error

The body of every error response. Branch on error.code.

Fields

  • errorobjectRequired
  • error.codestringRequired

    Machine-readable. Branch on this.

    unauthorizedforbiddennot_foundinvalid_requestconflictpayload_too_largerate_limitedplan_requiredmethod_not_allowedserver_error
  • error.messagestringRequired

    For a person. May be reworded.

  • error.fieldstring

    The request field that was wrong, when there was one.

  • error.request_idstring
  • error.doc_urlstringuriRequired
Error object
{
  "error": {
    "code": "invalid_request",
    "message": "A job needs a name.",
    "field": "name",
    "request_id": "req_jfvtxfboxyzopov1pi4d",
    "doc_url": "https://hailmate.ai/docs/api#errors"
  }
}

Location

Fields

  • idstringuuid

    Send it as the HailMate-Location header (or location_id) with a company key.

  • objectstringalways "location"
  • namestring

    Its short name (Cincinnati).

  • workspace_namestring | null

    The workspace's full name.

  • regionstring | null
  • is_mainboolean

    The company's main location.

Location object
{
  "id": "48770148-5d3b-43f1-8f4e-be0e88985bbf",
  "object": "location",
  "name": "string",
  "workspace_name": null,
  "region": null,
  "is_main": false
}

Ping

What GET /ping returns: the workspace a key belongs to, and what the key may do.

Fields

  • okboolean
  • objectstringalways "workspace"
  • workspace_idstringuuid
  • workspacestring | null

    The workspace's name; a company key naming no location: the company's.

  • labelstring | null

    What to call this connection: the workspace, or "<company> — every location" for a company key.

  • company_wideboolean

    A company key: each request names its location (GET /locations).

  • locationobject | null

    The location this request acts in; null for a company key that named none.

  • location.idstringuuid
  • location.namestring | null
  • locationsinteger

    How many locations this key reaches.

  • api_versionstring
  • keyobject
  • key.namestring
  • key.accessstring
    readwrite
  • key.company_wideboolean
  • acting_asUser

    The teammate behind this key or connection — who "my jobs" means.

  • todaystringdate

    Today where the company works (US Central).

  • timezonestring

Returned by check a key

Ping object
{
  "ok": true,
  "object": "workspace",
  "workspace_id": "5f0c2a8e-1b3d-4c7a-9e21-7a3b8d4c6e10",
  "workspace": "Ridgeline Roofing",
  "label": "Ridgeline Roofing",
  "company_wide": false,
  "location": {
    "id": "5f0c2a8e-1b3d-4c7a-9e21-7a3b8d4c6e10",
    "name": "Ridgeline Roofing"
  },
  "locations": 1,
  "api_version": "v1",
  "key": {
    "name": "Zapier",
    "access": "write",
    "company_wide": false
  },
  "acting_as": {
    "id": "5d0e1c2b-7777-4000-8000-0000000000ab",
    "object": "user",
    "name": "Sam Carter",
    "email": "sam@example.com",
    "role": "owner"
  },
  "today": "2026-10-12",
  "timezone": "America/Chicago"
}

DeletedSnapshot

What a *.deleted delivery carries — the record is gone, so these are the fields that identify your copy of it.

Fields

  • idstringuuid
  • objectstring
    jobcontacttask
  • deletedbooleanalways "true"
  • job_numberstring
  • namestring
  • addressstring
  • first_namestring
  • last_namestring
  • emailstring
  • phonestring
  • titlestring
  • job_idstringuuid
DeletedSnapshot object
{
  "id": "f2b1a0c4-1111-4000-8000-0000000000aa",
  "object": "job",
  "deleted": true,
  "job_number": "JOB-00142",
  "name": "1804 Cedar Ridge Dr",
  "address": "1804 Cedar Ridge Dr"
}

PersonRef

A person on a job — the homeowner or the adjuster — in brief. Fetch the contact for everything else.

Fields

  • idstringuuid
  • namestring | null
  • emailstring | null
  • phonestring | null
PersonRef object
{
  "id": "b7c2d3e4-4444-4000-8000-0000000000dd",
  "name": "Dana Reed",
  "email": "dana@example.com",
  "phone": "(972) 555-0148"
}

Message

One text, email, call or voicemail.

Fields

  • idstringuuid
  • objectstringalways "message"
  • channelstring
    textemailcallvoicemail
  • directionstring
    inboundoutbound
  • contact_idstring | nulluuid
  • job_idstring | nulluuid
  • estimate_idstring | nulluuid
  • invoice_idstring | nulluuid
  • rep_idstring | nulluuid

    The teammate it was sent by or to.

  • rep_namestring | null
  • toany

    Outbound text: the number. Email: the addresses. Inbound text: null.

  • fromstring | null

    Email only: the sender's address.

  • subjectstring | null
  • bodystring | null

    The text, the email's plain body, or a voicemail transcript.

  • media_urlsarray of string
  • statusstring | null

    sent, delivered, failed, received, opened…

  • delivery_errorstring | null
  • call_statusstring | null
  • call_duration_secondsinteger | null
  • summarystring | null

    A call's written summary.

  • recording_urlstring | nulluri
  • thread_idstring | null
  • ai_draftedboolean
  • sent_atstring | nulldate-time
  • delivered_atstring | nulldate-time
  • opened_atstring | nulldate-time
  • read_atstring | nulldate-time
  • created_atstringdate-time
  • urlstring | nulluri
Message object
{
  "id": "d1d2d3d4-cccc-4000-8000-000000000077",
  "object": "message",
  "channel": "text",
  "direction": "inbound",
  "contact_id": "b7c2d3e4-4444-4000-8000-0000000000dd",
  "job_id": "f2b1a0c4-1111-4000-8000-0000000000aa",
  "estimate_id": null,
  "invoice_id": null,
  "rep_id": "5d0e1c2b-7777-4000-8000-0000000000ab",
  "rep_name": "Sam Carter",
  "to": null,
  "from": null,
  "subject": null,
  "body": "Thursday at 3 works for the adjuster. Thanks!",
  "media_urls": [],
  "status": "received",
  "delivery_error": null,
  "call_status": null,
  "call_duration_seconds": null,
  "summary": null,
  "recording_url": null,
  "thread_id": null,
  "ai_drafted": false,
  "sent_at": "2026-09-16T18:12:00.000Z",
  "delivered_at": null,
  "opened_at": null,
  "read_at": null,
  "created_at": "2026-09-16T18:12:00.000Z",
  "url": "https://app.hailmate.ai/contact/b7c2d3e4-4444-4000-8000-0000000000dd"
}

TextSend

Name the recipient — a contact_id or a number in to.

Fields

  • contact_idstringuuid

    Texts the contact's main number.

  • tostring

    A phone number, e.g. (972) 555-0148 or +19725550148.

  • bodystringRequired

    Up to 1600 characters

  • job_idstringuuid

    Files the text on this job too.

  • from_user_idstringuuid

    The teammate it is sent as (must have a HailMate number). Default: whoever made the key or connected the app.

  • media_urlsarray of stringuri

    Public https images

TextSend object
{
  "contact_id": "b7c2d3e4-4444-4000-8000-0000000000dd",
  "to": "string",
  "body": "string",
  "job_id": "f2b1a0c4-1111-4000-8000-0000000000aa",
  "from_user_id": "c53ef165-d14d-4710-8dd6-77ef0e800a7a",
  "media_urls": [
    "https://app.hailmate.ai/…"
  ]
}

EmailDraft

Fields

  • idstringuuid
  • objectstringalways "email_draft"
  • user_idstringuuid

    Whose Drafts it is in.

  • user_namestring | null
  • toarray of string
  • ccarray of string
  • bccarray of string
  • subjectstring
  • bodystring
  • contact_idstring | nulluuid
  • job_idstring | nulluuid
  • created_atstringdate-time
  • updated_atstringdate-time
  • urlstring | nulluri
EmailDraft object
{
  "id": "3c2b1a00-5d4e-4f6a-8b7c-9d0e1f2a3b4c",
  "object": "email_draft",
  "user_id": "7a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d",
  "user_name": "Luis Ortega",
  "to": [
    "dana.smith@example.com"
  ],
  "cc": [],
  "bcc": [],
  "subject": "Your roof estimate for 1108 Spring Path Ln",
  "body": "Hi Dana,\n\nHere is the estimate we talked about.",
  "contact_id": "0f1e2d3c-4b5a-4968-8776-655443322110",
  "job_id": "9e8d7c6b-5a49-4382-9170-6f5e4d3c2b1a",
  "created_at": "2026-11-18T15:04:05Z",
  "updated_at": "2026-11-18T15:10:00Z",
  "url": "https://app.hailmate.ai/messages?draft=3c2b1a00-5d4e-4f6a-8b7c-9d0e1f2a3b4c"
}

EmailSend

Name the recipient — a contact_id or addresses in to.

Fields

  • contact_idstringuuid

    Emails the contact's address.

  • toarray of stringemail
  • ccarray of stringemail
  • bccarray of stringemail
  • subjectstringRequired

    Up to 300 characters

  • bodystringRequired

    Markdown.

  • job_idstringuuid
  • estimate_idstringuuid
  • invoice_idstringuuid
  • from_user_idstringuuid

    The teammate it is sent as. Default: whoever made the key or connected the app.

  • send_asstring

    mailbox (default when connected) sends from the rep's own email; workspace from the company address.

    mailboxworkspace
  • attachmentsarray of object

    At most 5. A file on the job by file_id, or a public https link elsewhere.

  • attachments[].file_idstringuuid
  • attachments[].urlstringuri
  • attachments[].filenamestring
EmailSend object
{
  "contact_id": "b7c2d3e4-4444-4000-8000-0000000000dd",
  "to": [
    "dana@example.com"
  ],
  "cc": [
    "dana@example.com"
  ],
  "bcc": [
    "dana@example.com"
  ],
  "subject": "string",
  "body": "string",
  "job_id": "f2b1a0c4-1111-4000-8000-0000000000aa",
  "estimate_id": "30746343-3d12-415c-8301-4dad9807fa1e",
  "invoice_id": "0de6cf0e-8c14-4bf7-85db-01a0f3ca6e01",
  "from_user_id": "c53ef165-d14d-4710-8dd6-77ef0e800a7a",
  "send_as": "mailbox",
  "attachments": [
    {
      "file_id": "2b821117-9d68-46a4-895e-b4c11d2d62fe",
      "url": "https://app.hailmate.ai/…",
      "filename": "string"
    }
  ]
}

Job

The storm-restoration jobs on your pipeline boards.

Fields

  • idstringuuid
  • objectstringalways "job"
  • job_numberstring | null
  • namestring | null
  • job_typestring
    insuranceretail
  • stagestring | null

    The stage key. Filter on this.

  • stage_labelstring | null

    The stage as your board names it.

  • stage_is_completedboolean | null

    The stage is a won / completed column.

  • stage_is_lostboolean | null

    The stage is a lost column.

  • stage_entered_atstring | nulldate-time
  • pipeline_idstring | nulluuid
  • pipeline_namestring | null
  • addressstring | null
  • citystring | null
  • statestring | null

    Two-letter code.

  • postal_codestring | null
  • countystring | null
  • homeowner_idstring | nulluuid
  • homeownerPersonRef | null
  • adjuster_idstring | nulluuid
  • adjusterPersonRef | null
  • secondary_contact_idsarray of stringuuid
  • secondary_adjuster_idsarray of stringuuid
  • assigned_to_idstring | nulluuid

    The sales rep (the primary assignee).

  • assigned_to_namestring | null
  • sales_rep_idstring | nulluuid

    The sales rep: who sold the job and owns it (the same person as assigned_to_id).

  • sales_rep_namestring | null
  • canvasser_idstring | nulluuid

    Who knocked the door or set the appointment (the setter). Credited with the lead.

  • canvasser_namestring | null
  • project_manager_idstring | nulluuid

    Who runs the build. Gets the crew and work order alerts.

  • project_manager_namestring | null
  • assignee_idsarray of stringuuid

    Everyone on the job, primary included.

  • assignee_namesarray of string
  • insurance_companystring | null
  • claim_numberstring | null
  • policy_numberstring | null
  • date_of_lossstring | nulldate
  • damage_typesarray of string
  • tagsarray of string
  • cover_photo_urlstring | nulluri

    The photo shown as the job's cover.

  • lead_sourcestring | null
  • prioritystring | null
    lownormalhighurgent
  • mortgage_companystring | null
  • financing_methodstring | null
    cashcheckcredit_cardfinancingother
  • rcv_amountnumber | null

    Replacement cost value on the claim.

  • acv_amountnumber | null

    Actual cash value.

  • deductiblenumber | null
  • supplements_amountnumber | null
  • custom_fieldsobject

    The workspace's own fields (Settings → Lists & fields), by field name: text, a number, a date (YYYY-MM-DD), a choice, or true/false.

  • estimated_amountnumber | null
  • final_amountnumber | null

    Contract value on a retail job.

  • total_job_valuenumber | null

    What the job is worth — the same figure the Money tab shows.

  • amount_receivednumber | null

    Money received on the job so far.

  • balance_duenumber | null
  • contract_datestring | nulldate
  • installation_datestring | nulldate
  • archivedboolean
  • completed_atstring | nulldate-time
  • lost_atstring | nulldate-time
  • lost_reasonstring | null

    Why a lead that never sold was lost.

  • tradesarray of string

    The trades on the job (keys of the company's trades list, like roofing, gutters, siding); the first is the main one.

  • roof_squaresnumber | null

    Roof size in squares (100 sq ft each): from a finished measurement, or typed.

  • property_typestring | null
    residentialcommercial
  • roof_materialstring | null
    asphaltmetaltileflatother
  • first_appointment_onstring | nulldate

    Stamped: the first appointment that happened. Read-only.

  • build_started_onstring | nulldate

    Stamped: the first day a crew started. Read-only.

  • build_finished_onstring | nulldate

    Stamped: the day the last work order finished. Read-only.

  • paid_in_full_onstring | nulldate

    Stamped: the last payment's day, once nothing is owed. Read-only.

  • cancelled_atstring | nulldate-time

    Stamped: the job sold, then was lost. A cancellation, never a lost lead. Read-only.

  • cancel_reasonstring | null

    Why a sold job was cancelled.

  • created_atstringdate-time
  • updated_atstringdate-time
  • urlstringuri

    Opens the job in HailMate.

  • portal_urlstring | nulluri

    The homeowner's job page — the same link "Copy Homeowner Link" gives.

Job object
{
  "id": "f2b1a0c4-1111-4000-8000-0000000000aa",
  "object": "job",
  "job_number": "JOB-00142",
  "name": "1804 Cedar Ridge Dr",
  "job_type": "insurance",
  "stage": "inspection_scheduled",
  "stage_label": "Inspection Scheduled",
  "stage_is_completed": false,
  "stage_is_lost": false,
  "stage_entered_at": "2026-09-16T14:02:00.000Z",
  "pipeline_id": "1cf7d87b-7d99-4ba0-b277-0e88ac127e75",
  "pipeline_name": "Insurance",
  "address": "1804 Cedar Ridge Dr",
  "city": "Plano",
  "state": "TX",
  "postal_code": "75024",
  "county": "Collin",
  "homeowner_id": "b7c2d3e4-4444-4000-8000-0000000000dd",
  "homeowner": {
    "id": "b7c2d3e4-4444-4000-8000-0000000000dd",
    "name": "Dana Reed",
    "email": "dana@example.com",
    "phone": "(972) 555-0148"
  },
  "adjuster_id": null,
  "adjuster": null,
  "secondary_contact_ids": [],
  "secondary_adjuster_ids": [],
  "assigned_to_id": "5d0e1c2b-7777-4000-8000-0000000000ab",
  "assigned_to_name": "Sam Carter",
  "sales_rep_id": "5d0e1c2b-7777-4000-8000-0000000000ab",
  "sales_rep_name": "Sam Carter",
  "canvasser_id": null,
  "canvasser_name": null,
  "project_manager_id": null,
  "project_manager_name": null,
  "assignee_ids": [
    "5d0e1c2b-7777-4000-8000-0000000000ab"
  ],
  "assignee_names": [
    "Sam Carter"
  ],
  "insurance_company": "Example Mutual",
  "claim_number": "CLM-88213",
  "policy_number": null,
  "date_of_loss": "2026-09-12",
  "damage_types": [
    "hail"
  ],
  "tags": [],
  "cover_photo_url": null,
  "lead_source": "Website",
  "priority": "normal",
  "mortgage_company": null,
  "financing_method": null,
  "rcv_amount": 24380.5,
  "acv_amount": 19240,
  "deductible": 2500,
  "supplements_amount": null,
  "custom_fields": {
    "Roof type": "Architectural shingle",
    "Gutters included": true
  },
  "estimated_amount": null,
  "final_amount": null,
  "total_job_value": 24380.5,
  "amount_received": 0,
  "balance_due": 24380.5,
  "contract_date": null,
  "installation_date": null,
  "archived": false,
  "completed_at": null,
  "lost_at": null,
  "lost_reason": null,
  "trades": [
    "roofing",
    "gutters"
  ],
  "roof_squares": 31.5,
  "property_type": "residential",
  "roof_material": "asphalt",
  "first_appointment_on": "2026-09-18",
  "build_started_on": null,
  "build_finished_on": null,
  "paid_in_full_on": null,
  "cancelled_at": null,
  "cancel_reason": null,
  "created_at": "2026-09-16T14:02:00.000Z",
  "updated_at": "2026-09-16T14:02:00.000Z",
  "url": "https://app.hailmate.ai/job/f2b1a0c4-1111-4000-8000-0000000000aa",
  "portal_url": "https://app.hailmate.ai/project/0f0f0f0f-3333-4000-8000-0000000000cc"
}

ContactType

What kind of contact someone is.

A string, one of:

homeownercommercialadjustercontractorsubcontractorinstall_crewinspectormortgage_companyother

Contact

Homeowners, adjusters, subcontractors and everyone else in your book.

Fields

  • idstringuuid
  • objectstringalways "contact"
  • first_namestring | null
  • last_namestring | null
  • full_namestring | null
  • emailstring | null
  • phonestring | null
  • phone_labelstring | null
    mobileofficehomeworkfaxother
  • additional_phonesarray of object

    Up to five more numbers, each belonging to this contact only.

  • additional_phones[].phonestring
  • additional_phones[].labelstring | null
  • companystring | null
  • typestring
    homeownercommercialadjustercontractorsubcontractorinstall_crewinspectormortgage_companyother
  • tradesarray of string

    For a subcontractor — gutters, siding…

  • addressstring | null
  • citystring | null
  • statestring | null
  • postal_codestring | null
  • notesstring | null
  • claim_numberstring | null
  • adjuster_typestring | null
  • adjuster_extensionstring | null
  • assigned_to_idstring | nulluuid
  • assigned_to_namestring | null
  • custom_fieldsobject

    The workspace's own fields (Settings → Lists & fields), by field name: text, a number, a date (YYYY-MM-DD), a choice, or true/false.

  • created_atstringdate-time
  • updated_atstringdate-time
  • urlstringuri
Contact object
{
  "id": "b7c2d3e4-4444-4000-8000-0000000000dd",
  "object": "contact",
  "first_name": "Dana",
  "last_name": "Reed",
  "full_name": "Dana Reed",
  "email": "dana@example.com",
  "phone": "(972) 555-0148",
  "phone_label": "mobile",
  "additional_phones": [
    {
      "phone": "(972) 555-0100",
      "label": "office"
    }
  ],
  "company": null,
  "type": "homeowner",
  "trades": [],
  "address": "1804 Cedar Ridge Dr",
  "city": "Plano",
  "state": "TX",
  "postal_code": "75024",
  "notes": null,
  "claim_number": null,
  "adjuster_type": null,
  "adjuster_extension": null,
  "assigned_to_id": null,
  "assigned_to_name": null,
  "custom_fields": {
    "Preferred contact time": "Evenings"
  },
  "created_at": "2026-09-16T13:40:00.000Z",
  "updated_at": "2026-09-16T13:40:00.000Z",
  "url": "https://app.hailmate.ai/contact/b7c2d3e4-4444-4000-8000-0000000000dd"
}

Task

Tasks and appointments. An appointment is a task with an appointment_type.

Fields

  • idstringuuid
  • objectstringalways "task"
  • titlestring | null
  • descriptionstring | null
  • due_datestring | null

    Wall-clock — the local time the crew reads. No offset.

  • end_datestring | nulldate

    The last day of a task that blocks off several days.

  • duration_minutesinteger | null
  • prioritystring | null
    lownormalhigh
  • completedboolean
  • completed_atstring | nulldate-time
  • is_appointmentboolean
  • appointment_typestring | null
    inspectionadjuster_meetingbuild_day
  • outcomestring | null
    completedno_showrescheduledcanceled
  • customer_reminderstring | null

    Whether HailMate reminds the homeowner the day before.

    nonesmsemailboth
  • reminder_minutesinteger | null
  • calendar_idstring | nulluuid

    The calendar it is an event on. Null is a to-do.

  • calendar_namestring | null
  • locationstring | null

    Where, for an event with no job (a job's event is at the job's address).

  • job_idstring | nulluuid
  • contact_idstring | nulluuid
  • assigned_to_idstring | nulluuid
  • assigned_to_namestring | null
  • created_atstringdate-time
  • updated_atstringdate-time
  • urlstringuri
Task object
{
  "id": "d4e5f6a7-5555-4000-8000-0000000000ee",
  "object": "task",
  "title": "Adjuster meeting — 1804 Cedar Ridge Dr",
  "description": null,
  "due_date": "2026-10-02T15:00:00",
  "end_date": null,
  "duration_minutes": 60,
  "priority": "normal",
  "completed": false,
  "completed_at": null,
  "is_appointment": true,
  "appointment_type": "adjuster_meeting",
  "outcome": null,
  "customer_reminder": "sms",
  "reminder_minutes": 60,
  "calendar_id": "3c9d2c4f-aaaa-4000-8000-0000000000c1",
  "calendar_name": "Sales",
  "location": null,
  "job_id": "f2b1a0c4-1111-4000-8000-0000000000aa",
  "contact_id": "b7c2d3e4-4444-4000-8000-0000000000dd",
  "assigned_to_id": "5d0e1c2b-7777-4000-8000-0000000000ab",
  "assigned_to_name": "Sam Carter",
  "sales_rep_id": "5d0e1c2b-7777-4000-8000-0000000000ab",
  "sales_rep_name": "Sam Carter",
  "canvasser_id": null,
  "canvasser_name": null,
  "project_manager_id": null,
  "project_manager_name": null,
  "created_at": "2026-09-16T14:10:00.000Z",
  "updated_at": "2026-09-16T14:10:00.000Z",
  "url": "https://app.hailmate.ai/task/d4e5f6a7-5555-4000-8000-0000000000ee"
}

Calendar

One of the company's calendars. Its events are the tasks with its calendar_id.

Fields

  • idstringuuid
  • objectstringalways "calendar"
  • namestring
  • colorstring

    Google Calendar's colours, so an event matches on both.

    bluegreenorangepurpleredtealpinkyellowgraylavendersage
  • positioninteger

    1-based place in the company's list.

  • members_see_allboolean

    Shared: every member reads every event on it, even on jobs they cannot otherwise see.

  • default_for_typesarray of string

    Appointment types that land here when nobody picks a calendar. A type belongs to one calendar.

    inspectionadjuster_meetingbuild_day
  • auto_join_rolesarray of string

    Who joins it by themselves on joining the company (admin is owners and admins).

    adminofficesalesproductioncrew
  • member_idsarray of stringuuid

    Who is on it (ids from /users).

  • created_atstringdate-time
  • updated_atstringdate-time
  • urlstringuri
Calendar object
{
  "id": "3c9d2c4f-aaaa-4000-8000-0000000000c2",
  "object": "calendar",
  "name": "Production",
  "color": "green",
  "position": 2,
  "members_see_all": true,
  "default_for_types": [
    "build_day"
  ],
  "auto_join_roles": [
    "admin",
    "office",
    "production",
    "crew"
  ],
  "member_ids": [
    "5d0e1c2b-7777-4000-8000-0000000000ab"
  ],
  "created_at": "2026-10-31T14:10:00.000Z",
  "updated_at": "2026-10-31T14:10:00.000Z",
  "url": "https://app.hailmate.ai/settings/calendar"
}

CalendarDeleted

Fields

  • idstringuuid
  • objectstringalways "calendar"
  • deletedbooleanalways "true"
  • events_movedinteger

    How many events were on it.

  • moved_tostring | nulluuid

    The calendar they went to; null made them to-dos.

Returned by delete a calendar

CalendarDeleted object
{
  "id": "3c9d2c4f-aaaa-4000-8000-0000000000c3",
  "object": "calendar",
  "deleted": true,
  "events_moved": 4,
  "moved_to": "3c9d2c4f-aaaa-4000-8000-0000000000c2"
}

Estimate

Estimates and proposals — made from one of your templates or as your standard proposal, then finished and sent in HailMate.

Fields

  • idstringuuid
  • objectstringalways "estimate"
  • estimate_numberstring | null
  • titlestring | null
  • document_typestring | null
    proposalestimate
  • statusstring | null
    draftsentviewedsignedexpireddeclined
  • signature_statusstring | null
  • totalnumber | null

    The selected package's price, else the base package. Null — never 0 — when it could not be computed.

  • package_totalsobject | null

    Every package's price, keyed by package.

  • upgrades_totalnumber | null

    Optional upgrades, quoted outside the package price.

  • selected_tierstring | null

    The package the homeowner chose.

  • job_idstring | nulluuid
  • valid_untilstring | nulldate-time
  • sent_atstring | nulldate-time
  • first_viewed_atstring | nulldate-time
  • last_viewed_atstring | nulldate-time
  • view_countinteger
  • signed_atstring | nulldate-time
  • signer_namestring | null
  • pdf_urlstring | nulluri
  • signed_pdf_urlstring | nulluri
  • created_atstringdate-time
  • updated_atstringdate-time
  • urlstringuri
  • view_urlstring | nulluri

    The homeowner's view of the estimate.

  • line_itemsarray of EstimateLine

    What is on the estimate. Only on GET /estimates/{id}; lists and webhooks leave it out.

Estimate object
{
  "id": "a41c9e20-2222-4000-8000-0000000000e1",
  "object": "estimate",
  "estimate_number": "EST-0214",
  "title": "Roof replacement — 1804 Cedar Ridge Dr",
  "document_type": "proposal",
  "status": "sent",
  "signature_status": "pending",
  "total": 21900,
  "package_totals": {
    "good": 18450,
    "better": 21900,
    "best": 26400
  },
  "upgrades_total": 1250,
  "selected_tier": null,
  "job_id": "f2b1a0c4-1111-4000-8000-0000000000aa",
  "valid_until": "2026-10-28T00:00:00.000Z",
  "sent_at": "2026-09-28T15:10:00.000Z",
  "first_viewed_at": "2026-09-28T18:42:00.000Z",
  "last_viewed_at": "2026-09-28T19:05:00.000Z",
  "view_count": 3,
  "signed_at": null,
  "signer_name": null,
  "pdf_url": "https://files.example-cdn.com/estimates/EST-0214.pdf",
  "signed_pdf_url": null,
  "created_at": "2026-09-27T21:30:00.000Z",
  "updated_at": "2026-09-28T19:05:00.000Z",
  "url": "https://app.hailmate.ai/estimates/a41c9e20-2222-4000-8000-0000000000e1",
  "view_url": "https://app.hailmate.ai/estimate/6f1d3b52-9c7e-4a10-8f3b-2d4e5a6b7c8d",
  "line_items": [
    {
      "id": "0c7a1e52-5555-4000-8000-0000000000e2",
      "object": "estimate_line",
      "name": "Remove and replace architectural shingles",
      "description": null,
      "quantity": 32,
      "unit": "sq",
      "unit_price": 465,
      "line_total": 14880,
      "option": "better",
      "optional": false
    }
  ]
}

DocumentSend

Fields

  • methodstring
    emailtext

    Default email

  • contact_idstringuuid

    Who it goes to. Default: the job's homeowner.

  • toarray of string

    Email: addresses. Text: one phone number. Overrides the contact's.

  • subjectstring

    Email only.

  • messagestring

    Your words. A text gets the link added on the end.

  • from_user_idstringuuid

    The teammate it is sent as. Default: whoever made the key or connected the app.

DocumentSend object
{
  "method": "email",
  "contact_id": "b7c2d3e4-4444-4000-8000-0000000000dd",
  "to": [],
  "subject": "string",
  "message": "string",
  "from_user_id": "c53ef165-d14d-4710-8dd6-77ef0e800a7a"
}

EstimateLine

Fields

  • idstringuuid
  • objectstringalways "estimate_line"
  • namestring | null
  • descriptionstring | null
  • quantitynumber | null
  • unitstring | null

    sq, lf, ea…

  • unit_pricenumber | null
  • line_totalnumber | null
  • optionstring | null

    The package the line belongs to (good, better, best). Null = every package.

  • optionalboolean

    An optional upgrade the homeowner can add.

EstimateLine object
{
  "id": "0c7a1e52-5555-4000-8000-0000000000e2",
  "object": "estimate_line",
  "name": "Remove and replace architectural shingles",
  "description": null,
  "quantity": 32,
  "unit": "sq",
  "unit_price": 465,
  "line_total": 14880,
  "option": "better",
  "optional": false
}

Invoice

Invoices, totalled exactly as HailMate totals them — send them, mark them sent, void them, write them off.

Fields

  • idstringuuid
  • objectstringalways "invoice"
  • invoice_numberstring | null
  • titlestring | null
  • statusstring
    draftsentviewedpartially_paidpaidoverduevoidbad_debt
  • purposestring | null
    claim_scopedeductiblesupplementdepreciationcontractother
  • subtotalnumber | null
  • discount_amountnumber | null
  • tax_amountnumber | null
  • late_fee_amountnumber | null
  • total_amountnumber
  • amount_paidnumber
  • balance_duenumber

    total_amount - amount_paid, never below zero.

  • part_numberinteger | null

    When billed in parts, which part this is.

  • part_countinteger | null
  • issue_datestring | nulldate
  • due_datestring | nulldate
  • sent_atstring | nulldate-time
  • first_viewed_atstring | nulldate-time
  • paid_atstring | nulldate-time
  • job_idstring | nulluuid
  • contact_idstring | nulluuid
  • estimate_idstring | nulluuid
  • pdf_urlstring | nulluri
  • created_atstringdate-time
  • updated_atstringdate-time
  • urlstringuri
  • payment_urlstring | nulluri

    The homeowner's pay page — the same link "Copy Pay Link" gives.

  • line_itemsarray of InvoiceLine

    What is billed. Only on GET /invoices/{id}; lists and webhooks leave it out.

Invoice object
{
  "id": "c90d7b31-3333-4000-8000-0000000000f2",
  "object": "invoice",
  "invoice_number": "INV-0311",
  "title": "Deductible",
  "status": "sent",
  "purpose": "deductible",
  "subtotal": 2500,
  "discount_amount": 0,
  "tax_amount": 0,
  "late_fee_amount": 0,
  "total_amount": 2500,
  "amount_paid": 0,
  "balance_due": 2500,
  "part_number": null,
  "part_count": null,
  "issue_date": "2026-09-28",
  "due_date": "2026-10-12",
  "sent_at": "2026-09-28T16:00:00.000Z",
  "first_viewed_at": null,
  "paid_at": null,
  "job_id": "f2b1a0c4-1111-4000-8000-0000000000aa",
  "contact_id": "b7c2d3e4-4444-4000-8000-0000000000dd",
  "estimate_id": null,
  "pdf_url": "https://files.example-cdn.com/invoices/INV-0311.pdf",
  "created_at": "2026-09-28T15:55:00.000Z",
  "updated_at": "2026-09-28T16:00:00.000Z",
  "url": "https://app.hailmate.ai/jobs/invoice/c90d7b31-3333-4000-8000-0000000000f2",
  "payment_url": "https://app.hailmate.ai/invoice/0b7e2c19-5d4a-4f3e-9a1b-8c6d2e4f1a37",
  "line_items": [
    {
      "id": "7d2b9f14-6666-4000-8000-0000000000f3",
      "object": "invoice_line",
      "name": "Deductible",
      "description": null,
      "quantity": 1,
      "unit": "ea",
      "unit_price": 2500,
      "line_total": 2500,
      "taxable": false,
      "late_fee": false
    }
  ]
}

InvoiceLine

Fields

  • idstringuuid
  • objectstringalways "invoice_line"
  • namestring | null
  • descriptionstring | null
  • quantitynumber | null
  • unitstring | null
  • unit_pricenumber | null
  • line_totalnumber | null
  • taxableboolean
  • late_feeboolean

    A late fee HailMate added.

InvoiceLine object
{
  "id": "7d2b9f14-6666-4000-8000-0000000000f3",
  "object": "invoice_line",
  "name": "Deductible",
  "description": null,
  "quantity": 1,
  "unit": "ea",
  "unit_price": 2500,
  "line_total": 2500,
  "taxable": false,
  "late_fee": false
}

PaymentType

What a payment was for.

A string, one of:

acvdeductiblesupplementdepreciationretailother

Payment

Money received against a job — carrier cheques, deductibles, card payments.

Fields

  • idstringuuid
  • objectstringalways "payment"
  • job_idstringuuid
  • invoice_idstring | nulluuid
  • amountnumber

    Negative for a refund.

  • payment_typestring
    acvdeductiblesupplementdepreciationretailother
  • payer_typestring
    insurancehomeownermortgage_companyother
  • payment_methodstring
    checkcashcardachfinancingother
  • statusstring
    expectedreceivedsent_to_mortgageendorseddeposited
  • check_numberstring | null
  • date_receivedstring | nulldate
  • date_depositedstring | nulldate
  • notesstring | null
  • is_refundboolean
  • refund_of_payment_idstring | nulluuid
  • onlineboolean

    Paid through HailMate's online payment page.

  • created_atstringdate-time
  • updated_atstringdate-time
  • urlstring | nulluri
Payment object
{
  "id": "9fa3e1d2-5555-4000-8000-0000000000c3",
  "object": "payment",
  "job_id": "f2b1a0c4-1111-4000-8000-0000000000aa",
  "invoice_id": null,
  "amount": 13164,
  "payment_type": "acv",
  "payer_type": "insurance",
  "payment_method": "check",
  "status": "received",
  "check_number": "4471",
  "date_received": "2026-09-26",
  "date_deposited": null,
  "notes": "First ACV check from Example Mutual",
  "is_refund": false,
  "refund_of_payment_id": null,
  "online": false,
  "created_at": "2026-09-26T20:14:00.000Z",
  "updated_at": "2026-09-26T20:14:00.000Z",
  "url": "https://app.hailmate.ai/job/f2b1a0c4-1111-4000-8000-0000000000aa"
}

JobCost

Fields

  • idstringuuid
  • objectstringalways "job_cost"
  • job_idstringuuid
  • categorystring
    materialslaborsubcontractorpermitsdumpsterequipmentfuelmarketingother
  • descriptionstring | null
  • vendorstring | null
  • amountnumber

    Negative for a credit.

  • incurred_onstring | nulldate
  • file_idstring | nulluuid

    The receipt or bill on the job

  • created_atstringdate-time
  • updated_atstringdate-time
  • urlstringuri
JobCost object
{
  "id": "3c4d5e6f-3333-4000-8000-0000000000c3",
  "object": "job_cost",
  "job_id": "f2b1a0c4-1111-4000-8000-0000000000aa",
  "category": "materials",
  "description": "Shingles and underlayment",
  "vendor": "ABC Supply",
  "amount": 4200,
  "incurred_on": "2026-10-02",
  "file_id": null,
  "created_at": "2026-10-02T15:00:00.000Z",
  "updated_at": "2026-10-02T15:00:00.000Z",
  "url": "https://app.hailmate.ai/job/f2b1a0c4-1111-4000-8000-0000000000aa"
}

MoneyTargets

The company's monthly money goals and overhead. One per company.

Fields

  • objectstringalways "money_targets"
  • monthly_collected_goalnumber | null

    Money in per month the company is aiming for. null = no goal.

  • monthly_sold_goalnumber | null

    Work sold (contracts signed) per month the company is aiming for. null = no goal.

  • monthly_overheadnumber | null

    What it costs to keep the doors open each month whatever the jobs do. null = not set (0 means none).

  • updated_atstring | nulldate-time

    When they were last saved. null = never set.

MoneyTargets object
{
  "object": "money_targets",
  "monthly_collected_goal": 120000,
  "monthly_sold_goal": 150000,
  "monthly_overhead": 38000,
  "updated_at": "2026-10-31T15:00:00.000Z"
}

Measurement

Fields

  • idstringuuid
  • objectstringalways "measurement"
  • job_idstringuuid
  • sourcestring

    eagleview, hover, manual or solar (instant satellite).

  • statusstring
    processingcompletedfailed
  • squaresnumber | null

    The roof itself

  • waste_percentnumber | null
  • squares_with_wastenumber | null
  • area_sqftnumber | null
  • predominant_pitchstring | null
  • storiesinteger | null
  • ridge_lfnumber | null
  • hip_lfnumber | null
  • valley_lfnumber | null
  • eave_lfnumber | null
  • rake_lfnumber | null
  • drip_edge_lfnumber | null
  • step_flashing_lfnumber | null
  • flashing_lfnumber | null
  • pitch_breakdownarray of object | null
  • created_atstringdate-time
  • urlstringuri
Measurement object
{
  "id": "4d5e6f70-4444-4000-8000-0000000000d4",
  "object": "measurement",
  "job_id": "f2b1a0c4-1111-4000-8000-0000000000aa",
  "source": "eagleview",
  "status": "completed",
  "squares": 31.4,
  "waste_percent": 12,
  "squares_with_waste": 35.17,
  "area_sqft": 3140,
  "predominant_pitch": "7/12",
  "stories": 2,
  "ridge_lf": 64,
  "hip_lf": 88,
  "valley_lf": 22,
  "eave_lf": 180,
  "rake_lf": 46,
  "drip_edge_lf": 226,
  "step_flashing_lf": 18,
  "flashing_lf": 12,
  "pitch_breakdown": null,
  "created_at": "2026-09-20T15:00:00.000Z",
  "url": "https://app.hailmate.ai/job/f2b1a0c4-1111-4000-8000-0000000000aa"
}

CarrierScope

Fields

  • idstringuuid
  • objectstringalways "carrier_scope"
  • job_idstringuuid
  • statusstring
    processingcompletedfailed
  • kindstring | null
  • carrierstring | null
  • claim_numberstring | null
  • policy_numberstring | null
  • adjuster_namestring | null
  • date_of_lossstring | null
  • total_rcvnumber | null
  • total_acvnumber | null
  • depreciationnumber | null
  • deductiblenumber | null
  • net_claimnumber | null
  • tax_ratenumber | null
  • line_item_countinteger | null
  • revises_scope_idstring | nulluuid
  • source_file_idstring | nulluuid
  • created_atstringdate-time
  • urlstringuri
  • lines_totalnumber | null

    One carrier estimate only. What the lines add up to, every dollar once. Use this, not a sum of every line's total: a line's total often already holds its tax.

  • line_itemsarray of object

    One carrier estimate only. kind: item (work), tax, op (overhead & profit), summary. counted_in_total: whether the line is part of lines_total.

  • line_items[].namestring | null
  • line_items[].codestring | null
  • line_items[].quantitynumber | null
  • line_items[].unitstring | null
  • line_items[].unit_pricenumber | null
  • line_items[].totalnumber | null
  • line_items[].kindstring | null
    itemtaxopsummary
  • line_items[].counted_in_totalboolean | null
CarrierScope object
{
  "id": "5e6f7081-5555-4000-8000-0000000000e5",
  "object": "carrier_scope",
  "job_id": "f2b1a0c4-1111-4000-8000-0000000000aa",
  "status": "completed",
  "kind": "initial",
  "carrier": "Example Mutual",
  "claim_number": "CLM-88213",
  "policy_number": null,
  "adjuster_name": "Pat Lee",
  "date_of_loss": "2026-09-12",
  "total_rcv": 24380.5,
  "total_acv": 19240,
  "depreciation": 5140.5,
  "deductible": 2500,
  "net_claim": 16740,
  "tax_rate": 8.25,
  "line_item_count": 38,
  "revises_scope_id": null,
  "source_file_id": null,
  "created_at": "2026-09-21T15:00:00.000Z",
  "url": "https://app.hailmate.ai/job/f2b1a0c4-1111-4000-8000-0000000000aa",
  "lines_total": 24380.5,
  "line_items": [
    {
      "name": "Remove 3 tab shingles",
      "code": "RFG 220",
      "quantity": 31.4,
      "unit": "SQ",
      "unit_price": 61.2,
      "total": 1921.68,
      "kind": "item",
      "counted_in_total": true
    }
  ]
}

Supplement

Fields

  • idstringuuid
  • objectstringalways "supplement"
  • job_idstringuuid
  • roundinteger
  • statusstring
    draftsentopenedrepliedclosed
  • outcomestring | null
    approvedpartialdenied
  • amount_requestednumber | null
  • amount_approvednumber | null
  • item_countinteger | null
  • sourcestring

    manual (logged) or engine (built in HailMate).

  • carrier_scope_idstring | nulluuid
  • sent_atstring | nulldate-time
  • replied_atstring | nulldate-time
  • closed_atstring | nulldate-time
  • notesstring | null
  • created_atstringdate-time
  • updated_atstringdate-time
  • urlstringuri
Supplement object
{
  "id": "6f708192-6666-4000-8000-0000000000f6",
  "object": "supplement",
  "job_id": "f2b1a0c4-1111-4000-8000-0000000000aa",
  "round": 1,
  "status": "closed",
  "outcome": "partial",
  "amount_requested": 3100,
  "amount_approved": 2400,
  "item_count": 0,
  "source": "manual",
  "carrier_scope_id": null,
  "sent_at": "2026-10-01T18:00:00.000Z",
  "replied_at": null,
  "closed_at": "2026-10-09T15:00:00.000Z",
  "notes": null,
  "created_at": "2026-10-01T18:00:00.000Z",
  "updated_at": "2026-10-09T15:00:00.000Z",
  "url": "https://app.hailmate.ai/job/f2b1a0c4-1111-4000-8000-0000000000aa"
}

Refund

Fields

  • amountnumberRequired

    The amount given back (positive; it is stored negative).

  • date_receivedstringdate

    Default: today.

  • notesstring
Refund object
{
  "amount": 0,
  "date_received": "2026-09-16",
  "notes": "string"
}

Product

A price-book item — what estimate lines are priced from.

Fields

  • idstringuuid
  • objectstringalways "product"
  • namestring
  • descriptionstring | null
  • skustring | null
  • unitstring | null
  • pricenumber | null

    What you charge per unit.

  • costnumber | null

    What it costs you per unit.

  • categorystring | null
  • kindstring
    regularupgrade
  • measurement_basisstring | null

    Which roof measurement drives its quantity (squares, ridge_lf…).

  • coverage_per_unitnumber | null
  • waste_percentnumber | null
  • activeboolean
  • created_atstringdate-time
  • updated_atstringdate-time
Product object
{
  "id": "8d9654e8-e5cc-474e-a6e7-06ae135422e4",
  "object": "product",
  "name": "Ridge vent",
  "description": null,
  "sku": "RV-20",
  "unit": "lf",
  "price": 8.5,
  "cost": 4.1,
  "category": "Ventilation",
  "kind": "regular",
  "measurement_basis": "ridge_lf",
  "coverage_per_unit": null,
  "waste_percent": 10,
  "active": true,
  "created_at": "2026-10-01T15:00:00.000Z",
  "updated_at": "2026-10-01T15:00:00.000Z"
}

Note

Notes on a job's timeline.

Fields

  • idstringuuid
  • objectstringalways "note"
  • job_idstringuuid
  • contentstring
  • author_idstring | nulluuid

    Null for a note written through the API.

  • author_namestring | null
  • created_atstringdate-time
  • updated_atstringdate-time
  • urlstringuri
Note object
{
  "id": "3c8b1a07-6666-4000-8000-0000000000b4",
  "object": "note",
  "job_id": "f2b1a0c4-1111-4000-8000-0000000000aa",
  "content": "Adjuster meeting moved to Thursday 10am. Homeowner will be home.",
  "author_id": "5d0e1c2b-7777-4000-8000-0000000000ab",
  "author_name": "Sam Carter",
  "created_at": "2026-09-27T14:20:00.000Z",
  "updated_at": "2026-09-27T14:20:00.000Z",
  "url": "https://app.hailmate.ai/job/f2b1a0c4-1111-4000-8000-0000000000aa"
}

Activity

One entry on a job's timeline.

Fields

  • idstringuuid
  • objectstringalways "activity"
  • job_idstringuuid
  • typestring

    note, call, email, meeting, status_change, stage_change, file_upload, task_created, task_completed, mention, invoice_change

  • titlestring | null
  • descriptionstring | null
  • author_idstring | nulluuid
  • author_namestring | null
  • created_atstringdate-time
  • urlstringuri
Activity object
{
  "id": "9a8b7c6d-1111-4000-8000-000000000099",
  "object": "activity",
  "job_id": "f2b1a0c4-1111-4000-8000-0000000000aa",
  "type": "stage_change",
  "title": "Stage changed from inspection_scheduled to claim_filed",
  "description": null,
  "author_id": "5d0e1c2b-7777-4000-8000-0000000000ab",
  "author_name": "Sam Carter",
  "created_at": "2026-09-27T14:20:00.000Z",
  "url": "https://app.hailmate.ai/job/f2b1a0c4-1111-4000-8000-0000000000aa"
}

JobPerson

Fields

  • idstringuuid
  • objectstringalways "job_person"
  • job_idstringuuid
  • contact_idstringuuid
  • rolestring
    contractorsubcontractorinstall_crewinspectormortgage_company
  • namestring | null
  • companystring | null
  • emailstring | null
  • phonestring | null
  • created_atstringdate-time
  • urlstring | nulluri
JobPerson object
{
  "id": "1a2b3c4d-1111-4000-8000-0000000000b1",
  "object": "job_person",
  "job_id": "f2b1a0c4-1111-4000-8000-0000000000aa",
  "contact_id": "2b3c4d5e-2222-4000-8000-0000000000b2",
  "role": "install_crew",
  "name": "Ace Install",
  "company": "Ace Install",
  "email": "crew@example.com",
  "phone": "(972) 555-0177",
  "created_at": "2026-10-01T15:00:00.000Z",
  "url": "https://app.hailmate.ai/contact/2b3c4d5e-2222-4000-8000-0000000000b2"
}

JobChange

One change to a job, recorded by HailMate (never written or edited by hand).

Fields

  • objectstringalways "job_change"
  • activity_idstringuuid

    The timeline line this change is on (one save can change several fields).

  • job_idstringuuid
  • job_numberstring | null

    GET /job_history only.

  • job_namestring | null

    GET /job_history only.

  • changed_atstringdate-time
  • kindstring
    roleteamfieldstagecreatedarchived
  • fieldstring | null

    sales_rep, canvasser, project_manager; a job field (job_name, job_number, lead_source, found_by, final_amount …); stage; assignees.

  • labelstring | null

    In words: "Sales rep", "Job name", "Stage".

  • fromarray of any | null

    The value before: a teammate's id for a role, the stored value for a field, a stage key.

  • toarray of any | null

    The value after (for created, what the job started with).

  • from_labelstring | null

    The value before in words: a name kept as it was, "$10,000", "Inspection Scheduled".

  • to_labelstring | null
  • changed_by_idstring | nulluuid
  • changed_by_namestring | null
  • viastring
    appapiautomationsystem
  • linestring | null

    The timeline line it is on

JobChange object
{
  "object": "job_change",
  "activity_id": "6f1c2b8e-0000-4000-8000-000000000001",
  "job_id": "0b5d9f2a-0000-4000-8000-000000000002",
  "job_number": "COL-0154",
  "job_name": "Smith reroof",
  "changed_at": "2026-11-19T15:04:00Z",
  "kind": "role",
  "field": "canvasser",
  "label": "Canvasser",
  "from": "9a8b7c6d-0000-4000-8000-000000000003",
  "to": "1a2b3c4d-0000-4000-8000-000000000004",
  "from_label": "Joe Smith",
  "to_label": "Ann Lee",
  "changed_by_id": "5e6f7a8b-0000-4000-8000-000000000005",
  "changed_by_name": "Caroline Ross",
  "via": "app",
  "line": "Canvasser changed from Joe Smith to Ann Lee, by Caroline Ross"
}

File

Photos and documents on a job.

Fields

  • idstringuuid
  • objectstringalways "file"
  • job_idstring | nulluuid
  • namestring
  • categorystring
    photodocumentscopeestimatecontractother
  • mime_typestring | null
  • is_photoboolean
  • is_videoboolean
  • size_bytesinteger | null
  • descriptionstring | null

    The caption.

  • tagsarray of string
  • latitudenumber | null

    Where a photo was taken.

  • longitudenumber | null
  • taken_atstring | nulldate-time
  • uploaded_by_idstring | nulluuid
  • uploaded_by_namestring | null
  • download_urlstringuri
  • created_atstringdate-time
  • urlstring | nulluri
File object
{
  "id": "7e2d9c40-8888-4000-8000-0000000000a5",
  "object": "file",
  "job_id": "f2b1a0c4-1111-4000-8000-0000000000aa",
  "name": "north-slope-hits.jpg",
  "category": "photo",
  "mime_type": "image/jpeg",
  "is_photo": true,
  "is_video": false,
  "size_bytes": 1532410,
  "description": "Hail hits on the north slope, chalked",
  "tags": [
    "damage",
    "north slope"
  ],
  "latitude": 33.0726,
  "longitude": -96.7512,
  "taken_at": "2026-09-16T15:12:08.000Z",
  "uploaded_by_id": "5d0e1c2b-7777-4000-8000-0000000000ab",
  "uploaded_by_name": "Sam Carter",
  "download_url": "https://files.example-cdn.com/jobs/f2b1a0c4/north-slope-hits.jpg",
  "created_at": "2026-09-16T15:12:40.000Z",
  "url": "https://app.hailmate.ai/job/f2b1a0c4-1111-4000-8000-0000000000aa"
}

KnockResult

The outcome a rep recorded at a door.

A string, one of:

interestednot_interestedcontactedno_answerdoor_hangerfollow_upappointment_scheduleddont_knockrenterno_damagecash_quotelost

Pin

Door knocks — pins on the canvassing map with a knock result.

Fields

  • idstringuuid
  • objectstringalways "pin"
  • pin_typestring
    knockinspectionjob
  • knock_resultstring | null
    interestednot_interestedcontactedno_answerdoor_hangerfollow_upappointment_scheduleddont_knockrenterno_damagecash_quotelost
  • addressstring | null
  • citystring | null
  • statestring | null
  • postal_codestring | null
  • latitudenumber
  • longitudenumber
  • homeowner_namestring | null
  • homeowner_first_namestring | null
  • homeowner_last_namestring | null
  • phonestring | null
  • emailstring | null
  • notesstring | null
  • job_idstring | nulluuid

    Set once the pin became a job.

  • created_by_idstringuuid
  • created_by_namestring | null
  • created_atstringdate-time
  • updated_atstringdate-time
  • map_urlstring | nulluri
  • urlstringuri
Pin object
{
  "id": "2b6f4e18-9999-4000-8000-0000000000d6",
  "object": "pin",
  "pin_type": "knock",
  "knock_result": "interested",
  "address": "1812 Cedar Ridge Dr",
  "city": "Plano",
  "state": "TX",
  "postal_code": "75024",
  "latitude": 33.0731,
  "longitude": -96.7519,
  "homeowner_name": "Chris Lane",
  "homeowner_first_name": "Chris",
  "homeowner_last_name": "Lane",
  "phone": "(972) 555-0193",
  "email": null,
  "notes": "Wants an inspection Saturday morning",
  "job_id": null,
  "created_by_id": "5d0e1c2b-7777-4000-8000-0000000000ab",
  "created_by_name": "Sam Carter",
  "created_at": "2026-09-27T17:45:00.000Z",
  "updated_at": "2026-09-27T17:45:00.000Z",
  "map_url": "https://www.google.com/maps?q=33.0731,-96.7519",
  "url": "https://app.hailmate.ai/canvassing"
}

LineItemInput

Fields

  • namestringRequired
  • descriptionstring
  • quantitynumber

    At least 0 · Default 1

  • unitstring

    sq, lf, ea…

  • unit_pricenumber

    Required on an invoice line. Negative on an invoice is a credit.

  • taxableboolean

    Invoices only.

    Default true

LineItemInput object
{
  "name": "string",
  "description": "string",
  "quantity": 1,
  "unit": "string",
  "unit_price": 0,
  "taxable": true
}

EstimateTemplate

Fields

  • idstringuuid
  • objectstringalways "estimate_template"
  • namestring
  • template_numberstring | null
  • created_atstringdate-time
  • updated_atstringdate-time
EstimateTemplate object
{
  "id": "7a1c9e02-2222-4000-8000-0000000000c3",
  "object": "estimate_template",
  "name": "Insurance roof replacement",
  "template_number": "TPL-0003",
  "created_at": "2026-08-30T15:00:00.000Z",
  "updated_at": "2026-09-20T18:30:00.000Z"
}

EstimateTemplateList

Fields

  • objectstringalways "list"
  • dataarray of EstimateTemplate
  • has_morebooleanalways "false"
  • next_cursornull
EstimateTemplateList object
{
  "object": "list",
  "data": [
    {
      "id": "7a1c9e02-2222-4000-8000-0000000000c3",
      "object": "estimate_template",
      "name": "Insurance roof replacement",
      "template_number": "TPL-0003",
      "created_at": "2026-08-30T15:00:00.000Z",
      "updated_at": "2026-09-20T18:30:00.000Z"
    }
  ],
  "has_more": false,
  "next_cursor": null
}

OAuthTokenRequest

Fields

  • grant_typestringRequired
    authorization_coderefresh_token
  • codestring

    For authorization_code.

  • redirect_uristringuri

    For authorization_code — the same address the person was sent back to.

  • refresh_tokenstring

    For refresh_token.

  • client_idstringRequired
  • client_secretstringRequired
OAuthTokenRequest object
{
  "grant_type": "authorization_code",
  "code": "string",
  "redirect_uri": "https://app.hailmate.ai/…",
  "refresh_token": "string",
  "client_id": "string",
  "client_secret": "string"
}

OAuthRevokeRequest

Fields

  • tokenstringRequired
  • client_idstringRequired
  • client_secretstringRequired
OAuthRevokeRequest object
{
  "token": "string",
  "client_id": "string",
  "client_secret": "string"
}

OAuthToken

Fields

  • access_tokenstring

    hm_oat_… — send as Authorization: Bearer.

  • token_typestringalways "Bearer"
  • expires_ininteger

    Seconds — an hour.

  • refresh_tokenstring

    hm_ort_… — keep it secret; it does not change.

  • scopestring
    readwrite
  • workspace_idstringuuid
  • workspacestring | null

    The company that was connected.

OAuthToken object
{
  "access_token": "hm_oat_1q2w3e4r5t6y7u8i9o0p1a2s3d4f5g6h7j8k9l0z",
  "token_type": "Bearer",
  "expires_in": 3600,
  "refresh_token": "hm_ort_8d2k6m1q9x4w7c3t0r5p6n2j8h1g4f7d3s9a2l6e",
  "scope": "write",
  "workspace_id": "5f0c2a8e-1b3d-4c7a-9e21-7a3b8d4c6e10",
  "workspace": "Ridgeline Roofing"
}

OAuthError

Fields

  • errorstring
    invalid_requestinvalid_clientinvalid_grantunsupported_grant_typeserver_error
  • error_descriptionstring
OAuthError object
{
  "error": "invalid_grant",
  "error_description": "That code has expired. Start the connection again."
}

StormList

Every property under hail of a chosen size, with the owner of record (read only).

Fields

  • idstringuuid
  • objectstringalways "storm_list"
  • namestring | null
  • statusstring | null
    buildingreadypartialfailed
  • sourcestring | null
    manualauto
  • window_fromstring | nulldate
  • window_tostring | nulldate
  • min_size_innumber | null
  • area_kindstring | null
  • territory_idstring | nulluuid
  • clipped_area_sq_minumber | null
  • property_capinteger | null
  • property_countinteger | null
  • skipped_duplicatesinteger | null
  • dedupe_daysinteger | null
  • credits_spentinteger | null
  • total_availableinteger | null
  • storm_datestring | nulldate
  • built_atstring | nulldate-time
  • created_atstringdate-time
  • updated_atstringdate-time
  • urlstringuri
StormList object
{
  "id": "e5a1c7d9-aaaa-4000-8000-0000000000e7",
  "object": "storm_list",
  "name": "Plano 1.25″+ — Sep 12",
  "status": "ready",
  "source": "manual",
  "window_from": "2026-09-12",
  "window_to": "2026-09-12",
  "min_size_in": 1.25,
  "area_kind": "drawn",
  "territory_id": null,
  "clipped_area_sq_mi": 4.2,
  "property_cap": 1000,
  "property_count": 412,
  "skipped_duplicates": 18,
  "dedupe_days": 90,
  "credits_spent": 412,
  "total_available": 430,
  "storm_date": "2026-09-12",
  "built_at": "2026-09-13T13:04:00.000Z",
  "created_at": "2026-09-13T13:02:00.000Z",
  "updated_at": "2026-09-13T13:04:00.000Z",
  "url": "https://app.hailmate.ai/canvassing/lists/e5a1c7d9-aaaa-4000-8000-0000000000e7"
}

StormListProperty

One property on a storm list, with the owner of record and the hail measured at that roof.

Fields

  • idstringuuid
  • objectstringalways "storm_list_property"
  • storm_list_idstringuuid
  • addressstring | null
  • citystring | null
  • statestring | null
  • zipstring | null
  • owner_namestring | null
  • owner_occupiedboolean | null

    Null when the county record did not say.

  • mailing_addressstring | null
  • mailing_citystring | null
  • mailing_statestring | null
  • mailing_zipstring | null
  • mail_deliverableboolean

    Our judgement — NOT a CASS or NCOA result.

  • mail_exclude_reasonstring | null
  • hail_size_innumber | null
  • hail_event_datestring | nulldate
  • nearest_report_minumber | null
  • nearest_report_size_innumber | null
  • year_builtinteger | null
  • property_usestring | null
  • is_residentialboolean | null
  • latitudenumber | null
  • longitudenumber | null
  • created_atstringdate-time
StormListProperty object
{
  "id": "d4b3a2c1-bbbb-4000-8000-0000000000f8",
  "object": "storm_list_property",
  "storm_list_id": "e5a1c7d9-aaaa-4000-8000-0000000000e7",
  "address": "1804 Cedar Ridge Dr",
  "city": "Plano",
  "state": "TX",
  "zip": "75024",
  "owner_name": "Dana Reed",
  "owner_occupied": true,
  "mailing_address": "1804 Cedar Ridge Dr",
  "mailing_city": "Plano",
  "mailing_state": "TX",
  "mailing_zip": "75024",
  "mail_deliverable": true,
  "mail_exclude_reason": null,
  "hail_size_in": 1.5,
  "hail_event_date": "2026-09-12",
  "nearest_report_mi": 1.8,
  "nearest_report_size_in": 1.75,
  "year_built": 2004,
  "property_use": "Single family",
  "is_residential": true,
  "latitude": 33.0726,
  "longitude": -96.7512,
  "created_at": "2026-09-13T13:04:00.000Z"
}

HailEvent

One hail day at the address.

Fields

  • datestringdate
  • size_innumber | null

    The size HailMate stands behind for this day at this address.

  • confidencestring | null
    confirmedlikelyradar
  • confirmed_by_ground_reportboolean
  • radar_estimated_size_innumber | null
  • severe_hail_probabilityinteger | null

    Percent.

  • ground_report_size_innumber | null
  • ground_report_distance_minumber | null
  • ground_report_countinteger
HailEvent object
{
  "date": "2026-09-12",
  "size_in": 1.5,
  "confidence": "confirmed",
  "confirmed_by_ground_report": true,
  "radar_estimated_size_in": 1.5,
  "severe_hail_probability": 80,
  "ground_report_size_in": 1.75,
  "ground_report_distance_mi": 1.8,
  "ground_report_count": 3
}

HailReport

Hail and damaging-wind history at an address.

Fields

  • objectstringalways "hail_report"
  • addressstring | null

    The address as it was found.

  • latitudenumber
  • longitudenumber
  • sincestringdate
  • hail_day_countinteger
  • largest_hail_innumber | null
  • last_hail_datestring | nulldate
  • hail_eventsarray of HailEvent
  • wind_eventsarray of object
  • wind_events[].datestringdate
  • wind_events[].max_gust_mphnumber | null

    Null when the report was damage with no measured gust.

HailReport object
{
  "object": "hail_report",
  "address": "1804 Cedar Ridge Dr, Plano, TX 75024, USA",
  "latitude": 33.0198,
  "longitude": -96.6989,
  "since": "2021-09-28",
  "hail_day_count": 2,
  "largest_hail_in": 1.5,
  "last_hail_date": "2025-03-25",
  "hail_events": [
    {
      "date": "2025-03-25",
      "size_in": 1.5,
      "confidence": "confirmed",
      "confirmed_by_ground_report": true,
      "radar_estimated_size_in": null,
      "severe_hail_probability": null,
      "ground_report_size_in": 1.5,
      "ground_report_distance_mi": 1.4,
      "ground_report_count": 11
    },
    {
      "date": "2024-05-28",
      "size_in": 1.5,
      "confidence": "likely",
      "confirmed_by_ground_report": false,
      "radar_estimated_size_in": 1.5,
      "severe_hail_probability": null,
      "ground_report_size_in": 1.25,
      "ground_report_distance_mi": 9,
      "ground_report_count": 1
    }
  ],
  "wind_events": [
    {
      "date": "2025-03-04",
      "max_gust_mph": 90
    }
  ]
}

PipelineStage

A column on one of your pipeline boards.

Fields

  • idstringuuid
  • objectstringalways "pipeline_stage"
  • pipeline_idstringuuid
  • keystring

    What you send and filter on.

  • labelstring

    What to show a person.

  • colorstring | null
  • orderinteger
  • is_completedboolean
  • is_lostboolean
PipelineStage object
{
  "id": "8a7b6c5d-cccc-4000-8000-000000000011",
  "object": "pipeline_stage",
  "pipeline_id": "1cf7d87b-7d99-4ba0-b277-0e88ac127e75",
  "key": "claim_approved",
  "label": "Claim Approved",
  "color": "#22c55e",
  "order": 6,
  "is_completed": false,
  "is_lost": false
}

SearchResult

Fields

  • objectstringalways "search"
  • querystring
  • jobsarray of Job
  • contactsarray of Contact
SearchResult object
{
  "object": "search",
  "query": "spring path",
  "jobs": [],
  "contacts": []
}

Pipeline

One of your pipeline boards, with its stages in board order.

Fields

  • idstringuuid
  • objectstringalways "pipeline"
  • namestring
  • is_defaultboolean
  • orderinteger | null
  • stagesarray of PipelineStage
Pipeline object
{
  "id": "1cf7d87b-7d99-4ba0-b277-0e88ac127e75",
  "object": "pipeline",
  "name": "Insurance",
  "is_default": true,
  "order": 0,
  "stages": [
    {
      "id": "8a7b6c5d-cccc-4000-8000-000000000010",
      "object": "pipeline_stage",
      "pipeline_id": "1cf7d87b-7d99-4ba0-b277-0e88ac127e75",
      "key": "lead",
      "label": "Lead",
      "order": 0,
      "is_completed": false,
      "is_lost": false
    },
    {
      "id": "8a7b6c5d-cccc-4000-8000-000000000011",
      "object": "pipeline_stage",
      "pipeline_id": "1cf7d87b-7d99-4ba0-b277-0e88ac127e75",
      "key": "claim_approved",
      "label": "Claim Approved",
      "order": 6,
      "is_completed": false,
      "is_lost": false
    }
  ]
}

User

Someone on your team.

Fields

  • idstringuuid
  • objectstringalways "user"
  • namestring | null
  • emailstring | null
  • rolestring
    owneradminmember

Returned by list your team

User object
{
  "id": "5d0e1c2b-7777-4000-8000-0000000000ab",
  "object": "user",
  "name": "Sam Carter",
  "email": "sam@ridgelineroofing.example",
  "role": "member"
}

EventDefinition

A webhook event and the filters it accepts, from GET /events.

Fields

  • eventstring
  • resourcestring
  • labelstring
  • descriptionstring
  • filtersarray of object
  • filters[].keystring
  • filters[].labelstring
  • filters[].kindstring
    stageuserpipelineenumboolean
  • filters[].valuesarray of string
EventDefinition object
{
  "event": "job.stage_changed",
  "resource": "job",
  "label": "Job Stage Changed",
  "description": "A job moved to a different stage on the board.",
  "filters": [
    {
      "key": "stage",
      "label": "Stage",
      "kind": "stage"
    },
    {
      "key": "previous_stage",
      "label": "Previous stage",
      "kind": "stage"
    },
    {
      "key": "job_type",
      "label": "Job type",
      "kind": "enum",
      "values": [
        "insurance",
        "retail"
      ]
    },
    {
      "key": "pipeline_id",
      "label": "Pipeline",
      "kind": "pipeline"
    }
  ]
}

Webhook

Subscribe a URL to events.

Fields

  • idstringuuid
  • objectstringalways "webhook"
  • eventstring

    An event name, or "*" for every event.

  • location_idstring | nulluuid

    The location it listens in; null when company_wide.

  • company_wideboolean

    Made by a company key with no location: it hears every location.

  • target_urlstringuri
  • descriptionstring | null
  • filtersobject | null
  • enabledboolean

    False when paused or switched off after failing.

  • created_atstringdate-time
  • disabled_atstring | nulldate-time
  • disabled_reasonstring | null

    Why it is off

  • failure_countinteger

    Failed deliveries in a row since it last worked.

  • last_delivery_atstring | nulldate-time
  • last_delivery_statusstring | null
Webhook object
{
  "id": "0f8c8c1b-dddd-4000-8000-000000000022",
  "object": "webhook",
  "event": "job.stage_changed",
  "location_id": "5f0c2a8e-1b3d-4c7a-9e21-7a3b8d4c6e10",
  "company_wide": false,
  "target_url": "https://hooks.zapier.com/hooks/standard/1234567/abcdef/",
  "description": "Slack: approved claims",
  "filters": {
    "stage": "claim_approved"
  },
  "enabled": true,
  "created_at": "2026-09-20T18:30:00.000Z",
  "disabled_at": null,
  "disabled_reason": null,
  "failure_count": 0,
  "last_delivery_at": "2026-10-12T14:02:11.000Z",
  "last_delivery_status": "delivered"
}

WebhookTest

Fields

  • objectstringalways "webhook_test"
  • webhook_idstringuuid
  • okboolean
  • statusinteger | null

    Your endpoint's HTTP status

  • responsestring

    The start of what your endpoint answered.

  • duration_msinteger
  • eventstring
  • payloadobject

    The exact body we posted.

WebhookTest object
{
  "object": "webhook_test",
  "webhook_id": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
  "ok": true,
  "status": 200,
  "response": "ok",
  "duration_ms": 182,
  "event": "job.created",
  "payload": {
    "event": "job.created",
    "data": {
      "id": "9e8d7c6b-5a49-4382-9170-6f5e4d3c2b1a"
    }
  }
}

WebhookDelivery

Fields

  • idstringuuid
  • objectstringalways "webhook_delivery"
  • webhook_idstringuuid
  • eventstring
  • resourcestring
  • resource_idstringuuid
  • statusstring
    pendingdeliveringdeliveredfailedskipped
  • attemptsinteger
  • next_attempt_atstring | nulldate-time

    When it goes next

  • response_statusinteger | null
  • last_errorstring | null
  • created_atstringdate-time
  • delivered_atstring | nulldate-time
  • payloadobject | null

    Only when reading one delivery by id.

WebhookDelivery object
{
  "id": "2b3c4d5e-6f70-4a81-9b92-a3b4c5d6e7f8",
  "object": "webhook_delivery",
  "webhook_id": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
  "event": "invoice.paid",
  "resource": "invoice",
  "resource_id": "6c2d3e4f-5061-4b72-8c83-9d94e5f60712",
  "status": "delivered",
  "attempts": 1,
  "next_attempt_at": null,
  "response_status": 200,
  "last_error": null,
  "created_at": "2026-11-18T15:04:05Z",
  "delivered_at": "2026-11-18T15:04:06Z",
  "payload": {
    "event": "invoice.paid",
    "data": {
      "id": "6c2d3e4f-5061-4b72-8c83-9d94e5f60712"
    }
  }
}

WebhookCreated

A webhook subscription as POST /webhooks returns it — the only API response that carries its secret.

Fields

  • idstringuuid
  • objectstringalways "webhook"
  • eventstring

    An event name, or "*" for every event.

  • location_idstring | nulluuid

    The location it listens in; null when company_wide.

  • company_wideboolean

    Made by a company key with no location: it hears every location.

  • target_urlstringuri
  • descriptionstring | null
  • filtersobject | null
  • enabledboolean

    False when paused or switched off after failing.

  • created_atstringdate-time
  • disabled_atstring | nulldate-time
  • disabled_reasonstring | null

    Why it is off

  • failure_countinteger

    Failed deliveries in a row since it last worked.

  • last_delivery_atstring | nulldate-time
  • last_delivery_statusstring | null
  • secretstring

    The signing secret. Returned ONCE.

WebhookCreated object
{
  "id": "0f8c8c1b-dddd-4000-8000-000000000022",
  "object": "webhook",
  "event": "job.stage_changed",
  "location_id": "5f0c2a8e-1b3d-4c7a-9e21-7a3b8d4c6e10",
  "company_wide": false,
  "target_url": "https://hooks.zapier.com/hooks/standard/1234567/abcdef/",
  "description": "Slack: approved claims",
  "filters": {
    "stage": "claim_approved"
  },
  "enabled": true,
  "created_at": "2026-09-20T18:30:00.000Z",
  "disabled_at": null,
  "disabled_reason": null,
  "failure_count": 0,
  "last_delivery_at": "2026-10-12T14:02:11.000Z",
  "last_delivery_status": "delivered",
  "secret": "whsec_3a2b1c5f…"
}

EventEnvelope

Every delivery is the record's own fields at the top level plus these. Dedupe on event_id: a retry or a resend carries the same one.

Fields

  • event_typestring
  • event_idstringuuid

    Also the X-HailMate-Delivery header.

  • event_atstringdate-time

    When the change happened.

  • event_workspace_idstringuuid

    The location (workspace) it happened in — for a company-wide webhook, whichever location it was.

  • event_locationstring | null

    That location's name, e.g. Cincinnati.

  • event_testboolean

    Present and true on a test send from Settings.

  • previous_stagestring | null

    job.stage_changed only.

  • previous_stage_labelstring | null

    job.stage_changed only.

  • changed_fieldsarray of string

    *.updated only — the public field names that changed.

  • previous_assigned_to_idstring | null

    job.assigned only.

  • previous_knock_resultstring | null

    pin.result_changed only.

EventEnvelope object
{
  "event_type": "job.stage_changed",
  "event_id": "2cb27b8c-4e1f-4a3b-9d2c-6f7e8a9b0c1d",
  "event_at": "2026-09-28T19:42:57.388Z",
  "event_workspace_id": "5f0c2a8e-1b3d-4c7a-9e21-7a3b8d4c6e10",
  "event_location": "Columbus",
  "previous_stage": "inspection_complete",
  "previous_stage_label": "Inspection Complete"
}