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
/pingThe cheapest authenticated call. Returns the workspace the key belongs to and what the key may do. /me is the same endpoint.
curl https://app.hailmate.ai/api/v1/ping \
-H "Authorization: Bearer $HAILMATE_API_KEY"const response = await fetch('https://app.hailmate.ai/api/v1/ping', {
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.get(
"https://app.hailmate.ai/api/v1/ping",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
)
response.raise_for_status()
data = response.json(){
"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
/locationsA 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.
curl https://app.hailmate.ai/api/v1/locations \
-H "Authorization: Bearer $HAILMATE_API_KEY"const response = await fetch('https://app.hailmate.ai/api/v1/locations', {
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.get(
"https://app.hailmate.ai/api/v1/locations",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
)
response.raise_for_status()
data = response.json(){
"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
/jobsNewest first. Archived jobs are left out unless you ask for them.
Query parameters
limitintegerPage size. Out-of-range values fall back to the default.
1 to 200 · Default
50cursorstringThe
next_cursorfrom the previous page, exactly as received. A cursor we did not issue is a 400.updated_sincestringdate-timeOnly records changed at or after this ISO date or date-time. The way to sync only what moved.
created_afterstringdate-timeOnly records created at or after this ISO date or date-time.
created_beforestringdate-timeOnly records created before this ISO date or date-time.
stagestringA stage
keyfrom/stages.pipeline_idstringuuidjob_typestringinsuranceretailassigned_tostringuuidA user id. Matches the primary assignee OR any co-assignee.
contact_idstringuuidJobs where this contact is the homeowner, the adjuster, or a secondary contact.
archivedstringOmitted, only live jobs.
truereturns archived jobs,anyreturns both.trueany
curl "https://app.hailmate.ai/api/v1/jobs?stage=claim_approved&limit=25" \
-H "Authorization: Bearer $HAILMATE_API_KEY"const response = await fetch('https://app.hailmate.ai/api/v1/jobs?stage=claim_approved&limit=25', {
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.get(
"https://app.hailmate.ai/api/v1/jobs",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
params={"stage": "claim_approved", "limit": "25"},
)
response.raise_for_status()
data = response.json(){
"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
/jobsOnly 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-KeystringAny 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
namestringRequiredjob_nameworks too.Up to 200 characters
addressstringRequiredproperty_addressworks too.Up to 300 characters
citystringstatestringA code or a name — "TX" or "Texas".
postal_codestringzipworks too.countystringjob_typestringinsuranceretailDefault
insurancestagestringA stage key or label. Defaults to the first stage of the default pipeline.
pipeline_idstringuuidhomeowner_idstringuuidadjuster_idstringuuidassigned_tostringuuidThe sales rep: a teammate's user id from
/users.sales_rep_idworks too.canvasser_idstringuuidThe canvasser (setter): who knocked the door or set the appointment.
setter_idworks too.project_manager_idstringuuidThe project manager who runs the build.
tradesarray of stringKeys of the company's trades list (roofing, gutters, siding…), at most 8; the first is the main one.
roof_squaresnumberRoof size in squares. Left out, a finished measurement fills it.
property_typestringresidentialcommercialroof_materialstringasphaltmetaltileflatotherlead_sourcestringprioritystringlownormalhighurgentinsurance_companystringclaim_numberstringpolicy_numberstringdate_of_lossstringdatemortgage_companystringfinancing_methodstringcashcheckcredit_cardfinancingotherrcv_amountnumberacv_amountnumberdeductiblenumbersupplements_amountnumberestimated_amountnumberfinal_amountnumbercontract_datestringdateinstallation_datestringdatedamage_typesarray of stringOr a comma-separated string.
tagsarray of stringOr a comma-separated string.
assignee_idsarray of stringuuidEvery rep on the job (user ids). assigned_to, if sent, is the primary.
secondary_contact_idsarray of stringuuidOther contacts on the job.
secondary_adjuster_idsarray of stringuuidMore adjusters (insurance jobs).
notesstringBecomes the first note on the job.
custom_fieldsobjectThe 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.
- 400
invalid_requestSomething in the request was wrong;fieldnames what. - 403
forbiddenA read-only key tried to change something. - 409
conflictA 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."
}'import { randomUUID } from 'node:crypto';
const response = await fetch('https://app.hailmate.ai/api/v1/jobs', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
'Content-Type': 'application/json',
'Idempotency-Key': randomUUID(),
},
body: JSON.stringify({
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.',
}),
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import uuid
import requests
response = requests.post(
"https://app.hailmate.ai/api/v1/jobs",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
"Idempotency-Key": str(uuid.uuid4()),
},
json={
"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.raise_for_status()
data = response.json(){
"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
/jobs/searchaddress 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
addressstringjob_numberstringclaim_numberstringnamestringcontact_idstringuuidlimitintegerPage size. Out-of-range values fall back to the default.
1 to 200 · Default
50
curl "https://app.hailmate.ai/api/v1/jobs/search?address=1804%20Cedar" \
-H "Authorization: Bearer $HAILMATE_API_KEY"const response = await fetch('https://app.hailmate.ai/api/v1/jobs/search?address=1804%20Cedar', {
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.get(
"https://app.hailmate.ai/api/v1/jobs/search",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
params={"address": "1804 Cedar"},
)
response.raise_for_status()
data = response.json(){
"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
/jobs/{id}curl https://app.hailmate.ai/api/v1/jobs/f2b1a0c4-1111-4000-8000-0000000000aa \
-H "Authorization: Bearer $HAILMATE_API_KEY"const response = await fetch('https://app.hailmate.ai/api/v1/jobs/f2b1a0c4-1111-4000-8000-0000000000aa', {
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.get(
"https://app.hailmate.ai/api/v1/jobs/f2b1a0c4-1111-4000-8000-0000000000aa",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
)
response.raise_for_status()
data = response.json(){
"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
/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-KeystringAny 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
namestringaddressstringcitystring | nullstatestring | nullpostal_codestring | nullcountystring | nulljob_typestringinsuranceretailstagestringpipeline_idstringuuidhomeowner_idstring | nulluuidadjuster_idstring | nulluuidassigned_tostring | nulluuidThe sales rep.
canvasser_idstring | nulluuidThe canvasser (setter). Null = nobody, on purpose: a door knock never fills it in again.
project_manager_idstring | nulluuidThe project manager.
lead_sourcestring | nullprioritystring | nulllownormalhighurgentinsurance_companystring | nullclaim_numberstring | nullpolicy_numberstring | nulldate_of_lossstring | nulldatemortgage_companystring | nullfinancing_methodstring | nullrcv_amountnumber | nullacv_amountnumber | nulldeductiblenumber | nullsupplements_amountnumber | nullestimated_amountnumber | nullfinal_amountnumber | nullcontract_datestring | nulldateinstallation_datestring | nulldatedamage_typesarray of string | nulltagsarray of string | nullarchivedbooleanlost_reasonstring | nullcancel_reasonstring | nullWhy a sold job was cancelled. Whether it is cancelled is HailMate's: it sold, then was lost.
Up to 200 characters
tradesarray of string | nullKeys of the company's trades list (roofing, gutters, siding…), at most 8; the first is the main one.
roof_squaresnumber | nullRoof size in squares. A size you send is kept; a measurement never overwrites it.
property_typestring | nullresidentialcommercialroof_materialstring | nullasphaltmetaltileflatotherassignee_idsarray of string | nulluuidEvery rep on the job, replacing the list. The primary (assigned_to) stays on it.
secondary_contact_idsarray of string | nulluuidsecondary_adjuster_idsarray of string | nulluuidcover_photo_file_idstring | nulluuidOne of this job's photos (from list_job_photos) to show as its cover; null removes it.
custom_fieldsobjectThe 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.
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"
}'const response = await fetch('https://app.hailmate.ai/api/v1/jobs/f2b1a0c4-1111-4000-8000-0000000000aa', {
method: 'PATCH',
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
stage: 'claim_approved',
rcv_amount: 24380.5,
assigned_to: '5d0e1c2b-7777-4000-8000-0000000000ab',
}),
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.patch(
"https://app.hailmate.ai/api/v1/jobs/f2b1a0c4-1111-4000-8000-0000000000aa",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
json={
"stage": "claim_approved",
"rcv_amount": 24380.5,
"assigned_to": "5d0e1c2b-7777-4000-8000-0000000000ab",
},
)
response.raise_for_status()
data = response.json(){
"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
/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-KeystringAny 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
curl -X DELETE https://app.hailmate.ai/api/v1/jobs/f2b1a0c4-1111-4000-8000-0000000000aa \
-H "Authorization: Bearer $HAILMATE_API_KEY"const response = await fetch('https://app.hailmate.ai/api/v1/jobs/f2b1a0c4-1111-4000-8000-0000000000aa', {
method: 'DELETE',
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.delete(
"https://app.hailmate.ai/api/v1/jobs/f2b1a0c4-1111-4000-8000-0000000000aa",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
)
response.raise_for_status()
data = response.json(){
"id": "f2b1a0c4-1111-4000-8000-0000000000aa",
"object": "job",
"deleted": true
}List a job's notes
/jobs/{id}/notesPath parameters
idstringuuidRequired
Query parameters
limitintegerPage size. Out-of-range values fall back to the default.
1 to 200 · Default
50cursorstringThe
next_cursorfrom the previous page, exactly as received. A cursor we did not issue is a 400.
curl "https://app.hailmate.ai/api/v1/jobs/f2b1a0c4-1111-4000-8000-0000000000aa/notes?limit=25" \
-H "Authorization: Bearer $HAILMATE_API_KEY"const response = await fetch('https://app.hailmate.ai/api/v1/jobs/f2b1a0c4-1111-4000-8000-0000000000aa/notes?limit=25', {
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.get(
"https://app.hailmate.ai/api/v1/jobs/f2b1a0c4-1111-4000-8000-0000000000aa/notes",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
params={"limit": "25"},
)
response.raise_for_status()
data = response.json(){
"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
/jobs/{id}/peoplecurl https://app.hailmate.ai/api/v1/jobs/f2b1a0c4-1111-4000-8000-0000000000aa/people \
-H "Authorization: Bearer $HAILMATE_API_KEY"const response = await fetch('https://app.hailmate.ai/api/v1/jobs/f2b1a0c4-1111-4000-8000-0000000000aa/people', {
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.get(
"https://app.hailmate.ai/api/v1/jobs/f2b1a0c4-1111-4000-8000-0000000000aa/people",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
)
response.raise_for_status()
data = response.json(){
"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
/jobs/{id}/peopleThe role defaults to the contact's own kind when that is a job role.
Path parameters
idstringuuidRequired
Headers
Idempotency-KeystringAny 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_idstringuuidRequiredrolestringcontractorsubcontractorinstall_crewinspectormortgage_company
Returns
201Added. A JobPerson object.
- 404
not_foundNo such record in this workspace. - 409
conflictA 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"
}'import { randomUUID } from 'node:crypto';
const response = await fetch('https://app.hailmate.ai/api/v1/jobs/f2b1a0c4-1111-4000-8000-0000000000aa/people', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
'Content-Type': 'application/json',
'Idempotency-Key': randomUUID(),
},
body: JSON.stringify({
contact_id: 'b7c2d3e4-4444-4000-8000-0000000000dd',
role: 'contractor',
}),
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import uuid
import requests
response = requests.post(
"https://app.hailmate.ai/api/v1/jobs/f2b1a0c4-1111-4000-8000-0000000000aa/people",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
"Idempotency-Key": str(uuid.uuid4()),
},
json={
"contact_id": "b7c2d3e4-4444-4000-8000-0000000000dd",
"role": "contractor",
},
)
response.raise_for_status()
data = response.json(){
"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
/jobs/{id}/people/{person_id}Path parameters
idstringuuidRequiredperson_idstringuuidRequired
Request bodyapplication/json
rolestringRequiredcontractorsubcontractorinstall_crewinspectormortgage_company
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"
}'const response = await fetch('https://app.hailmate.ai/api/v1/jobs/f2b1a0c4-1111-4000-8000-0000000000aa/people/f2b1a0c4-1111-4000-8000-0000000000aa', {
method: 'PATCH',
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
role: 'contractor',
}),
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.patch(
"https://app.hailmate.ai/api/v1/jobs/f2b1a0c4-1111-4000-8000-0000000000aa/people/f2b1a0c4-1111-4000-8000-0000000000aa",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
json={
"role": "contractor",
},
)
response.raise_for_status()
data = response.json(){
"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
/jobs/{id}/people/{person_id}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"const response = await fetch('https://app.hailmate.ai/api/v1/jobs/f2b1a0c4-1111-4000-8000-0000000000aa/people/f2b1a0c4-1111-4000-8000-0000000000aa', {
method: 'DELETE',
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.delete(
"https://app.hailmate.ai/api/v1/jobs/f2b1a0c4-1111-4000-8000-0000000000aa/people/f2b1a0c4-1111-4000-8000-0000000000aa",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
)
response.raise_for_status()
data = response.json(){
"id": "f2b1a0c4-1111-4000-8000-0000000000aa",
"object": "job",
"deleted": true
}Read a job's timeline
/jobs/{id}/timelineWhat happened on the job, newest first — stage moves, notes, files, tasks, invoice changes. Filter with ?type=stage_change.
Path parameters
idstringuuidRequired
Query parameters
limitintegerPage size. Out-of-range values fall back to the default.
1 to 200 · Default
50cursorstringThe
next_cursorfrom the previous page, exactly as received. A cursor we did not issue is a 400.typestring
curl "https://app.hailmate.ai/api/v1/jobs/f2b1a0c4-1111-4000-8000-0000000000aa/timeline?limit=25" \
-H "Authorization: Bearer $HAILMATE_API_KEY"const response = await fetch('https://app.hailmate.ai/api/v1/jobs/f2b1a0c4-1111-4000-8000-0000000000aa/timeline?limit=25', {
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.get(
"https://app.hailmate.ai/api/v1/jobs/f2b1a0c4-1111-4000-8000-0000000000aa/timeline",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
params={"limit": "25"},
)
response.raise_for_status()
data = response.json(){
"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)
/jobs/{id}/historyEvery 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
limitintegerPage size. Out-of-range values fall back to the default.
1 to 200 · Default
50cursorstringThe
next_cursorfrom the previous page, exactly as received. A cursor we did not issue is a 400.kindstringOnly these kinds, separated by commas: role (sales rep, canvasser, project manager), team, field, stage, created, archived.
fieldstringOnly these fields, separated by commas, for example
canvasser,found_byorjob_name,job_number.
curl "https://app.hailmate.ai/api/v1/jobs/f2b1a0c4-1111-4000-8000-0000000000aa/history?limit=25" \
-H "Authorization: Bearer $HAILMATE_API_KEY"const response = await fetch('https://app.hailmate.ai/api/v1/jobs/f2b1a0c4-1111-4000-8000-0000000000aa/history?limit=25', {
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.get(
"https://app.hailmate.ai/api/v1/jobs/f2b1a0c4-1111-4000-8000-0000000000aa/history",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
params={"limit": "25"},
)
response.raise_for_status()
data = response.json(){
"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
/jobs/{id}/filesPath parameters
idstringuuidRequired
Query parameters
limitintegerPage size. Out-of-range values fall back to the default.
1 to 200 · Default
50cursorstringThe
next_cursorfrom the previous page, exactly as received. A cursor we did not issue is a 400.categorystringphotodocumentscopeestimatecontractother
curl "https://app.hailmate.ai/api/v1/jobs/f2b1a0c4-1111-4000-8000-0000000000aa/files?limit=25" \
-H "Authorization: Bearer $HAILMATE_API_KEY"const response = await fetch('https://app.hailmate.ai/api/v1/jobs/f2b1a0c4-1111-4000-8000-0000000000aa/files?limit=25', {
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.get(
"https://app.hailmate.ai/api/v1/jobs/f2b1a0c4-1111-4000-8000-0000000000aa/files",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
params={"limit": "25"},
)
response.raise_for_status()
data = response.json(){
"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
/jobs/{id}/photos/jobs/{id}/files?category=photo, as its own path.
Path parameters
idstringuuidRequired
Query parameters
limitintegerPage size. Out-of-range values fall back to the default.
1 to 200 · Default
50cursorstringThe
next_cursorfrom the previous page, exactly as received. A cursor we did not issue is a 400.
curl "https://app.hailmate.ai/api/v1/jobs/f2b1a0c4-1111-4000-8000-0000000000aa/photos?limit=25" \
-H "Authorization: Bearer $HAILMATE_API_KEY"const response = await fetch('https://app.hailmate.ai/api/v1/jobs/f2b1a0c4-1111-4000-8000-0000000000aa/photos?limit=25', {
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.get(
"https://app.hailmate.ai/api/v1/jobs/f2b1a0c4-1111-4000-8000-0000000000aa/photos",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
params={"limit": "25"},
)
response.raise_for_status()
data = response.json(){
"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
/jobs/{id}/tasksPath parameters
idstringuuidRequired
Query parameters
limitintegerPage size. Out-of-range values fall back to the default.
1 to 200 · Default
50cursorstringThe
next_cursorfrom the previous page, exactly as received. A cursor we did not issue is a 400.
curl "https://app.hailmate.ai/api/v1/jobs/f2b1a0c4-1111-4000-8000-0000000000aa/tasks?limit=25" \
-H "Authorization: Bearer $HAILMATE_API_KEY"const response = await fetch('https://app.hailmate.ai/api/v1/jobs/f2b1a0c4-1111-4000-8000-0000000000aa/tasks?limit=25', {
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.get(
"https://app.hailmate.ai/api/v1/jobs/f2b1a0c4-1111-4000-8000-0000000000aa/tasks",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
params={"limit": "25"},
)
response.raise_for_status()
data = response.json(){
"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
/jobs/{id}/estimatesPath parameters
idstringuuidRequired
Query parameters
limitintegerPage size. Out-of-range values fall back to the default.
1 to 200 · Default
50cursorstringThe
next_cursorfrom the previous page, exactly as received. A cursor we did not issue is a 400.
curl "https://app.hailmate.ai/api/v1/jobs/f2b1a0c4-1111-4000-8000-0000000000aa/estimates?limit=25" \
-H "Authorization: Bearer $HAILMATE_API_KEY"const response = await fetch('https://app.hailmate.ai/api/v1/jobs/f2b1a0c4-1111-4000-8000-0000000000aa/estimates?limit=25', {
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.get(
"https://app.hailmate.ai/api/v1/jobs/f2b1a0c4-1111-4000-8000-0000000000aa/estimates",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
params={"limit": "25"},
)
response.raise_for_status()
data = response.json(){
"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
/jobs/{id}/invoicesPath parameters
idstringuuidRequired
Query parameters
limitintegerPage size. Out-of-range values fall back to the default.
1 to 200 · Default
50cursorstringThe
next_cursorfrom the previous page, exactly as received. A cursor we did not issue is a 400.
curl "https://app.hailmate.ai/api/v1/jobs/f2b1a0c4-1111-4000-8000-0000000000aa/invoices?limit=25" \
-H "Authorization: Bearer $HAILMATE_API_KEY"const response = await fetch('https://app.hailmate.ai/api/v1/jobs/f2b1a0c4-1111-4000-8000-0000000000aa/invoices?limit=25', {
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.get(
"https://app.hailmate.ai/api/v1/jobs/f2b1a0c4-1111-4000-8000-0000000000aa/invoices",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
params={"limit": "25"},
)
response.raise_for_status()
data = response.json(){
"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
/jobs/{id}/paymentsPath parameters
idstringuuidRequired
Query parameters
limitintegerPage size. Out-of-range values fall back to the default.
1 to 200 · Default
50cursorstringThe
next_cursorfrom the previous page, exactly as received. A cursor we did not issue is a 400.
curl "https://app.hailmate.ai/api/v1/jobs/f2b1a0c4-1111-4000-8000-0000000000aa/payments?limit=25" \
-H "Authorization: Bearer $HAILMATE_API_KEY"const response = await fetch('https://app.hailmate.ai/api/v1/jobs/f2b1a0c4-1111-4000-8000-0000000000aa/payments?limit=25', {
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.get(
"https://app.hailmate.ai/api/v1/jobs/f2b1a0c4-1111-4000-8000-0000000000aa/payments",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
params={"limit": "25"},
)
response.raise_for_status()
data = response.json(){
"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)
/job_historyThe 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
limitintegerPage size. Out-of-range values fall back to the default.
1 to 200 · Default
50cursorstringThe
next_cursorfrom the previous page, exactly as received. A cursor we did not issue is a 400.kindstringOnly these kinds, separated by commas: role (sales rep, canvasser, project manager), team, field, stage, created, archived.
fieldstringOnly these fields, separated by commas, for example
canvasser,found_byorjob_name,job_number.sincestringdate-timeOnly changes at or after this ISO date or date-time.
untilstringdate-timeOnly changes before this ISO date or date-time (not included).
curl "https://app.hailmate.ai/api/v1/job_history?limit=25" \
-H "Authorization: Bearer $HAILMATE_API_KEY"const response = await fetch('https://app.hailmate.ai/api/v1/job_history?limit=25', {
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.get(
"https://app.hailmate.ai/api/v1/job_history",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
params={"limit": "25"},
)
response.raise_for_status()
data = response.json(){
"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
/contactsQuery parameters
limitintegerPage size. Out-of-range values fall back to the default.
1 to 200 · Default
50cursorstringThe
next_cursorfrom the previous page, exactly as received. A cursor we did not issue is a 400.updated_sincestringdate-timeOnly records changed at or after this ISO date or date-time. The way to sync only what moved.
created_afterstringdate-timeOnly records created at or after this ISO date or date-time.
created_beforestringdate-timeOnly records created before this ISO date or date-time.
typestringhomeownercommercialadjustercontractorsubcontractorinstall_crewinspectormortgage_companyotherassigned_tostringuuid
curl "https://app.hailmate.ai/api/v1/contacts?limit=25" \
-H "Authorization: Bearer $HAILMATE_API_KEY"const response = await fetch('https://app.hailmate.ai/api/v1/contacts?limit=25', {
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.get(
"https://app.hailmate.ai/api/v1/contacts",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
params={"limit": "25"},
)
response.raise_for_status()
data = response.json(){
"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
/contactsAt 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-KeystringAny 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
namestringA full name, split into first and last when those are not sent.
first_namestringlast_namestringemailstringemailphonestringAny format.
phone_labelstringmobileofficehomeworkfaxotheradditional_phonesarray of objectUp to five more numbers: [{phone, label}].
additional_phones[].phonestringadditional_phones[].labelstringcompanystringtypestringhomeownercommercialadjustercontractorsubcontractorinstall_crewinspectormortgage_companyothertradesarray of stringaddressstringcitystringstatestringpostal_codestringnotesstringclaim_numberstringadjuster_typestringadjuster_extensionstringassigned_tostringuuidcustom_fieldsobjectThe 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.
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"
}'import { randomUUID } from 'node:crypto';
const response = await fetch('https://app.hailmate.ai/api/v1/contacts', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
'Content-Type': 'application/json',
'Idempotency-Key': randomUUID(),
},
body: JSON.stringify({
first_name: 'Dana',
last_name: 'Reed',
email: 'dana@example.com',
phone: '+19725550148',
address: '1804 Cedar Ridge Dr',
city: 'Plano',
state: 'TX',
postal_code: '75024',
}),
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import uuid
import requests
response = requests.post(
"https://app.hailmate.ai/api/v1/contacts",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
"Idempotency-Key": str(uuid.uuid4()),
},
json={
"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.raise_for_status()
data = response.json(){
"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
/contacts/searchTries 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
emailstringphonestringnamestringlimitintegerPage size. Out-of-range values fall back to the default.
1 to 200 · Default
50
curl "https://app.hailmate.ai/api/v1/contacts/search?phone=972-555-0148" \
-H "Authorization: Bearer $HAILMATE_API_KEY"const response = await fetch('https://app.hailmate.ai/api/v1/contacts/search?phone=972-555-0148', {
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.get(
"https://app.hailmate.ai/api/v1/contacts/search",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
params={"phone": "972-555-0148"},
)
response.raise_for_status()
data = response.json(){
"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
/contacts/{id}curl https://app.hailmate.ai/api/v1/contacts/b7c2d3e4-4444-4000-8000-0000000000dd \
-H "Authorization: Bearer $HAILMATE_API_KEY"const response = await fetch('https://app.hailmate.ai/api/v1/contacts/b7c2d3e4-4444-4000-8000-0000000000dd', {
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.get(
"https://app.hailmate.ai/api/v1/contacts/b7c2d3e4-4444-4000-8000-0000000000dd",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
)
response.raise_for_status()
data = response.json(){
"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
/contacts/{id}Send only the fields to change; null clears a field.
Path parameters
idstringuuidRequired
Headers
Idempotency-KeystringAny 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 | nulllast_namestring | nullemailstring | nullphonestring | nullphone_labelstring | nulladditional_phonesarray of object | nullReplaces the list.
additional_phones[].phonestringadditional_phones[].labelstringcompanystring | nulltypestringhomeownercommercialadjustercontractorsubcontractorinstall_crewinspectormortgage_companyothertradesarray of string | nulladdressstring | nullcitystring | nullstatestring | nullpostal_codestring | nullnotesstring | nullclaim_numberstring | nulladjuster_typestring | nulladjuster_extensionstring | nullassigned_tostring | nulluuidcustom_fieldsobjectThe 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.
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."
}'const response = await fetch('https://app.hailmate.ai/api/v1/contacts/b7c2d3e4-4444-4000-8000-0000000000dd', {
method: 'PATCH',
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
email: 'dana.reed@example.com',
notes: 'Prefers texts after 5pm.',
}),
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.patch(
"https://app.hailmate.ai/api/v1/contacts/b7c2d3e4-4444-4000-8000-0000000000dd",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
json={
"email": "dana.reed@example.com",
"notes": "Prefers texts after 5pm.",
},
)
response.raise_for_status()
data = response.json(){
"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
/contacts/{id}Kept for 30 days under Settings → Recently Deleted. Fires contact.deleted.
curl -X DELETE https://app.hailmate.ai/api/v1/contacts/b7c2d3e4-4444-4000-8000-0000000000dd \
-H "Authorization: Bearer $HAILMATE_API_KEY"const response = await fetch('https://app.hailmate.ai/api/v1/contacts/b7c2d3e4-4444-4000-8000-0000000000dd', {
method: 'DELETE',
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.delete(
"https://app.hailmate.ai/api/v1/contacts/b7c2d3e4-4444-4000-8000-0000000000dd",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
)
response.raise_for_status()
data = response.json(){
"id": "f2b1a0c4-1111-4000-8000-0000000000aa",
"object": "job",
"deleted": true
}List a contact's jobs
/contacts/{id}/jobsEvery job this person is on — as homeowner, adjuster or secondary contact — archived included.
Path parameters
idstringuuidRequired
Query parameters
limitintegerPage size. Out-of-range values fall back to the default.
1 to 200 · Default
50cursorstringThe
next_cursorfrom the previous page, exactly as received. A cursor we did not issue is a 400.
curl "https://app.hailmate.ai/api/v1/contacts/b7c2d3e4-4444-4000-8000-0000000000dd/jobs?limit=25" \
-H "Authorization: Bearer $HAILMATE_API_KEY"const response = await fetch('https://app.hailmate.ai/api/v1/contacts/b7c2d3e4-4444-4000-8000-0000000000dd/jobs?limit=25', {
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.get(
"https://app.hailmate.ai/api/v1/contacts/b7c2d3e4-4444-4000-8000-0000000000dd/jobs",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
params={"limit": "25"},
)
response.raise_for_status()
data = response.json(){
"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
/tasks/appointments is the same list narrowed to appointments.
Query parameters
limitintegerPage size. Out-of-range values fall back to the default.
1 to 200 · Default
50cursorstringThe
next_cursorfrom the previous page, exactly as received. A cursor we did not issue is a 400.updated_sincestringdate-timeOnly records changed at or after this ISO date or date-time. The way to sync only what moved.
created_afterstringdate-timeOnly records created at or after this ISO date or date-time.
created_beforestringdate-timeOnly records created before this ISO date or date-time.
completedstringtruefalseappointmentsstringtruereturns appointments only.truecalendar_idstringOne calendar's events (an id from /calendars), or
nonefor the to-dos.job_idstringuuidcontact_idstringuuidassigned_tostringuuiddue_afterstringWall-clock, e.g.
2026-10-01or2026-10-01T08:00:00.due_beforestring
curl "https://app.hailmate.ai/api/v1/tasks?appointments=true&due_after=2026-10-01" \
-H "Authorization: Bearer $HAILMATE_API_KEY"const response = await fetch('https://app.hailmate.ai/api/v1/tasks?appointments=true&due_after=2026-10-01', {
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.get(
"https://app.hailmate.ai/api/v1/tasks",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
params={"appointments": "true", "due_after": "2026-10-01"},
)
response.raise_for_status()
data = response.json(){
"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
/tasksSet 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-KeystringAny 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
titlestringRequiredUp to 200 characters
descriptionstringdue_datestringA date or date-time. Any offset is dropped; the digits are kept.
end_datestringdateduration_minutesinteger15 to 480
prioritystringlownormalhighappointment_typestringinspectionadjuster_meetingbuild_daycustomer_reminderstringRemind the homeowner the day before.
nonesmsemailbothreminder_minutesinteger-105101530601201440calendar_idstringuuidThe calendar to put it on (from /calendars). Leave it out for a to-do; an appointment lands on its type's calendar.
locationstringWhere, for an event with no job.
Up to 500 characters
job_idstringuuidcontact_idstringuuidassigned_tostringuuidcompletedboolean
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"
}'import { randomUUID } from 'node:crypto';
const response = await fetch('https://app.hailmate.ai/api/v1/tasks', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
'Content-Type': 'application/json',
'Idempotency-Key': randomUUID(),
},
body: JSON.stringify({
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',
}),
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import uuid
import requests
response = requests.post(
"https://app.hailmate.ai/api/v1/tasks",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
"Idempotency-Key": str(uuid.uuid4()),
},
json={
"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.raise_for_status()
data = response.json(){
"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
/tasks/{id}curl https://app.hailmate.ai/api/v1/tasks/d4e5f6a7-5555-4000-8000-0000000000ee \
-H "Authorization: Bearer $HAILMATE_API_KEY"const response = await fetch('https://app.hailmate.ai/api/v1/tasks/d4e5f6a7-5555-4000-8000-0000000000ee', {
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.get(
"https://app.hailmate.ai/api/v1/tasks/d4e5f6a7-5555-4000-8000-0000000000ee",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
)
response.raise_for_status()
data = response.json(){
"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
/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-KeystringAny 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
titlestringdescriptionstring | nulldue_datestring | nullend_datestring | nulldateduration_minutesinteger | nullprioritystring | nullappointment_typestring | nulloutcomestring | nullcompletedno_showrescheduledcanceledcustomer_reminderstringreminder_minutesinteger | nullcalendar_idstring | nulluuidMove it to this calendar. Null makes it a to-do (an appointment goes back to its type's calendar).
locationstring | nullUp to 500 characters
job_idstring | nulluuidcontact_idstring | nulluuidassigned_tostring | nulluuidcompletedboolean
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"
}'const response = await fetch('https://app.hailmate.ai/api/v1/tasks/d4e5f6a7-5555-4000-8000-0000000000ee', {
method: 'PATCH',
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
completed: true,
outcome: 'completed',
}),
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.patch(
"https://app.hailmate.ai/api/v1/tasks/d4e5f6a7-5555-4000-8000-0000000000ee",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
json={
"completed": True,
"outcome": "completed",
},
)
response.raise_for_status()
data = response.json(){
"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"
}curl -X DELETE https://app.hailmate.ai/api/v1/tasks/d4e5f6a7-5555-4000-8000-0000000000ee \
-H "Authorization: Bearer $HAILMATE_API_KEY"const response = await fetch('https://app.hailmate.ai/api/v1/tasks/d4e5f6a7-5555-4000-8000-0000000000ee', {
method: 'DELETE',
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.delete(
"https://app.hailmate.ai/api/v1/tasks/d4e5f6a7-5555-4000-8000-0000000000ee",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
)
response.raise_for_status()
data = response.json(){
"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
/calendarsThe company's calendars in its order, each with who is on it. Put a task on one with its calendar_id.
curl https://app.hailmate.ai/api/v1/calendars \
-H "Authorization: Bearer $HAILMATE_API_KEY"const response = await fetch('https://app.hailmate.ai/api/v1/calendars', {
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.get(
"https://app.hailmate.ai/api/v1/calendars",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
)
response.raise_for_status()
data = response.json(){
"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
/calendarsName 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-KeystringAny 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
namestringRequiredUnique in the company
Up to 60 characters
colorstringbluegreenorangepurpleredtealpinkyellowgraylavendersagemembers_see_allbooleanShare it — every member reads every event on it. Off by default.
default_for_typesarray of stringAppointment types that land here when nobody picks a calendar. Claiming one takes it off any other calendar.
inspectionadjuster_meetingbuild_dayauto_join_rolesarray of stringWho joins it by themselves on joining the company. People already on the team are put on it with member_ids.
adminofficesalesproductioncrewpositioninteger1-based place in the list. Default is last.
At least 1
member_idsarray of stringuuidWho is on it (ids from /users).
Returns
201The calendar. A Calendar object.
- 400
invalid_requestSomething in the request was wrong;fieldnames what. - 403
forbiddenA read-only key tried to change something. - 409
conflictA 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
}'import { randomUUID } from 'node:crypto';
const response = await fetch('https://app.hailmate.ai/api/v1/calendars', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
'Content-Type': 'application/json',
'Idempotency-Key': randomUUID(),
},
body: JSON.stringify({
name: 'Service',
color: 'teal',
member_ids: ['5d0e1c2b-7777-4000-8000-0000000000ab'],
members_see_all: true,
}),
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import uuid
import requests
response = requests.post(
"https://app.hailmate.ai/api/v1/calendars",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
"Idempotency-Key": str(uuid.uuid4()),
},
json={
"name": "Service",
"color": "teal",
"member_ids": ["5d0e1c2b-7777-4000-8000-0000000000ab"],
"members_see_all": True,
},
)
response.raise_for_status()
data = response.json(){
"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
/calendars/{id}curl https://app.hailmate.ai/api/v1/calendars/00000000-0000-4000-8000-000000000000 \
-H "Authorization: Bearer $HAILMATE_API_KEY"const response = await fetch('https://app.hailmate.ai/api/v1/calendars/00000000-0000-4000-8000-000000000000', {
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.get(
"https://app.hailmate.ai/api/v1/calendars/00000000-0000-4000-8000-000000000000",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
)
response.raise_for_status()
data = response.json(){
"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
/calendars/{id}Send only what changes. member_ids is the whole list: people added join, people left out leave.
Path parameters
idstringuuidRequired
Headers
Idempotency-KeystringAny 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
namestringUp to 60 characters
colorstringbluegreenorangepurpleredtealpinkyellowgraylavendersagemembers_see_allbooleandefault_for_typesarray of stringinspectionadjuster_meetingbuild_dayauto_join_rolesarray of stringadminofficesalesproductioncrewpositionintegerAt least 1
member_idsarray of stringuuid
Returns
200The calendar, as it is now. A Calendar object.
- 400
invalid_requestSomething in the request was wrong;fieldnames what. - 403
forbiddenA read-only key tried to change something. - 404
not_foundNo such record in this workspace. - 409
conflictA 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"
]
}'const response = await fetch('https://app.hailmate.ai/api/v1/calendars/00000000-0000-4000-8000-000000000000', {
method: 'PATCH',
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
name: 'Builds',
members_see_all: true,
default_for_types: ['build_day'],
}),
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.patch(
"https://app.hailmate.ai/api/v1/calendars/00000000-0000-4000-8000-000000000000",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
json={
"name": "Builds",
"members_see_all": True,
"default_for_types": ["build_day"],
},
)
response.raise_for_status()
data = response.json(){
"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
/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_tostringuuidAnother calendar's id, from /calendars, to move its events to.
Headers
Idempotency-KeystringAny 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.
- 400
invalid_requestSomething in the request was wrong;fieldnames what. - 403
forbiddenA read-only key tried to change something. - 404
not_foundNo such record in this workspace. - 409
conflictA 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"const response = await fetch('https://app.hailmate.ai/api/v1/calendars/00000000-0000-4000-8000-000000000000', {
method: 'DELETE',
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.delete(
"https://app.hailmate.ai/api/v1/calendars/00000000-0000-4000-8000-000000000000",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
)
response.raise_for_status()
data = response.json(){
"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
/estimatesQuery parameters
limitintegerPage size. Out-of-range values fall back to the default.
1 to 200 · Default
50cursorstringThe
next_cursorfrom the previous page, exactly as received. A cursor we did not issue is a 400.updated_sincestringdate-timeOnly records changed at or after this ISO date or date-time. The way to sync only what moved.
created_afterstringdate-timeOnly records created at or after this ISO date or date-time.
created_beforestringdate-timeOnly records created before this ISO date or date-time.
statusstringdraftsentviewedsignedexpireddeclinedjob_idstringuuidestimate_numberstring
curl "https://app.hailmate.ai/api/v1/estimates?limit=25" \
-H "Authorization: Bearer $HAILMATE_API_KEY"const response = await fetch('https://app.hailmate.ai/api/v1/estimates?limit=25', {
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.get(
"https://app.hailmate.ai/api/v1/estimates",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
params={"limit": "25"},
)
response.raise_for_status()
data = response.json(){
"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
/estimatesMakes a draft estimate on a job, one of two ways — the same two the app offers:
- From one of your templates (
template_id, fromGET /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-KeystringAny 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_idstringuuidRequiredtemplate_idstringuuidOne of your templates. Leave out for your standard proposal.
titlestringpricenumberOne price for the whole job.
More than 0
valid_untilstringdateDefaults to your workspace's setting.
line_itemsarray of LineItemInputThe Scope of Work, without a template. Leave out for the standard checklist.
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
}'import { randomUUID } from 'node:crypto';
const response = await fetch('https://app.hailmate.ai/api/v1/estimates', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
'Content-Type': 'application/json',
'Idempotency-Key': randomUUID(),
},
body: JSON.stringify({
job_id: 'f2b1a0c4-1111-4000-8000-0000000000aa',
template_id: '7a1c9e02-2222-4000-8000-0000000000c3',
price: 14500,
}),
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import uuid
import requests
response = requests.post(
"https://app.hailmate.ai/api/v1/estimates",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
"Idempotency-Key": str(uuid.uuid4()),
},
json={
"job_id": "f2b1a0c4-1111-4000-8000-0000000000aa",
"template_id": "7a1c9e02-2222-4000-8000-0000000000c3",
"price": 14500,
},
)
response.raise_for_status()
data = response.json(){
"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
/estimates/{id}curl https://app.hailmate.ai/api/v1/estimates/a41c9e20-2222-4000-8000-0000000000e1 \
-H "Authorization: Bearer $HAILMATE_API_KEY"const response = await fetch('https://app.hailmate.ai/api/v1/estimates/a41c9e20-2222-4000-8000-0000000000e1', {
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.get(
"https://app.hailmate.ai/api/v1/estimates/a41c9e20-2222-4000-8000-0000000000e1",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
)
response.raise_for_status()
data = response.json(){
"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
/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-KeystringAny 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 | nullpricenumber | nullnulltakes the stated price off.More than 0
valid_untilstring | nulldate
Returns
200The estimate, as it is now. An Estimate object.
- 400
invalid_requestSomething in the request was wrong;fieldnames what. - 404
not_foundNo such record in this workspace. - 409
conflictA 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"
}'const response = await fetch('https://app.hailmate.ai/api/v1/estimates/a41c9e20-2222-4000-8000-0000000000e1', {
method: 'PATCH',
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
price: 15250,
valid_until: '2026-12-01',
}),
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.patch(
"https://app.hailmate.ai/api/v1/estimates/a41c9e20-2222-4000-8000-0000000000e1",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
json={
"price": 15250,
"valid_until": "2026-12-01",
},
)
response.raise_for_status()
data = response.json(){
"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
/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-KeystringAny 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.
- 404
not_foundNo such record in this workspace. - 409
conflictA 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"const response = await fetch('https://app.hailmate.ai/api/v1/estimates/a41c9e20-2222-4000-8000-0000000000e1', {
method: 'DELETE',
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.delete(
"https://app.hailmate.ai/api/v1/estimates/a41c9e20-2222-4000-8000-0000000000e1",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
)
response.raise_for_status()
data = response.json(){
"id": "f2b1a0c4-1111-4000-8000-0000000000aa",
"object": "job",
"deleted": true
}List an estimate's line items
/estimates/{id}/line_itemsPath parameters
idstringuuidRequired
Returns
200Every line, in order. A page of EstimateLine objects in data, with has_more and next_cursor.
- 404
not_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"const response = await fetch('https://app.hailmate.ai/api/v1/estimates/a41c9e20-2222-4000-8000-0000000000e1/line_items', {
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.get(
"https://app.hailmate.ai/api/v1/estimates/a41c9e20-2222-4000-8000-0000000000e1/line_items",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
)
response.raise_for_status()
data = response.json(){
"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
/estimates/{id}/line_itemsGoes 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-KeystringAny 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
namestringdescriptionstring | nullquantitynumberBillable quantity (after waste).
Default
1unitstringsq, lf, ea…
unit_pricenumberoptionstring | nullPackage key (good, better, best, or your own). Null = every package.
optionalbooleanAn optional upgrade the homeowner can add.
product_idstringuuidA price-book item.
section_idstringuuidA line-item block on this estimate.
Returns
201The new line. An EstimateLine object.
- 400
invalid_requestSomething in the request was wrong;fieldnames what. - 404
not_foundNo such record in this workspace. - 409
conflictA 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
}'import { randomUUID } from 'node:crypto';
const response = await fetch('https://app.hailmate.ai/api/v1/estimates/a41c9e20-2222-4000-8000-0000000000e1/line_items', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
'Content-Type': 'application/json',
'Idempotency-Key': randomUUID(),
},
body: JSON.stringify({
name: 'Ridge vent',
quantity: 40,
unit: 'lf',
unit_price: 8.5,
}),
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import uuid
import requests
response = requests.post(
"https://app.hailmate.ai/api/v1/estimates/a41c9e20-2222-4000-8000-0000000000e1/line_items",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
"Idempotency-Key": str(uuid.uuid4()),
},
json={
"name": "Ridge vent",
"quantity": 40,
"unit": "lf",
"unit_price": 8.5,
},
)
response.raise_for_status()
data = response.json(){
"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
/estimates/{id}/line_items/{line_id}Path parameters
idstringuuidRequiredline_idstringuuidRequired
Headers
Idempotency-KeystringAny 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
namestringdescriptionstring | nullquantitynumberunitstringunit_pricenumberoptionstring | nulloptionalbooleanproduct_idstring | nulluuid
Returns
200The line. An EstimateLine object.
- 404
not_foundNo such record in this workspace. - 409
conflictA 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
}'const response = await fetch('https://app.hailmate.ai/api/v1/estimates/a41c9e20-2222-4000-8000-0000000000e1/line_items/a41c9e20-2222-4000-8000-0000000000e1', {
method: 'PATCH',
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
quantity: 44,
}),
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.patch(
"https://app.hailmate.ai/api/v1/estimates/a41c9e20-2222-4000-8000-0000000000e1/line_items/a41c9e20-2222-4000-8000-0000000000e1",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
json={
"quantity": 44,
},
)
response.raise_for_status()
data = response.json(){
"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
/estimates/{id}/line_items/{line_id}Path parameters
idstringuuidRequiredline_idstringuuidRequired
Headers
Idempotency-KeystringAny 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.
- 404
not_foundNo such record in this workspace. - 409
conflictA 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"const response = await fetch('https://app.hailmate.ai/api/v1/estimates/a41c9e20-2222-4000-8000-0000000000e1/line_items/a41c9e20-2222-4000-8000-0000000000e1', {
method: 'DELETE',
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.delete(
"https://app.hailmate.ai/api/v1/estimates/a41c9e20-2222-4000-8000-0000000000e1/line_items/a41c9e20-2222-4000-8000-0000000000e1",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
)
response.raise_for_status()
data = response.json(){
"id": "f2b1a0c4-1111-4000-8000-0000000000aa",
"object": "job",
"deleted": true
}Send an estimate to the homeowner
/estimates/{id}/sendFOR 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-KeystringAny 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
methodstringemailtextDefault
emailcontact_idstringuuidWho it goes to. Default: the job's homeowner.
toarray of stringEmail: addresses. Text: one phone number. Overrides the contact's.
subjectstringEmail only.
messagestringYour words. A text gets the link added on the end.
from_user_idstringuuidThe teammate it is sent as. Default: whoever made the key or connected the app.
Returns
200The estimate, and the message that went out.
- 400
invalid_requestSomething in the request was wrong;fieldnames what. - 404
not_foundNo such record in this workspace. - 409
conflictA 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"
}'import { randomUUID } from 'node:crypto';
const response = await fetch('https://app.hailmate.ai/api/v1/estimates/a41c9e20-2222-4000-8000-0000000000e1/send', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
'Content-Type': 'application/json',
'Idempotency-Key': randomUUID(),
},
body: JSON.stringify({
method: 'email',
}),
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import uuid
import requests
response = requests.post(
"https://app.hailmate.ai/api/v1/estimates/a41c9e20-2222-4000-8000-0000000000e1/send",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
"Idempotency-Key": str(uuid.uuid4()),
},
json={
"method": "email",
},
)
response.raise_for_status()
data = response.json(){
"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
/estimate_templatesThe workspace's own templates, most recently changed first — what a "which template?" dropdown lists.
Query parameters
limitintegerPage 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.
- 401
unauthorizedThe 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"const response = await fetch('https://app.hailmate.ai/api/v1/estimate_templates?limit=25', {
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.get(
"https://app.hailmate.ai/api/v1/estimate_templates",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
params={"limit": "25"},
)
response.raise_for_status()
data = response.json(){
"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
/invoicesQuery parameters
limitintegerPage size. Out-of-range values fall back to the default.
1 to 200 · Default
50cursorstringThe
next_cursorfrom the previous page, exactly as received. A cursor we did not issue is a 400.updated_sincestringdate-timeOnly records changed at or after this ISO date or date-time. The way to sync only what moved.
created_afterstringdate-timeOnly records created at or after this ISO date or date-time.
created_beforestringdate-timeOnly records created before this ISO date or date-time.
statusstringdraftsentviewedpartially_paidpaidoverduevoidbad_debtjob_idstringuuidcontact_idstringuuidinvoice_numberstring
curl "https://app.hailmate.ai/api/v1/invoices?limit=25" \
-H "Authorization: Bearer $HAILMATE_API_KEY"const response = await fetch('https://app.hailmate.ai/api/v1/invoices?limit=25', {
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.get(
"https://app.hailmate.ai/api/v1/invoices",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
params={"limit": "25"},
)
response.raise_for_status()
data = response.json(){
"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
/invoicesMakes 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-KeystringAny 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_idstringuuidcontact_idstringuuidWho it bills.
estimate_idstringuuidtitlestringpurposestringclaim_scopedeductiblesupplementdepreciationcontractotherissue_datestringdateDefaults to today.
due_datestringdatetax_ratenumberA percent
0 to 100
discount_typestringamountpercentdiscount_valuenumberAt least 0
notesstringtermsstringallow_partial_paymentsboolean
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
}
]
}'import { randomUUID } from 'node:crypto';
const response = await fetch('https://app.hailmate.ai/api/v1/invoices', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
'Content-Type': 'application/json',
'Idempotency-Key': randomUUID(),
},
body: JSON.stringify({
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,
},
],
}),
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import uuid
import requests
response = requests.post(
"https://app.hailmate.ai/api/v1/invoices",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
"Idempotency-Key": str(uuid.uuid4()),
},
json={
"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.raise_for_status()
data = response.json(){
"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
/invoices/{id}curl https://app.hailmate.ai/api/v1/invoices/c90d7b31-3333-4000-8000-0000000000f2 \
-H "Authorization: Bearer $HAILMATE_API_KEY"const response = await fetch('https://app.hailmate.ai/api/v1/invoices/c90d7b31-3333-4000-8000-0000000000f2', {
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.get(
"https://app.hailmate.ai/api/v1/invoices/c90d7b31-3333-4000-8000-0000000000f2",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
)
response.raise_for_status()
data = response.json(){
"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
/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-KeystringAny 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 | nulluuidestimate_idstring | nulluuidtitlestring | nullpurposestring | nullclaim_scopedeductiblesupplementdepreciationcontractotherissue_datestring | nulldatedue_datestring | nulldateline_itemsarray of LineItemInputReplaces every line.
tax_ratenumber0 to 100
discount_typestringamountpercentdiscount_valuenumber | null0ornulltakes the discount off.At least 0
notesstring | nulltermsstring | nullallow_partial_paymentsboolean
Returns
200The invoice, as it is now. An Invoice object.
- 400
invalid_requestSomething in the request was wrong;fieldnames what. - 404
not_foundNo such record in this workspace. - 409
conflictA 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
}'const response = await fetch('https://app.hailmate.ai/api/v1/invoices/c90d7b31-3333-4000-8000-0000000000f2', {
method: 'PATCH',
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
due_date: '2026-10-20',
tax_rate: 8.25,
}),
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.patch(
"https://app.hailmate.ai/api/v1/invoices/c90d7b31-3333-4000-8000-0000000000f2",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
json={
"due_date": "2026-10-20",
"tax_rate": 8.25,
},
)
response.raise_for_status()
data = response.json(){
"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
/invoices/{id}Only a draft. A sent invoice is voided instead, so its history stays on the job.
Path parameters
idstringuuidRequired
Headers
Idempotency-KeystringAny 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.
- 404
not_foundNo such record in this workspace. - 409
conflictA 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"const response = await fetch('https://app.hailmate.ai/api/v1/invoices/c90d7b31-3333-4000-8000-0000000000f2', {
method: 'DELETE',
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.delete(
"https://app.hailmate.ai/api/v1/invoices/c90d7b31-3333-4000-8000-0000000000f2",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
)
response.raise_for_status()
data = response.json(){
"id": "c90d7b31-3333-4000-8000-0000000000f2",
"object": "invoice",
"deleted": true
}Mark an invoice sent
/invoices/{id}/mark_sentRecords 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-KeystringAny 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.
- 404
not_foundNo such record in this workspace. - 409
conflictA 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)"import { randomUUID } from 'node:crypto';
const response = await fetch('https://app.hailmate.ai/api/v1/invoices/c90d7b31-3333-4000-8000-0000000000f2/mark_sent', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
'Idempotency-Key': randomUUID(),
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import uuid
import requests
response = requests.post(
"https://app.hailmate.ai/api/v1/invoices/c90d7b31-3333-4000-8000-0000000000f2/mark_sent",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
"Idempotency-Key": str(uuid.uuid4()),
},
)
response.raise_for_status()
data = response.json(){
"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
/invoices/{id}/voidVoids the invoice. Voiding one that is already void answers with it, unchanged.
Path parameters
idstringuuidRequired
Headers
Idempotency-KeystringAny 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
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)"import { randomUUID } from 'node:crypto';
const response = await fetch('https://app.hailmate.ai/api/v1/invoices/c90d7b31-3333-4000-8000-0000000000f2/void', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
'Idempotency-Key': randomUUID(),
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import uuid
import requests
response = requests.post(
"https://app.hailmate.ai/api/v1/invoices/c90d7b31-3333-4000-8000-0000000000f2/void",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
"Idempotency-Key": str(uuid.uuid4()),
},
)
response.raise_for_status()
data = response.json(){
"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
/invoices/{id}/sendFOR 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-KeystringAny 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
methodstringemailtextDefault
emailcontact_idstringuuidWho it goes to. Default: the job's homeowner.
toarray of stringEmail: addresses. Text: one phone number. Overrides the contact's.
subjectstringEmail only.
messagestringYour words. A text gets the link added on the end.
from_user_idstringuuidThe teammate it is sent as. Default: whoever made the key or connected the app.
Returns
200The invoice, and the message that went out.
- 404
not_foundNo such record in this workspace. - 409
conflictA 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"
}'import { randomUUID } from 'node:crypto';
const response = await fetch('https://app.hailmate.ai/api/v1/invoices/c90d7b31-3333-4000-8000-0000000000f2/send', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
'Content-Type': 'application/json',
'Idempotency-Key': randomUUID(),
},
body: JSON.stringify({
method: 'email',
}),
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import uuid
import requests
response = requests.post(
"https://app.hailmate.ai/api/v1/invoices/c90d7b31-3333-4000-8000-0000000000f2/send",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
"Idempotency-Key": str(uuid.uuid4()),
},
json={
"method": "email",
},
)
response.raise_for_status()
data = response.json(){
"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
/invoices/{id}/write_offFor 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-KeystringAny 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.
- 404
not_foundNo such record in this workspace. - 409
conflictA 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)"import { randomUUID } from 'node:crypto';
const response = await fetch('https://app.hailmate.ai/api/v1/invoices/c90d7b31-3333-4000-8000-0000000000f2/write_off', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
'Idempotency-Key': randomUUID(),
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import uuid
import requests
response = requests.post(
"https://app.hailmate.ai/api/v1/invoices/c90d7b31-3333-4000-8000-0000000000f2/write_off",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
"Idempotency-Key": str(uuid.uuid4()),
},
)
response.raise_for_status()
data = response.json(){
"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
/invoices/{id}/reopenPath parameters
idstringuuidRequired
Headers
Idempotency-KeystringAny 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.
- 404
not_foundNo such record in this workspace. - 409
conflictA 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)"import { randomUUID } from 'node:crypto';
const response = await fetch('https://app.hailmate.ai/api/v1/invoices/c90d7b31-3333-4000-8000-0000000000f2/reopen', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
'Idempotency-Key': randomUUID(),
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import uuid
import requests
response = requests.post(
"https://app.hailmate.ai/api/v1/invoices/c90d7b31-3333-4000-8000-0000000000f2/reopen",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
"Idempotency-Key": str(uuid.uuid4()),
},
)
response.raise_for_status()
data = response.json(){
"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
/paymentsA refund is its own row with a negative amount, so summing amount gives the net.
Query parameters
limitintegerPage size. Out-of-range values fall back to the default.
1 to 200 · Default
50cursorstringThe
next_cursorfrom the previous page, exactly as received. A cursor we did not issue is a 400.updated_sincestringdate-timeOnly records changed at or after this ISO date or date-time. The way to sync only what moved.
created_afterstringdate-timeOnly records created at or after this ISO date or date-time.
created_beforestringdate-timeOnly records created before this ISO date or date-time.
job_idstringuuidinvoice_idstringuuidpayment_typestringacvdeductiblesupplementdepreciationretailother
curl "https://app.hailmate.ai/api/v1/payments?job_id=f2b1a0c4-1111-4000-8000-0000000000aa" \
-H "Authorization: Bearer $HAILMATE_API_KEY"const response = await fetch('https://app.hailmate.ai/api/v1/payments?job_id=f2b1a0c4-1111-4000-8000-0000000000aa', {
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.get(
"https://app.hailmate.ai/api/v1/payments",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
params={"job_id": "f2b1a0c4-1111-4000-8000-0000000000aa"},
)
response.raise_for_status()
data = response.json(){
"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
/paymentsRecords 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-KeystringAny 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_idstringuuidRequiredamountnumberRequiredMore than 0
invoice_idstringuuidAn invoice ON THIS JOB to apply it to. Never guessed.
payment_typestringacvdeductiblesupplementdepreciationretailotherDefault
otherpayer_typestringinsurancehomeownermortgage_companyotherDefault
homeownerpayment_methodstringcheckcashcardachfinancingotherDefault
checkstatusstringexpectedreceivedsent_to_mortgageendorseddepositedDefault
receivedcheck_numberstringdate_receivedstringdateDefaults to today (US Central).
date_depositedstringdatenotesstring
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"
}'import { randomUUID } from 'node:crypto';
const response = await fetch('https://app.hailmate.ai/api/v1/payments', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
'Content-Type': 'application/json',
'Idempotency-Key': randomUUID(),
},
body: JSON.stringify({
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',
}),
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import uuid
import requests
response = requests.post(
"https://app.hailmate.ai/api/v1/payments",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
"Idempotency-Key": str(uuid.uuid4()),
},
json={
"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.raise_for_status()
data = response.json(){
"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
/payments/{id}curl https://app.hailmate.ai/api/v1/payments/9fa3e1d2-5555-4000-8000-0000000000c3 \
-H "Authorization: Bearer $HAILMATE_API_KEY"const response = await fetch('https://app.hailmate.ai/api/v1/payments/9fa3e1d2-5555-4000-8000-0000000000c3', {
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.get(
"https://app.hailmate.ai/api/v1/payments/9fa3e1d2-5555-4000-8000-0000000000c3",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
)
response.raise_for_status()
data = response.json(){
"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
/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-KeystringAny 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
amountnumberinvoice_idstring | nulluuidpayment_typestringacvdeductiblesupplementdepreciationretailotherpayer_typestringinsurancehomeownermortgage_companyotherpayment_methodstringcheckcashcardachfinancingotherstatusstringcheck_numberstring | nulldate_receivedstring | nulldatedate_depositedstring | nulldatenotesstring | null
Returns
200The payment. A Payment object.
- 404
not_foundNo such record in this workspace. - 409
conflictA 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"
}'const response = await fetch('https://app.hailmate.ai/api/v1/payments/9fa3e1d2-5555-4000-8000-0000000000c3', {
method: 'PATCH',
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
check_number: '004472',
date_deposited: '2026-10-02',
}),
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.patch(
"https://app.hailmate.ai/api/v1/payments/9fa3e1d2-5555-4000-8000-0000000000c3",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
json={
"check_number": "004472",
"date_deposited": "2026-10-02",
},
)
response.raise_for_status()
data = response.json(){
"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
/payments/{id}Its refunds go with it. Not for a payment taken online.
Path parameters
idstringuuidRequired
Headers
Idempotency-KeystringAny 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.
- 404
not_foundNo such record in this workspace. - 409
conflictA 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"const response = await fetch('https://app.hailmate.ai/api/v1/payments/9fa3e1d2-5555-4000-8000-0000000000c3', {
method: 'DELETE',
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.delete(
"https://app.hailmate.ai/api/v1/payments/9fa3e1d2-5555-4000-8000-0000000000c3",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
)
response.raise_for_status()
data = response.json(){
"id": "f2b1a0c4-1111-4000-8000-0000000000aa",
"object": "job",
"deleted": true
}Log a refund made outside Stripe
/payments/{id}/refundA 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-KeystringAny 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
amountnumberRequiredThe amount given back (positive; it is stored negative).
date_receivedstringdateDefault: today.
notesstring
Returns
201The refund (a negative payment). A Payment object.
- 404
not_foundNo such record in this workspace. - 409
conflictA 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"
}'import { randomUUID } from 'node:crypto';
const response = await fetch('https://app.hailmate.ai/api/v1/payments/9fa3e1d2-5555-4000-8000-0000000000c3/refund', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
'Content-Type': 'application/json',
'Idempotency-Key': randomUUID(),
},
body: JSON.stringify({
amount: 250,
notes: 'Overpaid deductible returned by cheque',
}),
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import uuid
import requests
response = requests.post(
"https://app.hailmate.ai/api/v1/payments/9fa3e1d2-5555-4000-8000-0000000000c3/refund",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
"Idempotency-Key": str(uuid.uuid4()),
},
json={
"amount": 250,
"notes": "Overpaid deductible returned by cheque",
},
)
response.raise_for_status()
data = response.json(){
"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
/productsQuery parameters
limitintegerPage size. Out-of-range values fall back to the default.
1 to 200 · Default
50cursorstringThe
next_cursorfrom the previous page, exactly as received. A cursor we did not issue is a 400.updated_sincestringdate-timeOnly records changed at or after this ISO date or date-time. The way to sync only what moved.
searchstringMatches the name or SKU.
categorystringactivestringtrue (default view in the app), false, or any.
curl "https://app.hailmate.ai/api/v1/products?limit=25" \
-H "Authorization: Bearer $HAILMATE_API_KEY"const response = await fetch('https://app.hailmate.ai/api/v1/products?limit=25', {
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.get(
"https://app.hailmate.ai/api/v1/products",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
params={"limit": "25"},
)
response.raise_for_status()
data = response.json(){
"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
/productsHeaders
Idempotency-KeystringAny 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
namestringRequireddescriptionstringskustringunitstringDefault
eapricenumbercostnumbercategorystringkindstringregularupgradeDefault
regularmeasurement_basisstringsquarestotal_area_sqftridge_lfhip_lfvalley_lfeave_lfrake_lfdrip_edge_lfstep_flashing_lfflashing_lfridge_plus_hipeave_plus_rakepipe_countvent_countskylight_countchimney_countcoverage_per_unitnumberwaste_percentnumberactivebooleanDefault
true
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"
}'import { randomUUID } from 'node:crypto';
const response = await fetch('https://app.hailmate.ai/api/v1/products', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
'Content-Type': 'application/json',
'Idempotency-Key': randomUUID(),
},
body: JSON.stringify({
name: 'Ridge vent',
unit: 'lf',
price: 8.5,
cost: 4.1,
category: 'Ventilation',
}),
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import uuid
import requests
response = requests.post(
"https://app.hailmate.ai/api/v1/products",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
"Idempotency-Key": str(uuid.uuid4()),
},
json={
"name": "Ridge vent",
"unit": "lf",
"price": 8.5,
"cost": 4.1,
"category": "Ventilation",
},
)
response.raise_for_status()
data = response.json(){
"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
/products/{id}curl https://app.hailmate.ai/api/v1/products/00000000-0000-4000-8000-000000000000 \
-H "Authorization: Bearer $HAILMATE_API_KEY"const response = await fetch('https://app.hailmate.ai/api/v1/products/00000000-0000-4000-8000-000000000000', {
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.get(
"https://app.hailmate.ai/api/v1/products/00000000-0000-4000-8000-000000000000",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
)
response.raise_for_status()
data = response.json(){
"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
/products/{id}Set active false to hide it from pickers without deleting it.
Path parameters
idstringuuidRequired
Headers
Idempotency-KeystringAny 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
namestringdescriptionstring | nullskustring | nullunitstringpricenumber | nullcostnumber | nullcategorystring | nullkindstringregularupgrademeasurement_basisstring | nullcoverage_per_unitnumber | nullwaste_percentnumber | nullactiveboolean
Returns
200The item. A Product object.
- 404
not_foundNo such record in this workspace. - 409
conflictA 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
}'const response = await fetch('https://app.hailmate.ai/api/v1/products/00000000-0000-4000-8000-000000000000', {
method: 'PATCH',
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
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,
}),
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.patch(
"https://app.hailmate.ai/api/v1/products/00000000-0000-4000-8000-000000000000",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
json={
"name": "string",
"description": None,
"sku": None,
"unit": "string",
"price": None,
"cost": None,
"category": None,
"kind": "regular",
"measurement_basis": None,
"coverage_per_unit": None,
"waste_percent": None,
"active": False,
},
)
response.raise_for_status()
data = response.json(){
"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
/products/{id}Estimate lines priced from it keep their words and price.
Path parameters
idstringuuidRequired
Headers
Idempotency-KeystringAny 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
curl -X DELETE https://app.hailmate.ai/api/v1/products/00000000-0000-4000-8000-000000000000 \
-H "Authorization: Bearer $HAILMATE_API_KEY"const response = await fetch('https://app.hailmate.ai/api/v1/products/00000000-0000-4000-8000-000000000000', {
method: 'DELETE',
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.delete(
"https://app.hailmate.ai/api/v1/products/00000000-0000-4000-8000-000000000000",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
)
response.raise_for_status()
data = response.json(){
"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
/jobs/{id}/costsWhat the job cost to build; a negative amount is a credit.
Path parameters
idstringuuidRequired
Query parameters
limitintegerPage size. Out-of-range values fall back to the default.
1 to 200 · Default
50cursorstringThe
next_cursorfrom the previous page, exactly as received. A cursor we did not issue is a 400.
curl "https://app.hailmate.ai/api/v1/jobs/f2b1a0c4-1111-4000-8000-0000000000aa/costs?limit=25" \
-H "Authorization: Bearer $HAILMATE_API_KEY"const response = await fetch('https://app.hailmate.ai/api/v1/jobs/f2b1a0c4-1111-4000-8000-0000000000aa/costs?limit=25', {
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.get(
"https://app.hailmate.ai/api/v1/jobs/f2b1a0c4-1111-4000-8000-0000000000aa/costs",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
params={"limit": "25"},
)
response.raise_for_status()
data = response.json(){
"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
/job_costsQuery parameters
limitintegerPage size. Out-of-range values fall back to the default.
1 to 200 · Default
50cursorstringThe
next_cursorfrom the previous page, exactly as received. A cursor we did not issue is a 400.updated_sincestringdate-timeOnly records changed at or after this ISO date or date-time. The way to sync only what moved.
job_idstringuuidcategorystring
curl "https://app.hailmate.ai/api/v1/job_costs?limit=25" \
-H "Authorization: Bearer $HAILMATE_API_KEY"const response = await fetch('https://app.hailmate.ai/api/v1/job_costs?limit=25', {
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.get(
"https://app.hailmate.ai/api/v1/job_costs",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
params={"limit": "25"},
)
response.raise_for_status()
data = response.json(){
"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
/job_costsMaterials, labor, a dumpster… A negative amount is a credit (returned material).
Headers
Idempotency-KeystringAny 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_idstringuuidRequiredcategorystringmaterialslaborsubcontractorpermitsdumpsterequipmentfuelmarketingotherDefault
otheramountnumberRequiredNegative for a credit.
descriptionstringvendorstringincurred_onstringdate
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"
}'import { randomUUID } from 'node:crypto';
const response = await fetch('https://app.hailmate.ai/api/v1/job_costs', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
'Content-Type': 'application/json',
'Idempotency-Key': randomUUID(),
},
body: JSON.stringify({
job_id: 'f2b1a0c4-1111-4000-8000-0000000000aa',
category: 'materials',
amount: 4200,
vendor: 'ABC Supply',
incurred_on: '2026-10-02',
}),
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import uuid
import requests
response = requests.post(
"https://app.hailmate.ai/api/v1/job_costs",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
"Idempotency-Key": str(uuid.uuid4()),
},
json={
"job_id": "f2b1a0c4-1111-4000-8000-0000000000aa",
"category": "materials",
"amount": 4200,
"vendor": "ABC Supply",
"incurred_on": "2026-10-02",
},
)
response.raise_for_status()
data = response.json(){
"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
/job_costs/{id}curl https://app.hailmate.ai/api/v1/job_costs/00000000-0000-4000-8000-000000000000 \
-H "Authorization: Bearer $HAILMATE_API_KEY"const response = await fetch('https://app.hailmate.ai/api/v1/job_costs/00000000-0000-4000-8000-000000000000', {
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.get(
"https://app.hailmate.ai/api/v1/job_costs/00000000-0000-4000-8000-000000000000",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
)
response.raise_for_status()
data = response.json(){
"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
/job_costs/{id}A cost a delivered material order keeps in step cannot be changed here (409).
Path parameters
idstringuuidRequired
Headers
Idempotency-KeystringAny 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
categorystringmaterialslaborsubcontractorpermitsdumpsterequipmentfuelmarketingotheramountnumberdescriptionstring | nullvendorstring | nullincurred_onstring | nulldate
Returns
200The cost. A JobCost object.
- 404
not_foundNo such record in this workspace. - 409
conflictA 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
}'const response = await fetch('https://app.hailmate.ai/api/v1/job_costs/00000000-0000-4000-8000-000000000000', {
method: 'PATCH',
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
category: 'materials',
amount: 0,
description: null,
vendor: null,
incurred_on: null,
}),
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.patch(
"https://app.hailmate.ai/api/v1/job_costs/00000000-0000-4000-8000-000000000000",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
json={
"category": "materials",
"amount": 0,
"description": None,
"vendor": None,
"incurred_on": None,
},
)
response.raise_for_status()
data = response.json(){
"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
/job_costs/{id}Path parameters
idstringuuidRequired
Headers
Idempotency-KeystringAny 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.
- 404
not_foundNo such record in this workspace. - 409
conflictA 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"const response = await fetch('https://app.hailmate.ai/api/v1/job_costs/00000000-0000-4000-8000-000000000000', {
method: 'DELETE',
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.delete(
"https://app.hailmate.ai/api/v1/job_costs/00000000-0000-4000-8000-000000000000",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
)
response.raise_for_status()
data = response.json(){
"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
/money_targetsWhat 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"const response = await fetch('https://app.hailmate.ai/api/v1/money_targets', {
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.get(
"https://app.hailmate.ai/api/v1/money_targets",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
)
response.raise_for_status()
data = response.json(){
"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
/money_targetsSend 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-KeystringAny 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 | nullAt least 0
monthly_sold_goalnumber | nullAt least 0
monthly_overheadnumber | nullAt least 0
Returns
200The goals as they now stand. A MoneyTargets object.
- 400
invalid_requestSomething in the request was wrong;fieldnames what. - 403
forbiddenA 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
}'const response = await fetch('https://app.hailmate.ai/api/v1/money_targets', {
method: 'PATCH',
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
monthly_collected_goal: 120000,
monthly_sold_goal: 150000,
monthly_overhead: 38000,
}),
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.patch(
"https://app.hailmate.ai/api/v1/money_targets",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
json={
"monthly_collected_goal": 120000,
"monthly_sold_goal": 150000,
"monthly_overhead": 38000,
},
)
response.raise_for_status()
data = response.json(){
"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
/jobs/{id}/measurementsNewest 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.
- 404
not_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"const response = await fetch('https://app.hailmate.ai/api/v1/jobs/f2b1a0c4-1111-4000-8000-0000000000aa/measurements', {
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.get(
"https://app.hailmate.ai/api/v1/jobs/f2b1a0c4-1111-4000-8000-0000000000aa/measurements",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
)
response.raise_for_status()
data = response.json(){
"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
/jobs/{id}/carrier_scopesEach 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.
- 404
not_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"const response = await fetch('https://app.hailmate.ai/api/v1/jobs/f2b1a0c4-1111-4000-8000-0000000000aa/carrier_scopes', {
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.get(
"https://app.hailmate.ai/api/v1/jobs/f2b1a0c4-1111-4000-8000-0000000000aa/carrier_scopes",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
)
response.raise_for_status()
data = response.json(){
"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
/jobs/{id}/supplementsPath parameters
idstringuuidRequired
Query parameters
limitintegerPage size. Out-of-range values fall back to the default.
1 to 200 · Default
50cursorstringThe
next_cursorfrom 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.
- 404
not_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"const response = await fetch('https://app.hailmate.ai/api/v1/jobs/f2b1a0c4-1111-4000-8000-0000000000aa/supplements?limit=25', {
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.get(
"https://app.hailmate.ai/api/v1/jobs/f2b1a0c4-1111-4000-8000-0000000000aa/supplements",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
params={"limit": "25"},
)
response.raise_for_status()
data = response.json(){
"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
/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.
- 404
not_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"const response = await fetch('https://app.hailmate.ai/api/v1/carrier_scopes/00000000-0000-4000-8000-000000000000', {
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.get(
"https://app.hailmate.ai/api/v1/carrier_scopes/00000000-0000-4000-8000-000000000000",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
)
response.raise_for_status()
data = response.json(){
"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
/supplementsQuery parameters
limitintegerPage size. Out-of-range values fall back to the default.
1 to 200 · Default
50cursorstringThe
next_cursorfrom the previous page, exactly as received. A cursor we did not issue is a 400.updated_sincestringdate-timeOnly records changed at or after this ISO date or date-time. The way to sync only what moved.
job_idstringuuidstatusstringdraftsentopenedrepliedclosed
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"const response = await fetch('https://app.hailmate.ai/api/v1/supplements?limit=25', {
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.get(
"https://app.hailmate.ai/api/v1/supplements",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
params={"limit": "25"},
)
response.raise_for_status()
data = response.json(){
"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
/supplementsTracks one sent outside HailMate. The round defaults to the job's next. Recording an outcome closes it.
Headers
Idempotency-KeystringAny 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_idstringuuidRequiredroundintegerDefault: the job's next round.
statusstringdraftsentopenedrepliedclosedDefault
sentoutcomestringapprovedpartialdeniedamount_requestednumberamount_approvednumbersubmitted_onstringdatenotesstring
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"
}'import { randomUUID } from 'node:crypto';
const response = await fetch('https://app.hailmate.ai/api/v1/supplements', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
'Content-Type': 'application/json',
'Idempotency-Key': randomUUID(),
},
body: JSON.stringify({
job_id: 'f2b1a0c4-1111-4000-8000-0000000000aa',
amount_requested: 3100,
submitted_on: '2026-10-01',
}),
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import uuid
import requests
response = requests.post(
"https://app.hailmate.ai/api/v1/supplements",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
"Idempotency-Key": str(uuid.uuid4()),
},
json={
"job_id": "f2b1a0c4-1111-4000-8000-0000000000aa",
"amount_requested": 3100,
"submitted_on": "2026-10-01",
},
)
response.raise_for_status()
data = response.json(){
"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
/supplements/{id}Path parameters
idstringuuidRequired
Returns
200The supplement. A Supplement object.
- 404
not_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"const response = await fetch('https://app.hailmate.ai/api/v1/supplements/00000000-0000-4000-8000-000000000000', {
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.get(
"https://app.hailmate.ai/api/v1/supplements/00000000-0000-4000-8000-000000000000",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
)
response.raise_for_status()
data = response.json(){
"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
/supplements/{id}An outcome (approved, partial, denied) closes it; amount_approved counts for approved or partial.
Path parameters
idstringuuidRequired
Headers
Idempotency-KeystringAny 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
roundintegerstatusstringdraftsentopenedrepliedclosedoutcomestring | nullapprovedpartialdeniedamount_requestednumber | nullamount_approvednumber | nullsubmitted_onstring | nulldatenotesstring | null
Returns
200The supplement. A Supplement object.
- 404
not_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
}'const response = await fetch('https://app.hailmate.ai/api/v1/supplements/00000000-0000-4000-8000-000000000000', {
method: 'PATCH',
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
outcome: 'partial',
amount_approved: 2400,
}),
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.patch(
"https://app.hailmate.ai/api/v1/supplements/00000000-0000-4000-8000-000000000000",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
json={
"outcome": "partial",
"amount_approved": 2400,
},
)
response.raise_for_status()
data = response.json(){
"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
/jobs/{id}/messagesThe 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
limitintegerPage size. Out-of-range values fall back to the default.
1 to 200 · Default
50cursorstringThe
next_cursorfrom the previous page, exactly as received. A cursor we did not issue is a 400.channelstringOnly this kind of message.
textemailcallvoicemaildirectionstringinbound (they wrote or called us) or outbound (we did).
inboundoutbound
curl "https://app.hailmate.ai/api/v1/jobs/f2b1a0c4-1111-4000-8000-0000000000aa/messages?limit=25" \
-H "Authorization: Bearer $HAILMATE_API_KEY"const response = await fetch('https://app.hailmate.ai/api/v1/jobs/f2b1a0c4-1111-4000-8000-0000000000aa/messages?limit=25', {
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.get(
"https://app.hailmate.ai/api/v1/jobs/f2b1a0c4-1111-4000-8000-0000000000aa/messages",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
params={"limit": "25"},
)
response.raise_for_status()
data = response.json(){
"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
/contacts/{id}/messagesEverything said with this person, newest first: their texts, emails (including mail from their address), calls and voicemails.
Path parameters
idstringuuidRequired
Query parameters
limitintegerPage size. Out-of-range values fall back to the default.
1 to 200 · Default
50cursorstringThe
next_cursorfrom the previous page, exactly as received. A cursor we did not issue is a 400.channelstringOnly this kind of message.
textemailcallvoicemaildirectionstringinbound (they wrote or called us) or outbound (we did).
inboundoutbound
curl "https://app.hailmate.ai/api/v1/contacts/b7c2d3e4-4444-4000-8000-0000000000dd/messages?limit=25" \
-H "Authorization: Bearer $HAILMATE_API_KEY"const response = await fetch('https://app.hailmate.ai/api/v1/contacts/b7c2d3e4-4444-4000-8000-0000000000dd/messages?limit=25', {
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.get(
"https://app.hailmate.ai/api/v1/contacts/b7c2d3e4-4444-4000-8000-0000000000dd/messages",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
params={"limit": "25"},
)
response.raise_for_status()
data = response.json(){
"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
/messagesThe workspace's conversations, newest first. Narrow with job_id or contact_id.
Query parameters
limitintegerPage size. Out-of-range values fall back to the default.
1 to 200 · Default
50cursorstringThe
next_cursorfrom the previous page, exactly as received. A cursor we did not issue is a 400.created_afterstringdate-timeOnly records created at or after this ISO date or date-time.
created_beforestringdate-timeOnly records created before this ISO date or date-time.
job_idstringuuidcontact_idstringuuidchannelstringOnly this kind of message.
textemailcallvoicemaildirectionstringinbound (they wrote or called us) or outbound (we did).
inboundoutbound
curl "https://app.hailmate.ai/api/v1/messages?limit=25" \
-H "Authorization: Bearer $HAILMATE_API_KEY"const response = await fetch('https://app.hailmate.ai/api/v1/messages?limit=25', {
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.get(
"https://app.hailmate.ai/api/v1/messages",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
params={"limit": "25"},
)
response.raise_for_status()
data = response.json(){
"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
/messages/{id}curl https://app.hailmate.ai/api/v1/messages/00000000-0000-4000-8000-000000000000 \
-H "Authorization: Bearer $HAILMATE_API_KEY"const response = await fetch('https://app.hailmate.ai/api/v1/messages/00000000-0000-4000-8000-000000000000', {
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.get(
"https://app.hailmate.ai/api/v1/messages/00000000-0000-4000-8000-000000000000",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
)
response.raise_for_status()
data = response.json(){
"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
/textsTexts 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-KeystringAny 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_idstringuuidTexts the contact's main number.
tostringA phone number, e.g. (972) 555-0148 or +19725550148.
bodystringRequiredUp to 1600 characters
job_idstringuuidFiles the text on this job too.
from_user_idstringuuidThe teammate it is sent as (must have a HailMate number). Default: whoever made the key or connected the app.
media_urlsarray of stringuriPublic https images
Returns
201Sent. A Message object.
- 400
invalid_requestSomething in the request was wrong;fieldnames what. - 409
conflictA 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"
}'import { randomUUID } from 'node:crypto';
const response = await fetch('https://app.hailmate.ai/api/v1/texts', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
'Content-Type': 'application/json',
'Idempotency-Key': randomUUID(),
},
body: JSON.stringify({
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',
}),
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import uuid
import requests
response = requests.post(
"https://app.hailmate.ai/api/v1/texts",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
"Idempotency-Key": str(uuid.uuid4()),
},
json={
"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.raise_for_status()
data = response.json(){
"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
/emailsEmails 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-KeystringAny 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_idstringuuidEmails the contact's address.
toarray of stringemailccarray of stringemailbccarray of stringemailsubjectstringRequiredUp to 300 characters
bodystringRequiredMarkdown.
job_idstringuuidestimate_idstringuuidinvoice_idstringuuidfrom_user_idstringuuidThe teammate it is sent as. Default: whoever made the key or connected the app.
send_asstringmailbox (default when connected) sends from the rep's own email; workspace from the company address.
mailboxworkspaceattachmentsarray of objectAt most 5. A file on the job by file_id, or a public https link elsewhere.
attachments[].file_idstringuuidattachments[].urlstringuriattachments[].filenamestring
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**."
}'import { randomUUID } from 'node:crypto';
const response = await fetch('https://app.hailmate.ai/api/v1/emails', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
'Content-Type': 'application/json',
'Idempotency-Key': randomUUID(),
},
body: JSON.stringify({
contact_id: 'b7c2d3e4-4444-4000-8000-0000000000dd',
subject: 'Your roof inspection',
body: 'Hi Dana,\n\nThe adjuster is confirmed for **Thursday at 3**.',
}),
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import uuid
import requests
response = requests.post(
"https://app.hailmate.ai/api/v1/emails",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
"Idempotency-Key": str(uuid.uuid4()),
},
json={
"contact_id": "b7c2d3e4-4444-4000-8000-0000000000dd",
"subject": "Your roof inspection",
"body": "Hi Dana,\n\nThe adjuster is confirmed for **Thursday at 3**.",
},
)
response.raise_for_status()
data = response.json(){
"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
/email_draftsUnsent 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
limitintegerPage size. Out-of-range values fall back to the default.
1 to 200 · Default
50cursorstringThe
next_cursorfrom the previous page, exactly as received. A cursor we did not issue is a 400.updated_sincestringdate-timeOnly records changed at or after this ISO date or date-time. The way to sync only what moved.
user_idstringuuidOnly this teammate's drafts.
contact_idstringuuidjob_idstringuuid
Returns
200A page of drafts. A page of EmailDraft objects in data, with has_more and next_cursor.
- 401
unauthorizedThe 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"const response = await fetch('https://app.hailmate.ai/api/v1/email_drafts?limit=25', {
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.get(
"https://app.hailmate.ai/api/v1/email_drafts",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
params={"limit": "25"},
)
response.raise_for_status()
data = response.json(){
"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
/email_draftsPuts 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-KeystringAny 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_idstringuuidWhose Drafts it goes in (GET /users). Default: whoever made the key. Another teammate needs an owner's or admin's key.
contact_idstringuuidAddressed to the contact's email when
tois empty, and filed on the contact.job_idstringuuidtoarray of stringemailccarray of stringemailbccarray of stringemailsubjectstringUp to 300 characters
bodystringRequiredMarkdown. Leave the signature out; the composer adds it.
Returns
201Saved as a draft. Not sent. An EmailDraft object.
- 400
invalid_requestSomething in the request was wrong;fieldnames what. - 403
forbiddenA 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**."
}'import { randomUUID } from 'node:crypto';
const response = await fetch('https://app.hailmate.ai/api/v1/email_drafts', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
'Content-Type': 'application/json',
'Idempotency-Key': randomUUID(),
},
body: JSON.stringify({
contact_id: 'b7c2d3e4-4444-4000-8000-0000000000dd',
subject: 'Your roof inspection',
body: 'Hi Dana,\n\nThe adjuster is confirmed for **Thursday at 3**.',
}),
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import uuid
import requests
response = requests.post(
"https://app.hailmate.ai/api/v1/email_drafts",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
"Idempotency-Key": str(uuid.uuid4()),
},
json={
"contact_id": "b7c2d3e4-4444-4000-8000-0000000000dd",
"subject": "Your roof inspection",
"body": "Hi Dana,\n\nThe adjuster is confirmed for **Thursday at 3**.",
},
)
response.raise_for_status()
data = response.json(){
"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
/email_drafts/{id}Path parameters
idstringuuidRequired
Returns
200The draft. An EmailDraft object.
- 404
not_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"const response = await fetch('https://app.hailmate.ai/api/v1/email_drafts/00000000-0000-4000-8000-000000000000', {
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.get(
"https://app.hailmate.ai/api/v1/email_drafts/00000000-0000-4000-8000-000000000000",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
)
response.raise_for_status()
data = response.json(){
"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
/email_drafts/{id}Its recipients, subject or body. Whose draft it is never changes. Still nothing is sent.
Path parameters
idstringuuidRequired
Headers
Idempotency-KeystringAny 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 stringemailccarray of stringemailbccarray of stringemailsubjectstringUp to 300 characters
bodystring
Returns
200The draft. An EmailDraft object.
- 404
not_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"
}'const response = await fetch('https://app.hailmate.ai/api/v1/email_drafts/00000000-0000-4000-8000-000000000000', {
method: 'PATCH',
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
to: ['dana@example.com'],
cc: ['dana@example.com'],
bcc: ['dana@example.com'],
subject: 'string',
body: 'string',
}),
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.patch(
"https://app.hailmate.ai/api/v1/email_drafts/00000000-0000-4000-8000-000000000000",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
json={
"to": ["dana@example.com"],
"cc": ["dana@example.com"],
"bcc": ["dana@example.com"],
"subject": "string",
"body": "string",
},
)
response.raise_for_status()
data = response.json(){
"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
/email_drafts/{id}Path parameters
idstringuuidRequired
Headers
Idempotency-KeystringAny 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
curl -X DELETE https://app.hailmate.ai/api/v1/email_drafts/00000000-0000-4000-8000-000000000000 \
-H "Authorization: Bearer $HAILMATE_API_KEY"const response = await fetch('https://app.hailmate.ai/api/v1/email_drafts/00000000-0000-4000-8000-000000000000', {
method: 'DELETE',
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.delete(
"https://app.hailmate.ai/api/v1/email_drafts/00000000-0000-4000-8000-000000000000",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
)
response.raise_for_status()
data = response.json(){
"id": "f2b1a0c4-1111-4000-8000-0000000000aa",
"object": "job",
"deleted": true
}Endpoints
Notes
Notes on a job's timeline.
List notes
/notesQuery parameters
limitintegerPage size. Out-of-range values fall back to the default.
1 to 200 · Default
50cursorstringThe
next_cursorfrom the previous page, exactly as received. A cursor we did not issue is a 400.updated_sincestringdate-timeOnly records changed at or after this ISO date or date-time. The way to sync only what moved.
job_idstringuuid
curl "https://app.hailmate.ai/api/v1/notes?limit=25" \
-H "Authorization: Bearer $HAILMATE_API_KEY"const response = await fetch('https://app.hailmate.ai/api/v1/notes?limit=25', {
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.get(
"https://app.hailmate.ai/api/v1/notes",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
params={"limit": "25"},
)
response.raise_for_status()
data = response.json(){
"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
/notesHeaders
Idempotency-KeystringAny 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_idstringuuidRequiredcontentstringRequiredUp to 10000 characters
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."
}'import { randomUUID } from 'node:crypto';
const response = await fetch('https://app.hailmate.ai/api/v1/notes', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
'Content-Type': 'application/json',
'Idempotency-Key': randomUUID(),
},
body: JSON.stringify({
job_id: 'f2b1a0c4-1111-4000-8000-0000000000aa',
content: 'Adjuster confirmed for Thursday at 3.',
}),
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import uuid
import requests
response = requests.post(
"https://app.hailmate.ai/api/v1/notes",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
"Idempotency-Key": str(uuid.uuid4()),
},
json={
"job_id": "f2b1a0c4-1111-4000-8000-0000000000aa",
"content": "Adjuster confirmed for Thursday at 3.",
},
)
response.raise_for_status()
data = response.json(){
"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
/notes/{id}curl https://app.hailmate.ai/api/v1/notes/3c8b1a07-6666-4000-8000-0000000000b4 \
-H "Authorization: Bearer $HAILMATE_API_KEY"const response = await fetch('https://app.hailmate.ai/api/v1/notes/3c8b1a07-6666-4000-8000-0000000000b4', {
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.get(
"https://app.hailmate.ai/api/v1/notes/3c8b1a07-6666-4000-8000-0000000000b4",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
)
response.raise_for_status()
data = response.json(){
"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
/notes/{id}Only the note's author can — through the API, whoever made the key or connected the app.
Path parameters
idstringuuidRequired
Headers
Idempotency-KeystringAny 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
contentstringRequiredUp to 10000 characters
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"
}'const response = await fetch('https://app.hailmate.ai/api/v1/notes/3c8b1a07-6666-4000-8000-0000000000b4', {
method: 'PATCH',
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
content: 'string',
}),
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.patch(
"https://app.hailmate.ai/api/v1/notes/3c8b1a07-6666-4000-8000-0000000000b4",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
json={
"content": "string",
},
)
response.raise_for_status()
data = response.json(){
"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
/notes/{id}Path parameters
idstringuuidRequired
Headers
Idempotency-KeystringAny 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
curl -X DELETE https://app.hailmate.ai/api/v1/notes/3c8b1a07-6666-4000-8000-0000000000b4 \
-H "Authorization: Bearer $HAILMATE_API_KEY"const response = await fetch('https://app.hailmate.ai/api/v1/notes/3c8b1a07-6666-4000-8000-0000000000b4', {
method: 'DELETE',
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.delete(
"https://app.hailmate.ai/api/v1/notes/3c8b1a07-6666-4000-8000-0000000000b4",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
)
response.raise_for_status()
data = response.json(){
"id": "f2b1a0c4-1111-4000-8000-0000000000aa",
"object": "job",
"deleted": true
}Endpoints
Files
Photos and documents on a job.
List photos and documents
/filesQuery parameters
limitintegerPage size. Out-of-range values fall back to the default.
1 to 200 · Default
50cursorstringThe
next_cursorfrom the previous page, exactly as received. A cursor we did not issue is a 400.created_afterstringdate-timeOnly records created at or after this ISO date or date-time.
created_beforestringdate-timeOnly records created before this ISO date or date-time.
job_idstringuuidcategorystringphotodocumentscopeestimatecontractother
curl "https://app.hailmate.ai/api/v1/files?limit=25" \
-H "Authorization: Bearer $HAILMATE_API_KEY"const response = await fetch('https://app.hailmate.ai/api/v1/files?limit=25', {
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.get(
"https://app.hailmate.ai/api/v1/files",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
params={"limit": "25"},
)
response.raise_for_status()
data = response.json(){
"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
/filesTwo ways in:
- multipart/form-data with a
filefield and ajob_idfield (plus optionalcategory,description,file_name). - JSON with a public
file_urlHailMate 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-KeystringAny 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_idstringuuidRequiredfile_urlstringuriRequiredA public https address. Redirects are followed (up to 3).
categorystringphotodocumentscopeestimatecontractotherdescriptionstringfile_namestring
Request bodymultipart/form-data
Or send the file itself as a form upload:
filestringbinaryRequiredjob_idstringuuidRequiredcategorystringphotodocumentscopeestimatecontractotherdescriptionstringfile_namestring
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"
}'import { randomUUID } from 'node:crypto';
const response = await fetch('https://app.hailmate.ai/api/v1/files', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
'Content-Type': 'application/json',
'Idempotency-Key': randomUUID(),
},
body: JSON.stringify({
job_id: 'f2b1a0c4-1111-4000-8000-0000000000aa',
file_url: 'https://example.com/claim/scope-of-loss.pdf',
category: 'scope',
}),
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import uuid
import requests
response = requests.post(
"https://app.hailmate.ai/api/v1/files",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
"Idempotency-Key": str(uuid.uuid4()),
},
json={
"job_id": "f2b1a0c4-1111-4000-8000-0000000000aa",
"file_url": "https://example.com/claim/scope-of-loss.pdf",
"category": "scope",
},
)
response.raise_for_status()
data = response.json()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"{
"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
/files/{id}curl https://app.hailmate.ai/api/v1/files/7e2d9c40-8888-4000-8000-0000000000a5 \
-H "Authorization: Bearer $HAILMATE_API_KEY"const response = await fetch('https://app.hailmate.ai/api/v1/files/7e2d9c40-8888-4000-8000-0000000000a5', {
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.get(
"https://app.hailmate.ai/api/v1/files/7e2d9c40-8888-4000-8000-0000000000a5",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
)
response.raise_for_status()
data = response.json(){
"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
/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-KeystringAny 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
namestringThe file name shown in HailMate.
descriptionstring | nullThe caption.
categorystringphotodocumentscopeestimatecontractothertagsarray of string | null
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"
]
}'const response = await fetch('https://app.hailmate.ai/api/v1/files/7e2d9c40-8888-4000-8000-0000000000a5', {
method: 'PATCH',
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
name: 'Front slope.jpg',
description: 'Hail hits on the front slope',
tags: ['Damage', 'Before'],
}),
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.patch(
"https://app.hailmate.ai/api/v1/files/7e2d9c40-8888-4000-8000-0000000000a5",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
json={
"name": "Front slope.jpg",
"description": "Hail hits on the front slope",
"tags": ["Damage", "Before"],
},
)
response.raise_for_status()
data = response.json(){
"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
/files/{id}It stays restorable in Settings → Recently Deleted for 30 days.
Path parameters
idstringuuidRequired
Headers
Idempotency-KeystringAny 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
curl -X DELETE https://app.hailmate.ai/api/v1/files/7e2d9c40-8888-4000-8000-0000000000a5 \
-H "Authorization: Bearer $HAILMATE_API_KEY"const response = await fetch('https://app.hailmate.ai/api/v1/files/7e2d9c40-8888-4000-8000-0000000000a5', {
method: 'DELETE',
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.delete(
"https://app.hailmate.ai/api/v1/files/7e2d9c40-8888-4000-8000-0000000000a5",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
)
response.raise_for_status()
data = response.json(){
"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
/pinsEvery door a rep dropped a pin on, newest first.
Query parameters
limitintegerPage size. Out-of-range values fall back to the default.
1 to 200 · Default
50cursorstringThe
next_cursorfrom the previous page, exactly as received. A cursor we did not issue is a 400.updated_sincestringdate-timeOnly records changed at or after this ISO date or date-time. The way to sync only what moved.
created_afterstringdate-timeOnly records created at or after this ISO date or date-time.
created_beforestringdate-timeOnly records created before this ISO date or date-time.
knock_resultstringinterestednot_interestedcontactedno_answerdoor_hangerfollow_upappointment_scheduleddont_knockrenterno_damagecash_quotelostpin_typestringknockinspectionjobjob_idstringuuidcreated_bystringuuidThe rep who dropped the pin.
curl "https://app.hailmate.ai/api/v1/pins?limit=25" \
-H "Authorization: Bearer $HAILMATE_API_KEY"const response = await fetch('https://app.hailmate.ai/api/v1/pins?limit=25', {
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.get(
"https://app.hailmate.ai/api/v1/pins",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
params={"limit": "25"},
)
response.raise_for_status()
data = response.json(){
"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
/pinsDrops 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-KeystringAny 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
addressstringcitystringstatestringA code or a name — "TX" or "Texas".
postal_codestringknock_resultstringinterestednot_interestedcontactedno_answerdoor_hangerfollow_upappointment_scheduleddont_knockrenterno_damagecash_quotelostpin_typestringknockinspectionDefault
knockhomeowner_namestringSplit into first and last for you.
homeowner_first_namestringhomeowner_last_namestringphonestringemailstringemailnotesstringcreated_by_idstringuuidThe teammate who knocked. Defaults to whoever connected the integration.
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"
}'import { randomUUID } from 'node:crypto';
const response = await fetch('https://app.hailmate.ai/api/v1/pins', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
'Content-Type': 'application/json',
'Idempotency-Key': randomUUID(),
},
body: JSON.stringify({
address: '1804 Cedar Ridge Dr',
city: 'Plano',
state: 'TX',
postal_code: '75024',
knock_result: 'interested',
homeowner_name: 'Dana Reed',
}),
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import uuid
import requests
response = requests.post(
"https://app.hailmate.ai/api/v1/pins",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
"Idempotency-Key": str(uuid.uuid4()),
},
json={
"address": "1804 Cedar Ridge Dr",
"city": "Plano",
"state": "TX",
"postal_code": "75024",
"knock_result": "interested",
"homeowner_name": "Dana Reed",
},
)
response.raise_for_status()
data = response.json(){
"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
/pins/{id}curl https://app.hailmate.ai/api/v1/pins/2b6f4e18-9999-4000-8000-0000000000d6 \
-H "Authorization: Bearer $HAILMATE_API_KEY"const response = await fetch('https://app.hailmate.ai/api/v1/pins/2b6f4e18-9999-4000-8000-0000000000d6', {
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.get(
"https://app.hailmate.ai/api/v1/pins/2b6f4e18-9999-4000-8000-0000000000d6",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
)
response.raise_for_status()
data = response.json(){
"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
/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-KeystringAny 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 | nullinterestednot_interestedcontactedno_answerdoor_hangerfollow_upappointment_scheduleddont_knockrenterno_damagecash_quotelostpin_typestringknockinspectionlatitudenumberlongitudenumberaddressstring | nullcitystring | nullstatestring | nullpostal_codestring | nullhomeowner_namestringhomeowner_first_namestring | nullhomeowner_last_namestring | nullphonestring | nullemailstring | nullemailnotesstring | null
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"
}'const response = await fetch('https://app.hailmate.ai/api/v1/pins/2b6f4e18-9999-4000-8000-0000000000d6', {
method: 'PATCH',
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
knock_result: 'appointment_scheduled',
}),
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.patch(
"https://app.hailmate.ai/api/v1/pins/2b6f4e18-9999-4000-8000-0000000000d6",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
json={
"knock_result": "appointment_scheduled",
},
)
response.raise_for_status()
data = response.json(){
"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
/pins/{id}Path parameters
idstringuuidRequired
Headers
Idempotency-KeystringAny 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
curl -X DELETE https://app.hailmate.ai/api/v1/pins/2b6f4e18-9999-4000-8000-0000000000d6 \
-H "Authorization: Bearer $HAILMATE_API_KEY"const response = await fetch('https://app.hailmate.ai/api/v1/pins/2b6f4e18-9999-4000-8000-0000000000d6', {
method: 'DELETE',
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.delete(
"https://app.hailmate.ai/api/v1/pins/2b6f4e18-9999-4000-8000-0000000000d6",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
)
response.raise_for_status()
data = response.json(){
"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
/storm_listsRead 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
limitintegerPage size. Out-of-range values fall back to the default.
1 to 200 · Default
50cursorstringThe
next_cursorfrom the previous page, exactly as received. A cursor we did not issue is a 400.updated_sincestringdate-timeOnly records changed at or after this ISO date or date-time. The way to sync only what moved.
statusstringbuildingreadypartialfailed
curl "https://app.hailmate.ai/api/v1/storm_lists?limit=25" \
-H "Authorization: Bearer $HAILMATE_API_KEY"const response = await fetch('https://app.hailmate.ai/api/v1/storm_lists?limit=25', {
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.get(
"https://app.hailmate.ai/api/v1/storm_lists",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
params={"limit": "25"},
)
response.raise_for_status()
data = response.json(){
"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
/storm_lists/{id}curl https://app.hailmate.ai/api/v1/storm_lists/e5a1c7d9-aaaa-4000-8000-0000000000e7 \
-H "Authorization: Bearer $HAILMATE_API_KEY"const response = await fetch('https://app.hailmate.ai/api/v1/storm_lists/e5a1c7d9-aaaa-4000-8000-0000000000e7', {
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.get(
"https://app.hailmate.ai/api/v1/storm_lists/e5a1c7d9-aaaa-4000-8000-0000000000e7",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
)
response.raise_for_status()
data = response.json(){
"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
/storm_lists/{id}/propertiesThe 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
limitintegerPage size. Out-of-range values fall back to the default.
1 to 200 · Default
50cursorstringThe
next_cursorfrom the previous page, exactly as received. A cursor we did not issue is a 400.mailablestringtruedrops properties with no usable mailing address or owner name.trueresidentialstringtrue
Returns
200A page of properties. A page of StormListProperty objects in data, with has_more and next_cursor.
- 401
unauthorizedThe 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"const response = await fetch('https://app.hailmate.ai/api/v1/storm_lists/e5a1c7d9-aaaa-4000-8000-0000000000e7/properties?mailable=true&limit=100', {
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.get(
"https://app.hailmate.ai/api/v1/storm_lists/e5a1c7d9-aaaa-4000-8000-0000000000e7/properties",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
params={"mailable": "true", "limit": "100"},
)
response.raise_for_status()
data = response.json(){
"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
/hail_historyEvery 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
addressstringA US street address. Or send
latitudeandlongitude.latitudenumberlongitudenumbersincestringdateYYYY-MM-DD. Defaults to five years ago.
Returns
200The history. A HailReport object.
- 400
invalid_requestSomething in the request was wrong;fieldnames what. - 429
rate_limitedOver 120 requests a minute (or 20 hail lookups a minute). WaitRetry-Afterseconds.
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"const response = await fetch('https://app.hailmate.ai/api/v1/hail_history?address=1804%20Cedar%20Ridge%20Dr%2C%20Plano%2C%20TX%2075024', {
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.get(
"https://app.hailmate.ai/api/v1/hail_history",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
params={"address": "1804 Cedar Ridge Dr, Plano, TX 75024"},
)
response.raise_for_status()
data = response.json(){
"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
/pipelinescurl https://app.hailmate.ai/api/v1/pipelines \
-H "Authorization: Bearer $HAILMATE_API_KEY"const response = await fetch('https://app.hailmate.ai/api/v1/pipelines', {
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.get(
"https://app.hailmate.ai/api/v1/pipelines",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
)
response.raise_for_status()
data = response.json(){
"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)
/pipelinesName it and, optionally, its first stages in order.
Headers
Idempotency-KeystringAny 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
namestringRequiredstagesarray of stringIts first stages' labels
is_defaultboolean
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"
]
}'import { randomUUID } from 'node:crypto';
const response = await fetch('https://app.hailmate.ai/api/v1/pipelines', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
'Content-Type': 'application/json',
'Idempotency-Key': randomUUID(),
},
body: JSON.stringify({
name: 'Commercial',
stages: ['New Lead', 'Bid Sent', 'Won'],
}),
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import uuid
import requests
response = requests.post(
"https://app.hailmate.ai/api/v1/pipelines",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
"Idempotency-Key": str(uuid.uuid4()),
},
json={
"name": "Commercial",
"stages": ["New Lead", "Bid Sent", "Won"],
},
)
response.raise_for_status()
data = response.json(){
"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
/pipelines/{id}curl https://app.hailmate.ai/api/v1/pipelines/00000000-0000-4000-8000-000000000000 \
-H "Authorization: Bearer $HAILMATE_API_KEY"const response = await fetch('https://app.hailmate.ai/api/v1/pipelines/00000000-0000-4000-8000-000000000000', {
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.get(
"https://app.hailmate.ai/api/v1/pipelines/00000000-0000-4000-8000-000000000000",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
)
response.raise_for_status()
data = response.json(){
"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
/pipelines/{id}Path parameters
idstringuuidRequired
Headers
Idempotency-KeystringAny 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
namestringis_defaultbooleanSend true to make it the default board.
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
}'const response = await fetch('https://app.hailmate.ai/api/v1/pipelines/00000000-0000-4000-8000-000000000000', {
method: 'PATCH',
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
name: 'string',
is_default: false,
}),
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.patch(
"https://app.hailmate.ai/api/v1/pipelines/00000000-0000-4000-8000-000000000000",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
json={
"name": "string",
"is_default": False,
},
)
response.raise_for_status()
data = response.json(){
"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
/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-KeystringAny 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.
- 404
not_foundNo such record in this workspace. - 409
conflictA 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"const response = await fetch('https://app.hailmate.ai/api/v1/pipelines/00000000-0000-4000-8000-000000000000', {
method: 'DELETE',
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.delete(
"https://app.hailmate.ai/api/v1/pipelines/00000000-0000-4000-8000-000000000000",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
)
response.raise_for_status()
data = response.json(){
"id": "f2b1a0c4-1111-4000-8000-0000000000aa",
"object": "job",
"deleted": true
}List pipeline stages
/stagesEvery 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.
- 401
unauthorizedThe 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"const response = await fetch('https://app.hailmate.ai/api/v1/stages', {
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.get(
"https://app.hailmate.ai/api/v1/stages",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
)
response.raise_for_status()
data = response.json(){
"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
/stagesIts key is made from the label and never changes. position is 1-based; default is the end.
Headers
Idempotency-KeystringAny 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_idstringuuidRequiredlabelstringRequiredcolorstringHex, like #3B82F6.
is_completedbooleanA won column.
is_lostbooleanA lost column.
positioninteger1-based.
Returns
201The stage. A PipelineStage object.
- 400
invalid_requestSomething in the request was wrong;fieldnames 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
}'import { randomUUID } from 'node:crypto';
const response = await fetch('https://app.hailmate.ai/api/v1/stages', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
'Content-Type': 'application/json',
'Idempotency-Key': randomUUID(),
},
body: JSON.stringify({
pipeline_id: '1cf7d87b-7d99-4ba0-b277-0e88ac127e75',
label: 'Permit Pulled',
position: 7,
}),
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import uuid
import requests
response = requests.post(
"https://app.hailmate.ai/api/v1/stages",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
"Idempotency-Key": str(uuid.uuid4()),
},
json={
"pipeline_id": "1cf7d87b-7d99-4ba0-b277-0e88ac127e75",
"label": "Permit Pulled",
"position": 7,
},
)
response.raise_for_status()
data = response.json(){
"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
/stages/{id}The key never changes — jobs store it.
Path parameters
idstringuuidRequired
Headers
Idempotency-KeystringAny 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
labelstringcolorstringis_completedbooleanis_lostbooleanpositioninteger
Returns
200The stage. A PipelineStage object.
- 404
not_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
}'const response = await fetch('https://app.hailmate.ai/api/v1/stages/00000000-0000-4000-8000-000000000000', {
method: 'PATCH',
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
label: 'string',
color: 'string',
is_completed: false,
is_lost: false,
position: 0,
}),
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.patch(
"https://app.hailmate.ai/api/v1/stages/00000000-0000-4000-8000-000000000000",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
json={
"label": "string",
"color": "string",
"is_completed": False,
"is_lost": False,
"position": 0,
},
)
response.raise_for_status()
data = response.json(){
"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
/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-KeystringAny 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.
- 404
not_foundNo such record in this workspace. - 409
conflictA 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"const response = await fetch('https://app.hailmate.ai/api/v1/stages/00000000-0000-4000-8000-000000000000', {
method: 'DELETE',
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.delete(
"https://app.hailmate.ai/api/v1/stages/00000000-0000-4000-8000-000000000000",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
)
response.raise_for_status()
data = response.json(){
"id": "f2b1a0c4-1111-4000-8000-0000000000aa",
"object": "job",
"deleted": true
}Search jobs and contacts at once
/searchBy 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
qstringRequiredAt least two characters.
limitintegerPer kind; default 5
Returns
200The matches. A SearchResult object.
- 400
invalid_requestSomething in the request was wrong;fieldnames 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"const response = await fetch('https://app.hailmate.ai/api/v1/search?limit=25', {
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.get(
"https://app.hailmate.ai/api/v1/search",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
params={"limit": "25"},
)
response.raise_for_status()
data = response.json(){
"object": "search",
"query": "spring path",
"jobs": [],
"contacts": []
}List your team
/userscurl https://app.hailmate.ai/api/v1/users \
-H "Authorization: Bearer $HAILMATE_API_KEY"const response = await fetch('https://app.hailmate.ai/api/v1/users', {
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.get(
"https://app.hailmate.ai/api/v1/users",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
)
response.raise_for_status()
data = response.json(){
"object": "list",
"data": [
{
"id": "5d0e1c2b-7777-4000-8000-0000000000ab",
"object": "user",
"name": "Sam Carter",
"email": "sam@ridgelineroofing.example",
"role": "member"
}
]
}List every webhook event
/eventsReturns
200The event catalogue, with the filters each one accepts. A list of EventDefinition objects in data.
- 401
unauthorizedThe 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"const response = await fetch('https://app.hailmate.ai/api/v1/events', {
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.get(
"https://app.hailmate.ai/api/v1/events",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
)
response.raise_for_status()
data = response.json(){
"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
/actionsThe 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.
curl https://app.hailmate.ai/api/v1/actions \
-H "Authorization: Bearer $HAILMATE_API_KEY"const response = await fetch('https://app.hailmate.ai/api/v1/actions', {
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.get(
"https://app.hailmate.ai/api/v1/actions",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
)
response.raise_for_status()
data = response.json(){
"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
/actions/{name}curl https://app.hailmate.ai/api/v1/actions/00000000-0000-4000-8000-000000000000 \
-H "Authorization: Bearer $HAILMATE_API_KEY"const response = await fetch('https://app.hailmate.ai/api/v1/actions/00000000-0000-4000-8000-000000000000', {
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.get(
"https://app.hailmate.ai/api/v1/actions/00000000-0000-4000-8000-000000000000",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
)
response.raise_for_status()
data = response.json(){
"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
/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
namestringRequiredThe action's name, from GET /actions (for example
mark_invoice_sent).
Headers
Idempotency-KeystringAny 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
inputobjectRequiredThe 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.
- 400
invalid_requestSomething in the request was wrong;fieldnames what. - 403
forbiddenA read-only key tried to change something. - 404
not_foundNo such record in this workspace. - 409
conflictA 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."
}
}'import { randomUUID } from 'node:crypto';
const response = await fetch('https://app.hailmate.ai/api/v1/actions/00000000-0000-4000-8000-000000000000', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
'Content-Type': 'application/json',
'Idempotency-Key': randomUUID(),
},
body: JSON.stringify({
input: {
job_id: 'f2b1a0c4-1111-4000-8000-0000000000aa',
content: 'Adjuster confirmed for Thursday at 3.',
},
}),
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import uuid
import requests
response = requests.post(
"https://app.hailmate.ai/api/v1/actions/00000000-0000-4000-8000-000000000000",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
"Idempotency-Key": str(uuid.uuid4()),
},
json={
"input": {
"job_id": "f2b1a0c4-1111-4000-8000-0000000000aa",
"content": "Adjuster confirmed for Thursday at 3.",
},
},
)
response.raise_for_status()
data = response.json(){
"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
/recordsEvery 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.
- 401
unauthorizedThe 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"const response = await fetch('https://app.hailmate.ai/api/v1/records', {
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.get(
"https://app.hailmate.ai/api/v1/records",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
)
response.raise_for_status()
data = response.json(){
"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)
/audit_logEvery 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
kindstringOne 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) orsignins. Sign-ins are left out unless asked for by kind or action.allaccesspeopledatadeletessigninsactionstringOnly these actions, separated by commas, for example
job.deleted,data.exported. Withkind, the actions inside it.actor_idstringuuidOnly what this teammate did (a user id from GET /users).
location_idstringuuidA company key: only this location (an id from GET /locations). Leave it out for every location.
sincestringdate-timeOnly lines at or after this ISO date or date-time (the start of the range).
untilstringdate-timeOnly lines before this ISO date or date-time (the end of the range, not included).
updated_sincestringdate-timesince's older name; still read whensinceis not sent.qstringWords in what was changed, who did it, or the job it was on.
limitintegerPage size. Out-of-range values fall back to the default.
1 to 200 · Default
50cursorstringThe
next_cursorfrom 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.
- 400
invalid_requestSomething in the request was wrong;fieldnames what. - 401
unauthorizedThe key is missing, wrong or revoked. - 403
forbiddenA 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"const response = await fetch('https://app.hailmate.ai/api/v1/audit_log?limit=25', {
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.get(
"https://app.hailmate.ai/api/v1/audit_log",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
params={"limit": "25"},
)
response.raise_for_status()
data = response.json(){
"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
/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
kindstringRequiredThe kind of record, from GET /records (for example
email_templates).
Query parameters
qstringWords to look for, for example a template's name.
filterstringExact values,
column:valuepairs separated by commas, on the kind's filter columns (GET /records), for examplejob_id:5b1c…,status:sent.nullmatches an empty value.updated_sincestringdate-timeOnly 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.limitintegerPage size, at most 100.
1 to 100 · Default
50cursorstringThe
next_cursorfrom the previous page, exactly as received. A cursor we did not issue is a 400.
Returns
200A page of records. A list in data.
- 400
invalid_requestSomething in the request was wrong;fieldnames what. - 404
not_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"const response = await fetch('https://app.hailmate.ai/api/v1/records/00000000-0000-4000-8000-000000000000?limit=25', {
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.get(
"https://app.hailmate.ai/api/v1/records/00000000-0000-4000-8000-000000000000",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
params={"limit": "25"},
)
response.raise_for_status()
data = response.json(){
"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
/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
kindstringRequiredThe kind of record, from GET /records.
idstringuuidRequiredThe record's id.
Returns
200The record.
- 404
not_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"const response = await fetch('https://app.hailmate.ai/api/v1/records/00000000-0000-4000-8000-000000000000/00000000-0000-4000-8000-000000000000', {
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.get(
"https://app.hailmate.ai/api/v1/records/00000000-0000-4000-8000-000000000000/00000000-0000-4000-8000-000000000000",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
)
response.raise_for_status()
data = response.json(){
"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
/webhooksA 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.
curl https://app.hailmate.ai/api/v1/webhooks \
-H "Authorization: Bearer $HAILMATE_API_KEY"const response = await fetch('https://app.hailmate.ai/api/v1/webhooks', {
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.get(
"https://app.hailmate.ai/api/v1/webhooks",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
)
response.raise_for_status()
data = response.json(){
"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
/webhooksSend 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-KeystringAny 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
eventstringOne event, or "*".
eventsarray of stringSeveral events for one URL.
target_urlstringuriRequiredtargetUrlworks too (Zapier's spelling).descriptionstringfiltersobjectOnly with a single event. See GET /events.
Returns
201Subscribed. One event returns the subscription; several return `{ "object": "list", "data": [...], "secret": "…" }`. A WebhookCreated object.
- 400
invalid_requestSomething in the request was wrong;fieldnames 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"
}
}'import { randomUUID } from 'node:crypto';
const response = await fetch('https://app.hailmate.ai/api/v1/webhooks', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
'Content-Type': 'application/json',
'Idempotency-Key': randomUUID(),
},
body: JSON.stringify({
event: 'job.stage_changed',
target_url: 'https://yourapp.example.com/hooks/hailmate',
filters: {
stage: 'claim_approved',
},
}),
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import uuid
import requests
response = requests.post(
"https://app.hailmate.ai/api/v1/webhooks",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
"Idempotency-Key": str(uuid.uuid4()),
},
json={
"event": "job.stage_changed",
"target_url": "https://yourapp.example.com/hooks/hailmate",
"filters": {
"stage": "claim_approved",
},
},
)
response.raise_for_status()
data = response.json(){
"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
/webhooks/{id}curl https://app.hailmate.ai/api/v1/webhooks/0f8c8c1b-dddd-4000-8000-000000000022 \
-H "Authorization: Bearer $HAILMATE_API_KEY"const response = await fetch('https://app.hailmate.ai/api/v1/webhooks/0f8c8c1b-dddd-4000-8000-000000000022', {
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.get(
"https://app.hailmate.ai/api/v1/webhooks/0f8c8c1b-dddd-4000-8000-000000000022",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
)
response.raise_for_status()
data = response.json(){
"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
/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_urlstringuridescriptionstring | nullfiltersobject | nullnull clears them.
enabledbooleanfalse pauses it
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
}'const response = await fetch('https://app.hailmate.ai/api/v1/webhooks/0f8c8c1b-dddd-4000-8000-000000000022', {
method: 'PATCH',
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
enabled: true,
}),
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.patch(
"https://app.hailmate.ai/api/v1/webhooks/0f8c8c1b-dddd-4000-8000-000000000022",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
json={
"enabled": True,
},
)
response.raise_for_status()
data = response.json(){
"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"
}curl -X DELETE https://app.hailmate.ai/api/v1/webhooks/0f8c8c1b-dddd-4000-8000-000000000022 \
-H "Authorization: Bearer $HAILMATE_API_KEY"const response = await fetch('https://app.hailmate.ai/api/v1/webhooks/0f8c8c1b-dddd-4000-8000-000000000022', {
method: 'DELETE',
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.delete(
"https://app.hailmate.ai/api/v1/webhooks/0f8c8c1b-dddd-4000-8000-000000000022",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
)
response.raise_for_status()
data = response.json(){
"id": "f2b1a0c4-1111-4000-8000-0000000000aa",
"object": "job",
"deleted": true
}Send a test delivery now
/webhooks/{id}/testPosts 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
eventstringOnly for a "*" webhook: which event to send.
Returns
200What your endpoint answered. `ok` is true for a 2xx. A WebhookTest object.
- 400
invalid_requestSomething in the request was wrong;fieldnames what. - 404
not_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'const response = await fetch('https://app.hailmate.ai/api/v1/webhooks/0f8c8c1b-dddd-4000-8000-000000000022/test', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify(null),
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.post(
"https://app.hailmate.ai/api/v1/webhooks/0f8c8c1b-dddd-4000-8000-000000000022/test",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
json=None,
)
response.raise_for_status()
data = response.json(){
"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
/webhooks/{id}/deliveriesWhat 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
limitintegerPage size. Out-of-range values fall back to the default.
1 to 200 · Default
50cursorstringThe
next_cursorfrom the previous page, exactly as received. A cursor we did not issue is a 400.statusstringpendingdeliveringdeliveredfailedskipped
Returns
200A page of deliveries. A list of WebhookDelivery objects in data.
- 404
not_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"const response = await fetch('https://app.hailmate.ai/api/v1/webhooks/0f8c8c1b-dddd-4000-8000-000000000022/deliveries?limit=25', {
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.get(
"https://app.hailmate.ai/api/v1/webhooks/0f8c8c1b-dddd-4000-8000-000000000022/deliveries",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
params={"limit": "25"},
)
response.raise_for_status()
data = response.json(){
"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
/webhooks/{id}/deliveries/{delivery_id}Path parameters
idstringuuidRequireddelivery_idstringuuidRequired
Returns
200The delivery. `payload` is the exact body we posted (null until it has been sent). A WebhookDelivery object.
- 404
not_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"const response = await fetch('https://app.hailmate.ai/api/v1/webhooks/0f8c8c1b-dddd-4000-8000-000000000022/deliveries/0f8c8c1b-dddd-4000-8000-000000000022', {
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.get(
"https://app.hailmate.ai/api/v1/webhooks/0f8c8c1b-dddd-4000-8000-000000000022/deliveries/0f8c8c1b-dddd-4000-8000-000000000022",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
)
response.raise_for_status()
data = response.json(){
"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
/webhooks/{id}/deliveries/{delivery_id}/retryQueues 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
idstringuuidRequireddelivery_idstringuuidRequired
Returns
202Queued. A WebhookDelivery object.
- 404
not_foundNo such record in this workspace. - 409
conflictA 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"const response = await fetch('https://app.hailmate.ai/api/v1/webhooks/0f8c8c1b-dddd-4000-8000-000000000022/deliveries/0f8c8c1b-dddd-4000-8000-000000000022/retry', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.post(
"https://app.hailmate.ai/api/v1/webhooks/0f8c8c1b-dddd-4000-8000-000000000022/deliveries/0f8c8c1b-dddd-4000-8000-000000000022/retry",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
)
response.raise_for_status()
data = response.json(){
"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
/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.
- 404
not_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"const response = await fetch('https://app.hailmate.ai/api/v1/webhooks/samples/job.created', {
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.get(
"https://app.hailmate.ai/api/v1/webhooks/samples/job.created",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
)
response.raise_for_status()
data = response.json(){
"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
/oauth/tokenThe 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_typestringRequiredauthorization_coderefresh_tokencodestringFor
authorization_code.redirect_uristringuriFor
authorization_code— the same address the person was sent back to.refresh_tokenstringFor
refresh_token.client_idstringRequiredclient_secretstringRequired
Returns
200A token. An OAuthToken object.
- 400
invalid_requestThe code or refresh token is not valid (invalid_grant), or the request is malformed. - 401
unauthorizedUnknown 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"const response = await fetch('https://app.hailmate.ai/api/v1/oauth/token', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.post(
"https://app.hailmate.ai/api/v1/oauth/token",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
)
response.raise_for_status()
data = response.json(){
"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
/oauth/revokeRFC 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
tokenstringRequiredclient_idstringRequiredclient_secretstringRequired
Returns
200Done.
- 401
unauthorizedUnknown 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"const response = await fetch('https://app.hailmate.ai/api/v1/oauth/revoke', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.HAILMATE_API_KEY}`,
},
});
const data = await response.json();
if (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os
import requests
response = requests.post(
"https://app.hailmate.ai/api/v1/oauth/revoke",
headers={
"Authorization": f"Bearer {os.environ['HAILMATE_API_KEY']}",
},
)
response.raise_for_status()
data = response.json(){}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
namestringRequiredThe action's name, used in POST /actions/{name}.
titlestringRequiredWhat it does
riskstringRequiredsendsreaches a homeowner or anyone outside HailMate;moneycharges, refunds, pays or credits;deletesremoves something;setupchanges settings, the team or a connection.everydaysendsmoneydeletessetupinput_schemaobjectRequiredJSON Schema (draft 2020-12) of the input POST /actions/{name} takes.
{
"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"actionstringRequireddataanyRequiredWhat the change made or changed (the saved record, a list of ids, or null).
Returned by make one change, as the person who made the key
{
"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
errorobjectRequirederror.codestringRequiredMachine-readable. Branch on this.
unauthorizedforbiddennot_foundinvalid_requestconflictpayload_too_largerate_limitedplan_requiredmethod_not_allowedserver_errorerror.messagestringRequiredFor a person. May be reworded.
error.fieldstringThe request field that was wrong, when there was one.
error.request_idstringerror.doc_urlstringuriRequired
{
"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
idstringuuidSend it as the HailMate-Location header (or location_id) with a company key.
objectstringalways "location"namestringIts short name (Cincinnati).
workspace_namestring | nullThe workspace's full name.
regionstring | nullis_mainbooleanThe company's main location.
Returned by list the locations this key can act in
{
"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
okbooleanobjectstringalways "workspace"workspace_idstringuuidworkspacestring | nullThe workspace's name; a company key naming no location: the company's.
labelstring | nullWhat to call this connection: the workspace, or "<company> — every location" for a company key.
company_widebooleanA company key: each request names its location (GET /locations).
locationobject | nullThe location this request acts in; null for a company key that named none.
location.idstringuuidlocation.namestring | nulllocationsintegerHow many locations this key reaches.
api_versionstringkeyobjectkey.namestringkey.accessstringreadwritekey.company_widebooleanacting_asUserThe teammate behind this key or connection — who "my jobs" means.
todaystringdateToday where the company works (US Central).
timezonestring
Returned by check a key
{
"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"
}Deleted
What a delete returns.
Fields
idstringuuidobjectstringdeletedbooleanalways "true"
Returned by delete a job, take someone off a job, delete a contact, delete a task, delete an estimate, remove a line item from an estimate, delete a draft invoice, delete a payment logged by hand, delete a price-book item, delete a job cost, delete an email draft, delete a note, delete a photo or document, delete a door knock, delete a pipeline, delete a stage, unsubscribe
{
"id": "f2b1a0c4-1111-4000-8000-0000000000aa",
"object": "job",
"deleted": true
}DeletedSnapshot
What a *.deleted delivery carries — the record is gone, so these are the fields that identify your copy of it.
Fields
idstringuuidobjectstringjobcontacttaskdeletedbooleanalways "true"job_numberstringnamestringaddressstringfirst_namestringlast_namestringemailstringphonestringtitlestringjob_idstringuuid
Delivered by job.deleted, contact.deleted, task.deleted
{
"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
idstringuuidnamestring | nullemailstring | nullphonestring | null
{
"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
idstringuuidobjectstringalways "message"channelstringtextemailcallvoicemaildirectionstringinboundoutboundcontact_idstring | nulluuidjob_idstring | nulluuidestimate_idstring | nulluuidinvoice_idstring | nulluuidrep_idstring | nulluuidThe teammate it was sent by or to.
rep_namestring | nulltoanyOutbound text: the number. Email: the addresses. Inbound text: null.
fromstring | nullEmail only: the sender's address.
subjectstring | nullbodystring | nullThe text, the email's plain body, or a voicemail transcript.
media_urlsarray of stringstatusstring | nullsent, delivered, failed, received, opened…
delivery_errorstring | nullcall_statusstring | nullcall_duration_secondsinteger | nullsummarystring | nullA call's written summary.
recording_urlstring | nullurithread_idstring | nullai_draftedbooleansent_atstring | nulldate-timedelivered_atstring | nulldate-timeopened_atstring | nulldate-timeread_atstring | nulldate-timecreated_atstringdate-timeurlstring | nulluri
{
"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_idstringuuidTexts the contact's main number.
tostringA phone number, e.g. (972) 555-0148 or +19725550148.
bodystringRequiredUp to 1600 characters
job_idstringuuidFiles the text on this job too.
from_user_idstringuuidThe teammate it is sent as (must have a HailMate number). Default: whoever made the key or connected the app.
media_urlsarray of stringuriPublic https images
{
"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
idstringuuidobjectstringalways "email_draft"user_idstringuuidWhose Drafts it is in.
user_namestring | nulltoarray of stringccarray of stringbccarray of stringsubjectstringbodystringcontact_idstring | nulluuidjob_idstring | nulluuidcreated_atstringdate-timeupdated_atstringdate-timeurlstring | nulluri
{
"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_idstringuuidEmails the contact's address.
toarray of stringemailccarray of stringemailbccarray of stringemailsubjectstringRequiredUp to 300 characters
bodystringRequiredMarkdown.
job_idstringuuidestimate_idstringuuidinvoice_idstringuuidfrom_user_idstringuuidThe teammate it is sent as. Default: whoever made the key or connected the app.
send_asstringmailbox (default when connected) sends from the rep's own email; workspace from the company address.
mailboxworkspaceattachmentsarray of objectAt most 5. A file on the job by file_id, or a public https link elsewhere.
attachments[].file_idstringuuidattachments[].urlstringuriattachments[].filenamestring
{
"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
idstringuuidobjectstringalways "job"job_numberstring | nullnamestring | nulljob_typestringinsuranceretailstagestring | nullThe stage key. Filter on this.
stage_labelstring | nullThe stage as your board names it.
stage_is_completedboolean | nullThe stage is a won / completed column.
stage_is_lostboolean | nullThe stage is a lost column.
stage_entered_atstring | nulldate-timepipeline_idstring | nulluuidpipeline_namestring | nulladdressstring | nullcitystring | nullstatestring | nullTwo-letter code.
postal_codestring | nullcountystring | nullhomeowner_idstring | nulluuidhomeownerPersonRef | nulladjuster_idstring | nulluuidadjusterPersonRef | nullsecondary_contact_idsarray of stringuuidsecondary_adjuster_idsarray of stringuuidassigned_to_idstring | nulluuidThe sales rep (the primary assignee).
assigned_to_namestring | nullsales_rep_idstring | nulluuidThe sales rep: who sold the job and owns it (the same person as
assigned_to_id).sales_rep_namestring | nullcanvasser_idstring | nulluuidWho knocked the door or set the appointment (the setter). Credited with the lead.
canvasser_namestring | nullproject_manager_idstring | nulluuidWho runs the build. Gets the crew and work order alerts.
project_manager_namestring | nullassignee_idsarray of stringuuidEveryone on the job, primary included.
assignee_namesarray of stringinsurance_companystring | nullclaim_numberstring | nullpolicy_numberstring | nulldate_of_lossstring | nulldatedamage_typesarray of stringtagsarray of stringcover_photo_urlstring | nulluriThe photo shown as the job's cover.
lead_sourcestring | nullprioritystring | nulllownormalhighurgentmortgage_companystring | nullfinancing_methodstring | nullcashcheckcredit_cardfinancingotherrcv_amountnumber | nullReplacement cost value on the claim.
acv_amountnumber | nullActual cash value.
deductiblenumber | nullsupplements_amountnumber | nullcustom_fieldsobjectThe 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 | nullfinal_amountnumber | nullContract value on a retail job.
total_job_valuenumber | nullWhat the job is worth — the same figure the Money tab shows.
amount_receivednumber | nullMoney received on the job so far.
balance_duenumber | nullcontract_datestring | nulldateinstallation_datestring | nulldatearchivedbooleancompleted_atstring | nulldate-timelost_atstring | nulldate-timelost_reasonstring | nullWhy a lead that never sold was lost.
tradesarray of stringThe trades on the job (keys of the company's trades list, like roofing, gutters, siding); the first is the main one.
roof_squaresnumber | nullRoof size in squares (100 sq ft each): from a finished measurement, or typed.
property_typestring | nullresidentialcommercialroof_materialstring | nullasphaltmetaltileflatotherfirst_appointment_onstring | nulldateStamped: the first appointment that happened. Read-only.
build_started_onstring | nulldateStamped: the first day a crew started. Read-only.
build_finished_onstring | nulldateStamped: the day the last work order finished. Read-only.
paid_in_full_onstring | nulldateStamped: the last payment's day, once nothing is owed. Read-only.
cancelled_atstring | nulldate-timeStamped: the job sold, then was lost. A cancellation, never a lost lead. Read-only.
cancel_reasonstring | nullWhy a sold job was cancelled.
created_atstringdate-timeupdated_atstringdate-timeurlstringuriOpens the job in HailMate.
portal_urlstring | nulluriThe homeowner's job page — the same link "Copy Homeowner Link" gives.
Returned by list jobs, create a job, find jobs, get a job, update a job, list a contact's jobs
Delivered by job.created, job.updated, job.stage_changed, job.assigned
{
"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_companyotherContact
Homeowners, adjusters, subcontractors and everyone else in your book.
Fields
idstringuuidobjectstringalways "contact"first_namestring | nulllast_namestring | nullfull_namestring | nullemailstring | nullphonestring | nullphone_labelstring | nullmobileofficehomeworkfaxotheradditional_phonesarray of objectUp to five more numbers, each belonging to this contact only.
additional_phones[].phonestringadditional_phones[].labelstring | nullcompanystring | nulltypestringhomeownercommercialadjustercontractorsubcontractorinstall_crewinspectormortgage_companyothertradesarray of stringFor a subcontractor — gutters, siding…
addressstring | nullcitystring | nullstatestring | nullpostal_codestring | nullnotesstring | nullclaim_numberstring | nulladjuster_typestring | nulladjuster_extensionstring | nullassigned_to_idstring | nulluuidassigned_to_namestring | nullcustom_fieldsobjectThe 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-timeupdated_atstringdate-timeurlstringuri
Returned by list contacts, create a contact, find contacts, get a contact, update a contact
Delivered by contact.created, contact.updated
{
"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
idstringuuidobjectstringalways "task"titlestring | nulldescriptionstring | nulldue_datestring | nullWall-clock — the local time the crew reads. No offset.
end_datestring | nulldateThe last day of a task that blocks off several days.
duration_minutesinteger | nullprioritystring | nulllownormalhighcompletedbooleancompleted_atstring | nulldate-timeis_appointmentbooleanappointment_typestring | nullinspectionadjuster_meetingbuild_dayoutcomestring | nullcompletedno_showrescheduledcanceledcustomer_reminderstring | nullWhether HailMate reminds the homeowner the day before.
nonesmsemailbothreminder_minutesinteger | nullcalendar_idstring | nulluuidThe calendar it is an event on. Null is a to-do.
calendar_namestring | nulllocationstring | nullWhere, for an event with no job (a job's event is at the job's address).
job_idstring | nulluuidcontact_idstring | nulluuidassigned_to_idstring | nulluuidassigned_to_namestring | nullcreated_atstringdate-timeupdated_atstringdate-timeurlstringuri
{
"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
idstringuuidobjectstringalways "calendar"namestringcolorstringGoogle Calendar's colours, so an event matches on both.
bluegreenorangepurpleredtealpinkyellowgraylavendersagepositioninteger1-based place in the company's list.
members_see_allbooleanShared: every member reads every event on it, even on jobs they cannot otherwise see.
default_for_typesarray of stringAppointment types that land here when nobody picks a calendar. A type belongs to one calendar.
inspectionadjuster_meetingbuild_dayauto_join_rolesarray of stringWho joins it by themselves on joining the company (admin is owners and admins).
adminofficesalesproductioncrewmember_idsarray of stringuuidWho is on it (ids from /users).
created_atstringdate-timeupdated_atstringdate-timeurlstringuri
{
"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
idstringuuidobjectstringalways "calendar"deletedbooleanalways "true"events_movedintegerHow many events were on it.
moved_tostring | nulluuidThe calendar they went to; null made them to-dos.
Returned by delete a calendar
{
"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
idstringuuidobjectstringalways "estimate"estimate_numberstring | nulltitlestring | nulldocument_typestring | nullproposalestimatestatusstring | nulldraftsentviewedsignedexpireddeclinedsignature_statusstring | nulltotalnumber | nullThe selected package's price, else the base package. Null — never 0 — when it could not be computed.
package_totalsobject | nullEvery package's price, keyed by package.
upgrades_totalnumber | nullOptional upgrades, quoted outside the package price.
selected_tierstring | nullThe package the homeowner chose.
job_idstring | nulluuidvalid_untilstring | nulldate-timesent_atstring | nulldate-timefirst_viewed_atstring | nulldate-timelast_viewed_atstring | nulldate-timeview_countintegersigned_atstring | nulldate-timesigner_namestring | nullpdf_urlstring | nullurisigned_pdf_urlstring | nulluricreated_atstringdate-timeupdated_atstringdate-timeurlstringuriview_urlstring | nulluriThe homeowner's view of the estimate.
line_itemsarray of EstimateLineWhat is on the estimate. Only on
GET /estimates/{id}; lists and webhooks leave it out.
Returned by list a job's estimates, list estimates, create an estimate, get an estimate, update an estimate
Delivered by estimate.created, estimate.sent, estimate.viewed, estimate.signed, estimate.declined
{
"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
methodstringemailtextDefault
emailcontact_idstringuuidWho it goes to. Default: the job's homeowner.
toarray of stringEmail: addresses. Text: one phone number. Overrides the contact's.
subjectstringEmail only.
messagestringYour words. A text gets the link added on the end.
from_user_idstringuuidThe teammate it is sent as. Default: whoever made the key or connected the app.
{
"method": "email",
"contact_id": "b7c2d3e4-4444-4000-8000-0000000000dd",
"to": [],
"subject": "string",
"message": "string",
"from_user_id": "c53ef165-d14d-4710-8dd6-77ef0e800a7a"
}EstimateLine
Fields
idstringuuidobjectstringalways "estimate_line"namestring | nulldescriptionstring | nullquantitynumber | nullunitstring | nullsq, lf, ea…
unit_pricenumber | nullline_totalnumber | nulloptionstring | nullThe package the line belongs to (good, better, best). Null = every package.
optionalbooleanAn optional upgrade the homeowner can add.
{
"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
idstringuuidobjectstringalways "invoice"invoice_numberstring | nulltitlestring | nullstatusstringdraftsentviewedpartially_paidpaidoverduevoidbad_debtpurposestring | nullclaim_scopedeductiblesupplementdepreciationcontractothersubtotalnumber | nulldiscount_amountnumber | nulltax_amountnumber | nulllate_fee_amountnumber | nulltotal_amountnumberamount_paidnumberbalance_duenumbertotal_amount - amount_paid, never below zero.part_numberinteger | nullWhen billed in parts, which part this is.
part_countinteger | nullissue_datestring | nulldatedue_datestring | nulldatesent_atstring | nulldate-timefirst_viewed_atstring | nulldate-timepaid_atstring | nulldate-timejob_idstring | nulluuidcontact_idstring | nulluuidestimate_idstring | nulluuidpdf_urlstring | nulluricreated_atstringdate-timeupdated_atstringdate-timeurlstringuripayment_urlstring | nulluriThe homeowner's pay page — the same link "Copy Pay Link" gives.
line_itemsarray of InvoiceLineWhat is billed. Only on
GET /invoices/{id}; lists and webhooks leave it out.
{
"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
idstringuuidobjectstringalways "invoice_line"namestring | nulldescriptionstring | nullquantitynumber | nullunitstring | nullunit_pricenumber | nullline_totalnumber | nulltaxablebooleanlate_feebooleanA late fee HailMate added.
{
"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
}Payment
Money received against a job — carrier cheques, deductibles, card payments.
Fields
idstringuuidobjectstringalways "payment"job_idstringuuidinvoice_idstring | nulluuidamountnumberNegative for a refund.
payment_typestringacvdeductiblesupplementdepreciationretailotherpayer_typestringinsurancehomeownermortgage_companyotherpayment_methodstringcheckcashcardachfinancingotherstatusstringexpectedreceivedsent_to_mortgageendorseddepositedcheck_numberstring | nulldate_receivedstring | nulldatedate_depositedstring | nulldatenotesstring | nullis_refundbooleanrefund_of_payment_idstring | nulluuidonlinebooleanPaid through HailMate's online payment page.
created_atstringdate-timeupdated_atstringdate-timeurlstring | nulluri
{
"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
idstringuuidobjectstringalways "job_cost"job_idstringuuidcategorystringmaterialslaborsubcontractorpermitsdumpsterequipmentfuelmarketingotherdescriptionstring | nullvendorstring | nullamountnumberNegative for a credit.
incurred_onstring | nulldatefile_idstring | nulluuidThe receipt or bill on the job
created_atstringdate-timeupdated_atstringdate-timeurlstringuri
{
"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 | nullMoney in per month the company is aiming for. null = no goal.
monthly_sold_goalnumber | nullWork sold (contracts signed) per month the company is aiming for. null = no goal.
monthly_overheadnumber | nullWhat it costs to keep the doors open each month whatever the jobs do. null = not set (0 means none).
updated_atstring | nulldate-timeWhen they were last saved. null = never set.
{
"object": "money_targets",
"monthly_collected_goal": 120000,
"monthly_sold_goal": 150000,
"monthly_overhead": 38000,
"updated_at": "2026-10-31T15:00:00.000Z"
}Measurement
Fields
idstringuuidobjectstringalways "measurement"job_idstringuuidsourcestringeagleview, hover, manual or solar (instant satellite).
statusstringprocessingcompletedfailedsquaresnumber | nullThe roof itself
waste_percentnumber | nullsquares_with_wastenumber | nullarea_sqftnumber | nullpredominant_pitchstring | nullstoriesinteger | nullridge_lfnumber | nullhip_lfnumber | nullvalley_lfnumber | nulleave_lfnumber | nullrake_lfnumber | nulldrip_edge_lfnumber | nullstep_flashing_lfnumber | nullflashing_lfnumber | nullpitch_breakdownarray of object | nullcreated_atstringdate-timeurlstringuri
Returned by read a job's roof measurements
{
"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
idstringuuidobjectstringalways "carrier_scope"job_idstringuuidstatusstringprocessingcompletedfailedkindstring | nullcarrierstring | nullclaim_numberstring | nullpolicy_numberstring | nulladjuster_namestring | nulldate_of_lossstring | nulltotal_rcvnumber | nulltotal_acvnumber | nulldepreciationnumber | nulldeductiblenumber | nullnet_claimnumber | nulltax_ratenumber | nullline_item_countinteger | nullrevises_scope_idstring | nulluuidsource_file_idstring | nulluuidcreated_atstringdate-timeurlstringurilines_totalnumber | nullOne 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 objectOne 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 | nullline_items[].codestring | nullline_items[].quantitynumber | nullline_items[].unitstring | nullline_items[].unit_pricenumber | nullline_items[].totalnumber | nullline_items[].kindstring | nullitemtaxopsummaryline_items[].counted_in_totalboolean | null
{
"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
idstringuuidobjectstringalways "supplement"job_idstringuuidroundintegerstatusstringdraftsentopenedrepliedclosedoutcomestring | nullapprovedpartialdeniedamount_requestednumber | nullamount_approvednumber | nullitem_countinteger | nullsourcestringmanual (logged) or engine (built in HailMate).
carrier_scope_idstring | nulluuidsent_atstring | nulldate-timereplied_atstring | nulldate-timeclosed_atstring | nulldate-timenotesstring | nullcreated_atstringdate-timeupdated_atstringdate-timeurlstringuri
{
"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
amountnumberRequiredThe amount given back (positive; it is stored negative).
date_receivedstringdateDefault: today.
notesstring
{
"amount": 0,
"date_received": "2026-09-16",
"notes": "string"
}Product
A price-book item — what estimate lines are priced from.
Fields
idstringuuidobjectstringalways "product"namestringdescriptionstring | nullskustring | nullunitstring | nullpricenumber | nullWhat you charge per unit.
costnumber | nullWhat it costs you per unit.
categorystring | nullkindstringregularupgrademeasurement_basisstring | nullWhich roof measurement drives its quantity (squares, ridge_lf…).
coverage_per_unitnumber | nullwaste_percentnumber | nullactivebooleancreated_atstringdate-timeupdated_atstringdate-time
{
"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
idstringuuidobjectstringalways "note"job_idstringuuidcontentstringauthor_idstring | nulluuidNull for a note written through the API.
author_namestring | nullcreated_atstringdate-timeupdated_atstringdate-timeurlstringuri
Returned by list a job's notes, list notes, add a note to a job, get a note, change a note's words
Delivered by note.created
{
"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
idstringuuidobjectstringalways "activity"job_idstringuuidtypestringnote, call, email, meeting, status_change, stage_change, file_upload, task_created, task_completed, mention, invoice_change
titlestring | nulldescriptionstring | nullauthor_idstring | nulluuidauthor_namestring | nullcreated_atstringdate-timeurlstringuri
Returned by read a job's timeline
{
"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
idstringuuidobjectstringalways "job_person"job_idstringuuidcontact_idstringuuidrolestringcontractorsubcontractorinstall_crewinspectormortgage_companynamestring | nullcompanystring | nullemailstring | nullphonestring | nullcreated_atstringdate-timeurlstring | nulluri
{
"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_idstringuuidThe timeline line this change is on (one save can change several fields).
job_idstringuuidjob_numberstring | nullGET /job_history only.
job_namestring | nullGET /job_history only.
changed_atstringdate-timekindstringroleteamfieldstagecreatedarchivedfieldstring | nullsales_rep, canvasser, project_manager; a job field (job_name, job_number, lead_source, found_by, final_amount …); stage; assignees.
labelstring | nullIn words: "Sales rep", "Job name", "Stage".
fromarray of any | nullThe value before: a teammate's id for a role, the stored value for a field, a stage key.
toarray of any | nullThe value after (for
created, what the job started with).from_labelstring | nullThe value before in words: a name kept as it was, "$10,000", "Inspection Scheduled".
to_labelstring | nullchanged_by_idstring | nulluuidchanged_by_namestring | nullviastringappapiautomationsystemlinestring | nullThe timeline line it is on
{
"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
idstringuuidobjectstringalways "file"job_idstring | nulluuidnamestringcategorystringphotodocumentscopeestimatecontractothermime_typestring | nullis_photobooleanis_videobooleansize_bytesinteger | nulldescriptionstring | nullThe caption.
tagsarray of stringlatitudenumber | nullWhere a photo was taken.
longitudenumber | nulltaken_atstring | nulldate-timeuploaded_by_idstring | nulluuiduploaded_by_namestring | nulldownload_urlstringuricreated_atstringdate-timeurlstring | nulluri
{
"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_quotelostPin
Door knocks — pins on the canvassing map with a knock result.
Fields
idstringuuidobjectstringalways "pin"pin_typestringknockinspectionjobknock_resultstring | nullinterestednot_interestedcontactedno_answerdoor_hangerfollow_upappointment_scheduleddont_knockrenterno_damagecash_quotelostaddressstring | nullcitystring | nullstatestring | nullpostal_codestring | nulllatitudenumberlongitudenumberhomeowner_namestring | nullhomeowner_first_namestring | nullhomeowner_last_namestring | nullphonestring | nullemailstring | nullnotesstring | nulljob_idstring | nulluuidSet once the pin became a job.
created_by_idstringuuidcreated_by_namestring | nullcreated_atstringdate-timeupdated_atstringdate-timemap_urlstring | nulluriurlstringuri
Returned by list canvassing pins, log a door knock, get a pin, update a door knock
Delivered by pin.created, pin.result_changed
{
"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
namestringRequireddescriptionstringquantitynumberAt least 0 · Default
1unitstringsq, lf, ea…
unit_pricenumberRequired on an invoice line. Negative on an invoice is a credit.
taxablebooleanInvoices only.
Default
true
{
"name": "string",
"description": "string",
"quantity": 1,
"unit": "string",
"unit_price": 0,
"taxable": true
}EstimateTemplate
Fields
idstringuuidobjectstringalways "estimate_template"namestringtemplate_numberstring | nullcreated_atstringdate-timeupdated_atstringdate-time
Returned by list estimate templates
{
"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 EstimateTemplatehas_morebooleanalways "false"next_cursornull
{
"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_typestringRequiredauthorization_coderefresh_tokencodestringFor
authorization_code.redirect_uristringuriFor
authorization_code— the same address the person was sent back to.refresh_tokenstringFor
refresh_token.client_idstringRequiredclient_secretstringRequired
{
"grant_type": "authorization_code",
"code": "string",
"redirect_uri": "https://app.hailmate.ai/…",
"refresh_token": "string",
"client_id": "string",
"client_secret": "string"
}OAuthRevokeRequest
Fields
tokenstringRequiredclient_idstringRequiredclient_secretstringRequired
{
"token": "string",
"client_id": "string",
"client_secret": "string"
}OAuthToken
Fields
access_tokenstringhm_oat_…— send asAuthorization: Bearer.token_typestringalways "Bearer"expires_inintegerSeconds — an hour.
refresh_tokenstringhm_ort_…— keep it secret; it does not change.scopestringreadwriteworkspace_idstringuuidworkspacestring | nullThe company that was connected.
Returned by get or refresh an access token
{
"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
errorstringinvalid_requestinvalid_clientinvalid_grantunsupported_grant_typeserver_errorerror_descriptionstring
{
"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
idstringuuidobjectstringalways "storm_list"namestring | nullstatusstring | nullbuildingreadypartialfailedsourcestring | nullmanualautowindow_fromstring | nulldatewindow_tostring | nulldatemin_size_innumber | nullarea_kindstring | nullterritory_idstring | nulluuidclipped_area_sq_minumber | nullproperty_capinteger | nullproperty_countinteger | nullskipped_duplicatesinteger | nulldedupe_daysinteger | nullcredits_spentinteger | nulltotal_availableinteger | nullstorm_datestring | nulldatebuilt_atstring | nulldate-timecreated_atstringdate-timeupdated_atstringdate-timeurlstringuri
Returned by list storm lists, get a storm list
Delivered by storm_list.ready
{
"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
idstringuuidobjectstringalways "storm_list_property"storm_list_idstringuuidaddressstring | nullcitystring | nullstatestring | nullzipstring | nullowner_namestring | nullowner_occupiedboolean | nullNull when the county record did not say.
mailing_addressstring | nullmailing_citystring | nullmailing_statestring | nullmailing_zipstring | nullmail_deliverablebooleanOur judgement — NOT a CASS or NCOA result.
mail_exclude_reasonstring | nullhail_size_innumber | nullhail_event_datestring | nulldatenearest_report_minumber | nullnearest_report_size_innumber | nullyear_builtinteger | nullproperty_usestring | nullis_residentialboolean | nulllatitudenumber | nulllongitudenumber | nullcreated_atstringdate-time
Returned by list the properties on a storm list
{
"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
datestringdatesize_innumber | nullThe size HailMate stands behind for this day at this address.
confidencestring | nullconfirmedlikelyradarconfirmed_by_ground_reportbooleanradar_estimated_size_innumber | nullsevere_hail_probabilityinteger | nullPercent.
ground_report_size_innumber | nullground_report_distance_minumber | nullground_report_countinteger
{
"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 | nullThe address as it was found.
latitudenumberlongitudenumbersincestringdatehail_day_countintegerlargest_hail_innumber | nulllast_hail_datestring | nulldatehail_eventsarray of HailEventwind_eventsarray of objectwind_events[].datestringdatewind_events[].max_gust_mphnumber | nullNull when the report was damage with no measured gust.
Returned by hail and wind history at an address
{
"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
idstringuuidobjectstringalways "pipeline_stage"pipeline_idstringuuidkeystringWhat you send and filter on.
labelstringWhat to show a person.
colorstring | nullorderintegeris_completedbooleanis_lostboolean
{
"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
Returned by search jobs and contacts at once
{
"object": "search",
"query": "spring path",
"jobs": [],
"contacts": []
}Pipeline
One of your pipeline boards, with its stages in board order.
Fields
idstringuuidobjectstringalways "pipeline"namestringis_defaultbooleanorderinteger | nullstagesarray of PipelineStage
{
"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
idstringuuidobjectstringalways "user"namestring | nullemailstring | nullrolestringowneradminmember
Returned by list your team
{
"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
eventstringresourcestringlabelstringdescriptionstringfiltersarray of objectfilters[].keystringfilters[].labelstringfilters[].kindstringstageuserpipelineenumbooleanfilters[].valuesarray of string
Returned by list every webhook event
{
"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
idstringuuidobjectstringalways "webhook"eventstringAn event name, or "*" for every event.
location_idstring | nulluuidThe location it listens in; null when
company_wide.company_widebooleanMade by a company key with no location: it hears every location.
target_urlstringuridescriptionstring | nullfiltersobject | nullenabledbooleanFalse when paused or switched off after failing.
created_atstringdate-timedisabled_atstring | nulldate-timedisabled_reasonstring | nullWhy it is off
failure_countintegerFailed deliveries in a row since it last worked.
last_delivery_atstring | nulldate-timelast_delivery_statusstring | null
{
"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_idstringuuidokbooleanstatusinteger | nullYour endpoint's HTTP status
responsestringThe start of what your endpoint answered.
duration_msintegereventstringpayloadobjectThe exact body we posted.
Returned by send a test delivery now
{
"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
idstringuuidobjectstringalways "webhook_delivery"webhook_idstringuuideventstringresourcestringresource_idstringuuidstatusstringpendingdeliveringdeliveredfailedskippedattemptsintegernext_attempt_atstring | nulldate-timeWhen it goes next
response_statusinteger | nulllast_errorstring | nullcreated_atstringdate-timedelivered_atstring | nulldate-timepayloadobject | nullOnly when reading one delivery by id.
{
"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
idstringuuidobjectstringalways "webhook"eventstringAn event name, or "*" for every event.
location_idstring | nulluuidThe location it listens in; null when
company_wide.company_widebooleanMade by a company key with no location: it hears every location.
target_urlstringuridescriptionstring | nullfiltersobject | nullenabledbooleanFalse when paused or switched off after failing.
created_atstringdate-timedisabled_atstring | nulldate-timedisabled_reasonstring | nullWhy it is off
failure_countintegerFailed deliveries in a row since it last worked.
last_delivery_atstring | nulldate-timelast_delivery_statusstring | nullsecretstringThe signing secret. Returned ONCE.
Returned by subscribe to an event
{
"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_typestringevent_idstringuuidAlso the X-HailMate-Delivery header.
event_atstringdate-timeWhen the change happened.
event_workspace_idstringuuidThe location (workspace) it happened in — for a company-wide webhook, whichever location it was.
event_locationstring | nullThat location's name, e.g. Cincinnati.
event_testbooleanPresent and true on a test send from Settings.
previous_stagestring | nulljob.stage_changedonly.previous_stage_labelstring | nulljob.stage_changedonly.changed_fieldsarray of string*.updatedonly — the public field names that changed.previous_assigned_to_idstring | nulljob.assignedonly.previous_knock_resultstring | nullpin.result_changedonly.
{
"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"
}