Lead API · v1.1 · December 2, 2026

Sending leads to GetaQuote

How to send auto and home insurance data leads to GetaQuote with ping/post: what to send, what comes back, and how we test before going live.

Protocol
HTTPS, JSON
Model
Ping/post or direct post
Products
Auto and home
Auth
Bearer API key

1How it works#

  1. Ping with the non-identifying details of a lead (product, state, ZIP, age, …). We answer right away with a bid in cents, or no bid.
  2. Post the full lead with the ping_id within 10 minutes to get the price we quoted.
  3. We return the result: sold (and what we pay), unsold, or duplicate.

You can also skip the ping and post directly. The lead is then priced at the time of the post.

2Connection and API keys#

ItemValue
Base URLhttps://api.getaquote.com
PingPOST /api/market/ping
PostPOST /api/market/post
Check a keyGET /api/market/key (changes nothing)
HeadersContent-Type: application/json
Authorization: Bearer <your API key>
Idempotency-Key: <uuid> (posts, recommended)

Keys say which environment they are for. Keep them server-side and out of logs and source control.

KeyLooks likeWhat happens
Testgq_test_8Hc2Lq0Z…Validated and priced exactly like live, then recorded as a test: never sold, never billed.
Livegq_live_Xk4pR7mT…Real leads: sold and paid for.
  • Several keys at once. You can hold more than one working key (one per server, say), each with its own name.
  • Rotation without downtime. When we roll a key you get the new one right away and the old one keeps working for an agreed overlap (24 hours unless we agree otherwise), then stops on its own. Switch over within the overlap.
  • Revocation. A revoked key stops at the next request (401 api_key_revoked). We only revoke without notice if a key leaks.
  • Optional limits per key: an expiry date, permissions (ping, post or both) and a list of server IP addresses allowed to use it (exact IPv4 or IPv6). Send us your outgoing IPs if you'd like that lock.
  • Keys are sent once, privately (never by plain email). We store only a hash and can't show a key again: if one is lost, we issue a new one.

Check your key

GET /api/market/key
curl -sS "$GQ_BASE_URL/api/market/key" -H "Authorization: Bearer $GQ_API_KEY"

{
  "source": "Acme Leads (test)", "mode": "test", "key": "gq_test_8Hc2Lq0Z",
  "scopes": ["ping", "post"], "expires_at": null, "ip_allowlist": null, "source_status": "active",
  "rate_limits": { "ping_per_minute": 1200, "post_per_minute": 600 }
}

3Quick start#

Copy these into a terminal with your test key. Every call shows up on our side with exactly what you sent.

Setup
export GQ_BASE_URL="https://…"     # sent with your keys
export GQ_API_KEY="gq_test_…"         # your test key first; the live key later
Ping
curl -sS -i -X POST "$GQ_BASE_URL/api/market/ping" \
  -H "Authorization: Bearer $GQ_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"product":"auto","lead_type":"data","state":"CA","zip":"92101","age":34,"tcpa":true}'
Post (use the ping_id from the ping)
curl -sS -i -X POST "$GQ_BASE_URL/api/market/post" \
  -H "Authorization: Bearer $GQ_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: 9b2f6c1e-4a7d-4f0e-8c3b-2d5e7a1f0c64" \
  -d '{
    "external_id": "VENDOR-123456",
    "ping_id": "5b8f2c1e-6a0d-4e7b-9f3a-1c2d3e4f5a6b",
    "product": "auto",
    "contact": { "first_name": "Jordan", "last_name": "Sample", "phone": "+16195550123", "email": "jordan@example.com" },
    "address": { "street": "17 Example Ln", "city": "San Diego", "state": "CA", "zip": "92101" },
    "person": { "dob": "1990-06-15" },
    "tcpa": { "consent_text": "By clicking Get my quotes, I agree that …", "consented_at": "2026-12-02T18:04:05Z", "ip": "203.0.113.7" }
  }'

4Ping#

