@addresszen/openapi 4.0.4 → 4.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -19
- package/dist/index.d.cts +117 -86
- package/dist/index.d.ts +117 -86
- package/dist/index.mjs +0 -1
- package/dist/openapi.json +155 -38
- package/dist/openapi.yaml +156 -49
- package/openapi.ts +117 -86
- package/package.json +10 -5
- package/dist/index.cjs.map +0 -1
- package/dist/index.mjs.map +0 -1
package/dist/openapi.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"openapi": "3.0.3",
|
|
3
3
|
"info": {
|
|
4
|
-
"version": "4.
|
|
4
|
+
"version": "4.1.1",
|
|
5
5
|
"license": {
|
|
6
6
|
"name": "Copyright (C) IDDQD Limited - All Rights Reserved",
|
|
7
7
|
"url": "https://terms.addresszen.com"
|
|
8
8
|
},
|
|
9
9
|
"title": "API Reference",
|
|
10
10
|
"termsOfService": "https://terms.addresszen.com",
|
|
11
|
-
"description": "## Getting Started\n\nAll API methods are either a `GET`, `POST` or `OPTIONS` request.\n\nThe API communicates over both HTTPS and plain HTTP using IPv4 and IPv6.\n\nWe use appropriate HTTP status codes where possible to indicate the request status. Every error body also carries a numeric `code`. The [error codes guide](https://docs.addresszen.com/docs/guides/error-codes) lists each code and how to fix it.\n\n## OpenAPI Spec\n\nOur OpenAPI specification is available at:\n\n- [npm package](https://www.npmjs.com/package/@addresszen/openapi)\n- [API Reference](https://openapi.addresszen.com)\n- [OpenAPI v3 JSON File](https://openapi.addresszen.com/openapi.json)\n- [OpenAPI v3 YAML File](https://openapi.addresszen.com/openapi.yaml)\n\n## Rate Limiting\n\nEach IP address is rate limited at 30 requests per second. Exceeding the limit returns a 503 response.\n\nThe autocomplete API has an additional rate limit.\n\nIf you expect to exceed the limit, contact us and we can move you to an endpoint with a higher limit.\n\n## Authentication\n\nMost requests
|
|
11
|
+
"description": "## Getting Started\n\nAll API methods are either a `GET`, `POST` or `OPTIONS` request.\n\nThe API communicates over both HTTPS and plain HTTP using IPv4 and IPv6.\n\nWe use appropriate HTTP status codes where possible to indicate the request status. Every error body also carries a numeric `code`. The [error codes guide](https://docs.addresszen.com/docs/guides/error-codes) lists each code and how to fix it.\n\n## OpenAPI Spec\n\nOur OpenAPI specification is available at:\n\n- [npm package](https://www.npmjs.com/package/@addresszen/openapi)\n- [API Reference](https://openapi.addresszen.com)\n- [OpenAPI v3 JSON File](https://openapi.addresszen.com/openapi.json)\n- [OpenAPI v3 YAML File](https://openapi.addresszen.com/openapi.yaml)\n\n## Rate Limiting\n\nEach IP address is rate limited at 30 requests per second. Exceeding the limit returns a 503 response.\n\nThe autocomplete API has an additional rate limit.\n\nIf you expect to exceed the limit, contact us and we can move you to an endpoint with a higher limit.\n\n## Authentication\n\nMost requests need an **API key**. Send it as a Bearer token in the `Authorization` header:\n\n```\ncurl 'https://api.addresszen.com/v1/autocomplete/addresses?q=parkside' \\\n -H 'Authorization: Bearer ak_test'\n```\n\nA header keeps the key out of URLs and server logs.\n\nTwo credentials exist, and they do different jobs:\n\n| Credential | Looks like | Authenticates | Exposure |\n| --- | --- | --- | --- |\n| API Key | `ak_test` | Address, postcode and place lookups. Every billable request | Usable in a browser. Restrict it with allowed URLs |\n| Management Key | `uk_...` | Managing a key under `/keys/{key}`: usage, licensees, configs | Secret. Server side only |\n\nRequests that manage a key, under `/keys/{key}`, take your **Management Key** instead: `Authorization: Bearer uk_...`. The API key is already in the path. The management key was previously called the user token.\n\nTo bill a request to a licensee, send the licensee key as the Bearer token: `Authorization: Bearer sl_...`.\n\nIf you cannot set headers, for example in some browser integrations, pass the key as `api_key` in the query string (or the management key as `user_token`):\n\n```\napi.addresszen.com/v1/autocomplete/addresses?api_key=ak_test&q=parkside\n```\n\nThe query string takes precedence when both are present.\n\nThe older `Authorization: api_key=\"ak_test\"` form still works but is deprecated. Use Bearer in new integrations.\n\n## Versioning\n\nThis API is versioned with a simple prefix in the URL. The current version is `/v1/`. We will maintain backwards-compatibility by releasing breaking changes under a new version.\n\nThe following changes are backwards-compatible:\n\n- Adding new properties to existing API responses\n- Adding new API endpoints\n- Adding new optional request parameters to existing API endpoints\n- Changing the order of properties in existing API responses\n- Changing the autocomplete address suggestion format\n\n## Error Handling\n\nA successful lookup returns an HTTP status code of 200 and a response code of 2000 in the body.\n\nAny other status code means an error. These range from a benign 404 (resource not found) to more urgent problems, such as an API Key out of credit or a failed authentication.\n\n## Testing\n\nTo test the API, create an account. Each new account comes with a free test balance. Contact us if you need more for testing and integration.\n\nThe code samples in this reference use the `ak_test` key. You can use it too, but it is capped at 5 requests per day.\n\n## Metadata\n\nYou can annotate requests that affect your balance with arbitrary metadata. We store it with your lookup history, and you can query it later via the API or the dashboard. We call the ability to label your requests [tagging](https://docs.addresszen.com/docs/guides/tags).\n\n## Response Codes\n\nThe API returns two indicators to help you determine the status of each HTTP request.\n\nThe first is the **HTTP Status**, which is found in the status line of every HTTP response. The API will return status codes that adhere to HTTP/1.1 Specifications wherever possible.\n\n`2XX` status codes indicate success while `4XX` and `5XX` indicate client and server errors respectively.\n\nThe second is the **API response code**, which can be found in the `code` property of the response body. This code gives a more specific reason for a failure and points you in the right direction when debugging.\n",
|
|
12
12
|
"contact": {
|
|
13
13
|
"email": "support@addresszen.com",
|
|
14
14
|
"name": "Support",
|
|
@@ -146,7 +146,7 @@
|
|
|
146
146
|
],
|
|
147
147
|
"summary": "Availability",
|
|
148
148
|
"operationId": "KeyAvailability",
|
|
149
|
-
"description": "Returns public information on an API Key: whether it can be used right now (`available`), the search contexts the key is licensed for (`contexts`) and the context that best matches the caller's IP address (`context`).\n\nThe endpoint accepts API Keys (beginning `ak_`) and sub-licensed keys (beginning `sl_`), and needs no
|
|
149
|
+
"description": "Returns public information on an API Key: whether it can be used right now (`available`), the search contexts the key is licensed for (`contexts`) and the context that best matches the caller's IP address (`context`).\n\nThe endpoint accepts API Keys (beginning `ak_`) and sub-licensed keys (beginning `sl_`), and needs no Management Key.\n\nA key that exists but cannot be used, because it has no lookups left or has breached a limit, returns `200` with `\"available\": false`. An unknown or malformed key returns an error.\n\nSupply a valid Management Key and the endpoint returns the key's private details instead, as `GET /keys/{key}/details` does. A Management Key that does not own the key is rejected.\n",
|
|
150
150
|
"parameters": [
|
|
151
151
|
{
|
|
152
152
|
"$ref": "#/components/parameters/ApiKeyPathParam"
|
|
@@ -226,6 +226,11 @@
|
|
|
226
226
|
"summary": "Details",
|
|
227
227
|
"operationId": "KeyDetails",
|
|
228
228
|
"description": "Returns private data on a key: remaining lookups, licensed datasets, usage limits, notification settings and the search contexts the key can serve.",
|
|
229
|
+
"security": [
|
|
230
|
+
{
|
|
231
|
+
"ManagementKey": []
|
|
232
|
+
}
|
|
233
|
+
],
|
|
229
234
|
"parameters": [
|
|
230
235
|
{
|
|
231
236
|
"$ref": "#/components/parameters/ApiKeyPathParam"
|
|
@@ -307,6 +312,11 @@
|
|
|
307
312
|
"summary": "Update Details",
|
|
308
313
|
"description": "Updates a key's settings and returns its private details. Only the fields you send change. A key on an unlimited plan ignores changes to `datasets`, `daily_limit` and `monthly_limit`.",
|
|
309
314
|
"operationId": "UpdateKeyDetails",
|
|
315
|
+
"security": [
|
|
316
|
+
{
|
|
317
|
+
"ManagementKey": []
|
|
318
|
+
}
|
|
319
|
+
],
|
|
310
320
|
"parameters": [
|
|
311
321
|
{
|
|
312
322
|
"$ref": "#/components/parameters/ApiKeyPathParam"
|
|
@@ -394,6 +404,11 @@
|
|
|
394
404
|
"summary": "Usage Stats",
|
|
395
405
|
"operationId": "KeyUsage",
|
|
396
406
|
"description": "Reports the number of lookups a key consumed over a date range, as a total and a daily breakdown.\n\nThe range defaults to the last 21 days. `start` and `end` take UNIX timestamps in milliseconds, and `end` defaults to the current time. The maximum range is 90 days.\n\nQuery at most three tags at once.\n",
|
|
407
|
+
"security": [
|
|
408
|
+
{
|
|
409
|
+
"ManagementKey": []
|
|
410
|
+
}
|
|
411
|
+
],
|
|
397
412
|
"parameters": [
|
|
398
413
|
{
|
|
399
414
|
"$ref": "#/components/parameters/ApiKeyPathParam"
|
|
@@ -477,7 +492,12 @@
|
|
|
477
492
|
],
|
|
478
493
|
"summary": "Logs (CSV)",
|
|
479
494
|
"operationId": "KeyLogs",
|
|
480
|
-
"description": "Returns a CSV of the charged lookups made on a key, one row per request.\n\nRequires the
|
|
495
|
+
"description": "Returns a CSV of the charged lookups made on a key, one row per request.\n\nRequires the account Management Key. The maximum interval is 90 days. Without a start or end date the interval is the last 21 days.\n\nThe response is `text/csv` and downloads as an attachment. A non-200 response reverts to JSON, with the error code and message in the body.\n\n## CSV format\n\nThe CSV has no header row. Columns, in order:\n\n1. Timestamp (ISO 8601)\n2. IP address the request was received from\n3. Search term\n4. URL the request originated from\n5. Lookup type\n6. Tags\n7. Lookups consumed\n8. Licensee name (sublicensing keys only)\n9. Source IP address\n\nThe source IP column carries the address forwarded in the `AZ-Source-IP` header. We record it only for keys with IP address forwarding enabled, and only when the header holds a valid IP address. It is empty otherwise.\n\n## Data redaction\n\nWe redact personally identifiable data (PII) in your usage log weekly, covering the IP, source IP, search term and URL columns.\n\nThe default retention is 28 days. Change the period from your dashboard. Set it to `0` days to stop collecting PII altogether.\n",
|
|
496
|
+
"security": [
|
|
497
|
+
{
|
|
498
|
+
"ManagementKey": []
|
|
499
|
+
}
|
|
500
|
+
],
|
|
481
501
|
"parameters": [
|
|
482
502
|
{
|
|
483
503
|
"$ref": "#/components/parameters/ApiKeyPathParam"
|
|
@@ -559,8 +579,13 @@
|
|
|
559
579
|
"Address Search"
|
|
560
580
|
],
|
|
561
581
|
"summary": "Verify Address",
|
|
562
|
-
"description": "Verifies an address against the USPS Coding Accuracy Support System (CASS) and returns it standardized and corrected.\n\nSubmit the whole address in `query`, or the first address line in `query` with either `zip_code`, or `city` and `state`. A freeform `query` is parsed into those components before the search runs.\n\nA match returns the standardized address lines, city, state and ZIP+4, scored by `fit` and `confidence`. It also carries the CASS record behind the match: delivery point, DPV flags, carrier route, eLOT, county, congressional district, RDI, time zone and coordinates. No match returns `200` with a `count` of `0`, a `null` `match` and empty address fields.\n\nOnly a match draws on your balance. A key without address verification enabled returns `401`. A verification still running after 9.5 seconds aborts with `429`.\n",
|
|
582
|
+
"description": "Verifies an address against the USPS Coding Accuracy Support System (CASS) and returns it standardized and corrected.\n\nSubmit the whole address in `query`, or the first address line in `query` with either `zip_code`, or `city` and `state`. A freeform `query` is parsed into those components before the search runs.\n\nA match returns the standardized address lines, city, state and ZIP+4, scored by `fit` and `confidence`. It also carries the CASS record behind the match: delivery point, DPV flags, carrier route, eLOT, county, congressional district, RDI, time zone and coordinates. No match returns `200` with a `count` of `0`, a `null` `match` and empty address fields.\n\nOnly a match draws on your balance. A key without address verification enabled returns `401`. A verification still running after 9.5 seconds aborts with `429`.\n\n## Countries\n\nVerify defaults to the United States, where it is CASS certified. Pass `context` with an ISO 3166-1 alpha-3 country code to verify an address elsewhere, e.g. `context=GBR` or `context=FRA`. The address datasets your key is licensed for decide which countries it can verify.\n\nOutside the United States there is no CASS record to return, so `match` carries the standardized address from that country's dataset instead. The top-level fields (`address_line_one`, `city`, `state`, `zip_code`, `country_iso_2`) are populated for every country, along with `confidence` and `fit`.\n",
|
|
563
583
|
"operationId": "AddressVerify",
|
|
584
|
+
"security": [
|
|
585
|
+
{
|
|
586
|
+
"ApiKey": []
|
|
587
|
+
}
|
|
588
|
+
],
|
|
564
589
|
"parameters": [
|
|
565
590
|
{
|
|
566
591
|
"$ref": "#/components/parameters/ApiKeyParam"
|
|
@@ -672,6 +697,11 @@
|
|
|
672
697
|
"summary": "Find Address",
|
|
673
698
|
"description": "Returns address suggestions for a partial address, ranked by relevance. Use it to autofill an address form as the user types.\n\nA suggestion is a display label and an `id`, not a full address. Retrieve the address with a second request to `/autocomplete/addresses/{id}/usa`. That second request is the one which decrements your lookup balance.\n\nAutocomplete is not a free standalone resource. We rate limit, then suspend, keys that autocomplete without resolving suggestions.\n\nOur address autocomplete JavaScript libraries add this to a form without calling the API directly.\n\n## Coverage\n\nEach search runs in one country, selected with `context`. A missing or unrecognized `context` falls back to your account default. Results come from the datasets enabled on your key: USPS Zip+4 for the US and its territories, and the country datasets you license elsewhere. Where a key has more than one dataset for a country, `dataset` narrows the search.\n\n## Filters\n\nFilters restrict results, e.g. `state_code=NY` searches New York only. A filter which matches no address returns an empty set. An unrecognized filter name is ignored. Neither affects your lookup balance.\n\nFilters combine with `AND` logic, so `state_code=CA&city=San Francisco` requires both. A comma-separated value combines terms for one filter, e.g. `postal_code_3=11225,11226,11238` accepts any of the three ZIP codes. Unless a parameter states otherwise, every filter takes multiple terms. The maximum is 10 filter terms.\n\n## Address bias\n\nBias terms carry the `bias_` prefix and promote addresses rather than restricting the set, so unmatched addresses still appear, lower down. For example, `bias_state_code=NY,NJ` favors addresses in New York and New Jersey, `bias_lonlat` favors addresses near a point. Invalid bias terms have no effect. Multiple bias terms are allowed unless stated otherwise, with a combined maximum of 5.\n\n## Suggestion format\n\nThe suggestion string is subject to change. Present it to the user as it arrives rather than parsing it.\n\n## Rate limiting and cost\n\nThe default rate limit is 3,000 requests per 5 minutes, counted per API key and IP address. The `X-RateLimit-Limit`, `X-RateLimit-Remaining` and `X-RateLimit-Reset` headers report the current window.\n\nAutocomplete requests do not draw on your balance. Resolving a suggestion to a full address does.\n",
|
|
674
699
|
"operationId": "FindAddress",
|
|
700
|
+
"security": [
|
|
701
|
+
{
|
|
702
|
+
"ApiKey": []
|
|
703
|
+
}
|
|
704
|
+
],
|
|
675
705
|
"parameters": [
|
|
676
706
|
{
|
|
677
707
|
"$ref": "#/components/parameters/ApiKeyParam"
|
|
@@ -899,6 +929,11 @@
|
|
|
899
929
|
"summary": "Retrieve Address",
|
|
900
930
|
"operationId": "RetrieveAddress",
|
|
901
931
|
"description": "Returns the full address for an autocomplete suggestion id.\n\nThis is the charged step of address autocomplete. A successful retrieval decrements your lookup balance. An id which resolves to no address returns `404`.\n\nEvery address comes back in one US-shaped format, whatever country or dataset it came from: up to two address lines and US field names such as `zip_code`, `state` and `city`.\n",
|
|
932
|
+
"security": [
|
|
933
|
+
{
|
|
934
|
+
"ApiKey": []
|
|
935
|
+
}
|
|
936
|
+
],
|
|
902
937
|
"parameters": [
|
|
903
938
|
{
|
|
904
939
|
"name": "address",
|
|
@@ -962,32 +997,32 @@
|
|
|
962
997
|
{
|
|
963
998
|
"lang": "http",
|
|
964
999
|
"label": "URL",
|
|
965
|
-
"source": "https://api.addresszen.com/v1/autocomplete/addresses/
|
|
1000
|
+
"source": "https://api.addresszen.com/v1/autocomplete/addresses/usps_V118834572|310||3191/usa?api_key=ak_test\n"
|
|
966
1001
|
},
|
|
967
1002
|
{
|
|
968
1003
|
"lang": "cURL",
|
|
969
1004
|
"label": "curl",
|
|
970
|
-
"source": "curl -G 'https://api.addresszen.com/v1/autocomplete/addresses/
|
|
1005
|
+
"source": "curl -G 'https://api.addresszen.com/v1/autocomplete/addresses/usps_V118834572|310||3191/usa' \\\n -d 'api_key=ak_test'\n"
|
|
971
1006
|
},
|
|
972
1007
|
{
|
|
973
1008
|
"lang": "JavaScript",
|
|
974
1009
|
"label": "JavaScript",
|
|
975
|
-
"source": "const response = await fetch(\n 'https://api.addresszen.com/v1/autocomplete/addresses/
|
|
1010
|
+
"source": "const response = await fetch(\n 'https://api.addresszen.com/v1/autocomplete/addresses/usps_V118834572%7C310%7C%7C3191/usa?' +\n new URLSearchParams({\n api_key: 'ak_test',\n })\n);\n\nconst { result } = await response.json();\n"
|
|
976
1011
|
},
|
|
977
1012
|
{
|
|
978
1013
|
"lang": "Python",
|
|
979
1014
|
"label": "Python",
|
|
980
|
-
"source": "import requests\n\nresponse = requests.get(\n \"https://api.addresszen.com/v1/autocomplete/addresses/
|
|
1015
|
+
"source": "import requests\n\nresponse = requests.get(\n \"https://api.addresszen.com/v1/autocomplete/addresses/usps_V118834572%7C310%7C%7C3191/usa\",\n params={\n \"api_key\": \"ak_test\",\n },\n)\nresult = response.json()[\"result\"]\n"
|
|
981
1016
|
},
|
|
982
1017
|
{
|
|
983
1018
|
"lang": "Ruby",
|
|
984
1019
|
"label": "Ruby",
|
|
985
|
-
"source": "require \"net/http\"\nrequire \"json\"\n\nuri = URI(\"https://api.addresszen.com/v1/autocomplete/addresses/
|
|
1020
|
+
"source": "require \"net/http\"\nrequire \"json\"\n\nuri = URI(\"https://api.addresszen.com/v1/autocomplete/addresses/usps_V118834572%7C310%7C%7C3191/usa\")\nuri.query = URI.encode_www_form(api_key: \"ak_test\")\nresult = JSON.parse(Net::HTTP.get(uri))[\"result\"]\n"
|
|
986
1021
|
},
|
|
987
1022
|
{
|
|
988
1023
|
"lang": "PHP",
|
|
989
1024
|
"label": "PHP",
|
|
990
|
-
"source": "<?php\n$response = file_get_contents(\n \"https://api.addresszen.com/v1/autocomplete/addresses/
|
|
1025
|
+
"source": "<?php\n$response = file_get_contents(\n \"https://api.addresszen.com/v1/autocomplete/addresses/usps_V118834572%7C310%7C%7C3191/usa?\" .\n http_build_query([\n \"api_key\" => \"ak_test\",\n ])\n);\n$result = json_decode($response, true)[\"result\"];\n"
|
|
991
1026
|
}
|
|
992
1027
|
]
|
|
993
1028
|
}
|
|
@@ -1000,6 +1035,11 @@
|
|
|
1000
1035
|
"summary": "Find Place",
|
|
1001
1036
|
"description": "Returns place suggestions for a query, ranked by relevance. Places cover countries, administrative areas, capitals and other administrative seats.\n\n## Implementing Place Autocomplete\n\nRetrieving a full place takes two requests:\n\n1. Fetch suggestions from `/places`\n2. Fetch the place using the `id` on a suggestion\n\nA query returns at most 10 suggestions. An empty query returns an empty result set. Show users the `descriptive_name`. The API drops suggestions that share one, so each name in a response identifies a single place.\n\n## Rate Limiting and Cost\n\nThe rate limit is 3,000 requests per 5 minutes.\n\n`/places` does not decrement your lookup balance, but resolving a suggestion to a full place does. We rate limit and then suspend integrations that repeatedly call `/places` without resolving.\n",
|
|
1002
1037
|
"operationId": "FindPlace",
|
|
1038
|
+
"security": [
|
|
1039
|
+
{
|
|
1040
|
+
"ApiKey": []
|
|
1041
|
+
}
|
|
1042
|
+
],
|
|
1003
1043
|
"parameters": [
|
|
1004
1044
|
{
|
|
1005
1045
|
"$ref": "#/components/parameters/ApiKeyParam"
|
|
@@ -1145,6 +1185,11 @@
|
|
|
1145
1185
|
"summary": "Resolve Place",
|
|
1146
1186
|
"operationId": "ResolvePlace",
|
|
1147
1187
|
"description": "Returns the full place for a place ID taken from a `/places` suggestion.\n\nOn top of the fields carried by the suggestion, the response adds coordinates, language and the underlying dataset record.\n\nEach request decrements your lookup balance. An unknown ID returns `404`.\n",
|
|
1188
|
+
"security": [
|
|
1189
|
+
{
|
|
1190
|
+
"ApiKey": []
|
|
1191
|
+
}
|
|
1192
|
+
],
|
|
1148
1193
|
"parameters": [
|
|
1149
1194
|
{
|
|
1150
1195
|
"name": "place",
|
|
@@ -1394,8 +1439,13 @@
|
|
|
1394
1439
|
"Licensees"
|
|
1395
1440
|
],
|
|
1396
1441
|
"summary": "List",
|
|
1397
|
-
"description": "Returns a key's licensees, oldest first, up to 100 per request. The list omits
|
|
1442
|
+
"description": "Returns a key's licensees, oldest first, up to 100 per request. The list omits canceled licensees. The key must be enabled for sub-licensing.",
|
|
1398
1443
|
"operationId": "ListLicensees",
|
|
1444
|
+
"security": [
|
|
1445
|
+
{
|
|
1446
|
+
"ManagementKey": []
|
|
1447
|
+
}
|
|
1448
|
+
],
|
|
1399
1449
|
"parameters": [
|
|
1400
1450
|
{
|
|
1401
1451
|
"$ref": "#/components/parameters/ApiKeyPathParam"
|
|
@@ -1490,6 +1540,11 @@
|
|
|
1490
1540
|
"summary": "Create",
|
|
1491
1541
|
"description": "Creates a licensee on a key and returns it with its generated `sl_` key. The key must be enabled for sub-licensing.",
|
|
1492
1542
|
"operationId": "CreateLicensee",
|
|
1543
|
+
"security": [
|
|
1544
|
+
{
|
|
1545
|
+
"ManagementKey": []
|
|
1546
|
+
}
|
|
1547
|
+
],
|
|
1493
1548
|
"parameters": [
|
|
1494
1549
|
{
|
|
1495
1550
|
"$ref": "#/components/parameters/ApiKeyPathParam"
|
|
@@ -1534,27 +1589,27 @@
|
|
|
1534
1589
|
{
|
|
1535
1590
|
"lang": "cURL",
|
|
1536
1591
|
"label": "curl",
|
|
1537
|
-
"source": "curl -X POST 'https://api.addresszen.com/v1/keys/ak_test/licensees?user_token=uk_secret' \\\n -H 'Content-Type: application/json' \\\n -d '{\n \"name\": \"Qwerty Widgets Limited\",\n \"address\": \"12 High Street, Manchester\",\n \"postcode\": \"
|
|
1592
|
+
"source": "curl -X POST 'https://api.addresszen.com/v1/keys/ak_test/licensees?user_token=uk_secret' \\\n -H 'Content-Type: application/json' \\\n -d '{\n \"name\": \"Qwerty Widgets Limited\",\n \"address\": \"12 High Street, Manchester\",\n \"postcode\": \"BR8 7RE\",\n \"whitelist\": [],\n \"daily\": {\n \"limit\": 10000\n }\n }'\n"
|
|
1538
1593
|
},
|
|
1539
1594
|
{
|
|
1540
1595
|
"lang": "JavaScript",
|
|
1541
1596
|
"label": "JavaScript",
|
|
1542
|
-
"source": "const response = await fetch('https://api.addresszen.com/v1/keys/ak_test/licensees?user_token=uk_secret', {\n method: 'POST',\n headers: { 'Content-Type': 'application/json' },\n body: JSON.stringify({\n name: 'Qwerty Widgets Limited',\n address: '12 High Street, Manchester',\n postcode: '
|
|
1597
|
+
"source": "const response = await fetch('https://api.addresszen.com/v1/keys/ak_test/licensees?user_token=uk_secret', {\n method: 'POST',\n headers: { 'Content-Type': 'application/json' },\n body: JSON.stringify({\n name: 'Qwerty Widgets Limited',\n address: '12 High Street, Manchester',\n postcode: 'BR8 7RE',\n whitelist: [],\n daily: {\n limit: 10000,\n },\n }),\n});\n\nconst { result } = await response.json();\n"
|
|
1543
1598
|
},
|
|
1544
1599
|
{
|
|
1545
1600
|
"lang": "Python",
|
|
1546
1601
|
"label": "Python",
|
|
1547
|
-
"source": "import requests\n\nresponse = requests.post(\n \"https://api.addresszen.com/v1/keys/ak_test/licensees\",\n params={\"user_token\": \"uk_secret\"},\n json={\n \"name\": \"Qwerty Widgets Limited\",\n \"address\": \"12 High Street, Manchester\",\n \"postcode\": \"
|
|
1602
|
+
"source": "import requests\n\nresponse = requests.post(\n \"https://api.addresszen.com/v1/keys/ak_test/licensees\",\n params={\"user_token\": \"uk_secret\"},\n json={\n \"name\": \"Qwerty Widgets Limited\",\n \"address\": \"12 High Street, Manchester\",\n \"postcode\": \"BR8 7RE\",\n \"whitelist\": [],\n \"daily\": {\n \"limit\": 10000,\n },\n },\n)\nresult = response.json()[\"result\"]\n"
|
|
1548
1603
|
},
|
|
1549
1604
|
{
|
|
1550
1605
|
"lang": "Ruby",
|
|
1551
1606
|
"label": "Ruby",
|
|
1552
|
-
"source": "require \"net/http\"\nrequire \"json\"\n\nuri = URI(\"https://api.addresszen.com/v1/keys/ak_test/licensees?user_token=uk_secret\")\nbody = {\n name: \"Qwerty Widgets Limited\",\n address: \"12 High Street, Manchester\",\n postcode: \"
|
|
1607
|
+
"source": "require \"net/http\"\nrequire \"json\"\n\nuri = URI(\"https://api.addresszen.com/v1/keys/ak_test/licensees?user_token=uk_secret\")\nbody = {\n name: \"Qwerty Widgets Limited\",\n address: \"12 High Street, Manchester\",\n postcode: \"BR8 7RE\",\n whitelist: [],\n daily: {\n limit: 10000,\n },\n}\nresponse = Net::HTTP.post(uri, body.to_json, \"Content-Type\" => \"application/json\")\nresult = JSON.parse(response.body)[\"result\"]\n"
|
|
1553
1608
|
},
|
|
1554
1609
|
{
|
|
1555
1610
|
"lang": "PHP",
|
|
1556
1611
|
"label": "PHP",
|
|
1557
|
-
"source": "<?php\n$ch = curl_init(\"https://api.addresszen.com/v1/keys/ak_test/licensees?user_token=uk_secret\");\ncurl_setopt_array($ch, [\n CURLOPT_POST => true,\n CURLOPT_HTTPHEADER => [\"Content-Type: application/json\"],\n CURLOPT_POSTFIELDS => json_encode([\n \"name\" => \"Qwerty Widgets Limited\",\n \"address\" => \"12 High Street, Manchester\",\n \"postcode\" => \"
|
|
1612
|
+
"source": "<?php\n$ch = curl_init(\"https://api.addresszen.com/v1/keys/ak_test/licensees?user_token=uk_secret\");\ncurl_setopt_array($ch, [\n CURLOPT_POST => true,\n CURLOPT_HTTPHEADER => [\"Content-Type: application/json\"],\n CURLOPT_POSTFIELDS => json_encode([\n \"name\" => \"Qwerty Widgets Limited\",\n \"address\" => \"12 High Street, Manchester\",\n \"postcode\" => \"BR8 7RE\",\n \"whitelist\" => [],\n \"daily\" => [\n \"limit\" => 10000,\n ],\n ]),\n CURLOPT_RETURNTRANSFER => true,\n]);\n$result = json_decode(curl_exec($ch), true)[\"result\"];\n"
|
|
1558
1613
|
}
|
|
1559
1614
|
]
|
|
1560
1615
|
}
|
|
@@ -1565,8 +1620,13 @@
|
|
|
1565
1620
|
"Licensees"
|
|
1566
1621
|
],
|
|
1567
1622
|
"summary": "Retrieve",
|
|
1568
|
-
"description": "Returns a licensee by its `sl_` key. A
|
|
1623
|
+
"description": "Returns a licensee by its `sl_` key. A canceled or unknown licensee returns `404`.",
|
|
1569
1624
|
"operationId": "RetrieveLicensee",
|
|
1625
|
+
"security": [
|
|
1626
|
+
{
|
|
1627
|
+
"ManagementKey": []
|
|
1628
|
+
}
|
|
1629
|
+
],
|
|
1570
1630
|
"parameters": [
|
|
1571
1631
|
{
|
|
1572
1632
|
"$ref": "#/components/parameters/ApiKeyPathParam"
|
|
@@ -1641,6 +1701,11 @@
|
|
|
1641
1701
|
"summary": "Cancel",
|
|
1642
1702
|
"description": "Cancels a licensee. Its key stops working and it drops out of the licensee list. Contact us to reverse it.",
|
|
1643
1703
|
"operationId": "DeleteLicensee",
|
|
1704
|
+
"security": [
|
|
1705
|
+
{
|
|
1706
|
+
"ManagementKey": []
|
|
1707
|
+
}
|
|
1708
|
+
],
|
|
1644
1709
|
"parameters": [
|
|
1645
1710
|
{
|
|
1646
1711
|
"$ref": "#/components/parameters/ApiKeyPathParam"
|
|
@@ -1737,13 +1802,18 @@
|
|
|
1737
1802
|
}
|
|
1738
1803
|
]
|
|
1739
1804
|
},
|
|
1740
|
-
"
|
|
1805
|
+
"post": {
|
|
1741
1806
|
"tags": [
|
|
1742
1807
|
"Licensees"
|
|
1743
1808
|
],
|
|
1744
1809
|
"summary": "Update",
|
|
1745
1810
|
"description": "Updates a licensee's address, postcode, allowed URLs and daily limit. Returns the updated licensee. The name is fixed at creation.",
|
|
1746
1811
|
"operationId": "UpdateLicensee",
|
|
1812
|
+
"security": [
|
|
1813
|
+
{
|
|
1814
|
+
"ManagementKey": []
|
|
1815
|
+
}
|
|
1816
|
+
],
|
|
1747
1817
|
"parameters": [
|
|
1748
1818
|
{
|
|
1749
1819
|
"$ref": "#/components/parameters/ApiKeyPathParam"
|
|
@@ -1791,27 +1861,27 @@
|
|
|
1791
1861
|
{
|
|
1792
1862
|
"lang": "cURL",
|
|
1793
1863
|
"label": "curl",
|
|
1794
|
-
"source": "curl -X
|
|
1864
|
+
"source": "curl -X POST 'https://api.addresszen.com/v1/keys/ak_test/licensees/sl_ijoiqsxeQgXW2gkiE0X94?user_token=uk_secret' \\\n -H 'Content-Type: application/json' \\\n -d '{\n \"daily\": {\n \"limit\": 20000\n }\n }'\n"
|
|
1795
1865
|
},
|
|
1796
1866
|
{
|
|
1797
1867
|
"lang": "JavaScript",
|
|
1798
1868
|
"label": "JavaScript",
|
|
1799
|
-
"source": "const response = await fetch('https://api.addresszen.com/v1/keys/ak_test/licensees/sl_ijoiqsxeQgXW2gkiE0X94?user_token=uk_secret', {\n method: '
|
|
1869
|
+
"source": "const response = await fetch('https://api.addresszen.com/v1/keys/ak_test/licensees/sl_ijoiqsxeQgXW2gkiE0X94?user_token=uk_secret', {\n method: 'POST',\n headers: { 'Content-Type': 'application/json' },\n body: JSON.stringify({\n daily: {\n limit: 20000,\n },\n }),\n});\n\nconst { result } = await response.json();\n"
|
|
1800
1870
|
},
|
|
1801
1871
|
{
|
|
1802
1872
|
"lang": "Python",
|
|
1803
1873
|
"label": "Python",
|
|
1804
|
-
"source": "import requests\n\nresponse = requests.
|
|
1874
|
+
"source": "import requests\n\nresponse = requests.post(\n \"https://api.addresszen.com/v1/keys/ak_test/licensees/sl_ijoiqsxeQgXW2gkiE0X94\",\n params={\"user_token\": \"uk_secret\"},\n json={\n \"daily\": {\n \"limit\": 20000,\n },\n },\n)\nresult = response.json()[\"result\"]\n"
|
|
1805
1875
|
},
|
|
1806
1876
|
{
|
|
1807
1877
|
"lang": "Ruby",
|
|
1808
1878
|
"label": "Ruby",
|
|
1809
|
-
"source": "require \"net/http\"\nrequire \"json\"\n\nuri = URI(\"https://api.addresszen.com/v1/keys/ak_test/licensees/sl_ijoiqsxeQgXW2gkiE0X94?user_token=uk_secret\")\nbody = {\n daily: {\n limit: 20000,\n },\n}\nresponse = Net::HTTP.
|
|
1879
|
+
"source": "require \"net/http\"\nrequire \"json\"\n\nuri = URI(\"https://api.addresszen.com/v1/keys/ak_test/licensees/sl_ijoiqsxeQgXW2gkiE0X94?user_token=uk_secret\")\nbody = {\n daily: {\n limit: 20000,\n },\n}\nresponse = Net::HTTP.post(uri, body.to_json, \"Content-Type\" => \"application/json\")\nresult = JSON.parse(response.body)[\"result\"]\n"
|
|
1810
1880
|
},
|
|
1811
1881
|
{
|
|
1812
1882
|
"lang": "PHP",
|
|
1813
1883
|
"label": "PHP",
|
|
1814
|
-
"source": "<?php\n$ch = curl_init(\"https://api.addresszen.com/v1/keys/ak_test/licensees/sl_ijoiqsxeQgXW2gkiE0X94?user_token=uk_secret\");\ncurl_setopt_array($ch, [\n CURLOPT_CUSTOMREQUEST => \"
|
|
1884
|
+
"source": "<?php\n$ch = curl_init(\"https://api.addresszen.com/v1/keys/ak_test/licensees/sl_ijoiqsxeQgXW2gkiE0X94?user_token=uk_secret\");\ncurl_setopt_array($ch, [\n CURLOPT_CUSTOMREQUEST => \"POST\",\n CURLOPT_HTTPHEADER => [\"Content-Type: application/json\"],\n CURLOPT_POSTFIELDS => json_encode([\n \"daily\" => [\n \"limit\" => 20000,\n ],\n ]),\n CURLOPT_RETURNTRANSFER => true,\n]);\n$result = json_decode(curl_exec($ch), true)[\"result\"];\n"
|
|
1815
1885
|
}
|
|
1816
1886
|
]
|
|
1817
1887
|
}
|
|
@@ -1824,6 +1894,11 @@
|
|
|
1824
1894
|
"summary": "Regenerate Key",
|
|
1825
1895
|
"description": "Regenerates a licensee's key and returns the licensee with the new key. The previous key stops working immediately, so update any integration that uses it.",
|
|
1826
1896
|
"operationId": "RegenerateLicenseeKey",
|
|
1897
|
+
"security": [
|
|
1898
|
+
{
|
|
1899
|
+
"ManagementKey": []
|
|
1900
|
+
}
|
|
1901
|
+
],
|
|
1827
1902
|
"parameters": [
|
|
1828
1903
|
{
|
|
1829
1904
|
"$ref": "#/components/parameters/ApiKeyPathParam"
|
|
@@ -1867,6 +1942,11 @@
|
|
|
1867
1942
|
"summary": "List",
|
|
1868
1943
|
"description": "Returns every configuration stored against a key, oldest first.",
|
|
1869
1944
|
"operationId": "ListConfigs",
|
|
1945
|
+
"security": [
|
|
1946
|
+
{
|
|
1947
|
+
"ManagementKey": []
|
|
1948
|
+
}
|
|
1949
|
+
],
|
|
1870
1950
|
"parameters": [
|
|
1871
1951
|
{
|
|
1872
1952
|
"$ref": "#/components/parameters/ApiKeyPathParam"
|
|
@@ -1937,6 +2017,11 @@
|
|
|
1937
2017
|
"summary": "Create",
|
|
1938
2018
|
"description": "Creates a named configuration on a key and returns it.",
|
|
1939
2019
|
"operationId": "CreateConfig",
|
|
2020
|
+
"security": [
|
|
2021
|
+
{
|
|
2022
|
+
"ManagementKey": []
|
|
2023
|
+
}
|
|
2024
|
+
],
|
|
1940
2025
|
"parameters": [
|
|
1941
2026
|
{
|
|
1942
2027
|
"$ref": "#/components/parameters/ApiKeyPathParam"
|
|
@@ -2095,6 +2180,11 @@
|
|
|
2095
2180
|
"summary": "Delete",
|
|
2096
2181
|
"description": "Permanently deletes a configuration object.",
|
|
2097
2182
|
"operationId": "DeleteConfig",
|
|
2183
|
+
"security": [
|
|
2184
|
+
{
|
|
2185
|
+
"ManagementKey": []
|
|
2186
|
+
}
|
|
2187
|
+
],
|
|
2098
2188
|
"parameters": [
|
|
2099
2189
|
{
|
|
2100
2190
|
"$ref": "#/components/parameters/ApiKeyPathParam"
|
|
@@ -2208,6 +2298,11 @@
|
|
|
2208
2298
|
"summary": "Update",
|
|
2209
2299
|
"description": "Replaces a configuration's payload and returns the updated configuration. The name is fixed at creation.",
|
|
2210
2300
|
"operationId": "UpdateConfig",
|
|
2301
|
+
"security": [
|
|
2302
|
+
{
|
|
2303
|
+
"ManagementKey": []
|
|
2304
|
+
}
|
|
2305
|
+
],
|
|
2211
2306
|
"parameters": [
|
|
2212
2307
|
{
|
|
2213
2308
|
"$ref": "#/components/parameters/ApiKeyPathParam"
|
|
@@ -2298,6 +2393,11 @@
|
|
|
2298
2393
|
"summary": "Email Validation",
|
|
2299
2394
|
"description": "Validates an email address and reports whether it is deliverable.\n\nRequires an API Key licensed for email validation. A query over 320 characters is rejected.\n\nA validated address decrements your lookup balance. An address the API cannot check returns `unknown` and costs no lookup. An address whose domain does not resolve, or publishes no MX records, returns `not_deliverable` and also costs no lookup. Only those two domain failures populate `suggestions`. Every other response returns an empty list.\n",
|
|
2300
2395
|
"operationId": "EmailValidation",
|
|
2396
|
+
"security": [
|
|
2397
|
+
{
|
|
2398
|
+
"ApiKey": []
|
|
2399
|
+
}
|
|
2400
|
+
],
|
|
2301
2401
|
"parameters": [
|
|
2302
2402
|
{
|
|
2303
2403
|
"$ref": "#/components/parameters/ApiKeyParam"
|
|
@@ -2399,6 +2499,11 @@
|
|
|
2399
2499
|
"summary": "Phone Number Validation",
|
|
2400
2500
|
"description": "Validates a phone number and returns its country, its national and international formats, and the network it was originally assigned to.\n\nRequires an API Key licensed for phone validation.\n\nEvery query decrements your lookup balance, including a number that fails to parse and a number reported as invalid.\n",
|
|
2401
2501
|
"operationId": "PhoneNumberValidation",
|
|
2502
|
+
"security": [
|
|
2503
|
+
{
|
|
2504
|
+
"ApiKey": []
|
|
2505
|
+
}
|
|
2506
|
+
],
|
|
2402
2507
|
"parameters": [
|
|
2403
2508
|
{
|
|
2404
2509
|
"$ref": "#/components/parameters/ApiKeyParam"
|
|
@@ -2846,6 +2951,18 @@
|
|
|
2846
2951
|
}
|
|
2847
2952
|
},
|
|
2848
2953
|
"components": {
|
|
2954
|
+
"securitySchemes": {
|
|
2955
|
+
"ApiKey": {
|
|
2956
|
+
"type": "http",
|
|
2957
|
+
"scheme": "bearer",
|
|
2958
|
+
"description": "**API Key**\n\nSend your API key as a Bearer token: `Authorization: Bearer ak_test`. A licensee key (`sl_...`) works in its place and bills that licensee.\n\nBrowser integrations that cannot set headers can pass `api_key` in the query string instead.\n"
|
|
2959
|
+
},
|
|
2960
|
+
"ManagementKey": {
|
|
2961
|
+
"type": "http",
|
|
2962
|
+
"scheme": "bearer",
|
|
2963
|
+
"description": "**Management Key**\n\nSend your management key as a Bearer token: `Authorization: Bearer uk_...`. Required to manage an API key, for example `GET /keys/{key}/details`.\n\nIt can also be passed as `user_token` in the query string. Keep it secret: it grants control over your account and keys. It was previously called the user token.\n"
|
|
2964
|
+
}
|
|
2965
|
+
},
|
|
2849
2966
|
"parameters": {
|
|
2850
2967
|
"ApiKeyPathParam": {
|
|
2851
2968
|
"name": "key",
|
|
@@ -2867,7 +2984,7 @@
|
|
|
2867
2984
|
"type": "string"
|
|
2868
2985
|
},
|
|
2869
2986
|
"name": "user_token",
|
|
2870
|
-
"description": "**
|
|
2987
|
+
"description": "**Management Key**\n\nA secret key used to manage your account and API Keys. It was previously called the user token.\n\nYour management key can be retrieved and managed from your [accounts page](https://addresszen.com/account).\n\nTypically begins `uk_...`. Prefer the `Authorization: Bearer uk_...` header.\n",
|
|
2871
2988
|
"example": "uk_B59ScW1p1HHouf1VqclEPZUx"
|
|
2872
2989
|
},
|
|
2873
2990
|
"StartParam": {
|
|
@@ -2976,7 +3093,7 @@
|
|
|
2976
3093
|
"schema": {
|
|
2977
3094
|
"type": "string"
|
|
2978
3095
|
},
|
|
2979
|
-
"description": "**Bias by Geolocation**\n\nBias search to a geospatial circle determined by an origin and radius in
|
|
3096
|
+
"description": "**Bias by Geolocation**\n\nBias search to a geospatial circle determined by an origin and radius in meters. Max radius is `50000`. \nUses the format bias_lonlat=[longitude],[latitude],[radius in meters].\nOnly one geospatial bias may be provided.\n",
|
|
2980
3097
|
"example": "-2.095,57.15,100"
|
|
2981
3098
|
},
|
|
2982
3099
|
"BiasIpParam": {
|
|
@@ -3323,7 +3440,7 @@
|
|
|
3323
3440
|
]
|
|
3324
3441
|
},
|
|
3325
3442
|
"available": {
|
|
3326
|
-
"description": "Determines whether the key can be used by the requesting agent. \n\nReturns false if one of the following conditions
|
|
3443
|
+
"description": "Determines whether the key can be used by the requesting agent. \n\nReturns false if one of the following conditions is met:\n - Key has no lookups remaining\n - Daily limit has been reached on the key\n - Daily individual limit has been reached\n - Key is not being used via an authorised URL\n - (Sublicensed key only) Key has a valid licensee attached\n - (Sublicensed key only) Key is not being used via an authorised URL specified by licensee\n",
|
|
3327
3444
|
"type": "boolean",
|
|
3328
3445
|
"example": true
|
|
3329
3446
|
}
|
|
@@ -3798,7 +3915,7 @@
|
|
|
3798
3915
|
"items": {
|
|
3799
3916
|
"type": "string"
|
|
3800
3917
|
},
|
|
3801
|
-
"description": "A list of allowed URLs. An empty list
|
|
3918
|
+
"description": "A list of allowed URLs. An empty list disables the check.\n\nA request is allowed when its `Origin` or `Referer` header matches an entry. Use one of these formats:\n\n- `https://www.example.com` allows one site. Scheme and host must match\n- `*.example.com` allows the domain and all its subdomains\n\nSee [Allowed URLs](https://docs.addresszen.com/docs/guides/allowed-urls)."
|
|
3802
3919
|
},
|
|
3803
3920
|
"redact_days": {
|
|
3804
3921
|
"type": "integer",
|
|
@@ -3829,7 +3946,7 @@
|
|
|
3829
3946
|
"premier_support": {
|
|
3830
3947
|
"type": "boolean",
|
|
3831
3948
|
"default": false,
|
|
3832
|
-
"description": "Whether the key is enrolled in the premier support
|
|
3949
|
+
"description": "Whether the key is enrolled in the premier support program and monitored closely by our devops team. Read-only; managed by our team."
|
|
3833
3950
|
}
|
|
3834
3951
|
}
|
|
3835
3952
|
},
|
|
@@ -3923,7 +4040,7 @@
|
|
|
3923
4040
|
"maxLength": 256,
|
|
3924
4041
|
"pattern": "^[^\\s]+$"
|
|
3925
4042
|
},
|
|
3926
|
-
"description": "A list of allowed URLs. An empty list
|
|
4043
|
+
"description": "A list of allowed URLs. An empty list disables the check. Up to 10 allowed.\n\nA request is allowed when its `Origin` or `Referer` header matches an entry. Use one of these formats:\n\n- `https://www.example.com` allows one site. Scheme and host must match\n- `*.example.com` allows the domain and all its subdomains\n\nSee [Allowed URLs](https://docs.addresszen.com/docs/guides/allowed-urls)."
|
|
3927
4044
|
},
|
|
3928
4045
|
"redact_days": {
|
|
3929
4046
|
"type": "integer",
|
|
@@ -4615,7 +4732,7 @@
|
|
|
4615
4732
|
},
|
|
4616
4733
|
"fit": {
|
|
4617
4734
|
"type": "number",
|
|
4618
|
-
"description": "A score represented as number between 1 and 0. Fit compares the address elements present in your query against the matching address elements. It does not incorporate elements you have not presented in the score. A partial address (e.g.
|
|
4735
|
+
"description": "A score represented as number between 1 and 0. Fit compares the address elements present in your query against the matching address elements. It does not incorporate elements you have not presented in the score. A partial address (e.g. 123 Main St) will have a fit of 1 even though it is missing city and zip code. Its confidence score will be less than 1 however because it is missing some crucial elements.\n",
|
|
4619
4736
|
"maximum": 1,
|
|
4620
4737
|
"minimum": 0
|
|
4621
4738
|
},
|
|
@@ -7992,7 +8109,7 @@
|
|
|
7992
8109
|
"type": "string",
|
|
7993
8110
|
"maxLength": 40,
|
|
7994
8111
|
"minLength": 0,
|
|
7995
|
-
"description": "A number associated with the whole building. The building number may have a numeric and an alphanumeric component, which are concatenated e.g. 2A, or alternatively will have a simple building number or a complex building number. The building number always relates to the whole building and not a sub-unit within it.\nA complex building number may be one of the following:\n - Dual. Two
|
|
8112
|
+
"description": "A number associated with the whole building. The building number may have a numeric and an alphanumeric component, which are concatenated e.g. 2A, or alternatively will have a simple building number or a complex building number. The building number always relates to the whole building and not a sub-unit within it.\nA complex building number may be one of the following:\n - Dual. Two numbers separated by '/' e.g. 63/64 = 63, 64\n - Sequence. An odd or even sequence of numbers with lower and upper bound separated by an underscore '_' e.g. `1_5` = 1,3,5 and `2_6` = 2,4,6\n - Range. A range of consecutive numbers with lower and upper bound separated by a dash '-' e.g. `63-66` = 63, 64, 65, 66\nThe building number never appears on a line by itself and can prepend Building Group, Primary Thoroughfare or Primary Locality."
|
|
7996
8113
|
},
|
|
7997
8114
|
"building_group": {
|
|
7998
8115
|
"type": "string",
|
|
@@ -14220,7 +14337,7 @@
|
|
|
14220
14337
|
"building_or_firm_name": {
|
|
14221
14338
|
"title": "Building or Firm Name",
|
|
14222
14339
|
"type": "string",
|
|
14223
|
-
"description": "The name of a company, building, apartment complex, shopping center
|
|
14340
|
+
"description": "The name of a company, building, apartment complex, shopping center or other distinguishing secondary address information."
|
|
14224
14341
|
},
|
|
14225
14342
|
"address_secondary_abbreviation": {
|
|
14226
14343
|
"title": "Address Secondary Abbreviation",
|
|
@@ -14324,7 +14441,7 @@
|
|
|
14324
14441
|
"zip_classification_code": {
|
|
14325
14442
|
"title": "ZIP Classification Code",
|
|
14326
14443
|
"type": "string",
|
|
14327
|
-
"description": "Describes the type of ZIP area a 5-digit ZIP Code serves, e.g. a single educational institution, post office boxes only
|
|
14444
|
+
"description": "Describes the type of ZIP area a 5-digit ZIP Code serves, e.g. a single educational institution, post office boxes only or a single address with unusually high mail volume.\n\n- M = Military ZIP Code\n- P = ZIP Code having only Post Office Boxes\n- U = Unique ZIP Code (ZIP assigned to a single organization)\n- Blank = Standard ZIP with many addresses assigned to it",
|
|
14328
14445
|
"enum": [
|
|
14329
14446
|
"",
|
|
14330
14447
|
"M",
|
|
@@ -14918,7 +15035,7 @@
|
|
|
14918
15035
|
"description": "Licensee's first, second and third line address as well as post town concatenated by commas"
|
|
14919
15036
|
},
|
|
14920
15037
|
"postcode": {
|
|
14921
|
-
"example": "
|
|
15038
|
+
"example": "BR8 7RE",
|
|
14922
15039
|
"type": "string",
|
|
14923
15040
|
"description": "Licensee's postcode"
|
|
14924
15041
|
},
|
|
@@ -14928,7 +15045,7 @@
|
|
|
14928
15045
|
"type": "string",
|
|
14929
15046
|
"example": "https://www.example.com"
|
|
14930
15047
|
},
|
|
14931
|
-
"description": "A list of allowed URLs. An empty list
|
|
15048
|
+
"description": "A list of allowed URLs. An empty list disables the check.\n\nA request is allowed when its `Origin` or `Referer` header matches an entry. Use one of these formats:\n\n- `https://www.example.com` allows one site. Scheme and host must match\n- `*.example.com` allows the domain and all its subdomains"
|
|
14932
15049
|
},
|
|
14933
15050
|
"daily": {
|
|
14934
15051
|
"type": "object",
|
|
@@ -14973,7 +15090,7 @@
|
|
|
14973
15090
|
"key": {
|
|
14974
15091
|
"type": "string",
|
|
14975
15092
|
"example": "sl_ijoiqsxeQgXW2gkiE0X94",
|
|
14976
|
-
"description": "Uniquely identifies a licensee for a key. \n\nRequired to perform paid lookups for a specific licensee. Typically begins `
|
|
15093
|
+
"description": "Uniquely identifies a licensee for a key. \n\nRequired to perform paid lookups for a specific licensee. Typically begins `sl_`.\n"
|
|
14977
15094
|
},
|
|
14978
15095
|
"createdAt": {
|
|
14979
15096
|
"type": "string",
|
|
@@ -14992,7 +15109,7 @@
|
|
|
14992
15109
|
"minimum": 0,
|
|
14993
15110
|
"type": "number",
|
|
14994
15111
|
"format": "int32",
|
|
14995
|
-
"description": "The number lookups performed by the licensee on the day represented
|
|
15112
|
+
"description": "The number of lookups performed by the licensee on the day represented by `licensees.daily.updatedAt`"
|
|
14996
15113
|
},
|
|
14997
15114
|
"updatedAt": {
|
|
14998
15115
|
"type": "string",
|