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#
- 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.
- Post the full lead with the
ping_idwithin 10 minutes to get the price we quoted. - We return the result:
sold(and what we pay),unsold, orduplicate.
You can also skip the ping and post directly. The lead is then priced at the time of the post.
2Connection and API keys#
| Item | Value |
|---|---|
| Base URL | https://api.getaquote.com |
| Ping | POST /api/market/ping |
| Post | POST /api/market/post |
| Check a key | GET /api/market/key (changes nothing) |
| Headers | Content-Type: application/jsonAuthorization: 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.
| Key | Looks like | What happens |
|---|---|---|
| Test | gq_test_8Hc2Lq0Z… | Validated and priced exactly like live, then recorded as a test: never sold, never billed. |
| Live | gq_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
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.
export GQ_BASE_URL="https://…" # sent with your keys
export GQ_API_KEY="gq_test_…" # your test key first; the live key latercurl -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}'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.
| Field | Type | Notes |
|---|---|---|
product required | string | "auto" or "home" |
lead_type | string | "data" (default) |
state required | string | Two-letter US state, e.g. "CA" |
zip | string | 5-digit ZIP |
age | integer | 16–120 |
year_built | integer | Home only |
tcpa | boolean | true 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
| Field | Type | Notes |
|---|---|---|
external_id | string | Your lead id (up to 100 chars). Strongly recommended: used for duplicates and reconciliation. |
ping_id | string | From the ping. Single use; must match the post's product and state; valid 10 minutes. |
product required | string | "auto" or "home" |
lead_type | string | "data" (default) |
contact.phone required | string | US 10-digit number; E.164 (+1…) preferred, common formats accepted |
contact.first_name, last_name | string | Up to 40 / 80 characters |
contact.email | string | Plain address (letters, digits, . _ + ' -) |
address.state required | string | Two-letter US state |
address.street, city, zip | string | ZIP: 5 digits (ZIP+4 accepted) |
person.dob or person.age | string / int | YYYY-MM-DD, or age 16–120 |
person.* | object | Also: gender, homeowner, residence (own/rent), marital status, credit, etc. |
auto.* | object | currently_insured, current_carrier, sr22, vehicles[], drivers[], coverage, incidents |
home.* | object | year_built (integer), square_feet, currently_insured, current_carrier, property type |
tcpa.* | object | See Consent |
extra | object | Anything else you'd like us to keep (campaign, sub-id, …) |
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.6Consent (TCPA)#
Every lead must carry consent proof: at least one of consent_text, trustedform_url or jornaya_id. Please always send the exact consent language shown to the consumer, plus the TrustedForm certificate when available.
| Field | Notes |
|---|---|
tcpa.consent_text | The exact language the consumer agreed to (up to 5,000 chars) |
tcpa.trustedform_url | https://cert.trustedform.com/<id> |
tcpa.jornaya_id | Jornaya LeadiD token |
tcpa.consented_at | ISO 8601 timestamp of consent |
tcpa.ip | Consumer IP at consent |
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.
| Retry | Answer |
|---|---|
| Same key, same body | The original status and body, plus the header Idempotent-Replayed: true |
| Same key, different body | 409 idempotency_key_reused: use a new key for a new lead |
| Same key while the first is still running | 409 idempotency_request_in_progress with Retry-After: 1 |
| After 24 hours | Processed 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:
| Header | Meaning |
|---|---|
X-RateLimit-Limit | Calls of this kind (ping or post) allowed per minute on this key |
X-RateLimit-Remaining | Calls left in the current window |
X-RateLimit-Reset | When the window resets, in Unix seconds (UTC) |
Retry-After | On 429 (and 409 idempotency_request_in_progress): seconds to wait before retrying |
X-Request-Id | Our id for this call, e.g. req_48213. Quote it when you ask us about a call. |
Idempotent-Replayed | true 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#
| Result | Meaning |
|---|---|
"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" }.
| HTTP | error | What to do |
|---|---|---|
400 | invalid_phone, invalid_state, invalid_zip, invalid_product, contact_and_address_required, unknown_fields:…, invalid_json, … | Fix the field named in the code, then resend. |
400 | unknown_ping, ping_mismatch, invalid_ping_id | Use a ping_id from your own ping, with the same product and state, within 10 minutes. |
400 | invalid_idempotency_key | 1 to 255 printable ASCII characters (a UUID works well). |
401 | missing_api_key, invalid_api_key | Send Authorization: Bearer <key> with the whole key. |
401 | api_key_expired, api_key_revoked | The key was rotated, expired or revoked. Switch to your current key. |
403 | ip_not_allowed | This key is locked to certain IPs; the message says which IP we saw. |
403 | insufficient_scope | This key can't make this call (e.g. a ping-only key posting). |
403 | source_paused | Sending is paused on our side (we'll tell you before this happens). |
409 | ping_already_used | Each ping_id prices one post. Ping again. |
409 | idempotency_key_reused, idempotency_request_in_progress | See Idempotent retries. |
413 | body_too_large, lead_too_large | Request over 64 KB, or lead data over 32 KB. |
429 | rate_limited | Wait Retry-After seconds. |
5xx | server_error | Our side. Safe to retry with the same Idempotency-Key (or the same external_id). |
10Testing and go-live#
- 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. - 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. - We send the live key (
gq_live_…) and turn on auto with your top-performing campaigns first, then home.
{ "lead_id": "…", "status": "test", "test": { "would_status": "sold", "would_pay_cents": 2100, "reason": null } }11Changes#
| Version | Changes |
|---|---|
| 1.1 · Dec 2, 2026 | Keys 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, 2026 | First version. |