@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/openapi.yaml CHANGED
@@ -1,6 +1,6 @@
1
1
  openapi: 3.0.3
2
2
  info:
3
- version: 4.0.4
3
+ version: 4.1.1
4
4
  license:
5
5
  name: Copyright (C) IDDQD Limited - All Rights Reserved
6
6
  url: https://terms.addresszen.com
@@ -34,18 +34,36 @@ info:
34
34
 
35
35
  ## Authentication
36
36
 
37
- Most requests require an **API key** for authentication. Authenticate by passing an `api_key` as part of the query string. For example:
37
+ Most requests need an **API key**. Send it as a Bearer token in the `Authorization` header:
38
38
 
39
39
  ```
40
- api.addresszen.com/v1/autocomplete/addresses?api_key=ak_test&q=parkside
40
+ curl 'https://api.addresszen.com/v1/autocomplete/addresses?q=parkside' \
41
+ -H 'Authorization: Bearer ak_test'
41
42
  ```
42
43
 
43
- Alternatively, pass the key in the `Authorization` header:
44
+ A header keeps the key out of URLs and server logs.
45
+
46
+ Two credentials exist, and they do different jobs:
47
+
48
+ | Credential | Looks like | Authenticates | Exposure |
49
+ | --- | --- | --- | --- |
50
+ | API Key | `ak_test` | Address, postcode and place lookups. Every billable request | Usable in a browser. Restrict it with allowed URLs |
51
+ | Management Key | `uk_...` | Managing a key under `/keys/{key}`: usage, licensees, configs | Secret. Server side only |
52
+
53
+ Requests 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.
54
+
55
+ To bill a request to a licensee, send the licensee key as the Bearer token: `Authorization: Bearer sl_...`.
56
+
57
+ If 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`):
44
58
 
45
59
  ```
46
- Authorization: api_key="ak_test" [other_key="foo"]
60
+ api.addresszen.com/v1/autocomplete/addresses?api_key=ak_test&q=parkside
47
61
  ```
48
62
 
63
+ The query string takes precedence when both are present.
64
+
65
+ The older `Authorization: api_key="ak_test"` form still works but is deprecated. Use Bearer in new integrations.
66
+
49
67
  ## Versioning
50
68
 
51
69
  This 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.
@@ -241,11 +259,11 @@ paths:
241
259
  description: |
242
260
  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`).
243
261
 
244
- The endpoint accepts API Keys (beginning `ak_`) and sub-licensed keys (beginning `sl_`), and needs no `user_token`.
262
+ The endpoint accepts API Keys (beginning `ak_`) and sub-licensed keys (beginning `sl_`), and needs no Management Key.
245
263
 
246
264
  A 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.
247
265
 
248
- Supply a valid `user_token` and the endpoint returns the key's private details instead, as `GET /keys/{key}/details` does. A `user_token` that does not own the key is rejected.
266
+ Supply 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.
249
267
  parameters:
250
268
  - $ref: '#/components/parameters/ApiKeyPathParam'
251
269
  responses:
@@ -310,6 +328,8 @@ paths:
310
328
  summary: Details
311
329
  operationId: KeyDetails
312
330
  description: 'Returns private data on a key: remaining lookups, licensed datasets, usage limits, notification settings and the search contexts the key can serve.'
331
+ security:
332
+ - ManagementKey: []
313
333
  parameters:
314
334
  - $ref: '#/components/parameters/ApiKeyPathParam'
315
335
  - $ref: '#/components/parameters/UserTokenParam'
@@ -392,6 +412,8 @@ paths:
392
412
  summary: Update Details
