{"openapi":"3.1.0","info":{"title":"ListShack Agent API","version":"2.0.0","description":"The REST API behind the ListShack MCP server. Most agents should connect to the MCP server at `https://listshack.com/api/mcp` instead; every MCP tool maps to one operation below.\n\n## Authentication\n\nOAuth 2.1 Authorization Code with PKCE. The person connecting the agent signs in to ListShack, chooses an account and approves ListShack capabilities; send the access token as `Authorization: Bearer <access_token>`. There are no static API keys.\n\n## Typical flow\n\n1. `GET /api/v1/access-status` — plan, capabilities and remaining free calls.\n2. `GET /api/v1/databases` and `/api/v1/databases/{databaseId}` — what can be searched.\n3. `POST /api/v1/search-field-values` and `/api/v1/count-records` — explore values and counts.\n4. `POST /api/v1/searches`, then quote and purchase — the person who connected the agent confirms every purchase.\n\nRetry a failed metered or purchase request with its original `X-ListShack-Request-Id`; identical retries are never charged twice.","contact":{"name":"ListShack","url":"https://listshack.com"}},"servers":[{"url":"https://listshack.com"}],"security":[{"ListShackOAuth":[]}],"tags":[{"name":"Databases","description":"Databases an agent may search and their searchable fields. Catalog reads are free."},{"name":"Access","description":"Plan, capabilities, free allowance and credits for the account the agent was connected to."},{"name":"Searches","description":"Field values, counts, owned searches and masked previews. Counts and field-value lookups use the free allowance on free plans."},{"name":"Purchases","description":"Quote and buy a list from an owned search. Every purchase is confirmed by the person who connected the agent."},{"name":"Geocoding"},{"name":"Suppressions"},{"name":"Appends"}],"paths":{"/api/v1/databases":{"get":{"tags":["Databases"],"summary":"List Databases","description":"**List searchable ListShack databases.**\n\nReturns stable database IDs and descriptive metadata. It does not expose physical search index names or record data. Catalog reads are free and do not consume the monthly allowance.\n\n**Required ListShack capabilities:** `catalog.read`","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["databases"],"properties":{"databases":{"type":"array","items":{"type":"object","required":["id","searchable","datasetVersion","type","title","description","releasedDate","geographyFields","filterCategories","searchableFields","outputFields","useCases","creditMultiplier","appliedPolicySummaries"],"properties":{"id":{"type":"string","description":"Stable ListShack dictionary identifier; physical search index names are not exposed."},"searchable":{"type":"boolean","description":"Whether this dataset is enabled for versioned search requests."},"datasetVersion":{"type":["string","null"],"description":"Dataset release or validated mapping-contract version."},"type":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"releasedDate":{"type":["string","null"],"format":"date"},"geographyFields":{"type":"array","items":{"type":"string"}},"filterCategories":{"type":"array","items":{"type":"string"}},"searchableFields":{"type":"array","items":{"type":"object","required":["name","type","operators"],"properties":{"name":{"type":"string"},"type":{"type":"string","enum":["string","number","boolean","date"]},"description":{"type":"string"},"operators":{"type":"array","items":{"type":"string","enum":["eq","neq","gt","gte","lt","lte","in","like","exists","missing"]}}}}},"outputFields":{"type":"array","items":{"type":"string"}},"useCases":{"type":"array","items":{"type":"object","required":["id","description"],"properties":{"id":{"type":"string"},"description":{"type":"string"}}}},"creditMultiplier":{"type":["number","null"],"minimum":0},"appliedPolicySummaries":{"type":"array","items":{"type":"object","required":["id","mandatory","description"],"properties":{"id":{"type":"string"},"mandatory":{"type":"boolean"},"description":{"type":"string"}}}},"geoSearch":{"type":"object","required":["supported"],"properties":{"supported":{"type":"boolean","description":"Whether count_records and create_search accept near (radius search)."},"minRadiusMiles":{"type":"number"},"maxRadiusMiles":{"type":"number"}}}}}}}}}}},"401":{"description":"Missing token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The OAuth grant does not include catalog.read.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Delegated agent traffic limit reached. Traffic admission uses RATE_LIMITED, independently of successful-call quota.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the relevant quota or traffic window resets.","schema":{"type":"integer","minimum":1}}}},"503":{"description":"Agent traffic admission is temporarily unavailable. REQUEST_TIMEOUT ends the response after 20 seconds. RESPONSE_TOO_LARGE rejects a response exceeding 1048576 payload bytes before headers start; an oversized partial stream is closed. Retry a mutating or metered request using its original request ID; a durable transaction may already have been accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-listshack-capabilities":["catalog.read"]}},"/api/v1/databases/{databaseId}":{"get":{"tags":["Databases"],"summary":"Describe Database","description":"**Describe a searchable ListShack database.**\n\nReturns stable database metadata and the geographic/filter categories available for that dataset. Catalog reads are free and do not consume the monthly allowance.\n\n**Required ListShack capabilities:** `catalog.read`","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["id","searchable","datasetVersion","type","title","description","releasedDate","geographyFields","filterCategories","searchableFields","outputFields","useCases","creditMultiplier","appliedPolicySummaries"],"properties":{"id":{"type":"string","description":"Stable ListShack dictionary identifier; physical search index names are not exposed."},"searchable":{"type":"boolean","description":"Whether this dataset is enabled for versioned search requests."},"datasetVersion":{"type":["string","null"],"description":"Dataset release or validated mapping-contract version."},"type":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"releasedDate":{"type":["string","null"],"format":"date"},"geographyFields":{"type":"array","items":{"type":"string"}},"filterCategories":{"type":"array","items":{"type":"string"}},"searchableFields":{"type":"array","items":{"type":"object","required":["name","type","operators"],"properties":{"name":{"type":"string"},"type":{"type":"string","enum":["string","number","boolean","date"]},"description":{"type":"string"},"operators":{"type":"array","items":{"type":"string","enum":["eq","neq","gt","gte","lt","lte","in","like","exists","missing"]}}}}},"outputFields":{"type":"array","items":{"type":"string"}},"useCases":{"type":"array","items":{"type":"object","required":["id","description"],"properties":{"id":{"type":"string"},"description":{"type":"string"}}}},"creditMultiplier":{"type":["number","null"],"minimum":0},"appliedPolicySummaries":{"type":"array","items":{"type":"object","required":["id","mandatory","description"],"properties":{"id":{"type":"string"},"mandatory":{"type":"boolean"},"description":{"type":"string"}}}},"geoSearch":{"type":"object","required":["supported"],"properties":{"supported":{"type":"boolean","description":"Whether count_records and create_search accept near (radius search)."},"minRadiusMiles":{"type":"number"},"maxRadiusMiles":{"type":"number"}}}}}}}},"401":{"description":"Missing token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The OAuth grant does not include catalog.read.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Delegated agent traffic limit reached. Traffic admission uses RATE_LIMITED, independently of successful-call quota.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the relevant quota or traffic window resets.","schema":{"type":"integer","minimum":1}}}},"503":{"description":"Agent traffic admission is temporarily unavailable. REQUEST_TIMEOUT ends the response after 20 seconds. RESPONSE_TOO_LARGE rejects a response exceeding 1048576 payload bytes before headers start; an oversized partial stream is closed. Retry a mutating or metered request using its original request ID; a durable transaction may already have been accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-listshack-capabilities":["catalog.read"],"parameters":[{"name":"databaseId","in":"path","required":true,"schema":{"type":"string"},"description":"Stable ListShack dictionary identifier."}]}},"/api/v1/access-status":{"get":{"tags":["Access"],"summary":"Get Access Status","description":"**Get the current delegated API access and usage status.**\n\nReturns current server-verified OAuth identity scopes, ListShack grant capabilities, account tier, free usage and eligible paid credit availability. First-party browser sessions do not receive the promotional agent allowance.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["tier","accountRole","selectedAccount","oauthIdentityScopes","capabilities","planRestrictions","freeUsage","creditAvailability","upgradeUrl"],"properties":{"tier":{"type":"string"},"accountRole":{"type":"string"},"selectedAccount":{"type":"object","required":["accountUid","role"],"properties":{"accountUid":{"type":"string"},"role":{"type":"string"}}},"oauthIdentityScopes":{"type":"array","items":{"type":"string"}},"capabilities":{"type":"array","items":{"type":"string"}},"planRestrictions":{"type":"object","required":["perDownloadLimit","searchSuppressions","verifiedMembership"],"properties":{"perDownloadLimit":{"type":"integer","minimum":0},"searchSuppressions":{"type":"boolean"},"verifiedMembership":{"type":"boolean"}}},"freeUsage":{"type":"object","required":["policyVersion","period","limit","used","remaining","resetsAt"],"additionalProperties":false,"properties":{"policyVersion":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Za-z0-9._-]+$"},"period":{"type":"string","enum":["calendar_month_utc"]},"unlimited":{"type":"boolean"},"limit":{"type":["integer","null"],"minimum":1,"maximum":9007199254740991},"used":{"type":"integer","minimum":0,"maximum":9007199254740991},"remaining":{"type":["integer","null"],"minimum":0,"maximum":9007199254740991},"resetsAt":{"type":"string","maxLength":32,"format":"date-time","pattern":"^\\d{4}-\\d{2}-01T00:00:00(?:\\.000)?Z$"}}},"geocodingUsage":{"type":"object","additionalProperties":false,"required":["policyVersion","period","plan","limit","used","remaining","resetsAt"],"properties":{"policyVersion":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Za-z0-9._-]+$"},"period":{"type":"string","enum":["calendar_month_utc"]},"plan":{"type":"string","enum":["free","paid"]},"limit":{"type":"integer","minimum":1},"used":{"type":"integer","minimum":0},"remaining":{"type":"integer","minimum":0},"resetsAt":{"type":"string","format":"date-time"}}},"creditAvailability":{"anyOf":[{"type":"null"},{"type":"object","required":["monthly","addOn","perDownloadLimit"],"properties":{"monthly":{"type":"integer","minimum":0},"addOn":{"type":"integer","minimum":0},"perDownloadLimit":{"type":"integer","minimum":0}}}]},"upgradeUrl":{"anyOf":[{"type":"null"},{"type":"string","format":"uri"}]}}}}}},"401":{"description":"Missing token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"A current delegated OAuth grant and selected account are required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Free usage allowance is exhausted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request exceeded its response deadline. REQUEST_TIMEOUT ends the response after 20 seconds. RESPONSE_TOO_LARGE rejects a response exceeding 1048576 payload bytes before headers start; an oversized partial stream is closed. Retry a mutating or metered request using its original request ID; a durable transaction may already have been accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/search-field-values":{"post":{"tags":["Searches"],"summary":"Search Field Values","description":"**Find safe categorical field values.**\n\nReturns at most 20 prefix-matched values for reviewed low-cardinality fields. Values with fewer than 25 matching records are suppressed; record counts are not returned. Delegated OAuth requests must include a UUID X-ListShack-Request-Id; successful responses return remaining free allowance in X-ListShack-Free-Usage.\n\n**Required ListShack capabilities:** `search.read`","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["databaseId","field","prefix","values"],"properties":{"databaseId":{"type":"string"},"field":{"type":"string"},"prefix":{"type":"string"},"values":{"type":"array","maxItems":20,"items":{"type":"string","minLength":1,"maxLength":128}}}}}},"headers":{"X-ListShack-Free-Usage":{"description":"JSON-encoded delegated account usage after this successful call; quota values follow the shared usage contract.","schema":{"type":"string","maxLength":4096,"contentMediaType":"application/json","contentSchema":{"type":"object","required":["policyVersion","period","limit","used","remaining","resetsAt"],"additionalProperties":false,"properties":{"policyVersion":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Za-z0-9._-]+$"},"period":{"type":"string","enum":["calendar_month_utc"]},"unlimited":{"type":"boolean"},"limit":{"type":["integer","null"],"minimum":1,"maximum":9007199254740991},"used":{"type":"integer","minimum":0,"maximum":9007199254740991},"remaining":{"type":["integer","null"],"minimum":0,"maximum":9007199254740991},"resetsAt":{"type":"string","maxLength":32,"format":"date-time","pattern":"^\\d{4}-\\d{2}-01T00:00:00(?:\\.000)?Z$"}}}}}}},"400":{"description":"Invalid or unsupported free search request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"A delegated OAuth grant with search.read is required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Free search is disabled or the database is unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Request ID conflicts with a prior call or authorization context.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"The free monthly allowance is exhausted. Traffic admission uses RATE_LIMITED, independently of successful-call quota.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the relevant quota or traffic window resets.","schema":{"type":"integer","minimum":1}}}},"503":{"description":"Search service is unavailable or incomplete. REQUEST_TIMEOUT ends the response after 20 seconds. RESPONSE_TOO_LARGE rejects a response exceeding 1048576 payload bytes before headers start; an oversized partial stream is closed. Retry a mutating or metered request using its original request ID; a durable transaction may already have been accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-listshack-capabilities":["search.read"],"parameters":[{"name":"X-ListShack-Request-Id","in":"header","required":false,"schema":{"type":"string"},"description":"Stable UUID used to make delegated request retries idempotent."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["database_id","field","prefix"],"additionalProperties":false,"properties":{"database_id":{"type":"string","minLength":1,"maxLength":100},"field":{"type":"string","minLength":1,"maxLength":64},"prefix":{"type":"string","minLength":1,"maxLength":32}}}}}}}},"/api/v1/count-records":{"post":{"tags":["Searches"],"summary":"Count Records","description":"**Count records with privacy controls.**\n\nCounts records using a fixed use case and bounded typed filter. Counts below 25 are suppressed; larger counts are rounded down to multiples of 10, never below 25. Mandatory dataset and legal policies are applied automatically. Delegated OAuth requests must include a UUID X-ListShack-Request-Id; successful responses return remaining free allowance in X-ListShack-Free-Usage.\n\n**Required ListShack capabilities:** `search.read`","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["databaseId","count","countSuppressed","appliedPolicies","policyVersion","datasetVersion","criteria"],"properties":{"databaseId":{"type":"string"},"count":{"type":["integer","null"],"minimum":0},"countSuppressed":{"type":"boolean"},"appliedPolicies":{"type":"array","items":{"type":"string"}},"policyVersion":{"type":"string"},"datasetVersion":{"type":"string"},"criteria":{"anyOf":[{"$ref":"#/components/schemas/TypedFilterNode"},{"type":"null"}]},"near":{"type":"object","required":["latitude","longitude","radius_miles"],"additionalProperties":false,"properties":{"latitude":{"type":"number","minimum":-90,"maximum":90},"longitude":{"type":"number","minimum":-180,"maximum":180},"radius_miles":{"type":"number","minimum":0.5,"maximum":100}}},"suppressionListIds":{"type":"array","items":{"type":"string"}},"previouslyDownloaded":{"type":"object","required":["status"],"additionalProperties":false,"properties":{"status":{"type":"string","enum":["excluded","included"]},"reason":{"type":"string","enum":["requested","plan","unavailable"],"description":"Why they are included: requested by the caller, not in the account plan, or not supported for this database."}}}}}}},"headers":{"X-ListShack-Free-Usage":{"description":"JSON-encoded delegated account usage after this successful call; quota values follow the shared usage contract.","schema":{"type":"string","maxLength":4096,"contentMediaType":"application/json","contentSchema":{"type":"object","required":["policyVersion","period","limit","used","remaining","resetsAt"],"additionalProperties":false,"properties":{"policyVersion":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Za-z0-9._-]+$"},"period":{"type":"string","enum":["calendar_month_utc"]},"unlimited":{"type":"boolean"},"limit":{"type":["integer","null"],"minimum":1,"maximum":9007199254740991},"used":{"type":"integer","minimum":0,"maximum":9007199254740991},"remaining":{"type":["integer","null"],"minimum":0,"maximum":9007199254740991},"resetsAt":{"type":"string","maxLength":32,"format":"date-time","pattern":"^\\d{4}-\\d{2}-01T00:00:00(?:\\.000)?Z$"}}}}}}},"400":{"description":"Invalid or unsupported free search request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"A delegated OAuth grant with search.read is required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Free search is disabled or the database is unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Request ID conflicts with a prior call or authorization context.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"The free monthly allowance is exhausted. Traffic admission uses RATE_LIMITED, independently of successful-call quota.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the relevant quota or traffic window resets.","schema":{"type":"integer","minimum":1}}}},"503":{"description":"Search service is unavailable or incomplete. REQUEST_TIMEOUT ends the response after 20 seconds. RESPONSE_TOO_LARGE rejects a response exceeding 1048576 payload bytes before headers start; an oversized partial stream is closed. Retry a mutating or metered request using its original request ID; a durable transaction may already have been accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-listshack-capabilities":["search.read"],"parameters":[{"name":"X-ListShack-Request-Id","in":"header","required":false,"schema":{"type":"string"},"description":"Stable UUID used to make delegated request retries idempotent."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["database_id","use_case"],"additionalProperties":false,"if":{"properties":{"database_id":{"enum":["bizteladdr","vinconsumer"]}},"required":["database_id"]},"then":{"properties":{"use_case":{"const":"direct_mail"}}},"else":{"if":{"properties":{"database_id":{"const":"consumercells2"}},"required":["database_id"]},"then":{"properties":{"use_case":{"enum":["telemarketing","sms","direct_mail"]}}}},"properties":{"database_id":{"type":"string","enum":["consumeremteladdr262","bizteladdr","vinconsumer","consumercells2"]},"use_case":{"type":"string","enum":["telemarketing","sms","email","email_all","direct_mail"],"description":"Select a fixed server-owned compliance and data-integrity policy. For email, email requires a recorded opt-in date; email_all also includes records without one and should be used only when the person asks for that."},"filter":{"$ref":"#/components/schemas/TypedFilterNode"},"include_previously_downloaded":{"type":"boolean","default":false,"description":"Records this account already bought are excluded by default when its plan includes search suppressions. Set true to include them."},"near":{"type":"object","required":["latitude","longitude","radius_miles"],"additionalProperties":false,"description":"Only records within radius_miles of this point. Get coordinates from geocode_address or lookup_geography. Supported only by databases whose describe_database result has geoSearch.supported true.","properties":{"latitude":{"type":"number","minimum":-90,"maximum":90},"longitude":{"type":"number","minimum":-180,"maximum":180},"radius_miles":{"type":"number","minimum":0.5,"maximum":100}}},"suppression_list_ids":{"type":"array","minItems":1,"maxItems":50,"uniqueItems":true,"items":{"type":"string","minLength":1,"maxLength":128,"description":"Suppression list ID from list_suppression_lists."},"description":"Leave out records on these suppression lists (from list_suppression_lists). Requires a plan with search suppressions or a verified account. Purchases from the search also add their records to these lists."}}}}}}}},"/api/v1/searches":{"post":{"tags":["Searches"],"summary":"Create Search","description":"**Create an owned, policy-bound search.**\n\nAccepts a fixed use-case enum and bounded typed filter over stable logical field names. The API applies mandatory dataset and use-case policies and stores an immutable, expiring snapshot. Raw SQL, OpenSearch DSL and physical index names are not accepted. Successful delegated calls consume one free account call; include X-ListShack-Request-Id for idempotent retries.\n\n**Required ListShack capabilities:** `search.read`","responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["status","searchId","expiresAt","replayed","databaseId","datasetVersion","policyVersion","criteria","appliedPolicies","count","countSuppressed"],"properties":{"count":{"type":["integer","null"],"minimum":0},"countSuppressed":{"type":"boolean"},"status":{"type":"string","enum":["prepared"]},"searchId":{"type":"string","format":"uuid"},"expiresAt":{"type":"string","format":"date-time","description":"Stored UTC expiry of this owned handle. Replaying creation does not extend it."},"replayed":{"type":"boolean"},"databaseId":{"type":"string"},"datasetVersion":{"type":"string"},"policyVersion":{"type":"string"},"criteria":{"anyOf":[{"$ref":"#/components/schemas/TypedFilterNode"},{"type":"null"}]},"appliedPolicies":{"type":"array","items":{"type":"string"}},"previouslyDownloaded":{"type":"object","required":["status"],"additionalProperties":false,"properties":{"status":{"type":"string","enum":["excluded","included"]},"reason":{"type":"string","enum":["requested","plan","unavailable"],"description":"Why they are included: requested by the caller, not in the account plan, or not supported for this database."}}},"near":{"type":"object","required":["latitude","longitude","radius_miles"],"additionalProperties":false,"properties":{"latitude":{"type":"number","minimum":-90,"maximum":90},"longitude":{"type":"number","minimum":-180,"maximum":180},"radius_miles":{"type":"number","minimum":0.5,"maximum":100}}},"suppressionListIds":{"type":"array","items":{"type":"string"}}}}}},"headers":{"X-ListShack-Free-Usage":{"description":"JSON-encoded delegated account usage after this successful call; quota values follow the shared usage contract.","schema":{"type":"string","maxLength":4096,"contentMediaType":"application/json","contentSchema":{"type":"object","required":["policyVersion","period","limit","used","remaining","resetsAt"],"additionalProperties":false,"properties":{"policyVersion":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Za-z0-9._-]+$"},"period":{"type":"string","enum":["calendar_month_utc"]},"unlimited":{"type":"boolean"},"limit":{"type":["integer","null"],"minimum":1,"maximum":9007199254740991},"used":{"type":"integer","minimum":0,"maximum":9007199254740991},"remaining":{"type":["integer","null"],"minimum":0,"maximum":9007199254740991},"resetsAt":{"type":"string","maxLength":32,"format":"date-time","pattern":"^\\d{4}-\\d{2}-01T00:00:00(?:\\.000)?Z$"}}}}}}},"400":{"description":"Invalid database, use case, filter or client request ID.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Invalid/expired token or insufficient ListShack capability.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown database or disabled search route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicting idempotency key or stale search snapshot.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"The free monthly allowance is exhausted. Traffic admission uses RATE_LIMITED, independently of successful-call quota.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the relevant quota or traffic window resets.","schema":{"type":"integer","minimum":1}}}},"503":{"description":"Search service unavailable or incomplete. REQUEST_TIMEOUT ends the response after 20 seconds. RESPONSE_TOO_LARGE rejects a response exceeding 1048576 payload bytes before headers start; an oversized partial stream is closed. Retry a mutating or metered request using its original request ID; a durable transaction may already have been accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-listshack-capabilities":["search.read"],"parameters":[{"name":"X-ListShack-Request-Id","in":"header","required":false,"schema":{"type":"string"},"description":"Stable UUID used to make delegated request retries idempotent."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["database_id","client_request_id","use_case"],"additionalProperties":false,"if":{"properties":{"database_id":{"enum":["bizteladdr","vinconsumer"]}},"required":["database_id"]},"then":{"properties":{"use_case":{"const":"direct_mail"}}},"else":{"if":{"properties":{"database_id":{"const":"consumercells2"}},"required":["database_id"]},"then":{"properties":{"use_case":{"enum":["telemarketing","sms","direct_mail"]}}}},"properties":{"database_id":{"type":"string","enum":["consumeremteladdr262","bizteladdr","vinconsumer","consumercells2"]},"client_request_id":{"type":"string","format":"uuid"},"use_case":{"type":"string","enum":["telemarketing","sms","email","email_all","direct_mail"],"description":"Select a fixed server-owned compliance and data-integrity policy. For email, email requires a recorded opt-in date; email_all also includes records without one and should be used only when the person asks for that."},"filter":{"$ref":"#/components/schemas/TypedFilterNode"},"include_previously_downloaded":{"type":"boolean","default":false,"description":"Records this account already bought are excluded by default when its plan includes search suppressions. Set true to include them."},"near":{"type":"object","required":["latitude","longitude","radius_miles"],"additionalProperties":false,"description":"Only records within radius_miles of this point. Get coordinates from geocode_address or lookup_geography. Supported only by databases whose describe_database result has geoSearch.supported true.","properties":{"latitude":{"type":"number","minimum":-90,"maximum":90},"longitude":{"type":"number","minimum":-180,"maximum":180},"radius_miles":{"type":"number","minimum":0.5,"maximum":100}}},"suppression_list_ids":{"type":"array","minItems":1,"maxItems":50,"uniqueItems":true,"items":{"type":"string","minLength":1,"maxLength":128,"description":"Suppression list ID from list_suppression_lists."},"description":"Leave out records on these suppression lists (from list_suppression_lists). Requires a plan with search suppressions or a verified account. Purchases from the search also add their records to these lists."}}}}}}}},"/api/v1/searches/{id}/preview":{"post":{"tags":["Searches"],"summary":"Preview Records","description":"**Preview masked records from an owned search.**\n\nReturns a small, masked sample from the unchanged server-owned search snapshot. Requires a current paid plan and explicit records.preview capability. Uses the owner-approved versioned field and masking rules; at most three rows and no credit spend.\n\n**Required ListShack capabilities:** `search.read`, `records.preview`","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["searchId","databaseId","previewPolicyVersion","records"],"properties":{"searchId":{"type":"string","format":"uuid"},"databaseId":{"type":"string"},"previewPolicyVersion":{"type":"string"},"records":{"type":"array","maxItems":3,"items":{"type":"object","additionalProperties":{"type":["string","number","null"]}}}}}}}},"400":{"description":"Invalid preview request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"An eligible paid plan is required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The delegated grant lacks preview capability.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Preview is disabled or the owned search is unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The search policy or snapshot is stale.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Delegated agent traffic limit reached. Traffic admission uses RATE_LIMITED, independently of successful-call quota.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the relevant quota or traffic window resets.","schema":{"type":"integer","minimum":1}}}},"503":{"description":"The preview privacy policy is not approved or search is unavailable. REQUEST_TIMEOUT ends the response after 20 seconds. RESPONSE_TOO_LARGE rejects a response exceeding 1048576 payload bytes before headers start; an oversized partial stream is closed. Retry a mutating or metered request using its original request ID; a durable transaction may already have been accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-listshack-capabilities":["search.read","records.preview"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"Owned search UUID returned by POST /api/v1/searches."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["limit"],"additionalProperties":false,"properties":{"limit":{"type":"integer","minimum":1,"maximum":3}}}}}}}},"/api/v1/purchases/quote":{"post":{"tags":["Purchases"],"summary":"Quote Purchase","description":"**Quote an owned search purchase.**\n\nComputes the exact dictionary-priced credit effect for an owned search and requested count before human confirmation. The quote does not reserve or spend credits; purchase submission recomputes and checks it.\n\n**Required ListShack capabilities:** `search.read`, `lists.purchase`","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["searchId","count","estimatedCreditEffect"],"properties":{"searchId":{"type":"string","format":"uuid"},"count":{"type":"integer"},"estimatedCreditEffect":{"type":"object","required":["credits","unit"],"properties":{"credits":{"type":"integer","minimum":0},"unit":{"type":"string","enum":["ListShack credits"]}}}}}}}},"400":{"description":"Invalid quote request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"An eligible paid plan is required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The grant, account role, purchase capability, or per-download limit does not permit this quote.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Purchasing is disabled or the owned search is unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The search snapshot is stale or the account limit requires repair.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Delegated agent traffic limit reached. Traffic admission uses RATE_LIMITED, independently of successful-call quota.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the relevant quota or traffic window resets.","schema":{"type":"integer","minimum":1}}}},"503":{"description":"Search service unavailable. REQUEST_TIMEOUT ends the response after 20 seconds. RESPONSE_TOO_LARGE rejects a response exceeding 1048576 payload bytes before headers start; an oversized partial stream is closed. Retry a mutating or metered request using its original request ID; a durable transaction may already have been accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-listshack-capabilities":["search.read","lists.purchase"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["search_id","count","fields","name"],"properties":{"search_id":{"type":"string","format":"uuid","description":"Owned search snapshot returned by POST /api/v1/searches."},"count":{"type":"integer","minimum":1,"maximum":100000},"fields":{"type":"array","minItems":1,"maxItems":200,"uniqueItems":true,"items":{"type":"string","pattern":"^[A-Za-z_][A-Za-z0-9_]*$"}},"name":{"type":"string","minLength":1,"maxLength":200}}}}}}}},"/api/v1/purchases":{"post":{"tags":["Purchases"],"summary":"Purchase List","description":"**Purchase records from an owned search snapshot.**\n\nReserves credits and creates a durable purchase from the unchanged query snapshot stored on an owned search. Caller-provided filters, DSL and index names are rejected. This operation remains disabled until isolated staging purchase acceptance is complete.\n\n**Required ListShack capabilities:** `search.read`, `lists.purchase`","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["id","state","ready","count","credits"],"properties":{"id":{"type":"string","format":"uuid"},"state":{"type":"string"},"ready":{"type":"boolean"},"count":{"type":"integer","minimum":0},"credits":{"type":"integer","minimum":0},"url":{"type":["string","null"],"format":"uri-reference"},"error":{"type":["string","null"]}}}}}},"400":{"description":"Invalid purchase request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Paid plan or sufficient credits are required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The grant, account role, verification status, purchase capability, or per-download limit does not permit this purchase.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Purchasing is disabled or the owned search is unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Idempotency conflict, account allocation requiring repair, or stale search state.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Delegated agent traffic limit reached. Traffic admission uses RATE_LIMITED, independently of successful-call quota.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the relevant quota or traffic window resets.","schema":{"type":"integer","minimum":1}}}},"503":{"description":"Search or checkout service unavailable. REQUEST_TIMEOUT ends the response after 20 seconds. RESPONSE_TOO_LARGE rejects a response exceeding 1048576 payload bytes before headers start; an oversized partial stream is closed. Retry a mutating or metered request using its original request ID; a durable transaction may already have been accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-listshack-capabilities":["search.read","lists.purchase"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["search_id","request_id","count","fields","name","expected_credits"],"properties":{"search_id":{"type":"string","format":"uuid","description":"Owned search snapshot returned by POST /api/v1/searches."},"request_id":{"type":"string","format":"uuid","description":"Caller-generated idempotency key; identical retries return the prior purchase state."},"count":{"type":"integer","minimum":1,"maximum":100000},"fields":{"type":"array","minItems":1,"maxItems":200,"uniqueItems":true,"items":{"type":"string","pattern":"^[A-Za-z_][A-Za-z0-9_]*$"}},"name":{"type":"string","minLength":1,"maxLength":200},"expected_credits":{"type":"integer","minimum":0,"description":"Credit quote shown to the user before confirmation; the API recomputes and verifies it before reserving credits."}}}}}}}},"/api/v1/purchases/{id}":{"get":{"tags":["Purchases"],"summary":"Get Purchase Status","description":"**Read an owned purchase status.**\n\nReturns durable state for a purchase created by the current delegated OAuth grant.\n\n**Required ListShack capabilities:** `search.read`, `lists.purchase`","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["id","state","ready","count","credits"],"properties":{"id":{"type":"string","format":"uuid"},"state":{"type":"string"},"ready":{"type":"boolean"},"count":{"type":"integer","minimum":0},"credits":{"type":"integer","minimum":0},"url":{"type":["string","null"],"format":"uri-reference"},"error":{"type":["string","null"]}}}}}},"401":{"description":"Missing token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Invalid/expired token or insufficient ListShack capability.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Purchase not found for this grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Delegated agent traffic limit reached. Traffic admission uses RATE_LIMITED, independently of successful-call quota.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the relevant quota or traffic window resets.","schema":{"type":"integer","minimum":1}}}},"503":{"description":"Checkout service unavailable. REQUEST_TIMEOUT ends the response after 20 seconds. RESPONSE_TOO_LARGE rejects a response exceeding 1048576 payload bytes before headers start; an oversized partial stream is closed. Retry a mutating or metered request using its original request ID; a durable transaction may already have been accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-listshack-capabilities":["search.read","lists.purchase"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"Purchase request UUID returned from POST /api/v1/purchases."}]}},"/api/v1/purchases/confirmation-links":{"post":{"tags":["Purchases"],"summary":"Create Purchase Approval Link","description":"**Create a human confirmation link for a purchase.**\n\nFor clients that cannot show an in-chat confirmation prompt. Quotes the exact purchase and returns a short-lived signed link the person who connected the agent opens in ListShack to approve it. Creating the link spends nothing; poll GET /api/v1/purchases/{id} with the returned purchaseId.\n\n**Required ListShack capabilities:** `search.read`, `lists.purchase`","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid purchase request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"An eligible paid plan is required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The grant does not permit purchases.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Purchasing is disabled.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The quote could not be verified.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Delegated agent traffic limit reached. Traffic admission uses RATE_LIMITED, independently of successful-call quota.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the relevant quota or traffic window resets.","schema":{"type":"integer","minimum":1}}}},"503":{"description":"Confirmation links are unavailable. REQUEST_TIMEOUT ends the response after 20 seconds. RESPONSE_TOO_LARGE rejects a response exceeding 1048576 payload bytes before headers start; an oversized partial stream is closed. Retry a mutating or metered request using its original request ID; a durable transaction may already have been accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-listshack-capabilities":["search.read","lists.purchase"]}},"/api/v1/geocode":{"post":{"tags":["Geocoding"],"summary":"Geocode Address","description":"**Turn a US address into coordinates and standardized parts.**\n\nReturns up to five ranked matches with coordinates, standardized address parts, Pelias matchType (exact, interpolated, fallback, or null), layer (kind) and confidence. exactAddress is true only for an exact match on a US street address. Uses one lookup. Uses the monthly geocoding allowance (25,000 lookups on free plans, 250,000 on paid plans), separate from the free data-call allowance. Delegated OAuth requests must include a UUID X-ListShack-Request-Id; identical retries are not charged again. Results cover the United States.\n\n**Required ListShack capabilities:** `geo.read`","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["query","results"],"properties":{"query":{"type":"string"},"results":{"type":"array","maxItems":5,"items":{"type":"object","additionalProperties":false,"required":["id","label","kind","matchType","exactAddress","confidence","coordinates","address"],"properties":{"id":{"type":"string","description":"Stable geocoder identifier for this place."},"label":{"type":"string"},"kind":{"type":"string","description":"Pelias layer, e.g. address, street, venue, locality, county, region or postalcode."},"matchType":{"description":"Pelias match_type. exact is a known point address; interpolated is an estimated house number on a known street; fallback is a less precise match. null when Pelias did not classify the hit.","anyOf":[{"type":"string","enum":["exact","interpolated","fallback"]},{"type":"null"}]},"exactAddress":{"type":"boolean","description":"True only for an exact match on a US street address. Interpolated and fallback hits are false."},"confidence":{"type":["number","null"],"minimum":0,"maximum":1,"description":"Pelias confidence from 0 to 1, or null when it was not reported."},"distanceMiles":{"type":"number","minimum":0,"description":"Reverse geocoding only: distance from the requested point."},"coordinates":{"type":"object","additionalProperties":false,"required":["latitude","longitude"],"properties":{"latitude":{"type":"number","minimum":-90,"maximum":90},"longitude":{"type":"number","minimum":-180,"maximum":180}}},"address":{"type":"object","additionalProperties":false,"required":["houseNumber","street","unit","city","county","state","postalCode","country"],"properties":{"houseNumber":{"type":["string","null"]},"street":{"type":["string","null"]},"unit":{"type":["string","null"]},"city":{"type":["string","null"]},"county":{"type":["string","null"]},"state":{"type":["string","null"]},"postalCode":{"type":["string","null"]},"country":{"type":["string","null"]}}}}}},"geocodingUsage":{"type":"object","additionalProperties":false,"required":["policyVersion","period","plan","limit","used","remaining","resetsAt"],"properties":{"policyVersion":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Za-z0-9._-]+$"},"period":{"type":"string","enum":["calendar_month_utc"]},"plan":{"type":"string","enum":["free","paid"]},"limit":{"type":"integer","minimum":1},"used":{"type":"integer","minimum":0},"remaining":{"type":"integer","minimum":0},"resetsAt":{"type":"string","format":"date-time"}}}}}}}},"400":{"description":"Invalid geocoding request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"A delegated OAuth grant with geo.read is required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Geocoding is disabled.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Request ID conflicts with a prior call or authorization context.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"The monthly geocoding allowance is exhausted. Traffic admission uses RATE_LIMITED, independently of successful-call quota.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the relevant quota or traffic window resets.","schema":{"type":"integer","minimum":1}}}},"503":{"description":"The geocoder is temporarily unavailable. REQUEST_TIMEOUT ends the response after 20 seconds. RESPONSE_TOO_LARGE rejects a response exceeding 1048576 payload bytes before headers start; an oversized partial stream is closed. Retry a mutating or metered request using its original request ID; a durable transaction may already have been accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-listshack-capabilities":["geo.read"],"parameters":[{"name":"X-ListShack-Request-Id","in":"header","required":true,"schema":{"type":"string"},"description":"Stable UUID used to make delegated request retries idempotent."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"description":"Either address (one free-text line) or street with optional city, state and postal_code.","properties":{"address":{"type":"string","minLength":1,"maxLength":256,"description":"One-line US address, e.g. \"350 5th Ave, New York, NY 10118\"."},"street":{"type":"string","minLength":1,"maxLength":200,"description":"House number and street, e.g. \"350 5th Ave\". Include the unit if there is one."},"city":{"type":"string","minLength":1,"maxLength":100},"state":{"type":"string","minLength":1,"maxLength":50,"description":"Two-letter state code or state name."},"postal_code":{"type":"string","minLength":1,"maxLength":10},"limit":{"type":"integer","minimum":1,"maximum":5,"default":1}}}}}}}},"/api/v1/reverse-geocode":{"post":{"tags":["Geocoding"],"summary":"Reverse Geocode","description":"**Find the nearest US street addresses to a point.**\n\nReturns up to five nearby US street addresses with their distance in miles. Uses one lookup. Uses the monthly geocoding allowance (25,000 lookups on free plans, 250,000 on paid plans), separate from the free data-call allowance. Delegated OAuth requests must include a UUID X-ListShack-Request-Id; identical retries are not charged again. Results cover the United States.\n\n**Required ListShack capabilities:** `geo.read`","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["coordinates","results"],"properties":{"coordinates":{"type":"object","additionalProperties":false,"required":["latitude","longitude"],"properties":{"latitude":{"type":"number","minimum":-90,"maximum":90},"longitude":{"type":"number","minimum":-180,"maximum":180}}},"results":{"type":"array","maxItems":5,"items":{"type":"object","additionalProperties":false,"required":["id","label","kind","matchType","exactAddress","confidence","coordinates","address"],"properties":{"id":{"type":"string","description":"Stable geocoder identifier for this place."},"label":{"type":"string"},"kind":{"type":"string","description":"Pelias layer, e.g. address, street, venue, locality, county, region or postalcode."},"matchType":{"description":"Pelias match_type. exact is a known point address; interpolated is an estimated house number on a known street; fallback is a less precise match. null when Pelias did not classify the hit.","anyOf":[{"type":"string","enum":["exact","interpolated","fallback"]},{"type":"null"}]},"exactAddress":{"type":"boolean","description":"True only for an exact match on a US street address. Interpolated and fallback hits are false."},"confidence":{"type":["number","null"],"minimum":0,"maximum":1,"description":"Pelias confidence from 0 to 1, or null when it was not reported."},"distanceMiles":{"type":"number","minimum":0,"description":"Reverse geocoding only: distance from the requested point."},"coordinates":{"type":"object","additionalProperties":false,"required":["latitude","longitude"],"properties":{"latitude":{"type":"number","minimum":-90,"maximum":90},"longitude":{"type":"number","minimum":-180,"maximum":180}}},"address":{"type":"object","additionalProperties":false,"required":["houseNumber","street","unit","city","county","state","postalCode","country"],"properties":{"houseNumber":{"type":["string","null"]},"street":{"type":["string","null"]},"unit":{"type":["string","null"]},"city":{"type":["string","null"]},"county":{"type":["string","null"]},"state":{"type":["string","null"]},"postalCode":{"type":["string","null"]},"country":{"type":["string","null"]}}}}}},"geocodingUsage":{"type":"object","additionalProperties":false,"required":["policyVersion","period","plan","limit","used","remaining","resetsAt"],"properties":{"policyVersion":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Za-z0-9._-]+$"},"period":{"type":"string","enum":["calendar_month_utc"]},"plan":{"type":"string","enum":["free","paid"]},"limit":{"type":"integer","minimum":1},"used":{"type":"integer","minimum":0},"remaining":{"type":"integer","minimum":0},"resetsAt":{"type":"string","format":"date-time"}}}}}}}},"400":{"description":"Invalid geocoding request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"A delegated OAuth grant with geo.read is required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Geocoding is disabled.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Request ID conflicts with a prior call or authorization context.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"The monthly geocoding allowance is exhausted. Traffic admission uses RATE_LIMITED, independently of successful-call quota.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the relevant quota or traffic window resets.","schema":{"type":"integer","minimum":1}}}},"503":{"description":"The geocoder is temporarily unavailable. REQUEST_TIMEOUT ends the response after 20 seconds. RESPONSE_TOO_LARGE rejects a response exceeding 1048576 payload bytes before headers start; an oversized partial stream is closed. Retry a mutating or metered request using its original request ID; a durable transaction may already have been accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-listshack-capabilities":["geo.read"],"parameters":[{"name":"X-ListShack-Request-Id","in":"header","required":true,"schema":{"type":"string"},"description":"Stable UUID used to make delegated request retries idempotent."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["latitude","longitude"],"additionalProperties":false,"properties":{"latitude":{"type":"number","minimum":-90,"maximum":90},"longitude":{"type":"number","minimum":-180,"maximum":180},"limit":{"type":"integer","minimum":1,"maximum":5,"default":1}}}}}}}},"/api/v1/validate-addresses":{"post":{"tags":["Geocoding"],"summary":"Validate Addresses","description":"**Check and standardize a batch of US street addresses.**\n\nAn address is valid only when it matches a US street address exactly. Invalid results include reason not_exact_match or no_match plus the best hit's Pelias matchType, layer and confidence, so an interpolated match can be told from no match. Uses one lookup per address. Uses the monthly geocoding allowance (25,000 lookups on free plans, 250,000 on paid plans), separate from the free data-call allowance. Delegated OAuth requests must include a UUID X-ListShack-Request-Id; identical retries are not charged again. Results cover the United States.\n\n**Required ListShack capabilities:** `geo.read`","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["results","validCount","invalidCount"],"properties":{"validCount":{"type":"integer","minimum":0},"invalidCount":{"type":"integer","minimum":0},"results":{"type":"array","maxItems":25,"items":{"type":"object","additionalProperties":false,"required":["index","input","valid","match","reason","matchType","layer","confidence"],"properties":{"index":{"type":"integer","minimum":0},"input":{"type":"string","description":"The submitted address as one line."},"valid":{"type":"boolean","description":"True only for an exact US street-address match. Interpolated, fallback, street and venue hits are false."},"match":{"anyOf":[{"type":"object","additionalProperties":false,"required":["id","label","kind","matchType","exactAddress","confidence","coordinates","address"],"properties":{"id":{"type":"string","description":"Stable geocoder identifier for this place."},"label":{"type":"string"},"kind":{"type":"string","description":"Pelias layer, e.g. address, street, venue, locality, county, region or postalcode."},"matchType":{"description":"Pelias match_type. exact is a known point address; interpolated is an estimated house number on a known street; fallback is a less precise match. null when Pelias did not classify the hit.","anyOf":[{"type":"string","enum":["exact","interpolated","fallback"]},{"type":"null"}]},"exactAddress":{"type":"boolean","description":"True only for an exact match on a US street address. Interpolated and fallback hits are false."},"confidence":{"type":["number","null"],"minimum":0,"maximum":1,"description":"Pelias confidence from 0 to 1, or null when it was not reported."},"distanceMiles":{"type":"number","minimum":0,"description":"Reverse geocoding only: distance from the requested point."},"coordinates":{"type":"object","additionalProperties":false,"required":["latitude","longitude"],"properties":{"latitude":{"type":"number","minimum":-90,"maximum":90},"longitude":{"type":"number","minimum":-180,"maximum":180}}},"address":{"type":"object","additionalProperties":false,"required":["houseNumber","street","unit","city","county","state","postalCode","country"],"properties":{"houseNumber":{"type":["string","null"]},"street":{"type":["string","null"]},"unit":{"type":["string","null"]},"city":{"type":["string","null"]},"county":{"type":["string","null"]},"state":{"type":["string","null"]},"postalCode":{"type":["string","null"]},"country":{"type":["string","null"]}}}}},{"type":"null"}]},"reason":{"type":["string","null"],"description":"Why the address did not validate. not_exact_match means the best Pelias hit was not an exact US street address (see matchType and layer). no_match means Pelias returned nothing. null when valid."},"matchType":{"description":"Pelias match_type. exact is a known point address; interpolated is an estimated house number on a known street; fallback is a less precise match. null when Pelias did not classify the hit.","anyOf":[{"type":"string","enum":["exact","interpolated","fallback"]},{"type":"null"}]},"layer":{"type":["string","null"],"description":"Pelias layer of the accepted match, or of the best rejected hit (address, street, venue, and so on). null when nothing matched."},"confidence":{"type":["number","null"],"minimum":0,"maximum":1,"description":"Pelias confidence of that hit, from 0 to 1, or null when it was not reported."}}}},"geocodingUsage":{"type":"object","additionalProperties":false,"required":["policyVersion","period","plan","limit","used","remaining","resetsAt"],"properties":{"policyVersion":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Za-z0-9._-]+$"},"period":{"type":"string","enum":["calendar_month_utc"]},"plan":{"type":"string","enum":["free","paid"]},"limit":{"type":"integer","minimum":1},"used":{"type":"integer","minimum":0},"remaining":{"type":"integer","minimum":0},"resetsAt":{"type":"string","format":"date-time"}}}}}}}},"400":{"description":"Invalid geocoding request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"A delegated OAuth grant with geo.read is required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Geocoding is disabled.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Request ID conflicts with a prior call or authorization context.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"The monthly geocoding allowance is exhausted. Traffic admission uses RATE_LIMITED, independently of successful-call quota.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the relevant quota or traffic window resets.","schema":{"type":"integer","minimum":1}}}},"503":{"description":"The geocoder is temporarily unavailable. REQUEST_TIMEOUT ends the response after 20 seconds. RESPONSE_TOO_LARGE rejects a response exceeding 1048576 payload bytes before headers start; an oversized partial stream is closed. Retry a mutating or metered request using its original request ID; a durable transaction may already have been accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-listshack-capabilities":["geo.read"],"parameters":[{"name":"X-ListShack-Request-Id","in":"header","required":true,"schema":{"type":"string"},"description":"Stable UUID used to make delegated request retries idempotent."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["addresses"],"additionalProperties":false,"properties":{"addresses":{"type":"array","minItems":1,"maxItems":25,"description":"Up to 25 addresses. Each is one line of text or a structured address.","items":{"oneOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"object","required":["street"],"additionalProperties":false,"properties":{"street":{"type":"string","minLength":1,"maxLength":200,"description":"House number and street, e.g. \"350 5th Ave\". Include the unit if there is one."},"city":{"type":"string","minLength":1,"maxLength":100},"state":{"type":"string","minLength":1,"maxLength":50,"description":"Two-letter state code or state name."},"postal_code":{"type":"string","minLength":1,"maxLength":10}}}]}}}}}}}}},"/api/v1/lookup-geography":{"post":{"tags":["Geocoding"],"summary":"Look Up Geography","description":"**Resolve a US city, county, state or ZIP code.**\n\nReturns matching places with their center, bounding box and, for cities, counties and states, a typed filter that count_records and create_search accept. Use center with near for radius searches. Uses one lookup. Uses the monthly geocoding allowance (25,000 lookups on free plans, 250,000 on paid plans), separate from the free data-call allowance. Delegated OAuth requests must include a UUID X-ListShack-Request-Id; identical retries are not charged again. Results cover the United States.\n\n**Required ListShack capabilities:** `geo.read`","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["query","results"],"properties":{"query":{"type":"string"},"results":{"type":"array","maxItems":5,"items":{"type":"object","additionalProperties":false,"required":["id","name","label","kind","state","county","center","boundingBox","suggestedFilter"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"label":{"type":"string"},"kind":{"type":"string","enum":["city","county","state","zip"]},"state":{"type":["string","null"]},"county":{"type":["string","null"]},"center":{"type":"object","additionalProperties":false,"required":["latitude","longitude"],"properties":{"latitude":{"type":"number","minimum":-90,"maximum":90},"longitude":{"type":"number","minimum":-180,"maximum":180}}},"boundingBox":{"anyOf":[{"type":"null"},{"type":"object","additionalProperties":false,"required":["minLatitude","minLongitude","maxLatitude","maxLongitude"],"properties":{"minLatitude":{"type":"number","minimum":-90,"maximum":90},"minLongitude":{"type":"number","minimum":-180,"maximum":180},"maxLatitude":{"type":"number","minimum":-90,"maximum":90},"maxLongitude":{"type":"number","minimum":-180,"maximum":180}}}]},"suggestedFilter":{"anyOf":[{"type":"null"},{"type":"object"}],"description":"Typed filter for count_records and create_search that selects this place, when one applies. ZIP codes have none; use near with center instead."}}}},"geocodingUsage":{"type":"object","additionalProperties":false,"required":["policyVersion","period","plan","limit","used","remaining","resetsAt"],"properties":{"policyVersion":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Za-z0-9._-]+$"},"period":{"type":"string","enum":["calendar_month_utc"]},"plan":{"type":"string","enum":["free","paid"]},"limit":{"type":"integer","minimum":1},"used":{"type":"integer","minimum":0},"remaining":{"type":"integer","minimum":0},"resetsAt":{"type":"string","format":"date-time"}}}}}}}},"400":{"description":"Invalid geocoding request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"A delegated OAuth grant with geo.read is required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Geocoding is disabled.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Request ID conflicts with a prior call or authorization context.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"The monthly geocoding allowance is exhausted. Traffic admission uses RATE_LIMITED, independently of successful-call quota.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the relevant quota or traffic window resets.","schema":{"type":"integer","minimum":1}}}},"503":{"description":"The geocoder is temporarily unavailable. REQUEST_TIMEOUT ends the response after 20 seconds. RESPONSE_TOO_LARGE rejects a response exceeding 1048576 payload bytes before headers start; an oversized partial stream is closed. Retry a mutating or metered request using its original request ID; a durable transaction may already have been accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-listshack-capabilities":["geo.read"],"parameters":[{"name":"X-ListShack-Request-Id","in":"header","required":true,"schema":{"type":"string"},"description":"Stable UUID used to make delegated request retries idempotent."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["query"],"additionalProperties":false,"properties":{"query":{"type":"string","minLength":1,"maxLength":120,"description":"Place name, e.g. \"Austin, TX\", \"Travis County, TX\", \"Ohio\" or \"78701\"."},"kind":{"type":"string","enum":["city","county","state","zip"],"description":"Restrict matches to one kind of place."},"limit":{"type":"integer","minimum":1,"maximum":5,"default":1}}}}}}}},"/api/v1/suppression-lists":{"get":{"tags":["Suppressions"],"summary":"List Suppression Lists","description":"**List the account's suppression lists.**\n\nReturns active phone, email and address suppression lists with their current entry counts. Requires a plan with search suppressions or a verified account. Free on plans with search suppressions; otherwise each successful call uses one data call (X-ListShack-Free-Usage). Delegated OAuth requests must include a UUID X-ListShack-Request-Id.\n\n**Required ListShack capabilities:** `suppressions.read`","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["lists"],"properties":{"lists":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["id","name","type","entryCount","createdAt"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"type":{"type":"string","enum":["phone","email","address"]},"entryCount":{"type":["integer","null"],"minimum":0,"description":"Entries currently on the list; null if it could not be counted."},"createdAt":{"type":["string","null"],"format":"date-time"}}}}}}}},"headers":{"X-ListShack-Free-Usage":{"description":"JSON-encoded delegated account usage after this successful call; quota values follow the shared usage contract.","schema":{"type":"string","maxLength":4096,"contentMediaType":"application/json","contentSchema":{"type":"object","required":["policyVersion","period","limit","used","remaining","resetsAt"],"additionalProperties":false,"properties":{"policyVersion":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Za-z0-9._-]+$"},"period":{"type":"string","enum":["calendar_month_utc"]},"unlimited":{"type":"boolean"},"limit":{"type":["integer","null"],"minimum":1,"maximum":9007199254740991},"used":{"type":"integer","minimum":0,"maximum":9007199254740991},"remaining":{"type":["integer","null"],"minimum":0,"maximum":9007199254740991},"resetsAt":{"type":"string","maxLength":32,"format":"date-time","pattern":"^\\d{4}-\\d{2}-01T00:00:00(?:\\.000)?Z$"}}}}}}},"400":{"description":"Invalid suppression request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The account needs a plan with search suppressions or verification.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"A delegated OAuth grant with the required suppression capability is required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Suppression lists are disabled, or the list or job was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Request ID conflicts with a prior call.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"The free monthly allowance is exhausted. Traffic admission uses RATE_LIMITED, independently of successful-call quota.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the relevant quota or traffic window resets.","schema":{"type":"integer","minimum":1}}}},"503":{"description":"Suppression lists are temporarily unavailable. REQUEST_TIMEOUT ends the response after 20 seconds. RESPONSE_TOO_LARGE rejects a response exceeding 1048576 payload bytes before headers start; an oversized partial stream is closed. Retry a mutating or metered request using its original request ID; a durable transaction may already have been accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-listshack-capabilities":["suppressions.read"],"parameters":[{"name":"X-ListShack-Request-Id","in":"header","required":true,"schema":{"type":"string"},"description":"Stable UUID used to make delegated request retries idempotent."}]},"post":{"tags":["Suppressions"],"summary":"Create Suppression List","description":"**Create an empty phone, email or address suppression list.**\n\nCreates a named list that appears with the account's other suppression lists in ListShack. Requires a plan with search suppressions or a verified account. Free on plans with search suppressions; otherwise each successful call uses one data call (X-ListShack-Free-Usage). Delegated OAuth requests must include a UUID X-ListShack-Request-Id.\n\n**Required ListShack capabilities:** `suppressions.write`","responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["id","name","type","entryCount","createdAt"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"type":{"type":"string","enum":["phone","email","address"]},"entryCount":{"type":["integer","null"],"minimum":0,"description":"Entries currently on the list; null if it could not be counted."},"createdAt":{"type":["string","null"],"format":"date-time"}}}}},"headers":{"X-ListShack-Free-Usage":{"description":"JSON-encoded delegated account usage after this successful call; quota values follow the shared usage contract.","schema":{"type":"string","maxLength":4096,"contentMediaType":"application/json","contentSchema":{"type":"object","required":["policyVersion","period","limit","used","remaining","resetsAt"],"additionalProperties":false,"properties":{"policyVersion":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Za-z0-9._-]+$"},"period":{"type":"string","enum":["calendar_month_utc"]},"unlimited":{"type":"boolean"},"limit":{"type":["integer","null"],"minimum":1,"maximum":9007199254740991},"used":{"type":"integer","minimum":0,"maximum":9007199254740991},"remaining":{"type":["integer","null"],"minimum":0,"maximum":9007199254740991},"resetsAt":{"type":"string","maxLength":32,"format":"date-time","pattern":"^\\d{4}-\\d{2}-01T00:00:00(?:\\.000)?Z$"}}}}}}},"400":{"description":"Invalid suppression request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The account needs a plan with search suppressions or verification.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"A delegated OAuth grant with the required suppression capability is required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Suppression lists are disabled, or the list or job was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Request ID conflicts with a prior call.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"The free monthly allowance is exhausted. Traffic admission uses RATE_LIMITED, independently of successful-call quota.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the relevant quota or traffic window resets.","schema":{"type":"integer","minimum":1}}}},"503":{"description":"Suppression lists are temporarily unavailable. REQUEST_TIMEOUT ends the response after 20 seconds. RESPONSE_TOO_LARGE rejects a response exceeding 1048576 payload bytes before headers start; an oversized partial stream is closed. Retry a mutating or metered request using its original request ID; a durable transaction may already have been accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-listshack-capabilities":["suppressions.write"],"parameters":[{"name":"X-ListShack-Request-Id","in":"header","required":true,"schema":{"type":"string"},"description":"Stable UUID used to make delegated request retries idempotent."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name","type"],"additionalProperties":false,"properties":{"name":{"type":"string","minLength":1,"maxLength":120},"type":{"type":"string","enum":["phone","email","address"]}}}}}}}},"/api/v1/suppression-lists/{id}/entries":{"post":{"tags":["Suppressions"],"summary":"Add Suppression Entries","description":"**Add phones, emails or addresses to a suppression list.**\n\nQueues up to 5,000 entries matching the list type. Phones and emails are validated immediately; addresses are geocoded in the background, and only exact US street addresses are kept. Rejected addresses are reported on the job as rejectedEntries with reason and Pelias matchType, layer and confidence. Check progress with GET /api/v1/suppression-jobs/{id}. Requires a plan with search suppressions or a verified account. Free on plans with search suppressions; otherwise each successful call uses one data call (X-ListShack-Free-Usage). Delegated OAuth requests must include a UUID X-ListShack-Request-Id.\n\n**Required ListShack capabilities:** `suppressions.write`","responses":{"202":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["jobId","listId","type","action","status","submitted"],"properties":{"jobId":{"type":"string","format":"uuid"},"listId":{"type":"string"},"type":{"type":"string","enum":["phone","email","address"]},"action":{"type":"string","enum":["add","remove","archive","import"]},"status":{"type":"string","enum":["submitting","queued","completed","failed"]},"submitted":{"type":"integer","minimum":0,"description":"Entries submitted."},"accepted":{"type":["integer","null"],"minimum":0,"description":"Valid, distinct entries queued; addresses are counted after geocoding."},"invalid":{"type":["integer","null"],"minimum":0,"description":"Entries that were not valid phone numbers, emails or exact US street addresses."},"invalidExamples":{"type":"array","maxItems":20,"items":{"type":"string"}},"rejectedEntries":{"type":"array","maxItems":20,"description":"Addresses geocoding did not accept. Empty until an address add finishes, and empty for phone and email jobs. Only an exact US street address is stored; interpolated, fallback and street hits are listed here with Pelias matchType, layer and confidence.","items":{"type":"object","additionalProperties":false,"required":["input","reason","matchType","layer","confidence"],"properties":{"input":{"type":"string","description":"The submitted address."},"reason":{"type":"string","description":"not_exact_match when Pelias returned a hit that is not an exact US street address; no_match when it returned nothing. A geocoder error message is used when Pelias reported one."},"matchType":{"description":"Pelias match_type. exact is a known point address; interpolated is an estimated house number on a known street; fallback is a less precise match. null when Pelias did not classify the hit.","anyOf":[{"type":"string","enum":["exact","interpolated","fallback"]},{"type":"null"}]},"layer":{"type":["string","null"],"description":"Pelias layer of the best hit, such as address or street. null when nothing matched."},"confidence":{"type":["number","null"],"minimum":0,"maximum":1,"description":"Pelias confidence of that hit, from 0 to 1, or null when it was not reported."}}}},"recordsUpdated":{"type":["integer","null"],"minimum":0,"description":"Lead records marked with this list so far."},"createdAt":{"type":["string","null"],"format":"date-time"}}}}},"headers":{"X-ListShack-Free-Usage":{"description":"JSON-encoded delegated account usage after this successful call; quota values follow the shared usage contract.","schema":{"type":"string","maxLength":4096,"contentMediaType":"application/json","contentSchema":{"type":"object","required":["policyVersion","period","limit","used","remaining","resetsAt"],"additionalProperties":false,"properties":{"policyVersion":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Za-z0-9._-]+$"},"period":{"type":"string","enum":["calendar_month_utc"]},"unlimited":{"type":"boolean"},"limit":{"type":["integer","null"],"minimum":1,"maximum":9007199254740991},"used":{"type":"integer","minimum":0,"maximum":9007199254740991},"remaining":{"type":["integer","null"],"minimum":0,"maximum":9007199254740991},"resetsAt":{"type":"string","maxLength":32,"format":"date-time","pattern":"^\\d{4}-\\d{2}-01T00:00:00(?:\\.000)?Z$"}}}}}}},"400":{"description":"Invalid suppression request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The account needs a plan with search suppressions or verification.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"A delegated OAuth grant with the required suppression capability is required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Suppression lists are disabled, or the list or job was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Request ID conflicts with a prior call.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"The free monthly allowance is exhausted. Traffic admission uses RATE_LIMITED, independently of successful-call quota.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the relevant quota or traffic window resets.","schema":{"type":"integer","minimum":1}}}},"503":{"description":"Suppression lists are temporarily unavailable. REQUEST_TIMEOUT ends the response after 20 seconds. RESPONSE_TOO_LARGE rejects a response exceeding 1048576 payload bytes before headers start; an oversized partial stream is closed. Retry a mutating or metered request using its original request ID; a durable transaction may already have been accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-listshack-capabilities":["suppressions.write"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"Identifier returned by an earlier call."},{"name":"X-ListShack-Request-Id","in":"header","required":true,"schema":{"type":"string"},"description":"Stable UUID used to make delegated request retries idempotent."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["entries"],"additionalProperties":false,"properties":{"entries":{"type":"array","minItems":1,"maxItems":5000,"items":{"oneOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"object","required":["street"],"additionalProperties":false,"properties":{"street":{"type":"string","minLength":1,"maxLength":200},"city":{"type":"string","minLength":1,"maxLength":100},"state":{"type":"string","minLength":1,"maxLength":50},"postal_code":{"type":"string","minLength":1,"maxLength":10}}}]},"description":"Up to 5000 phone numbers, email addresses or US street addresses, matching the list type. Addresses may be one line or structured."}}}}}}}},"/api/v1/suppression-changes":{"post":{"tags":["Suppressions"],"summary":"Request Suppression Change","description":"**Propose removing entries from, or archiving, a suppression list.**\n\nRemoving entries or archiving a list undoes a compliance safeguard, so nothing changes until the person who connected the agent confirms. The response has a signed confirmUrl for that person; MCP clients that support it confirm in the chat instead. Retrying with the same request_id returns the same change. Requires a plan with search suppressions or a verified account. Free on plans with search suppressions; otherwise each successful call uses one data call (X-ListShack-Free-Usage). Delegated OAuth requests must include a UUID X-ListShack-Request-Id.\n\n**Required ListShack capabilities:** `suppressions.write`","responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["changeId","listId","listName","type","action","entryCount","status","expiresAt"],"properties":{"changeId":{"type":"string","format":"uuid"},"listId":{"type":"string"},"listName":{"type":"string"},"type":{"type":"string","enum":["phone","email","address"]},"action":{"type":"string","enum":["remove","archive"]},"entryCount":{"type":"integer","minimum":0},"status":{"type":"string","enum":["pending","confirmed","expired"]},"expiresAt":{"type":"string","format":"date-time"},"confirmUrl":{"type":"string","format":"uri","description":"Signed link the person who connected the agent opens to approve the change."},"job":{"anyOf":[{"type":"object","additionalProperties":false,"required":["jobId","listId","type","action","status","submitted"],"properties":{"jobId":{"type":"string","format":"uuid"},"listId":{"type":"string"},"type":{"type":"string","enum":["phone","email","address"]},"action":{"type":"string","enum":["add","remove","archive","import"]},"status":{"type":"string","enum":["submitting","queued","completed","failed"]},"submitted":{"type":"integer","minimum":0,"description":"Entries submitted."},"accepted":{"type":["integer","null"],"minimum":0,"description":"Valid, distinct entries queued; addresses are counted after geocoding."},"invalid":{"type":["integer","null"],"minimum":0,"description":"Entries that were not valid phone numbers, emails or exact US street addresses."},"invalidExamples":{"type":"array","maxItems":20,"items":{"type":"string"}},"rejectedEntries":{"type":"array","maxItems":20,"description":"Addresses geocoding did not accept. Empty until an address add finishes, and empty for phone and email jobs. Only an exact US street address is stored; interpolated, fallback and street hits are listed here with Pelias matchType, layer and confidence.","items":{"type":"object","additionalProperties":false,"required":["input","reason","matchType","layer","confidence"],"properties":{"input":{"type":"string","description":"The submitted address."},"reason":{"type":"string","description":"not_exact_match when Pelias returned a hit that is not an exact US street address; no_match when it returned nothing. A geocoder error message is used when Pelias reported one."},"matchType":{"description":"Pelias match_type. exact is a known point address; interpolated is an estimated house number on a known street; fallback is a less precise match. null when Pelias did not classify the hit.","anyOf":[{"type":"string","enum":["exact","interpolated","fallback"]},{"type":"null"}]},"layer":{"type":["string","null"],"description":"Pelias layer of the best hit, such as address or street. null when nothing matched."},"confidence":{"type":["number","null"],"minimum":0,"maximum":1,"description":"Pelias confidence of that hit, from 0 to 1, or null when it was not reported."}}}},"recordsUpdated":{"type":["integer","null"],"minimum":0,"description":"Lead records marked with this list so far."},"createdAt":{"type":["string","null"],"format":"date-time"}}},{"type":"null"}]}}}}},"headers":{"X-ListShack-Free-Usage":{"description":"JSON-encoded delegated account usage after this successful call; quota values follow the shared usage contract.","schema":{"type":"string","maxLength":4096,"contentMediaType":"application/json","contentSchema":{"type":"object","required":["policyVersion","period","limit","used","remaining","resetsAt"],"additionalProperties":false,"properties":{"policyVersion":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Za-z0-9._-]+$"},"period":{"type":"string","enum":["calendar_month_utc"]},"unlimited":{"type":"boolean"},"limit":{"type":["integer","null"],"minimum":1,"maximum":9007199254740991},"used":{"type":"integer","minimum":0,"maximum":9007199254740991},"remaining":{"type":["integer","null"],"minimum":0,"maximum":9007199254740991},"resetsAt":{"type":"string","maxLength":32,"format":"date-time","pattern":"^\\d{4}-\\d{2}-01T00:00:00(?:\\.000)?Z$"}}}}}}},"400":{"description":"Invalid suppression request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The account needs a plan with search suppressions or verification.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"A delegated OAuth grant with the required suppression capability is required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Suppression lists are disabled, or the list or job was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Request ID conflicts with a prior call.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"The free monthly allowance is exhausted. Traffic admission uses RATE_LIMITED, independently of successful-call quota.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the relevant quota or traffic window resets.","schema":{"type":"integer","minimum":1}}}},"503":{"description":"Suppression lists are temporarily unavailable. REQUEST_TIMEOUT ends the response after 20 seconds. RESPONSE_TOO_LARGE rejects a response exceeding 1048576 payload bytes before headers start; an oversized partial stream is closed. Retry a mutating or metered request using its original request ID; a durable transaction may already have been accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-listshack-capabilities":["suppressions.write"],"parameters":[{"name":"X-ListShack-Request-Id","in":"header","required":true,"schema":{"type":"string"},"description":"Stable UUID used to make delegated request retries idempotent."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["list_id","action","request_id"],"additionalProperties":false,"properties":{"list_id":{"type":"string","minLength":1,"maxLength":128,"description":"Suppression list ID from list_suppression_lists."},"action":{"type":"string","enum":["remove","archive"]},"request_id":{"type":"string","format":"uuid","description":"Caller-generated idempotency key; retries return the same change."},"entries":{"type":"array","minItems":1,"maxItems":5000,"items":{"oneOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"object","required":["street"],"additionalProperties":false,"properties":{"street":{"type":"string","minLength":1,"maxLength":200},"city":{"type":"string","minLength":1,"maxLength":100},"state":{"type":"string","minLength":1,"maxLength":50},"postal_code":{"type":"string","minLength":1,"maxLength":10}}}]},"description":"Entries to remove (required for remove, not allowed for archive). Up to 5000 phone numbers, email addresses or US street addresses, matching the list type. Addresses may be one line or structured."}}}}}}}},"/api/v1/suppression-changes/{id}/confirm":{"post":{"tags":["Suppressions"],"summary":"Confirm Suppression Change","description":"**Apply a change the person confirmed in the chat.**\n\nFor the ListShack MCP server only: it applies a removal or archive after the person accepts its in-chat confirmation, and must send the X-ListShack-Confirmation proof that only the MCP server can produce. Other callers get 403 and should have the person approve the confirmUrl link. Confirming twice returns the first result. Requires a plan with search suppressions or a verified account. Free on plans with search suppressions; otherwise each successful call uses one data call (X-ListShack-Free-Usage). Delegated OAuth requests must include a UUID X-ListShack-Request-Id.\n\n**Required ListShack capabilities:** `suppressions.write`","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["changeId","listId","listName","type","action","entryCount","status","expiresAt"],"properties":{"changeId":{"type":"string","format":"uuid"},"listId":{"type":"string"},"listName":{"type":"string"},"type":{"type":"string","enum":["phone","email","address"]},"action":{"type":"string","enum":["remove","archive"]},"entryCount":{"type":"integer","minimum":0},"status":{"type":"string","enum":["pending","confirmed","expired"]},"expiresAt":{"type":"string","format":"date-time"},"confirmUrl":{"type":"string","format":"uri","description":"Signed link the person who connected the agent opens to approve the change."},"job":{"anyOf":[{"type":"object","additionalProperties":false,"required":["jobId","listId","type","action","status","submitted"],"properties":{"jobId":{"type":"string","format":"uuid"},"listId":{"type":"string"},"type":{"type":"string","enum":["phone","email","address"]},"action":{"type":"string","enum":["add","remove","archive","import"]},"status":{"type":"string","enum":["submitting","queued","completed","failed"]},"submitted":{"type":"integer","minimum":0,"description":"Entries submitted."},"accepted":{"type":["integer","null"],"minimum":0,"description":"Valid, distinct entries queued; addresses are counted after geocoding."},"invalid":{"type":["integer","null"],"minimum":0,"description":"Entries that were not valid phone numbers, emails or exact US street addresses."},"invalidExamples":{"type":"array","maxItems":20,"items":{"type":"string"}},"rejectedEntries":{"type":"array","maxItems":20,"description":"Addresses geocoding did not accept. Empty until an address add finishes, and empty for phone and email jobs. Only an exact US street address is stored; interpolated, fallback and street hits are listed here with Pelias matchType, layer and confidence.","items":{"type":"object","additionalProperties":false,"required":["input","reason","matchType","layer","confidence"],"properties":{"input":{"type":"string","description":"The submitted address."},"reason":{"type":"string","description":"not_exact_match when Pelias returned a hit that is not an exact US street address; no_match when it returned nothing. A geocoder error message is used when Pelias reported one."},"matchType":{"description":"Pelias match_type. exact is a known point address; interpolated is an estimated house number on a known street; fallback is a less precise match. null when Pelias did not classify the hit.","anyOf":[{"type":"string","enum":["exact","interpolated","fallback"]},{"type":"null"}]},"layer":{"type":["string","null"],"description":"Pelias layer of the best hit, such as address or street. null when nothing matched."},"confidence":{"type":["number","null"],"minimum":0,"maximum":1,"description":"Pelias confidence of that hit, from 0 to 1, or null when it was not reported."}}}},"recordsUpdated":{"type":["integer","null"],"minimum":0,"description":"Lead records marked with this list so far."},"createdAt":{"type":["string","null"],"format":"date-time"}}},{"type":"null"}]}}}}},"headers":{"X-ListShack-Free-Usage":{"description":"JSON-encoded delegated account usage after this successful call; quota values follow the shared usage contract.","schema":{"type":"string","maxLength":4096,"contentMediaType":"application/json","contentSchema":{"type":"object","required":["policyVersion","period","limit","used","remaining","resetsAt"],"additionalProperties":false,"properties":{"policyVersion":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Za-z0-9._-]+$"},"period":{"type":"string","enum":["calendar_month_utc"]},"unlimited":{"type":"boolean"},"limit":{"type":["integer","null"],"minimum":1,"maximum":9007199254740991},"used":{"type":"integer","minimum":0,"maximum":9007199254740991},"remaining":{"type":["integer","null"],"minimum":0,"maximum":9007199254740991},"resetsAt":{"type":"string","maxLength":32,"format":"date-time","pattern":"^\\d{4}-\\d{2}-01T00:00:00(?:\\.000)?Z$"}}}}}}},"400":{"description":"Invalid suppression request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The account needs a plan with search suppressions or verification.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"A delegated OAuth grant with the required suppression capability is required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Suppression lists are disabled, or the list or job was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Request ID conflicts with a prior call.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"The free monthly allowance is exhausted. Traffic admission uses RATE_LIMITED, independently of successful-call quota.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the relevant quota or traffic window resets.","schema":{"type":"integer","minimum":1}}}},"503":{"description":"Suppression lists are temporarily unavailable. REQUEST_TIMEOUT ends the response after 20 seconds. RESPONSE_TOO_LARGE rejects a response exceeding 1048576 payload bytes before headers start; an oversized partial stream is closed. Retry a mutating or metered request using its original request ID; a durable transaction may already have been accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-listshack-capabilities":["suppressions.write"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"Identifier returned by an earlier call."},{"name":"X-ListShack-Request-Id","in":"header","required":true,"schema":{"type":"string"},"description":"Stable UUID used to make delegated request retries idempotent."}]}},"/api/v1/suppression-changes/{id}":{"get":{"tags":["Suppressions"],"summary":"Get Suppression Change","description":"**Check whether a proposed change was confirmed.**\n\nReturns the change and, once confirmed, its job. Requires a plan with search suppressions or a verified account. Free on plans with search suppressions; otherwise each successful call uses one data call (X-ListShack-Free-Usage). Delegated OAuth requests must include a UUID X-ListShack-Request-Id.\n\n**Required ListShack capabilities:** `suppressions.read`","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["changeId","listId","listName","type","action","entryCount","status","expiresAt"],"properties":{"changeId":{"type":"string","format":"uuid"},"listId":{"type":"string"},"listName":{"type":"string"},"type":{"type":"string","enum":["phone","email","address"]},"action":{"type":"string","enum":["remove","archive"]},"entryCount":{"type":"integer","minimum":0},"status":{"type":"string","enum":["pending","confirmed","expired"]},"expiresAt":{"type":"string","format":"date-time"},"confirmUrl":{"type":"string","format":"uri","description":"Signed link the person who connected the agent opens to approve the change."},"job":{"anyOf":[{"type":"object","additionalProperties":false,"required":["jobId","listId","type","action","status","submitted"],"properties":{"jobId":{"type":"string","format":"uuid"},"listId":{"type":"string"},"type":{"type":"string","enum":["phone","email","address"]},"action":{"type":"string","enum":["add","remove","archive","import"]},"status":{"type":"string","enum":["submitting","queued","completed","failed"]},"submitted":{"type":"integer","minimum":0,"description":"Entries submitted."},"accepted":{"type":["integer","null"],"minimum":0,"description":"Valid, distinct entries queued; addresses are counted after geocoding."},"invalid":{"type":["integer","null"],"minimum":0,"description":"Entries that were not valid phone numbers, emails or exact US street addresses."},"invalidExamples":{"type":"array","maxItems":20,"items":{"type":"string"}},"rejectedEntries":{"type":"array","maxItems":20,"description":"Addresses geocoding did not accept. Empty until an address add finishes, and empty for phone and email jobs. Only an exact US street address is stored; interpolated, fallback and street hits are listed here with Pelias matchType, layer and confidence.","items":{"type":"object","additionalProperties":false,"required":["input","reason","matchType","layer","confidence"],"properties":{"input":{"type":"string","description":"The submitted address."},"reason":{"type":"string","description":"not_exact_match when Pelias returned a hit that is not an exact US street address; no_match when it returned nothing. A geocoder error message is used when Pelias reported one."},"matchType":{"description":"Pelias match_type. exact is a known point address; interpolated is an estimated house number on a known street; fallback is a less precise match. null when Pelias did not classify the hit.","anyOf":[{"type":"string","enum":["exact","interpolated","fallback"]},{"type":"null"}]},"layer":{"type":["string","null"],"description":"Pelias layer of the best hit, such as address or street. null when nothing matched."},"confidence":{"type":["number","null"],"minimum":0,"maximum":1,"description":"Pelias confidence of that hit, from 0 to 1, or null when it was not reported."}}}},"recordsUpdated":{"type":["integer","null"],"minimum":0,"description":"Lead records marked with this list so far."},"createdAt":{"type":["string","null"],"format":"date-time"}}},{"type":"null"}]}}}}},"headers":{"X-ListShack-Free-Usage":{"description":"JSON-encoded delegated account usage after this successful call; quota values follow the shared usage contract.","schema":{"type":"string","maxLength":4096,"contentMediaType":"application/json","contentSchema":{"type":"object","required":["policyVersion","period","limit","used","remaining","resetsAt"],"additionalProperties":false,"properties":{"policyVersion":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Za-z0-9._-]+$"},"period":{"type":"string","enum":["calendar_month_utc"]},"unlimited":{"type":"boolean"},"limit":{"type":["integer","null"],"minimum":1,"maximum":9007199254740991},"used":{"type":"integer","minimum":0,"maximum":9007199254740991},"remaining":{"type":["integer","null"],"minimum":0,"maximum":9007199254740991},"resetsAt":{"type":"string","maxLength":32,"format":"date-time","pattern":"^\\d{4}-\\d{2}-01T00:00:00(?:\\.000)?Z$"}}}}}}},"400":{"description":"Invalid suppression request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The account needs a plan with search suppressions or verification.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"A delegated OAuth grant with the required suppression capability is required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Suppression lists are disabled, or the list or job was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Request ID conflicts with a prior call.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"The free monthly allowance is exhausted. Traffic admission uses RATE_LIMITED, independently of successful-call quota.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the relevant quota or traffic window resets.","schema":{"type":"integer","minimum":1}}}},"503":{"description":"Suppression lists are temporarily unavailable. REQUEST_TIMEOUT ends the response after 20 seconds. RESPONSE_TOO_LARGE rejects a response exceeding 1048576 payload bytes before headers start; an oversized partial stream is closed. Retry a mutating or metered request using its original request ID; a durable transaction may already have been accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-listshack-capabilities":["suppressions.read"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"Identifier returned by an earlier call."},{"name":"X-ListShack-Request-Id","in":"header","required":true,"schema":{"type":"string"},"description":"Stable UUID used to make delegated request retries idempotent."}]}},"/api/v1/suppression-checks":{"post":{"tags":["Suppressions"],"summary":"Check Suppression","description":"**Check whether a phone, email or address is on any of the account's lists.**\n\nNormalizes the value the way it is stored (E.164 phone, lowercase email, standardized US address) and reports which of the account's active lists contain it. Requires a plan with search suppressions or a verified account. Free on plans with search suppressions; otherwise each successful call uses one data call (X-ListShack-Free-Usage). Delegated OAuth requests must include a UUID X-ListShack-Request-Id.\n\n**Required ListShack capabilities:** `suppressions.read`","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["type","normalized","suppressed","lists"],"properties":{"type":{"type":"string","enum":["phone","email","address"]},"normalized":{"type":["string","null"],"description":"How the value is stored: E.164 phone, lowercase email or standardized address; null when it is not valid."},"suppressed":{"type":"boolean"},"lists":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["id","name"],"properties":{"id":{"type":"string"},"name":{"type":"string"}}}}}}}},"headers":{"X-ListShack-Free-Usage":{"description":"JSON-encoded delegated account usage after this successful call; quota values follow the shared usage contract.","schema":{"type":"string","maxLength":4096,"contentMediaType":"application/json","contentSchema":{"type":"object","required":["policyVersion","period","limit","used","remaining","resetsAt"],"additionalProperties":false,"properties":{"policyVersion":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Za-z0-9._-]+$"},"period":{"type":"string","enum":["calendar_month_utc"]},"unlimited":{"type":"boolean"},"limit":{"type":["integer","null"],"minimum":1,"maximum":9007199254740991},"used":{"type":"integer","minimum":0,"maximum":9007199254740991},"remaining":{"type":["integer","null"],"minimum":0,"maximum":9007199254740991},"resetsAt":{"type":"string","maxLength":32,"format":"date-time","pattern":"^\\d{4}-\\d{2}-01T00:00:00(?:\\.000)?Z$"}}}}}}},"400":{"description":"Invalid suppression request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The account needs a plan with search suppressions or verification.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"A delegated OAuth grant with the required suppression capability is required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Suppression lists are disabled, or the list or job was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Request ID conflicts with a prior call.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"The free monthly allowance is exhausted. Traffic admission uses RATE_LIMITED, independently of successful-call quota.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the relevant quota or traffic window resets.","schema":{"type":"integer","minimum":1}}}},"503":{"description":"Suppression lists are temporarily unavailable. REQUEST_TIMEOUT ends the response after 20 seconds. RESPONSE_TOO_LARGE rejects a response exceeding 1048576 payload bytes before headers start; an oversized partial stream is closed. Retry a mutating or metered request using its original request ID; a durable transaction may already have been accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-listshack-capabilities":["suppressions.read"],"parameters":[{"name":"X-ListShack-Request-Id","in":"header","required":true,"schema":{"type":"string"},"description":"Stable UUID used to make delegated request retries idempotent."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["type","value"],"additionalProperties":false,"properties":{"type":{"type":"string","enum":["phone","email","address"]},"value":{"oneOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"object","required":["street"],"additionalProperties":false,"properties":{"street":{"type":"string","minLength":1,"maxLength":200},"city":{"type":"string","minLength":1,"maxLength":100},"state":{"type":"string","minLength":1,"maxLength":50},"postal_code":{"type":"string","minLength":1,"maxLength":10}}}]}}}}}}}},"/api/v1/suppression-jobs/{id}":{"get":{"tags":["Suppressions"],"summary":"Get Suppression Job","description":"**Check the progress of a suppression job.**\n\nReports whether queued entries were processed, how many were accepted or invalid, and how many lead records were updated. Address adds include rejectedEntries for geocoder rejections, with Pelias matchType, layer and confidence. Requires a plan with search suppressions or a verified account. Free on plans with search suppressions; otherwise each successful call uses one data call (X-ListShack-Free-Usage). Delegated OAuth requests must include a UUID X-ListShack-Request-Id.\n\n**Required ListShack capabilities:** `suppressions.read`","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["jobId","listId","type","action","status","submitted"],"properties":{"jobId":{"type":"string","format":"uuid"},"listId":{"type":"string"},"type":{"type":"string","enum":["phone","email","address"]},"action":{"type":"string","enum":["add","remove","archive","import"]},"status":{"type":"string","enum":["submitting","queued","completed","failed"]},"submitted":{"type":"integer","minimum":0,"description":"Entries submitted."},"accepted":{"type":["integer","null"],"minimum":0,"description":"Valid, distinct entries queued; addresses are counted after geocoding."},"invalid":{"type":["integer","null"],"minimum":0,"description":"Entries that were not valid phone numbers, emails or exact US street addresses."},"invalidExamples":{"type":"array","maxItems":20,"items":{"type":"string"}},"rejectedEntries":{"type":"array","maxItems":20,"description":"Addresses geocoding did not accept. Empty until an address add finishes, and empty for phone and email jobs. Only an exact US street address is stored; interpolated, fallback and street hits are listed here with Pelias matchType, layer and confidence.","items":{"type":"object","additionalProperties":false,"required":["input","reason","matchType","layer","confidence"],"properties":{"input":{"type":"string","description":"The submitted address."},"reason":{"type":"string","description":"not_exact_match when Pelias returned a hit that is not an exact US street address; no_match when it returned nothing. A geocoder error message is used when Pelias reported one."},"matchType":{"description":"Pelias match_type. exact is a known point address; interpolated is an estimated house number on a known street; fallback is a less precise match. null when Pelias did not classify the hit.","anyOf":[{"type":"string","enum":["exact","interpolated","fallback"]},{"type":"null"}]},"layer":{"type":["string","null"],"description":"Pelias layer of the best hit, such as address or street. null when nothing matched."},"confidence":{"type":["number","null"],"minimum":0,"maximum":1,"description":"Pelias confidence of that hit, from 0 to 1, or null when it was not reported."}}}},"recordsUpdated":{"type":["integer","null"],"minimum":0,"description":"Lead records marked with this list so far."},"createdAt":{"type":["string","null"],"format":"date-time"}}}}},"headers":{"X-ListShack-Free-Usage":{"description":"JSON-encoded delegated account usage after this successful call; quota values follow the shared usage contract.","schema":{"type":"string","maxLength":4096,"contentMediaType":"application/json","contentSchema":{"type":"object","required":["policyVersion","period","limit","used","remaining","resetsAt"],"additionalProperties":false,"properties":{"policyVersion":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Za-z0-9._-]+$"},"period":{"type":"string","enum":["calendar_month_utc"]},"unlimited":{"type":"boolean"},"limit":{"type":["integer","null"],"minimum":1,"maximum":9007199254740991},"used":{"type":"integer","minimum":0,"maximum":9007199254740991},"remaining":{"type":["integer","null"],"minimum":0,"maximum":9007199254740991},"resetsAt":{"type":"string","maxLength":32,"format":"date-time","pattern":"^\\d{4}-\\d{2}-01T00:00:00(?:\\.000)?Z$"}}}}}}},"400":{"description":"Invalid suppression request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The account needs a plan with search suppressions or verification.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"A delegated OAuth grant with the required suppression capability is required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Suppression lists are disabled, or the list or job was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Request ID conflicts with a prior call.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"The free monthly allowance is exhausted. Traffic admission uses RATE_LIMITED, independently of successful-call quota.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the relevant quota or traffic window resets.","schema":{"type":"integer","minimum":1}}}},"503":{"description":"Suppression lists are temporarily unavailable. REQUEST_TIMEOUT ends the response after 20 seconds. RESPONSE_TOO_LARGE rejects a response exceeding 1048576 payload bytes before headers start; an oversized partial stream is closed. Retry a mutating or metered request using its original request ID; a durable transaction may already have been accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-listshack-capabilities":["suppressions.read"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"Identifier returned by an earlier call."},{"name":"X-ListShack-Request-Id","in":"header","required":true,"schema":{"type":"string"},"description":"Stable UUID used to make delegated request retries idempotent."}]}},"/api/v1/appends/quote":{"post":{"tags":["Appends"],"summary":"Quote Append","description":"**Match rows to records and price the append.**\n\nMatches up to 1000 rows (by name and address, phone, address or email) under the database's fixed use-case policy and returns only counts and the exact credit cost. No record data is returned and nothing is spent until the person who connected the agent approves. request_id must be a UUID; non-UUIDs are rejected. Quotes last 15 minutes; retrying with the same request_id returns the same quote. Needs a plan with credits. Each matched record costs the database's credit multiplier, doubled for premium fields, exactly as in a purchase; rows without a match cost nothing.\n\n**Required ListShack capabilities:** `records.append`","responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["appendId","status","databaseId","useCase","matchBy","fields","rowCount","matchedRows","matchedRecords","creditsPerRecord","credits","expiresAt"],"properties":{"appendId":{"type":"string","format":"uuid"},"status":{"type":"string","enum":["quoted","completed","expired"]},"databaseId":{"type":"string"},"useCase":{"type":"string"},"matchBy":{"type":"string","enum":["name_address","phone","address","email"]},"fields":{"type":"array","items":{"type":"string"}},"premiumFields":{"type":"array","items":{"type":"string"},"description":"Requested fields that double the price, as in purchases."},"rowCount":{"type":"integer","minimum":0},"matchedRows":{"type":"integer","minimum":0},"matchedRecords":{"type":"integer","minimum":0,"description":"Records that would be returned and charged."},"unmatched":{"type":"object","additionalProperties":{"type":"integer","minimum":0},"description":"Rows without a match, by reason."},"creditsPerRecord":{"type":"number","minimum":0},"credits":{"type":"integer","minimum":0},"expiresAt":{"type":"string","format":"date-time"}}}}}},"400":{"description":"Invalid append request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"A plan with credits, or more credits, is required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"A delegated OAuth grant with records.append is required, or a purchase limit applies.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Appends are disabled or the append was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The request ID or approved credits conflict with an earlier call.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"The quote expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Delegated agent traffic limit reached. Traffic admission uses RATE_LIMITED, independently of successful-call quota.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the relevant quota or traffic window resets.","schema":{"type":"integer","minimum":1}}}},"503":{"description":"Record matching is temporarily unavailable. REQUEST_TIMEOUT ends the response after 20 seconds. RESPONSE_TOO_LARGE rejects a response exceeding 1048576 payload bytes before headers start; an oversized partial stream is closed. Retry a mutating or metered request using its original request ID; a durable transaction may already have been accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-listshack-capabilities":["records.append"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["database_id","use_case","match_by","fields","rows","request_id"],"additionalProperties":false,"properties":{"database_id":{"type":"string","minLength":1,"maxLength":100},"use_case":{"type":"string","enum":["telemarketing","sms","email","direct_mail"],"description":"The same fixed compliance policy as searches; for example telemarketing never appends do-not-call numbers."},"match_by":{"type":"string","enum":["name_address","phone","address","email"],"description":"name_address: first_name, last_name and street with postal_code (or city and state). phone: phone. address: street with postal_code; returns up to 5 residents. email: email."},"fields":{"type":"array","minItems":1,"maxItems":50,"uniqueItems":true,"items":{"type":"string","pattern":"^[A-Za-z_][A-Za-z0-9_]*$"},"description":"Fields to append, from the database's outputFields in describe_database."},"rows":{"type":"array","minItems":1,"maxItems":1000,"items":{"type":"object","additionalProperties":false,"properties":{"first_name":{"type":"string","minLength":1,"maxLength":60},"last_name":{"type":"string","minLength":1,"maxLength":60},"street":{"type":"string","minLength":1,"maxLength":200},"city":{"type":"string","minLength":1,"maxLength":100},"state":{"type":"string","minLength":1,"maxLength":50},"postal_code":{"type":"string","minLength":1,"maxLength":10},"phone":{"type":"string","minLength":1,"maxLength":30},"email":{"type":"string","minLength":1,"maxLength":254}}}},"request_id":{"type":"string","format":"uuid","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","description":"Caller-generated idempotency key. request_id must be a UUID; non-UUIDs are rejected. Retries with the same request_id return the same quote."}}}}}}}},"/api/v1/appends":{"post":{"tags":["Appends"],"summary":"Run Append","description":"**Spend the quoted credits and release the appended records.**\n\nUsed by the MCP server after the person approves the quote in the chat; the agent cannot call it directly. Debits exactly the quoted credits once; retrying returns the same results. Needs a plan with credits. Each matched record costs the database's credit multiplier, doubled for premium fields, exactly as in a purchase; rows without a match cost nothing.\n\n**Required ListShack capabilities:** `records.append`","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["appendId","status","credits","matchedRecords","results","nextOffset"],"properties":{"appendId":{"type":"string","format":"uuid"},"status":{"type":"string","enum":["quoted","completed","expired"]},"credits":{"type":"integer","minimum":0,"description":"Credits charged; 0 until completed."},"matchedRecords":{"type":"integer","minimum":0},"results":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["index","records"],"properties":{"index":{"type":"integer","minimum":0,"description":"Position of the submitted row."},"records":{"type":"array","maxItems":5,"items":{"type":"object","additionalProperties":{"type":["string","number","boolean","null"]}}}}}},"nextOffset":{"type":["integer","null"],"minimum":0}}}}}},"400":{"description":"Invalid append request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"A plan with credits, or more credits, is required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"A delegated OAuth grant with records.append is required, or a purchase limit applies.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Appends are disabled or the append was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The request ID or approved credits conflict with an earlier call.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"The quote expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Delegated agent traffic limit reached. Traffic admission uses RATE_LIMITED, independently of successful-call quota.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the relevant quota or traffic window resets.","schema":{"type":"integer","minimum":1}}}},"503":{"description":"Record matching is temporarily unavailable. REQUEST_TIMEOUT ends the response after 20 seconds. RESPONSE_TOO_LARGE rejects a response exceeding 1048576 payload bytes before headers start; an oversized partial stream is closed. Retry a mutating or metered request using its original request ID; a durable transaction may already have been accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-listshack-capabilities":["records.append"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["append_id","expected_credits"],"additionalProperties":false,"properties":{"append_id":{"type":"string","format":"uuid"},"expected_credits":{"type":"integer","minimum":0,"description":"The quoted credits the person approved."}}}}}}}},"/api/v1/appends/{id}/confirmation-link":{"post":{"tags":["Appends"],"summary":"Create Append Approval Link","description":"**Create a link the person opens to approve the append.**\n\nFor clients that cannot ask in the chat. The signed confirmUrl opens in ListShack for the person who connected the agent; creating it spends nothing. Needs a plan with credits. Each matched record costs the database's credit multiplier, doubled for premium fields, exactly as in a purchase; rows without a match cost nothing.\n\n**Required ListShack capabilities:** `records.append`","responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["appendId","status","databaseId","useCase","matchBy","fields","rowCount","matchedRows","matchedRecords","creditsPerRecord","credits","expiresAt"],"properties":{"appendId":{"type":"string","format":"uuid"},"status":{"type":"string","enum":["quoted","completed","expired"]},"databaseId":{"type":"string"},"useCase":{"type":"string"},"matchBy":{"type":"string","enum":["name_address","phone","address","email"]},"fields":{"type":"array","items":{"type":"string"}},"premiumFields":{"type":"array","items":{"type":"string"},"description":"Requested fields that double the price, as in purchases."},"rowCount":{"type":"integer","minimum":0},"matchedRows":{"type":"integer","minimum":0},"matchedRecords":{"type":"integer","minimum":0,"description":"Records that would be returned and charged."},"unmatched":{"type":"object","additionalProperties":{"type":"integer","minimum":0},"description":"Rows without a match, by reason."},"creditsPerRecord":{"type":"number","minimum":0},"credits":{"type":"integer","minimum":0},"expiresAt":{"type":"string","format":"date-time"}}}}}},"400":{"description":"Invalid append request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"A plan with credits, or more credits, is required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"A delegated OAuth grant with records.append is required, or a purchase limit applies.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Appends are disabled or the append was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The request ID or approved credits conflict with an earlier call.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"The quote expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Delegated agent traffic limit reached. Traffic admission uses RATE_LIMITED, independently of successful-call quota.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the relevant quota or traffic window resets.","schema":{"type":"integer","minimum":1}}}},"503":{"description":"Record matching is temporarily unavailable. REQUEST_TIMEOUT ends the response after 20 seconds. RESPONSE_TOO_LARGE rejects a response exceeding 1048576 payload bytes before headers start; an oversized partial stream is closed. Retry a mutating or metered request using its original request ID; a durable transaction may already have been accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-listshack-capabilities":["records.append"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"appendId from the quote."}]}},"/api/v1/appends/{id}":{"get":{"tags":["Appends"],"summary":"Get Append Results","description":"**Read the quote and, once approved, the appended records.**\n\nReturns 100 results per page; pass ?offset= with nextOffset for more. Records are only returned after the credits are spent. Needs a plan with credits. Each matched record costs the database's credit multiplier, doubled for premium fields, exactly as in a purchase; rows without a match cost nothing.\n\n**Required ListShack capabilities:** `records.append`","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["appendId","status","credits","matchedRecords","results","nextOffset"],"properties":{"appendId":{"type":"string","format":"uuid"},"status":{"type":"string","enum":["quoted","completed","expired"]},"credits":{"type":"integer","minimum":0,"description":"Credits charged; 0 until completed."},"matchedRecords":{"type":"integer","minimum":0},"results":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["index","records"],"properties":{"index":{"type":"integer","minimum":0,"description":"Position of the submitted row."},"records":{"type":"array","maxItems":5,"items":{"type":"object","additionalProperties":{"type":["string","number","boolean","null"]}}}}}},"nextOffset":{"type":["integer","null"],"minimum":0}}}}}},"400":{"description":"Invalid append request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"A plan with credits, or more credits, is required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"A delegated OAuth grant with records.append is required, or a purchase limit applies.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Appends are disabled or the append was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The request ID or approved credits conflict with an earlier call.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"The quote expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Delegated agent traffic limit reached. Traffic admission uses RATE_LIMITED, independently of successful-call quota.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds until the relevant quota or traffic window resets.","schema":{"type":"integer","minimum":1}}}},"503":{"description":"Record matching is temporarily unavailable. REQUEST_TIMEOUT ends the response after 20 seconds. RESPONSE_TOO_LARGE rejects a response exceeding 1048576 payload bytes before headers start; an oversized partial stream is closed. Retry a mutating or metered request using its original request ID; a durable transaction may already have been accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-listshack-capabilities":["records.append"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"appendId from the quote."}]}}},"components":{"securitySchemes":{"ListShackOAuth":{"type":"oauth2","description":"Supabase Auth Authorization Code with PKCE. OAuth scopes identify the user; ListShack capabilities are granted and enforced separately.","flows":{"authorizationCode":{"authorizationUrl":"https://listshack.com/supabase/auth/v1/oauth/authorize","tokenUrl":"https://listshack.com/supabase/auth/v1/oauth/token","scopes":{"openid":"Authenticate the user","profile":"Read basic profile claims","email":"Read email claim","phone":"Read phone claims","offline_access":"Request refresh-token access"}}},"x-pkce":true}},"schemas":{"Error":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"code":{"type":"string"},"retryAfterSeconds":{"type":"integer","minimum":1},"resetsAt":{"type":"string","format":"date-time"},"dimension":{"type":"string","enum":["account","client","credential","operation"]},"required_capability":{"type":"string"},"required_capabilities":{"type":"array","items":{"type":"string"}}}},"TypedFilterNode":{"oneOf":[{"type":"object","required":["and"],"additionalProperties":false,"properties":{"and":{"type":"array","minItems":1,"maxItems":8,"items":{"$ref":"#/components/schemas/TypedFilterNode"}}}},{"type":"object","required":["or"],"additionalProperties":false,"properties":{"or":{"type":"array","minItems":1,"maxItems":8,"items":{"$ref":"#/components/schemas/TypedFilterNode"}}}},{"type":"object","required":["not"],"additionalProperties":false,"properties":{"not":{"$ref":"#/components/schemas/TypedFilterNode"}}},{"type":"object","required":["field","operator"],"additionalProperties":false,"properties":{"field":{"type":"string","enum":["state","city","county","age","gender","homeowner","birth_month","birth_year","make","modelYear"]},"operator":{"type":"string","enum":["exists","missing"]}}},{"type":"object","required":["field","operator","value"],"additionalProperties":false,"properties":{"field":{"type":"string","enum":["state","city","county","age","gender","homeowner","birth_month","birth_year","make","modelYear"]},"operator":{"type":"string","enum":["eq","neq","gt","gte","lt","lte","in","like"]},"value":{"oneOf":[{"type":"string","maxLength":128},{"type":"number"},{"type":"boolean"},{"type":"array","minItems":1,"maxItems":20,"items":{"oneOf":[{"type":"string","maxLength":128},{"type":"number"},{"type":"boolean"}]}}]}}}]}}}}