These fields are used for pricing. A ping never contains contact details. Any other fields are accepted and ignored (we list them back in ignored_fields), so you can send your usual ping record.

FieldTypeNotes
product requiredstring"auto" or "home"
lead_typestring"data" (default)
state requiredstringTwo-letter US state, e.g. "CA"
zipstring5-digit ZIP
ageinteger16–120
year_builtintegerHome only
tcpabooleantrue when TCPA consent was captured
POST /api/market/ping
{ "product": "auto", "lead_type": "data", "state": "CA", "zip": "92101", "age": 34, "tcpa": true }

200 OK
{ "ping_id": "5b8f2c1e-…", "accepted": true, "bid_cents": 2101 }

accepted: false with bid_cents: 0 means no bid for that lead right now.

5Post#

POST /api/market/post
{
  "external_id": "VENDOR-123456",
  "ping_id": "5b8f2c1e-…",
  "product": "auto",
  "lead_type": "data",
  "contact": { "first_name": "Jordan", "last_name": "Sample", "phone": "+16195550123", "email": "jordan@example.com" },
  "address": { "street": "17 Example Ln", "city": "San Diego", "state": "CA", "zip": "92101" },
  "person":  { "dob": "1990-06-15", "gender": "female", "homeowner": true, "residence": "own" },
  "auto": {
    "currently_insured": true, "current_carrier": "Example Mutual", "sr22": false,
    "vehicles": [ { "year": 2019, "make": "TOYOTA", "model": "CAMRY" } ],
    "drivers":  [ { "first_name": "Jordan", "dob": "1990-06-15", "gender": "female" } ]
  },
  "tcpa": {
    "consent_text": "By clicking Get my quotes, I agree that …",
    "trustedform_url": "https://cert.trustedform.com/abc123",
    "consented_at": "2026-12-02T18:04:05Z",
    "ip": "203.0.113.7"
  }
}

200 OK
{ "lead_id": "c21dfaf4-…", "status": "sold", "payout_cents": 2101 }

For home, send "product": "home" and a home object instead of auto:

"home": { "year_built": 1998, "square_feet": 1850, "currently_insured": true, "current_carrier": "Example Mutual" }

Field reference