393
413
  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`.
394
414
  operationId: UpdateKeyDetails
415
+ security:
416
+ - ManagementKey: []
395
417
  parameters:
396
418
  - $ref: '#/components/parameters/ApiKeyPathParam'
397
419
  - $ref: '#/components/parameters/UserTokenParam'
@@ -512,6 +534,8 @@ paths:
512
534
  The 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.
513
535
 
514
536
  Query at most three tags at once.
537
+ security:
538
+ - ManagementKey: []
515
539
  parameters:
516
540
  - $ref: '#/components/parameters/ApiKeyPathParam'
517
541
  - $ref: '#/components/parameters/UserTokenParam'
@@ -594,7 +618,7 @@ paths:
594
618
  description: |
595
619
  Returns a CSV of the charged lookups made on a key, one row per request.
596
620
 
597
- Requires the `user_token` for the account. The maximum interval is 90 days. Without a start or end date the interval is the last 21 days.
621
+ Requires the account Management Key. The maximum interval is 90 days. Without a start or end date the interval is the last 21 days.
598
622
 
599
623
  The 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.
600
624
 
@@ -619,6 +643,8 @@ paths:
619
643
  We redact personally identifiable data (PII) in your usage log weekly, covering the IP, source IP, search term and URL columns.
620
644
 
621
645
  The default retention is 28 days. Change the period from your dashboard. Set it to `0` days to stop collecting PII altogether.
646
+ security:
647
+ - ManagementKey: []
622
648
  parameters:
623
649
  - $ref: '#/components/parameters/ApiKeyPathParam'
624
650
  - $ref: '#/components/parameters/UserTokenParam'
@@ -710,7 +736,15 @@ paths:
710
736
  A 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.
711
737
 
712
738
  Only 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`.
739
+
740
+ ## Countries
741
+
742
+ Verify 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.
743
+
744
+ Outside 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`.
713
745
  operationId: AddressVerify
746
+ security:
747
+ - ApiKey: []
714
748
  parameters:
715
749
  - $ref: '#/components/parameters/ApiKeyParam'
716
750
  - $ref: '#/components/parameters/TagsParam'
@@ -873,6 +907,8 @@ paths:
873
907
 
874
908
  Autocomplete requests do not draw on your balance. Resolving a suggestion to a full address does.
875
909
  operationId: FindAddress
910
+ security:
911
+ - ApiKey: []
876
912
  parameters:
877
913
  - $ref: '#/components/parameters/ApiKeyParam'
878
914
  - name: query
@@ -1044,6 +1080,8 @@ paths:
1044
1080
  This is the charged step of address autocomplete. A successful retrieval decrements your lookup balance. An id which resolves to no address returns `404`.
1045
1081
 
1046
1082
  Every 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`.
1083
+ security:
1084
+ - ApiKey: []
1047
1085
  parameters:
1048
1086
  - name: address
1049
1087
  in: path
@@ -1085,17 +1123,17 @@ paths:
1085
1123
  - lang: http
1086
1124
  label: URL
1087
1125
  source: |
1088
- https://api.addresszen.com/v1/autocomplete/addresses/usps_Z222446599|1||1101/usa?api_key=ak_test
1126
+ https://api.addresszen.com/v1/autocomplete/addresses/usps_V118834572|310||3191/usa?api_key=ak_test
1089
1127
  - lang: cURL
1090
1128
  label: curl
1091
1129
  source: |
1092
- curl -G 'https://api.addresszen.com/v1/autocomplete/addresses/usps_Z222446599|1||1101/usa' \
1130
+ curl -G 'https://api.addresszen.com/v1/autocomplete/addresses/usps_V118834572|310||3191/usa' \
1093
1131
  -d 'api_key=ak_test'
1094
1132
  - lang: JavaScript
1095
1133
  label: JavaScript
1096
1134
  source: |
