{"openapi":"3.1.0","info":{"title":"Dibs API","version":"1.2.0","description":"Read a moving company's Dibs leads, their history and booked jobs. Dibs is the quote form on the mover's website. Most leads are one person who filled in that form; the office also enters phone calls by hand, and Google Ads lead forms arrive on their own. intake_channel says which. The mover marks each lead's stage (new, contacted, quoted, booked, lost, cancelled) and the job value when it is booked. Use this API to see which ad campaigns, keywords and sources turn into booked jobs and revenue. Start with getCapabilities: it says what Dibs can and cannot see for this company (phone calls are there only when entered by hand). A key belongs to one moving company and only ever sees that company's leads. Test leads are never included. No names, phone numbers, emails, street addresses or notes are returned. Times are ISO 8601 in UTC. Every successful JSON answer carries schema_version and generated_at."},"servers":[{"url":"https://api.hellodibs.com"}],"security":[{"bearerAuth":[]}],"paths":{"/v1/me":{"get":{"operationId":"getMe","summary":"Which company this key belongs to, and what it may read","description":"Call this first to confirm the key works and to learn the company name and the key's scopes.","responses":{"200":{"description":"The company and the key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Me"}}}},"401":{"description":"No key, or the key is unknown, revoked or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the scope this endpoint needs (code missing_scope), the account is paused (code account_paused), or the Dibs API is not turned on for this account (code api_not_enabled).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 requests a minute with this key (code rate_limited). Wait a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/capabilities":{"get":{"operationId":"getCapabilities","summary":"What Dibs can see for this company, and what it cannot","description":"Call this before drawing conclusions. intake_coverage says which ways in Dibs sees by itself (the website form, a connected Google lead form) and which only when the office enters them (phone calls). known_gaps lists the limits in plain sentences. Also the stage meanings, when history starts, the conversion names and which features exist. Any valid key.","responses":{"200":{"description":"The capabilities.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Capabilities"}}}},"401":{"description":"No key, or the key is unknown, revoked or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the scope this endpoint needs (code missing_scope), the account is paused (code account_paused), or the Dibs API is not turned on for this account (code api_not_enabled).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 requests a minute with this key (code rate_limited). Wait a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/health":{"get":{"operationId":"getHealth","summary":"Is data flowing: last lead, last change, last conversion feed fetch","description":"No customer data. last_feed_served_at is the last time anyone (normally Google's scheduled import) fetched the conversion feed. unresolved_cancellations counts booked jobs cancelled or un-booked after Google received them. Any valid key.","responses":{"200":{"description":"Health.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Health"}}}},"401":{"description":"No key, or the key is unknown, revoked or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the scope this endpoint needs (code missing_scope), the account is paused (code account_paused), or the Dibs API is not turned on for this account (code api_not_enabled).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 requests a minute with this key (code rate_limited). Wait a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/leads":{"get":{"operationId":"listLeads","summary":"Leads with their source, campaign, stage and job value, newest first","description":"One row per lead, without contact details. Use it to answer which campaigns, keywords (utm_term) and sources produce booked jobs: group by source or utm_campaign and count stage = booked, sum job_value. Google Ads leads are marked source = \"Google Ads\" and click_id_type = gclid, gbraid or wbraid even when the campaign has no UTM tags, so utm_campaign can be empty for paid clicks. Leads that did not come through the website form carry their intake_channel as the source (for example \"Phone call from an ad\"). Page through with next_cursor until it is null. Needs the leads:read scope.","parameters":[{"name":"since","in":"query","required":false,"description":"Only leads created on or after this date (YYYY-MM-DD, or an ISO time).","schema":{"type":"string","examples":["2026-09-01"]}},{"name":"stage","in":"query","required":false,"description":"Only leads at this stage.","schema":{"type":"string","enum":["new","contacted","quoted","booked","lost","cancelled"]}},{"name":"limit","in":"query","required":false,"description":"Leads per page, 1 to 200.","schema":{"type":"integer","minimum":1,"maximum":200,"default":50}},{"name":"cursor","in":"query","required":false,"description":"The next_cursor from the previous page. Leave out for the first page.","schema":{"type":"string"}}],"responses":{"200":{"description":"A page of leads.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadPage"}}}},"400":{"description":"A filter could not be read (code bad_request).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No key, or the key is unknown, revoked or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the scope this endpoint needs (code missing_scope), the account is paused (code account_paused), or the Dibs API is not turned on for this account (code api_not_enabled).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 requests a minute with this key (code rate_limited). Wait a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/leads/{id}":{"get":{"operationId":"getLead","summary":"One lead, with its 20 most recent history events","description":"The same fields as listLeads plus recent_events, newest first. Needs the leads:read scope.","parameters":[{"name":"id","in":"path","required":true,"description":"The lead's id (a UUID), as listLeads or listChanges returned it.","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"The lead.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadDetail"}}}},"401":{"description":"No key, or the key is unknown, revoked or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the scope this endpoint needs (code missing_scope), the account is paused (code account_paused), or the Dibs API is not turned on for this account (code api_not_enabled).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No lead with that id for this account (code not_found).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 requests a minute with this key (code rate_limited). Wait a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/leads/{id}/events":{"get":{"operationId":"listLeadEvents","summary":"A lead's whole history, oldest first","description":"Every recorded event for one lead: created, stage changes, value changes, follow-up changes, notes edits (length only, never the text). Page with next_cursor while has_more is true. Needs the leads:read scope.","parameters":[{"name":"id","in":"path","required":true,"description":"The lead's id (a UUID), as listLeads or listChanges returned it.","schema":{"type":"string","format":"uuid"}},{"name":"cursor","in":"query","required":false,"description":"next_cursor from the previous page. Leave out for the first page.","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"Events per page, 1 to 200.","schema":{"type":"integer","minimum":1,"maximum":200,"default":50}}],"responses":{"200":{"description":"A page of events.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventPage"}}}},"400":{"description":"The cursor could not be read (code bad_request).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No key, or the key is unknown, revoked or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the scope this endpoint needs (code missing_scope), the account is paused (code account_paused), or the Dibs API is not turned on for this account (code api_not_enabled).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No lead with that id for this account (code not_found).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 requests a minute with this key (code rate_limited). Wait a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/changes":{"get":{"operationId":"listChanges","summary":"Everything that changed on any lead since your last call, in order","description":"The change feed. Store next_cursor and pass it next time: you get only what happened after it. Ordered by event_id, ascending. An empty page with has_more = false returns the same cursor, so polling is safe. high_watermark is the newest event id at query time. Events show up about 5 seconds after they happen. Never contains contact details or notes text. Needs the leads:read scope.","parameters":[{"name":"cursor","in":"query","required":false,"description":"next_cursor from the previous call. Leave out to start from the beginning of the history.","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"Events per page, 1 to 500.","schema":{"type":"integer","minimum":1,"maximum":500,"default":100}}],"responses":{"200":{"description":"A page of changes.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangePage"}}}},"400":{"description":"The cursor could not be read (code bad_request).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No key, or the key is unknown, revoked or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the scope this endpoint needs (code missing_scope), the account is paused (code account_paused), or the Dibs API is not turned on for this account (code api_not_enabled).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 requests a minute with this key (code rate_limited). Wait a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/reports/funnel":{"get":{"operationId":"getFunnelReport","summary":"Funnel counts for a date range: inquiries, quotes, bookings, cancellations, values","description":"mode=intake_cohort takes the leads that arrived in the range and says how far each had got by as_of (stages overlap: a booked lead also counts as contacted and quoted). mode=activity counts what happened in the range: quotes, first bookings (booked_at), cancellations (cancelled_at). Days are New York days; end is not included. Read coverage and notes before reporting: phone calls are counted only when entered by hand. Needs the leads:read scope.","parameters":[{"name":"mode","in":"query","required":false,"schema":{"type":"string","enum":["intake_cohort","activity"],"default":"intake_cohort"}},{"name":"start","in":"query","required":true,"description":"First day, YYYY-MM-DD, New York time.","schema":{"type":"string","examples":["2026-09-01"]}},{"name":"end","in":"query","required":true,"description":"The day after the last day, YYYY-MM-DD, New York time. Not included.","schema":{"type":"string","examples":["2026-10-01"]}},{"name":"as_of","in":"query","required":false,"description":"Ignore what happened after this time, where Dibs can tell. Default now.","schema":{"type":"string"}}],"responses":{"200":{"description":"The report.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunnelReport"}}}},"400":{"description":"A parameter could not be read (code bad_request).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No key, or the key is unknown, revoked or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the scope this endpoint needs (code missing_scope), the account is paused (code account_paused), or the Dibs API is not turned on for this account (code api_not_enabled).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 requests a minute with this key (code rate_limited). Wait a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/conversions":{"get":{"operationId":"listConversions","summary":"Booked jobs that came from Google Ads clicks, for conversion import","description":"One row per booked lead that arrived from a Google Ads click, with the click ID, when it was first booked and the job value. Only leads from the last 90 days, which is as far back as Google Ads accepts. The time is booked_at, which never moves, so Google never sees a second time for one job. Cancelled jobs are not listed; one Google already imported shows in listConversionDeliveries as cancelled_after_serving. Phone calls never appear: they have no click ID. format=csv returns Google Ads' offline click conversion template (gclid rows only) for a scheduled import. Needs the conversions:read scope. Basic auth (any username, the key as the password) also works here.","security":[{"bearerAuth":[]},{"basicAuth":[]}],"parameters":[{"name":"since","in":"query","required":false,"description":"Only leads created on or after this date. Default and earliest: 90 days ago.","schema":{"type":"string","examples":["2026-09-01"]}},{"name":"include","in":"query","required":false,"description":"quoted adds a conversion for leads now at the quoted stage, timed when they were marked quoted.","schema":{"type":"string","enum":["quoted"]}},{"name":"booked_name","in":"query","required":false,"description":"The conversion name for booked jobs. Must match the conversion action's name in Google Ads.","schema":{"type":"string","default":"Dibs booked job"}},{"name":"quoted_name","in":"query","required":false,"description":"The conversion name for quoted leads, with include=quoted.","schema":{"type":"string","default":"Dibs quoted lead"}},{"name":"format","in":"query","required":false,"description":"json (default) or csv. /v1/conversions.csv is the same as format=csv.","schema":{"type":"string","enum":["json","csv"],"default":"json"}}],"responses":{"200":{"description":"The conversions.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversionList"}},"text/csv":{"schema":{"type":"string"}}}},"400":{"description":"A parameter could not be read (code bad_request).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No key, or the key is unknown, revoked or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the scope this endpoint needs (code missing_scope), the account is paused (code account_paused), or the Dibs API is not turned on for this account (code api_not_enabled).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 requests a minute with this key (code rate_limited). Wait a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/conversion-deliveries":{"get":{"operationId":"listConversionDeliveries","summary":"Which conversions the feed has handed out, and which were cancelled or un-booked afterwards","description":"One row per conversion the feed (listConversions or the CSV) has served. served means it was fetched, normally by Google's scheduled import; it is not proof Google matched it to an ad. cancelled_after_serving: the job was cancelled or un-booked after Google received it; booked again, it turns back to served. Dibs does not send adjustments, so Google still counts it. Needs the conversions:read scope.","parameters":[{"name":"state","in":"query","required":false,"description":"Only rows in this state.","schema":{"type":"string","enum":["served","cancelled_after_serving"]}},{"name":"limit","in":"query","required":false,"description":"Rows, 1 to 500, most recently served first.","schema":{"type":"integer","minimum":1,"maximum":500,"default":100}}],"responses":{"200":{"description":"The deliveries.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeliveryList"}}}},"400":{"description":"state could not be read (code bad_request).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No key, or the key is unknown, revoked or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the scope this endpoint needs (code missing_scope), the account is paused (code account_paused), or the Dibs API is not turned on for this account (code api_not_enabled).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 requests a minute with this key (code rate_limited). Wait a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/intake/google-lead-form":{"post":{"operationId":"intakeGoogleLeadForm","summary":"For Google Ads only: the lead form webhook. Assistants should never call this.","description":"Google Ads posts each lead form submission here (lead form asset, Lead delivery, webhook integration). The Dibs key goes in Google's Key field and arrives in the body as google_key; this is the only endpoint that reads a key from the body. A lead_id already received answers 200 with duplicate = true and changes nothing. Needs the leadforms:write scope.","security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleLeadFormWebhook"}}}},"responses":{"200":{"description":"Received.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntakeResult"}}}},"400":{"description":"The body is not a lead form submission (code bad_request).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No key, or the key is unknown, revoked or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the scope this endpoint needs (code missing_scope), the account is paused (code account_paused), or the Dibs API is not turned on for this account (code api_not_enabled).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 requests a minute with this key (code rate_limited). Wait a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"A Dibs API key, dibs_live_ followed by 32 letters and digits."},"basicAuth":{"type":"http","scheme":"basic","description":"Any username, the Dibs API key as the password. For tools that only take a username and password."}},"schemas":{"Error":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","examples":["missing_scope"]},"message":{"type":"string"}}}}},"Me":{"type":"object","properties":{"schema_version":{"type":"string","examples":["1.1"],"description":"The response shape's version."},"generated_at":{"type":"string","format":"date-time","description":"When Dibs built this answer, UTC."},"client":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"company_name":{"type":"string"}}},"key":{"type":"object","properties":{"name":{"type":"string"},"prefix":{"type":"string","description":"The first 12 characters of the key."},"scopes":{"type":"array","items":{"type":"string"}},"created_at":{"type":"string","format":"date-time"}}}}},"Lead":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"created_at":{"type":"string","format":"date-time","description":"When the form was sent, or when they first reached the office for a lead entered by hand."},"stage":{"type":"string","enum":["new","contacted","quoted","booked","lost","cancelled"],"description":"The mover's own sales stage for this lead."},"stage_changed_at":{"type":["string","null"],"format":"date-time","description":"When the stage last changed."},"job_value":{"type":["number","null"],"description":"What the booked job is worth in US dollars, as the mover entered it."},"lost_reason":{"type":["string","null"],"description":"price, date, went_elsewhere, no_reply or other. Only for lost leads."},"follow_up_on":{"type":["string","null"],"description":"The day the mover plans to follow up (YYYY-MM-DD)."},"move_date":{"type":["string","null"],"description":"The move date the visitor gave (YYYY-MM-DD)."},"move_timeframe":{"type":["string","null"],"description":"When they plan to move, when they gave no exact date."},"bedrooms":{"type":["string","null"]},"property_type":{"type":["string","null"]},"from_zip":{"type":["string","null"]},"to_zip":{"type":["string","null"]},"source":{"type":"string","description":"Where the lead came from: Google Ads, Bing Ads, Meta Ads, Google (organic), Direct, Yelp, ChatGPT, a referring site, and so on. For a lead that did not use the website form: Phone call from an ad, Call from the website, Google lead form, Referral, Entered by hand or Other."},"utm_source":{"type":["string","null"]},"utm_medium":{"type":["string","null"]},"utm_campaign":{"type":["string","null"],"description":"The campaign tag on the ad's link, if the ad had one."},"utm_term":{"type":["string","null"],"description":"Usually the keyword, if the ad's link carried it."},"utm_content":{"type":["string","null"]},"click_id_type":{"type":["string","null"],"enum":["gclid","gbraid","wbraid","msclkid","fbclid",null],"description":"The ad click ID the visit carried. gclid, gbraid and wbraid are Google Ads, msclkid is Microsoft Ads, fbclid is any Facebook or Instagram link."},"has_click_id":{"type":"boolean","description":"True when Dibs holds an ad click ID for the lead. Phone calls never have one."},"ai_call_status":{"type":["string","null"],"description":"What happened when Dibs called the lead back, when the mover uses the call-back."},"intake_channel":{"type":"string","enum":["website_form","ad_call","website_call","google_lead_form","manual","referral","other"],"description":"How the lead reached the mover. website_form is the Dibs form; ad_call and website_call are phone calls the office entered by hand; google_lead_form arrived from Google Ads by itself."},"booked_at":{"type":["string","null"],"format":"date-time","description":"The first time it was booked. Never moves, and stays when a cancelled job is reinstated. This is the conversion time."},"cancelled_at":{"type":["string","null"],"format":"date-time","description":"When the booked job was cancelled. Null unless the stage is cancelled."},"ad_campaign_id":{"type":["string","null"],"description":"The Google Ads campaign id, for Google lead form leads (website leads carry UTMs instead)."},"ad_group_id":{"type":["string","null"],"description":"The Google Ads ad group id, for Google lead form leads."},"ad_creative_id":{"type":["string","null"],"description":"The Google Ads creative id, for Google lead form leads."},"lead_form_id":{"type":["string","null"],"description":"The Google lead form's id, for Google lead form leads."}}},"LeadPage":{"type":"object","properties":{"schema_version":{"type":"string","examples":["1.1"],"description":"The response shape's version."},"generated_at":{"type":"string","format":"date-time","description":"When Dibs built this answer, UTC."},"data":{"type":"array","items":{"$ref":"#/components/schemas/Lead"}},"next_cursor":{"type":["string","null"],"description":"Pass as cursor for the next page. Null on the last page."}}},"Event":{"type":"object","properties":{"event_id":{"type":"integer","description":"Ever increasing. The change feed's order."},"lead_id":{"type":"string","format":"uuid"},"event_type":{"type":"string","enum":["lead.created","stage.changed","value.changed","follow_up.changed","notes.changed","lead.cancelled","lead.updated","lead.removed","lead.restored"]},"from":{"type":["object","null"],"description":"Before: stage, value, follow_up_on, or length for notes (counted, never copied)."},"to":{"type":["object","null"],"description":"After, same keys. lead.created carries intake_channel."},"occurred_at":{"type":"string","format":"date-time","description":"When it happened. For a lead entered by hand, when they first reached the office."},"recorded_at":{"type":"string","format":"date-time","description":"When Dibs wrote it down."},"actor_type":{"type":"string","enum":["office","admin","api_key","system","google_lead_form","widget"]},"actor_label":{"type":["string","null"],"description":"Who, for display: Office, Dibs team, Website form, Google Ads lead form, the key's name, or a backfill label. Never an email."},"reason":{"type":["string","null"]}}},"LeadDetail":{"type":"object","properties":{"schema_version":{"type":"string","examples":["1.1"],"description":"The response shape's version."},"generated_at":{"type":"string","format":"date-time","description":"When Dibs built this answer, UTC."},"data":{"allOf":[{"$ref":"#/components/schemas/Lead"},{"type":"object","properties":{"recent_events":{"type":"array","items":{"$ref":"#/components/schemas/Event"}}}}]}}},"EventPage":{"type":"object","properties":{"schema_version":{"type":"string","examples":["1.1"],"description":"The response shape's version."},"generated_at":{"type":"string","format":"date-time","description":"When Dibs built this answer, UTC."},"data":{"type":"array","items":{"$ref":"#/components/schemas/Event"}},"next_cursor":{"type":"string"},"has_more":{"type":"boolean"}}},"ChangePage":{"type":"object","properties":{"schema_version":{"type":"string","examples":["1.1"],"description":"The response shape's version."},"generated_at":{"type":"string","format":"date-time","description":"When Dibs built this answer, UTC."},"data":{"type":"array","items":{"$ref":"#/components/schemas/Event"}},"next_cursor":{"type":"string","description":"Store it and pass it as cursor next time."},"has_more":{"type":"boolean","description":"True when another page is waiting now."},"high_watermark":{"type":"integer","description":"The newest event id at query time."}}},"Capabilities":{"type":"object","properties":{"schema_version":{"type":"string","examples":["1.1"],"description":"The response shape's version."},"generated_at":{"type":"string","format":"date-time","description":"When Dibs built this answer, UTC."},"environment":{"type":"string","examples":["production"]},"business":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"timezone":{"type":"string"},"currency":{"type":"string"}}},"scopes":{"type":"array","items":{"type":"string"}},"intake_coverage":{"type":"object","description":"automatic: Dibs sees these by itself. manual_entry: only when the office enters them. not_connected: possible, not set up.","additionalProperties":{"type":"string","enum":["automatic","manual_entry","not_connected"]}},"stages":{"type":"array","items":{"type":"object","properties":{"stage":{"type":"string"},"meaning":{"type":"string"}}}},"history":{"type":"object","properties":{"history_start":{"type":["string","null"]},"backfilled":{"type":"boolean"},"note":{"type":"string"}}},"features":{"type":"object","additionalProperties":true},"conversion_mappings":{"type":"array","items":{"type":"object","additionalProperties":true}},"known_gaps":{"type":"array","items":{"type":"string"}}}},"Health":{"type":"object","properties":{"schema_version":{"type":"string","examples":["1.1"],"description":"The response shape's version."},"generated_at":{"type":"string","format":"date-time","description":"When Dibs built this answer, UTC."},"api":{"type":"string","examples":["ok"]},"last_lead_at":{"type":["string","null"],"format":"date-time"},"last_event_at":{"type":["string","null"],"format":"date-time"},"last_feed_served_at":{"type":["string","null"],"format":"date-time"},"unresolved_cancellations":{"type":"integer"}}},"FunnelReport":{"type":"object","properties":{"schema_version":{"type":"string","examples":["1.1"],"description":"The response shape's version."},"generated_at":{"type":"string","format":"date-time","description":"When Dibs built this answer, UTC."},"mode":{"type":"string","enum":["intake_cohort","activity"]},"range":{"type":"object","additionalProperties":true},"counts":{"type":"object","additionalProperties":true,"description":"intake_cohort: unique_inquiries, by_channel, contacted, quoted, ever_booked, booked_active, cancelled, lost, open, lost_reasons, with_click_id, unknown_source. activity: quotes, bookings, cancellations."},"values":{"type":"object","additionalProperties":true,"description":"US dollars, as the office entered them."},"exclusions":{"type":"object","properties":{"test_leads":{"type":"integer"}}},"coverage":{"type":"object","properties":{"phone_calls":{"type":"string"},"outcome_records_complete":{"type":"boolean"}}},"notes":{"type":"array","items":{"type":"string"}}}},"Conversion":{"type":"object","properties":{"lead_id":{"type":"string","format":"uuid"},"click_id":{"type":"string"},"click_id_type":{"type":"string","enum":["gclid","gbraid","wbraid"]},"conversion":{"type":"string","description":"The conversion name, as Google Ads must know it."},"time":{"type":"string","format":"date-time","description":"When the lead was first booked (booked_at, frozen so Google never sees a second time for one job), or marked quoted. UTC."},"value":{"type":["number","null"],"description":"The job value. Null when the mover did not enter one."},"currency":{"type":"string","examples":["USD"]}}},"ConversionList":{"type":"object","properties":{"schema_version":{"type":"string","examples":["1.1"],"description":"The response shape's version."},"generated_at":{"type":"string","format":"date-time","description":"When Dibs built this answer, UTC."},"data":{"type":"array","items":{"$ref":"#/components/schemas/Conversion"}},"count":{"type":"integer"},"since":{"type":"string","format":"date-time","description":"The earliest lead time included."}}},"Delivery":{"type":"object","properties":{"id":{"type":"integer"},"lead_id":{"type":"string","format":"uuid"},"conversion_name":{"type":"string"},"click_id_type":{"type":["string","null"]},"conversion_time":{"type":"string","format":"date-time"},"value":{"type":["number","null"]},"currency":{"type":"string"},"first_served_at":{"type":"string","format":"date-time"},"last_served_at":{"type":"string","format":"date-time"},"served_count":{"type":"integer"},"state":{"type":"string","enum":["served","cancelled_after_serving"]}}},"DeliveryList":{"type":"object","properties":{"schema_version":{"type":"string","examples":["1.1"],"description":"The response shape's version."},"generated_at":{"type":"string","format":"date-time","description":"When Dibs built this answer, UTC."},"data":{"type":"array","items":{"$ref":"#/components/schemas/Delivery"}},"count":{"type":"integer"},"meaning":{"type":"string"}}},"GoogleLeadFormWebhook":{"type":"object","description":"What Google Ads sends. Only Google calls this.","required":["lead_id"],"properties":{"lead_id":{"type":"string"},"api_version":{"type":"string"},"form_id":{"type":["integer","string"]},"campaign_id":{"type":["integer","string"]},"adgroup_id":{"type":["integer","string"]},"creative_id":{"type":["integer","string"]},"gcl_id":{"type":"string"},"google_key":{"type":"string","description":"The Dibs key, as typed into Google's Key field."},"is_test":{"type":"boolean"},"user_column_data":{"type":"array","items":{"type":"object","properties":{"column_id":{"type":"string"},"column_name":{"type":"string"},"string_value":{"type":"string"}}}}}},"IntakeResult":{"type":"object","properties":{"schema_version":{"type":"string","examples":["1.1"],"description":"The response shape's version."},"generated_at":{"type":"string","format":"date-time","description":"When Dibs built this answer, UTC."},"lead_id":{"type":"string","format":"uuid"},"duplicate":{"type":"boolean"}}}}}}