FieldTypeNotes
external_idstringYour lead id (up to 100 chars). Strongly recommended: used for duplicates and reconciliation.
ping_idstringFrom the ping. Single use; must match the post's product and state; valid 10 minutes.
product requiredstring"auto" or "home"
lead_typestring"data" (default)
contact.phone requiredstringUS 10-digit number; E.164 (+1…) preferred, common formats accepted
contact.first_name, last_namestringUp to 40 / 80 characters
contact.emailstringPlain address (letters, digits, . _ + ' -)
address.state requiredstringTwo-letter US state
address.street, city, zipstringZIP: 5 digits (ZIP+4 accepted)
person.dob or person.agestring / intYYYY-MM-DD, or age 16–120
person.*objectAlso: gender, homeowner, residence (own/rent), marital status, credit, etc.
auto.*objectcurrently_insured, current_carrier, sr22, vehicles[], drivers[], coverage, incidents
home.*objectyear_built (integer), square_feet, currently_insured, current_carrier, property type
tcpa.*objectSee Consent
extraobjectAnything else you'd like us to keep (campaign, sub-id, …)
Send every field you capture: more detail lets us bid higher. Top-level fields not listed here are rejected with unknown_fields:… so mapping mistakes show up on the first test. Put extra data inside person, auto, home or extra. Lead data under 32 KB, whole request under 64 KB.

7Idempotent retries#

Send an Idempotency-Key header (a UUID you generate per lead, up to 255 characters) with every post. If a post times out or the connection drops, retry it with the same key and the same body: within 24 hours you get the first answer back, with the same lead_id, and the lead is never processed or billed twice.

RetryAnswer
Same key, same bodyThe original status and body, plus the header Idempotent-Replayed: true
Same key, different body409 idempotency_key_reused: use a new key for a new lead
Same key while the first is still running409 idempotency_request_in_progress with Retry-After: 1
After 24 hoursProcessed as a new request (the same external_id then answers duplicate)

Without the header, retries are still safe: a re-post of the same external_id answers duplicate with the original lead_id. The header makes the retry return the original result itself, and covers leads without an external_id. Pings don't need it.

8Rate limits and response headers#

Each key may make 1,200 pings and 600 posts per minute (fixed one-minute windows). Every authenticated response says where you stand:

HeaderMeaning
X-RateLimit-LimitCalls of this kind (ping or post) allowed per minute on this key
X-RateLimit-RemainingCalls left in the current window
X-RateLimit-ResetWhen the window resets, in Unix seconds (UTC)
Retry-AfterOn 429 (and 409 idempotency_request_in_progress): seconds to wait before retrying
X-Request-IdOur id for this call, e.g. req_48213. Quote it when you ask us about a call.
Idempotent-Replayedtrue when the answer was replayed from an earlier request with the same Idempotency-Key
HTTP/1.1 200 OK
Content-Type: application/json
X-RateLimit-Limit: 600
X-RateLimit-Remaining: 597
X-RateLimit-Reset: 1796236860
X-Request-Id: req_48213

{ "lead_id": "c21dfaf4-…", "status": "sold", "payout_cents": 2101 }

9Responses, duplicates and errors#

ResultMeaning
"status": "sold"Accepted and billable. payout_cents is what we pay for this lead.
"status": "unsold"Valid lead, no buyer at this moment. Not billable. reason explains.
"status": "duplicate"Same external_id already posted, or the same consumer re-posted for the same product within 30 days. Not billable.
"status": "test"Sent with a test key: test.would_status and test.would_pay_cents say what a live key would have got.

Errors come back as JSON with a stable error code (and often a human message): { "error": "invalid_phone" }.

HTTPerrorWhat to do
400invalid_phone, invalid_state, invalid_zip, invalid_product, contact_and_address_required, unknown_fields:…, invalid_json, …Fix the field named in the code, then resend.
400unknown_ping, ping_mismatch, invalid_ping_idUse a ping_id from your own ping, with the same product and state, within 10 minutes.
400invalid_idempotency_key1 to 255 printable ASCII characters (a UUID works well).
401missing_api_key, invalid_api_keySend Authorization: Bearer <key> with the whole key.
401api_key_expired, api_key_revokedThe key was rotated, expired or revoked. Switch to your current key.
403ip_not_allowedThis key is locked to certain IPs; the message says which IP we saw.
403insufficient_scopeThis key can't make this call (e.g. a ping-only key posting).
403source_pausedSending is paused on our side (we'll tell you before this happens).
409ping_already_usedEach ping_id prices one post. Ping again.
409idempotency_key_reused, idempotency_request_in_progressSee Idempotent retries.
413body_too_large, lead_too_largeRequest over 64 KB, or lead data over 32 KB.
429rate_limitedWait Retry-After seconds.
5xxserver_errorOur side. Safe to retry with the same Idempotency-Key (or the same external_id).

10Testing and go-live#

  1. We send a test key (gq_test_…). Pings and posts with it are fully validated and priced exactly like live traffic, then recorded as tests: never sold, never billed. Each post tells you what would have happened.
  2. You send a handful of test pings and posts (auto and home), including a retry with the same Idempotency-Key. We see every request and our answer on our side, so we can confirm the mapping together.
  3. We send the live key (gq_live_…) and turn on auto with your top-performing campaigns first, then home.
A test post's answer
{ "lead_id": "…", "status": "test", "test": { "would_status": "sold", "would_pay_cents": 2100, "reason": null } }

11Changes#

VersionChanges
1.1 · Dec 2, 2026Keys now start gq_live_ / gq_test_ (keys issued earlier keep working). Several keys per source, rotation with overlap, optional expiry, permissions and IP allowlist. Idempotency-Key on posts. X-RateLimit-* and X-Request-Id headers on every call. GET /api/market/key. Errors may carry a message.
1.0 · Dec 2, 2026First version.