1097
1135
  const response = await fetch(
1098
- 'https://api.addresszen.com/v1/autocomplete/addresses/usps_Z222446599%7C1%7C%7C1101/usa?' +
1136
+ 'https://api.addresszen.com/v1/autocomplete/addresses/usps_V118834572%7C310%7C%7C3191/usa?' +
1099
1137
  new URLSearchParams({
1100
1138
  api_key: 'ak_test',
1101
1139
  })
@@ -1108,7 +1146,7 @@ paths:
1108
1146
  import requests
1109
1147
 
1110
1148
  response = requests.get(
1111
- "https://api.addresszen.com/v1/autocomplete/addresses/usps_Z222446599%7C1%7C%7C1101/usa",
1149
+ "https://api.addresszen.com/v1/autocomplete/addresses/usps_V118834572%7C310%7C%7C3191/usa",
1112
1150
  params={
1113
1151
  "api_key": "ak_test",
1114
1152
  },
@@ -1120,7 +1158,7 @@ paths:
1120
1158
  require "net/http"
1121
1159
  require "json"
1122
1160
 
1123
- uri = URI("https://api.addresszen.com/v1/autocomplete/addresses/usps_Z222446599%7C1%7C%7C1101/usa")
1161
+ uri = URI("https://api.addresszen.com/v1/autocomplete/addresses/usps_V118834572%7C310%7C%7C3191/usa")
1124
1162
  uri.query = URI.encode_www_form(api_key: "ak_test")
1125
1163
  result = JSON.parse(Net::HTTP.get(uri))["result"]
1126
1164
  - lang: PHP
@@ -1128,7 +1166,7 @@ paths:
1128
1166
  source: |
1129
1167
  <?php
1130
1168
  $response = file_get_contents(
1131
- "https://api.addresszen.com/v1/autocomplete/addresses/usps_Z222446599%7C1%7C%7C1101/usa?" .
1169
+ "https://api.addresszen.com/v1/autocomplete/addresses/usps_V118834572%7C310%7C%7C3191/usa?" .
1132
1170
  http_build_query([
1133
1171
  "api_key" => "ak_test",
1134
1172
  ])
@@ -1157,6 +1195,8 @@ paths:
1157
1195
 
1158
1196
  `/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.
1159
1197
  operationId: FindPlace
1198
+ security:
1199
+ - ApiKey: []
1160
1200
  parameters:
1161
1201
  - $ref: '#/components/parameters/ApiKeyParam'
1162
1202
  - name: query
@@ -1289,6 +1329,8 @@ paths:
1289
1329
  On top of the fields carried by the suggestion, the response adds coordinates, language and the underlying dataset record.
1290
1330
 
1291
1331
  Each request decrements your lookup balance. An unknown ID returns `404`.
1332
+ security:
1333
+ - ApiKey: []
1292
1334
  parameters:
1293
1335
  - name: place
1294
1336
  in: path
@@ -1529,8 +1571,10 @@ paths:
1529
1571
  tags:
1530
1572
  - Licensees
1531
1573
  summary: List
1532
- description: Returns a key's licensees, oldest first, up to 100 per request. The list omits cancelled licensees. The key must be enabled for sub-licensing.
1574
+ 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.
1533
1575
  operationId: ListLicensees
1576
+ security:
1577
+ - ManagementKey: []
1534
1578
  parameters:
1535
1579
  - $ref: '#/components/parameters/ApiKeyPathParam'
1536
1580
  - name: starting_after
@@ -1622,6 +1666,8 @@ paths:
1622
1666
  summary: Create
1623
1667
  description: Creates a licensee on a key and returns it with its generated `sl_` key. The key must be enabled for sub-licensing.
1624
1668
  operationId: CreateLicensee
1669
+ security:
1670
+ - ManagementKey: []
1625
1671
  parameters:
1626
1672
  - $ref: '#/components/parameters/ApiKeyPathParam'
1627
1673
  - $ref: '#/components/parameters/UserTokenParam'
@@ -1653,7 +1699,7 @@ paths:
1653
1699
  -d '{
1654
1700
  "name": "Qwerty Widgets Limited",
1655
1701
  "address": "12 High Street, Manchester",
1656
- "postcode": "ID1 1QD",
1702
+ "postcode": "BR8 7RE",
1657
1703
  "whitelist": [],
1658
1704
  "daily": {
1659
1705
  "limit": 10000
@@ -1668,7 +1714,7 @@ paths:
1668
1714
  body: JSON.stringify({
1669
1715
  name: 'Qwerty Widgets Limited',
1670
1716
  address: '12 High Street, Manchester',
1671
- postcode: 'ID1 1QD',
1717
+ postcode: 'BR8 7RE',
1672
1718
  whitelist: [],
1673
1719
  daily: {
1674
1720
  limit: 10000,
@@ -1688,7 +1734,7 @@ paths:
1688
1734
  json={
1689
1735
  "name": "Qwerty Widgets Limited",
1690
1736
  "address": "12 High Street, Manchester",
1691
- "postcode": "ID1 1QD",
1737
+ "postcode": "BR8 7RE",
1692
1738
  "whitelist": [],
1693
1739
  "daily": {
1694
1740
  "limit": 10000,
@@ -1706,7 +1752,7 @@ paths:
1706
1752
  body = {
1707
1753
  name: "Qwerty Widgets Limited",
1708
1754
  address: "12 High Street, Manchester",
1709
- postcode: "ID1 1QD",
1755
+ postcode: "BR8 7RE",
1710
1756
  whitelist: [],
1711
1757
  daily: {
1712
1758
  limit: 10000,
@@ -1725,7 +1771,7 @@ paths:
1725
1771
  CURLOPT_POSTFIELDS => json_encode([
1726
1772
  "name" => "Qwerty Widgets Limited",
1727
1773
  "address" => "12 High Street, Manchester",
1728
- "postcode" => "ID1 1QD",
1774
+ "postcode" => "BR8 7RE",
1729
1775
  "whitelist" => [],
1730
1776
  "daily" => [
1731
1777
  "limit" => 10000,
@@ -1739,8 +1785,10 @@ paths:
1739
1785
  tags:
1740
1786
  - Licensees
1741
1787
  summary: Retrieve
1742
- description: Returns a licensee by its `sl_` key. A cancelled or unknown licensee returns `404`.
1788
+ description: Returns a licensee by its `sl_` key. A canceled or unknown licensee returns `404`.
1743
1789
  operationId: RetrieveLicensee
1790
+ security:
1791
+ - ManagementKey: []
1744
1792
  parameters:
1745
1793
  - $ref: '#/components/parameters/ApiKeyPathParam'
1746
1794
  - $ref: '#/components/parameters/LicenseePathParam'
@@ -1818,6 +1866,8 @@ paths:
1818
1866
  summary: Cancel
1819
1867
  description: Cancels a licensee. Its key stops working and it drops out of the licensee list. Contact us to reverse it.
1820
1868
  operationId: DeleteLicensee
1869
+ security:
1870
+ - ManagementKey: []
1821
1871
  parameters:
1822
1872
  - $ref: '#/components/parameters/ApiKeyPathParam'
1823
1873
  - $ref: '#/components/parameters/LicenseePathParam'
@@ -1900,12 +1950,14 @@ paths:
1900
1950
  CURLOPT_RETURNTRANSFER => true,
1901
1951
  ]);
1902
1952
  curl_exec($ch);
1903
- put:
1953
+ post:
1904
1954
  tags:
1905
1955
  - Licensees
1906
1956
  summary: Update
1907
1957
  description: Updates a licensee's address, postcode, allowed URLs and daily limit. Returns the updated licensee. The name is fixed at creation.
1908
1958
  operationId: UpdateLicensee
1959
+ security:
1960
+ - ManagementKey: []
1909
1961
  parameters:
1910
1962
  - $ref: '#/components/parameters/ApiKeyPathParam'
1911
1963
  - $ref: '#/components/parameters/LicenseePathParam'
@@ -1933,7 +1985,7 @@ paths:
1933
1985
  - lang: cURL
1934
1986
  label: curl
1935
1987
  source: |
1936
- curl -X PUT 'https://api.addresszen.com/v1/keys/ak_test/licensees/sl_ijoiqsxeQgXW2gkiE0X94?user_token=uk_secret' \
1988
+ curl -X POST 'https://api.addresszen.com/v1/keys/ak_test/licensees/sl_ijoiqsxeQgXW2gkiE0X94?user_token=uk_secret' \
1937
1989
  -H 'Content-Type: application/json' \
1938
1990
  -d '{
1939
1991
  "daily": {
@@ -1944,7 +1996,7 @@ paths:
1944
1996
  label: JavaScript
1945
1997
  source: |
1946
1998
  const response = await fetch('https://api.addresszen.com/v1/keys/ak_test/licensees/sl_ijoiqsxeQgXW2gkiE0X94?user_token=uk_secret', {
1947
- method: 'PUT',
1999
+ method: 'POST',
1948
2000
  headers: { 'Content-Type': 'application/json' },
1949
2001
  body: JSON.stringify({
1950
2002
  daily: {
@@ -1959,7 +2011,7 @@ paths:
1959
2011
  source: |
1960
2012
  import requests
1961
2013
 
1962
- response = requests.put(
2014
+ response = requests.post(
1963
2015
  "https://api.addresszen.com/v1/keys/ak_test/licensees/sl_ijoiqsxeQgXW2gkiE0X94",
1964
2016
  params={"user_token": "uk_secret"},
1965
2017
  json={
@@ -1981,7 +2033,7 @@ paths:
1981
2033
  limit: 20000,
1982
2034
  },
1983
2035
  }
1984
- response = Net::HTTP.put(uri, body.to_json, "Content-Type" => "application/json")
2036
+ response = Net::HTTP.post(uri, body.to_json, "Content-Type" => "application/json")
1985
2037
  result = JSON.parse(response.body)["result"]
1986
2038
  - lang: PHP
1987
2039
  label: PHP
@@ -1989,7 +2041,7 @@ paths:
1989
2041
  <?php
1990
2042
  $ch = curl_init("https://api.addresszen.com/v1/keys/ak_test/licensees/sl_ijoiqsxeQgXW2gkiE0X94?user_token=uk_secret");
1991
2043
  curl_setopt_array($ch, [
1992
- CURLOPT_CUSTOMREQUEST => "PUT",
2044
+ CURLOPT_CUSTOMREQUEST => "POST",
1993
2045
  CURLOPT_HTTPHEADER => ["Content-Type: application/json"],
1994
2046
  CURLOPT_POSTFIELDS => json_encode([
1995
2047
  "daily" => [
@@ -2006,6 +2058,8 @@ paths:
2006
2058
  summary: Regenerate Key
2007
2059
  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.
2008
2060
  operationId: RegenerateLicenseeKey
2061
+ security:
2062
+ - ManagementKey: []
2009
2063
  parameters:
2010
2064
  - $ref: '#/components/parameters/ApiKeyPathParam'
2011
2065
  - $ref: '#/components/parameters/LicenseePathParam'
@@ -2030,6 +2084,8 @@ paths:
2030
2084
  summary: List
2031
2085
  description: Returns every configuration stored against a key, oldest first.
2032
2086
  operationId: ListConfigs
2087
+ security:
2088
+ - ManagementKey: []
2033
2089
  parameters:
2034
2090
  - $ref: '#/components/parameters/ApiKeyPathParam'
2035
2091
  - $ref: '#/components/parameters/UserTokenParam'
@@ -2105,6 +2161,8 @@ paths:
2105
2161
  summary: Create
2106
2162
  description: Creates a named configuration on a key and returns it.
2107
2163
  operationId: CreateConfig
2164
+ security:
2165
+ - ManagementKey: []
2108
2166
  parameters:
2109
2167
  - $ref: '#/components/parameters/ApiKeyPathParam'
2110
2168
  - $ref: '#/components/parameters/UserTokenParam'
@@ -2281,6 +2339,8 @@ paths:
2281
2339
  summary: Delete
2282
2340
  description: Permanently deletes a configuration object.
2283
2341
  operationId: DeleteConfig
2342
+ security:
2343
+ - ManagementKey: []
2284
2344
  parameters:
2285
2345
  - $ref: '#/components/parameters/ApiKeyPathParam'
2286
2346
  - $ref: '#/components/parameters/ConfigParam'
@@ -2375,6 +2435,8 @@ paths:
2375
2435
  summary: Update
2376
2436
  description: Replaces a configuration's payload and returns the updated configuration. The name is fixed at creation.
2377
2437
  operationId: UpdateConfig
2438
+ security:
2439
+ - ManagementKey: []
2378
2440
  parameters:
2379
2441
  - $ref: '#/components/parameters/ApiKeyPathParam'
2380
2442
  - $ref: '#/components/parameters/ConfigParam'
@@ -2476,6 +2538,8 @@ paths:
2476
2538
 
2477
2539
  A 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.
2478
2540
  operationId: EmailValidation
2541
+ security:
2542
+ - ApiKey: []
2479
2543
  parameters:
2480
2544
  - $ref: '#/components/parameters/ApiKeyParam'
2481
2545
  - name: query
@@ -2583,6 +2647,8 @@ paths:
2583
2647
 
2584
2648
  Every query decrements your lookup balance, including a number that fails to parse and a number reported as invalid.
2585
2649
  operationId: PhoneNumberValidation
2650
+ security:
2651
+ - ApiKey: []
2586
2652
  parameters:
2587
2653
  - $ref: '#/components/parameters/ApiKeyParam'
2588
2654
  - name: query
@@ -3019,6 +3085,25 @@ paths:
3019
3085
  $response = file_get_contents("https://api.addresszen.com/v1/sign_up/eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...");
3020
3086
  $result = json_decode($response, true)["result"];
3021
3087
  components:
3088
+ securitySchemes:
3089
+ ApiKey:
3090
+ type: http
3091
+ scheme: bearer
3092
+ description: |
3093
+ **API Key**
3094
+
3095
+ Send your API key as a Bearer token: `Authorization: Bearer ak_test`. A licensee key (`sl_...`) works in its place and bills that licensee.
3096
+
3097
+ Browser integrations that cannot set headers can pass `api_key` in the query string instead.
3098
+ ManagementKey:
3099
+ type: http
3100
+ scheme: bearer
3101
+ description: |
3102
+ **Management Key**
3103
+
3104
+ Send your management key as a Bearer token: `Authorization: Bearer uk_...`. Required to manage an API key, for example `GET /keys/{key}/details`.
3105
+
3106
+ It 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.
3022
3107
  parameters:
3023
3108
  ApiKeyPathParam:
3024
3109
  name: key
@@ -3041,13 +3126,13 @@ components:
3041
3126
  type: string
3042
3127
  name: user_token
3043
3128
  description: |
3044
- **Private User Token**
3129
+ **Management Key**
3045
3130
 
3046
- A secret key used for sensitive operations on your account and API Keys.
3131
+ A secret key used to manage your account and API Keys. It was previously called the user token.
3047
3132
 
3048
- Your user token can be retrieved and managed from your [accounts page](https://addresszen.com/account).
3133
+ Your management key can be retrieved and managed from your [accounts page](https://addresszen.com/account).
3049
3134
 
3050
- Typically begins `uk_...`
3135
+ Typically begins `uk_...`. Prefer the `Authorization: Bearer uk_...` header.
3051
3136
  example: uk_B59ScW1p1HHouf1VqclEPZUx
3052
3137
  StartParam:
3053
3138
  name: start
@@ -3174,10 +3259,10 @@ components:
3174
3259
  description: |
3175
3260
  **Bias by Geolocation**
3176
3261
 
3177
- Bias search to a geospatial circle determined by an origin and radius in metres. Max radius is `50000`.
3178
- Uses the format bias_lonlat=[longitude],[latitude],[radius in metres].
3262
+ Bias search to a geospatial circle determined by an origin and radius in meters. Max radius is `50000`.
3263
+ Uses the format bias_lonlat=[longitude],[latitude],[radius in meters].
3179
3264
  Only one geospatial bias may be provided.
3180
- example: '-2.095,57.15,100'
3265
+ example: -2.095,57.15,100
3181
3266
  BiasIpParam:
3182
3267
  name: bias_ip
3183
3268
  in: query
@@ -3209,7 +3294,7 @@ components:
3209
3294
  Supply 4 comma separated values ordered `top_left_lon,top_left_lat,bottom_right_lon,bottom_right_lat`. The top-left longitude must be less than the bottom-right longitude, and the top-left latitude greater than the bottom-right latitude. A box which fails either check is ignored.
3210
3295
 
3211
3296
  Only one geospatial box can be provided.
3212
- example: '-2.096,57.15,-2.095,57.14'
3297
+ example: -2.096,57.15,-2.095,57.14
3213
3298
  PostalCodeParam:
3214
3299
  name: postal_code
3215
3300
  in: query
@@ -3530,7 +3615,7 @@ components:
3530
3615
  description: |
3531
3616
  Determines whether the key can be used by the requesting agent.
3532
3617
 
3533
- Returns false if one of the following conditions are met:
3618
+ Returns false if one of the following conditions is met:
3534
3619
  - Key has no lookups remaining
3535
3620
  - Daily limit has been reached on the key
3536
3621
  - Daily individual limit has been reached
@@ -3929,7 +4014,15 @@ components:
3929
4014
  type: array
3930
4015
  items:
3931
4016
  type: string
3932
- description: A list of allowed URLs. An empty list means that allowed URLs are disabled.
4017
+ description: |-
4018
+ A list of allowed URLs. An empty list disables the check.
4019
+
4020
+ A request is allowed when its `Origin` or `Referer` header matches an entry. Use one of these formats:
4021
+
4022
+ - `https://www.example.com` allows one site. Scheme and host must match
4023
+ - `*.example.com` allows the domain and all its subdomains
4024
+
4025
+ See [Allowed URLs](https://docs.addresszen.com/docs/guides/allowed-urls).
3933
4026
  redact_days:
3934
4027
  type: integer
3935
4028
  default: 28
@@ -3952,7 +4045,7 @@ components:
3952
4045
  premier_support:
3953
4046
  type: boolean
3954
4047
  default: false
3955
- description: Whether the key is enrolled in the premier support programme and monitored closely by our devops team. Read-only; managed by our team.
4048
+ description: Whether the key is enrolled in the premier support program and monitored closely by our devops team. Read-only; managed by our team.
3956
4049
  ApiKeyDetailsResponse:
3957
4050
  title: API Key Details Response
3958
4051
  type: object
@@ -4031,7 +4124,15 @@ components:
4031
4124
  type: string
4032
4125
  maxLength: 256
4033
4126
  pattern: ^[^\s]+$
4034
- description: A list of allowed URLs. An empty list means that allowed URLs are disabled. Up to 10 allowed.
4127
+ description: |-
4128
+ A list of allowed URLs. An empty list disables the check. Up to 10 allowed.
4129
+
4130
+ A request is allowed when its `Origin` or `Referer` header matches an entry. Use one of these formats:
4131
+
4132
+ - `https://www.example.com` allows one site. Scheme and host must match
4133
+ - `*.example.com` allows the domain and all its subdomains
4134
+
4135
+ See [Allowed URLs](https://docs.addresszen.com/docs/guides/allowed-urls).
4035
4136
  redact_days:
4036
4137
  type: integer
4037
4138
  default: 28
@@ -4692,7 +4793,7 @@ components:
4692
4793
  fit:
4693
4794
  type: number
4694
4795
  description: |
4695
- 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. 12 Pye Green Road) will have a fit of 1 even though it is missing post town and postcode. Its confidence score will be less than 1 however because it is missing some crucial elements.
4796
+ 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.
4696
4797
  maximum: 1
4697
4798
  minimum: 0
4698
4799
  confidence:
@@ -7894,9 +7995,9 @@ components:
7894
7995
  description: |-
7895
7996
  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.
7896
7997
  A complex building number may be one of the following:
7897
- - Dual. Two number separated by '/' e.g. 63/64 = 63, 64
7998
+ - Dual. Two numbers separated by '/' e.g. 63/64 = 63, 64
7898
7999
  - 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
7899
- - Range. A range of consecutive numbers with lower and upper bound separated by a dash '-' e.g. `63-66` = 63, 64, 56, 66
8000
+ - Range. A range of consecutive numbers with lower and upper bound separated by a dash '-' e.g. `63-66` = 63, 64, 65, 66
7900
8001
  The building number never appears on a line by itself and can prepend Building Group, Primary Thoroughfare or Primary Locality.
7901
8002
  building_group:
7902
8003
  type: string
@@ -13609,7 +13710,7 @@ components:
13609
13710
  loc_name: 旭川市
13610
13711
  loc_name_trans: ASAHIKAWA
13611
13712
  loc_sfx: ''
13612
- loc_sfx_trans: '-SHI'
13713
+ loc_sfx_trans: -SHI
13613
13714
  loc_pcode: 070-0000
13614
13715
  loc_pcode_fin: ''
13615
13716
  loc_dsc: ''
@@ -14737,7 +14838,7 @@ components:
14737
14838
  building_or_firm_name:
14738
14839
  title: Building or Firm Name
14739
14840
  type: string
14740
- description: The name of a company, building, apartment complex, shopping center, or other distinguishing secondary address information.
14841
+ description: The name of a company, building, apartment complex, shopping center or other distinguishing secondary address information.
14741
14842
  address_secondary_abbreviation:
14742
14843
  title: Address Secondary Abbreviation
14743
14844
  type: string
@@ -14849,7 +14950,7 @@ components:
14849
14950
  title: ZIP Classification Code
14850
14951
  type: string
14851
14952
  description: |-
14852
- 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.
14953
+ 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.
14853
14954
 
14854
14955
  - M = Military ZIP Code
14855
14956
  - P = ZIP Code having only Post Office Boxes
@@ -15339,7 +15440,7 @@ components:
15339
15440
  type: string
15340
15441
  description: Licensee's first, second and third line address as well as post town concatenated by commas
15341
15442
  postcode:
15342
- example: ID1 1QD
15443
+ example: BR8 7RE
15343
15444
  type: string
15344
15445
  description: Licensee's postcode
15345
15446
  whitelist:
@@ -15347,7 +15448,13 @@ components:
15347
15448
  items:
15348
15449
  type: string
15349
15450
  example: https://www.example.com
15350
- description: A list of allowed URLs. An empty list means that whitelisting is disabled
15451
+ description: |-
15452
+ A list of allowed URLs. An empty list disables the check.
15453
+
15454
+ A request is allowed when its `Origin` or `Referer` header matches an entry. Use one of these formats:
15455
+
15456
+ - `https://www.example.com` allows one site. Scheme and host must match
15457
+ - `*.example.com` allows the domain and all its subdomains
15351
15458
  daily:
15352
15459
  type: object
15353
15460
  properties:
@@ -15385,7 +15492,7 @@ components:
15385
15492
  description: |
15386
15493
  Uniquely identifies a licensee for a key.
15387
15494
 
15388
- Required to perform paid lookups for a specific licensee. Typically begins `sk_`.
15495
+ Required to perform paid lookups for a specific licensee. Typically begins `sl_`.
15389
15496
  createdAt:
15390
15497
  type: string
15391
15498
  example: '2016-01-21T17:14:49.971Z'
@@ -15401,7 +15508,7 @@ components:
15401
15508
  minimum: 0
15402
15509
  type: number
15403
15510
  format: int32
15404
- description: The number lookups performed by the licensee on the day represented b `licesees.daily.updatedAt`
15511
+ description: The number of lookups performed by the licensee on the day represented by `licensees.daily.updatedAt`
15405
15512
  updatedAt:
15406
15513
  type: string
15407
15514
  example: '2016-08-05T16:43:28.865Z'