openapi: 3.0.3 info: title: Lob Bulk API version: 1.20.2 description: "Experience direct mail like never before, with unmatched personalization and scalability \x14 all in one intuitive platform." license: name: MIT url: https://mit-license.org/ contact: name: Lob Developer Experience url: https://support.lob.com/ email: lob-openapi@lob.com termsOfService: https://www.lob.com/legal servers: - url: https://api.lob.com/v1 description: production security: - basicAuth: [] tags: - name: Bulk paths: /bulk/us_verifications: post: operationId: bulk_us_verifications summary: Bulk Verify description: Verify a list of US or US territory addresses _with a live API key_. Requests to this endpoint with a test API key will return a dummy response based on the primary line you input. tags: - Bulk parameters: - in: query name: case schema: type: string enum: - upper - proper default: upper description: Casing of the verified address. Possible values are `upper` and `proper` for uppercased (e.g. "PO BOX") and proper-cased (e.g. "PO Box"), respectively. Only affects `recipient`, `primary_line`, `secondary_line`, `urbanization`, and `last_line`. Default casing is `upper`. required: false requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/multiple_components_list' example: addresses: - primary_line: 210 King Street city: San Francisco state: CA zip_code: '94107' - recipient: Walgreens primary_line: Ave Wilson Churchill 123 secondary_line: '' urbanization: URB FAIR OAKS city: RIO PIEDRAS state: PR zip_code: 00926 application/x-www-form-urlencoded: schema: $ref: '#/components/schemas/multiple_components_list' example: addresses: - primary_line: 210 King Street city: San Francisco state: CA zip_code: '94107' - recipient: Walgreens primary_line: Ave Wilson Churchill 123 secondary_line: '' urbanization: URB FAIR OAKS city: RIO PIEDRAS state: PR zip_code: 00926 multipart/form-data: schema: $ref: '#/components/schemas/multiple_components_list' example: addresses: - primary_line: 210 King Street city: San Francisco state: CA zip_code: '94107' - recipient: Walgreens primary_line: Ave Wilson Churchill 123 secondary_line: '' urbanization: URB FAIR OAKS city: RIO PIEDRAS state: PR zip_code: 00926 responses: '200': $ref: '#/components/responses/bulk_us_verifications' default: $ref: '#/components/responses/us_verifications_error' x-codeSamples: - lang: Shell source: 'curl https://api.lob.com/v1/bulk/us_verifications \ -u : \ --header ''Content-Type: application/x-www-form-urlencoded'' \ --data-urlencode ''addresses[0][primary_line]=210 King Street'' \ --data-urlencode ''addresses[0][city]=San Francisco'' \ --data-urlencode ''addresses[0][state]=CA'' \ --data-urlencode ''addresses[0][zip_code]=94017'' ' label: CURL - lang: Typescript source: "const UsVerifications = new USVerificationsApi(av_config);\nconst verificationData1: UsVerificationsWritable = {\n primary_line: '210 King St',\n city: 'San Francisco',\n state: 'CA',\n zip_code: '94107'\n};\nconst verificationData2: UsVerificationsWritable = {\n primary_line: '185 BERRY ST STE 6600',\n city: 'SAN FRANCISCO',\n state: 'CA',\n zip_code: '94107'\n};\nconst addressList: MultipleComponentsList = {\n addresses: [verificationData1, verificationData2],\n};\n\ntry {\n const bulkVerified = await UsVerifications.verifyBulk(addressList);\n} catch (err: any) {\n console.error(err);\n}\n" label: TYPESCRIPT - lang: Javascript source: "Lob.bulkUSVerifications.verify({\n addresses: [{\n primary_line: '210 King St',\n city: 'San Francisco',\n state: 'CA',\n zip_code: '94107'\n }]\n}), function (err, res) {\n console.log(err, res);\n});\n" label: NODE - lang: Ruby source: "usVerificationsApi = UsVerificationsApi.new(config)\n\nverificationData0 = MultipleComponents.new({\n primary_line: \"210 King Street\",\n city: \"San Francisco\",\n state: \"CA\",\n zip_code: \"94017\",\n})\n\nverificationData1 = MultipleComponents.new({\n primary_line: \"185 BERRY ST STE 6600\",\n city: \"SAN FRANCISCO\",\n state: \"CA\",\n zip_code: \"94017\",\n})\n\n\naddressList = MultipleComponentsList.new({\n addresses: [\n verificationData0,\n verificationData1,\n ],\n})\n\nbegin\n bulkVerifiedAddrs = usVerificationsApi.verifyBulk(addressList)\nrescue => err\n p err.message\nend\n" label: RUBY - lang: Python source: "with ApiClient(configuration) as api_client:\n api = UsVerificationsApi(api_client)\n\nverification_data_0 = MultipleComponents(\n primary_line = \"210 King Street\",\n city = \"San Francisco\",\n state = \"CA\",\n zip_code = \"94017\",\n)\n\nverification_data_1 = MultipleComponents(\n primary_line = \"185 BERRY ST STE 6600\",\n city = \"SAN FRANCISCO\",\n state = \"CA\",\n zip_code = \"94017\",\n)\n\n\naddress_list = MultipleComponentsList(\n addresses = [\n verification_data_0,\n verification_data_1,\n ],\n)\n\ntry:\n bulk_verified = api.verifyBulk(address_list)\nexcept ApiException as e:\n print(e)\n" label: PYTHON - lang: PHP source: "$verificationData0 = new OpenAPI\\Client\\Model\\MultipleComponents(array(\n 'primary_line' => '210 King Street',\n 'city' => 'San Francisco',\n 'state' => 'CA',\n 'zip_code' => '94017',\n));\n\n$verificationData1 = new OpenAPI\\Client\\Model\\MultipleComponents(array(\n 'primary_line' => '185 BERRY ST STE 6600',\n 'city' => 'SAN FRANCISCO',\n 'state' => 'CA',\n 'zip_code' => '94017',\n));\n\n$addressList = new OpenAPI\\Client\\Model\\MultipleComponentsList(array(\n 'addresses' => [\n $verificationData0,\n $verificationData1,\n ]\n));\n\ntry {\n $result = $apiInstance->verifyBulk($addressList);\n} catch (Exception $e) {\n echo $e->getMessage(), PHP_EOL;\n}\n" - lang: Java source: "MultipleComponentsList bulkVerify = new MultipleComponentsList();\nMultipleComponents bulkAddress0 = new MultipleComponents();\nbulkAddress0.setPrimaryLine(\"210 King Street\");\nbulkAddress0.setCity(\"San Francisco\");\nbulkAddress0.setState(\"CA\");\nbulkAddress0.setZipCode(\"94017\");\nbulkVerify.addAddressesItem(bulkAddress0);\n\nMultipleComponents bulkAddress1 = new MultipleComponents();\nbulkAddress1.setPrimaryLine(\"185 BERRY ST STE 6600\");\nbulkAddress1.setCity(\"SAN FRANCISCO\");\nbulkAddress1.setState(\"CA\");\nbulkAddress1.setZipCode(\"94017\");\nbulkVerify.addAddressesItem(bulkAddress1);\n\nUsVerificationsApi apiInstance = new UsVerificationsApi(config);\ntry {\n UsVerifications bulkVerifyResponse = apiInstance.verifyBulk(bulkVerify, null);\n} catch (ApiException e) {\n e.printStackTrace();\n}\n" label: JAVA - lang: Elixir source: "Lob.BulkUSVerification.verify.verify(\n%{\n addresses:[\n {\n primary_line: \"210 King Street\",\n city: \"San Francisco\",\n state: \"CA\",\n zip_code: \"94107\"\n }\n ]\n})\n" label: ELIXIR - lang: CSharp source: "List addresses = new List();\nMultipleComponents bulkAddress0 = new MultipleComponents(\n null, // recipient\n \"210 King Street\", // primaryLine\n null, // secondaryLine\n null, // urbanization\n \"San Francisco\", // city\n \"CA\", // state\n \"94017\" // zipCode\n);\naddresses.Add(bulkAddress0);\n\nMultipleComponents bulkAddress1 = new MultipleComponents(\n null, // recipient\n \"185 BERRY ST STE 6600\", // primaryLine\n null, // secondaryLine\n null, // urbanization\n \"San Francisco\", // city\n \"CA\", // state\n \"94017\" // zipCode\n);\naddresses.Add(bulkAddress1);\n\nMultipleComponentsList bulkVerify = new MultipleComponentsList(addresses);\n\nUsVerificationsApi api = new UsVerificationsApi(config);\ntry {\n UsVerifications bulkVerifyResponse = api.verifyBulk(bulkVerify, null);\n} catch (ApiException e) {\n Console.WriteLine(e.ToString());\n}\n" label: CSHARP /bulk/intl_verifications: post: operationId: bulk_intl_verifications summary: Bulk Verify description: Verify a list of international (except US or US territories) address _with a live API key_. Requests to this endpoint with a test API key will return a dummy response based on the primary line you input. tags: - Bulk requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/intl_verifications_payload' example: addresses: - recipient: John Doe primary_line: 370 Water St secondary_line: '' city: Summerside state: Prince Edwards Island postal_code: C1N 1C4 country: CA - recipient: Jane Doe primary_line: UL. DOLSKAYA 1 secondary_line: '' city: MOSCOW state: MOSCOW G postal_code: '115569' country: RU multipart/form-data: schema: $ref: '#/components/schemas/intl_verifications_payload' example: addresses: - recipient: John Doe primary_line: 370 Water St secondary_line: '' city: Summerside state: Prince Edwards Island postal_code: C1N 1C4 country: CA - recipient: Jane Doe primary_line: UL. DOLSKAYA 1 secondary_line: '' city: MOSCOW state: MOSCOW G postal_code: '115569' country: RU responses: '200': $ref: '#/components/responses/bulk_intl_verifications' default: $ref: '#/components/responses/intl_verifications_error' x-codeSamples: - lang: Shell source: 'curl https://api.lob.com/v1/bulk/intl_verifications \ -u : \ --header ''Content-Type: application/x-www-form-urlencoded'' \ --data-urlencode ''addresses[0][primary_line]=370 WATER ST'' \ --data-urlencode ''addresses[0][postal_code]=C1N 1C4'' \ --data-urlencode ''addresses[0][country]=CA'' ' label: CURL - lang: Typescript source: "const IntlVerifications = new IntlVerificationsApi(av_config);\nlet verificationData1: IntlVerificationWritable = {\n primary_line: '370 WATER ST',\n postal_code: 'C1N 1C4',\n country: CountryExtended.Ca\n};\nconst verificationData2: IntlVerificationWritable = {\n primary_line: '012 PLACEHOLDER ST',\n postal_code: 'F0O 8A2',\n country: CountryExtended.Ca\n};\nlet addressList = new IntlVerificationsPayload({\n addresses: [verificationData1, verificationData2]\n});\n\ntry {\n const bulkVerified = await IntlVerifications.verifyBulk(addressList);\n\n} catch (err: any) {\n console.error(err);\n}\n" label: TYPESCRIPT - lang: Javascript source: "Lob.bulkIntlVerifications.verify({\n addresses: [{\n primary_line: '370 Water St',\n secondary_line: '',\n city: 'Summerside',\n state: 'Prince Edward Island',\n postal_code: 'C1N 1C4',\n country: 'CA'\n }]\n}), function (err, res) {\n console.log(err, res);\n});\n" label: NODE - lang: Ruby source: "intlVerificationsApi = IntlVerificationsApi.new(config)\n\nverificationData0 = MultipleComponentsIntl.new({\n primary_line: \"35 Tower Hill\",\n city: \"London\",\n postal_code: \"EC3N 4DR\",\n country: \"GB\",\n})\n\nverificationData1 = MultipleComponentsIntl.new({\n primary_line: \"370 Water St\",\n city: \"Summerside\",\n state: \"Prince Edward Island\",\n postal_code: \"C1N 1C4\",\n country: \"CA\",\n})\n\n\naddressList = IntlVerificationsPayload.new({\n addresses: [\n verificationData0,\n verificationData1,\n ],\n})\n\nbegin\n bulkVerifiedAddrs = intlVerificationsApi.verifyBulk(addressList)\nrescue => err\n p err.message\nend\n" label: RUBY - lang: Python source: "with ApiClient(configuration) as api_client:\n api = IntlVerificationsApi(api_client)\n\nverification_data_0 = MultipleComponentsIntl(\n primary_line = \"35 Tower Hill\",\n city = \"London\",\n postal_code = \"EC3N 4DR\",\n country = CountryExtended(\"GB\"),\n)\n\nverification_data_1 = MultipleComponentsIntl(\n primary_line = \"370 Water St\",\n city = \"Summerside\",\n state = \"Prince Edward Island\",\n postal_code = \"C1N 1C4\",\n country = CountryExtended(\"CA\"),\n)\n\n\naddress_list = IntlVerificationsPayload(\n addresses = [\n verification_data_0,\n verification_data_1,\n ],\n)\n\ntry:\n bulk_verified = api.verifyBulk(address_list)\nexcept ApiException as e:\n print(e)\n" label: PYTHON - lang: PHP source: "$verificationData0 = new OpenAPI\\Client\\Model\\MultipleComponentsIntl(array(\n 'primary_line' => '35 Tower Hill',\n 'city' => 'London',\n 'postal_code' => 'EC3N 4DR',\n 'country' => 'GB',\n));\n\n$verificationData1 = new OpenAPI\\Client\\Model\\MultipleComponentsIntl(array(\n 'primary_line' => '370 Water St',\n 'city' => 'Summerside',\n 'state' => 'Prince Edward Island',\n 'postal_code' => 'C1N 1C4',\n 'country' => 'CA',\n));\n\n$addressList = new OpenAPI\\Client\\Model\\IntlVerificationsPayload(array(\n 'addresses' => [\n $verificationData0,\n $verificationData1,\n ]\n));\n\ntry {\n $result = $apiInstance->verifyBulk($addressList);\n} catch (Exception $e) {\n echo $e->getMessage(), PHP_EOL;\n}\n" - lang: Java source: "List addresses = new ArrayList();\naddresses.add(new IntlVerification.RequestBuilder()\n .setPrimaryLine(\"370 Water St\")\n .setCity(\"Summerside\")\n .setState(\"Prince Edward Island\")\n .setPostalCode(\"C1N 1C4\")\n .setCountry(\"CA\"));\nLobResponse response = new BulkIntlVerification.RequestBuilder()\n .setAddresses(addresses)\n .verify();\nBulkIntlVerification bulkIntlVerification = response.getResponseBody();\n" label: JAVA - lang: Elixir source: "Lob.BulkIntlVerification.verify.verify(\n%{addresses:[\n {\n primary_line: '370 Water St',\n secondary_line: '',\n city: 'Summerside',\n state: 'Prince Edward Island',\n postal_code: 'C1N 1C4',\n country: 'CA'\n }\n ]\n})\n" label: ELIXIR - lang: CSharp source: "List addresses = new List();\nMultipleComponentsIntl bulkAddress0 = new MultipleComponentsIntl(\n null, // recipient\n \"35 Tower Hill\", // primaryLine\n null, // secondaryLine\n \"London\", // city\n null, // state\n \"EC3N 4DR\", // postalCode\n CountryExtended.GB // country\n);\naddresses.Add(bulkAddress0);\n\nMultipleComponentsIntl bulkAddress1 = new MultipleComponentsIntl(\n null, // recipient\n \"370 Water St\", // primaryLine\n null, // secondaryLine\n \"Summerside\", // city\n \"Prince Edward Island\", // state\n \"C1N 1C4\", // postalCode\n CountryExtended.CA // country\n);\naddresses.Add(bulkAddress1);\n\nIntlVerificationsPayload bulkVerify = new IntlVerificationsPayload(addresses);\n\nIntlVerificationsApi api = new IntlVerificationsApi(config);\n\ntry {\n IntlVerifications bulkVerifyResponse = api.verifyBulk(bulkVerify);\n} catch (ApiException e) {\n Console.WriteLine(e.ToString());\n}\n" label: CSHARP components: schemas: intl_components: type: object description: A nested object containing a breakdown of each component of an address. properties: primary_number: $ref: '#/components/schemas/primary_number' street_name: $ref: '#/components/schemas/street_name' city: $ref: '#/components/schemas/city' state: $ref: '#/components/schemas/state' postal_code: $ref: '#/components/schemas/postal_code' us_verifications: type: object required: - addresses - errors properties: addresses: type: array items: oneOf: - $ref: '#/components/schemas/us_verification' - $ref: '#/components/schemas/error' errors: description: Indicates whether any errors occurred during the verification process. type: boolean primary_line: type: string description: 'The primary delivery line (usually the street address) of the address. ' maxLength: 200 error: type: object description: Lob uses RESTful HTTP response codes to indicate success or failure of an API request. In general, 2xx indicates success, 4xx indicate an input error, and 5xx indicates an error on Lob's end. required: - error properties: error: type: object required: - message - status_code - code properties: message: type: string description: A human-readable message with more details about the error example: Rate limit exceeded. Please wait 5 seconds and try your request again. status_code: $ref: '#/components/schemas/failure_status_code' code: type: string enum: - bad_request - conflict - feature_limit_reached - internal_server_error - invalid - not_deletable - not_found - request_timeout - service_unavailable - unrecognized_endpoint - unsupported_lob_version - address_length_exceeds_limit - bank_account_already_verified - bank_error - billing_address_required - custom_envelope_inventory_depleted - deleted_bank_account - failed_deliverability_strictness - file_pages_below_min - file_pages_exceed_max - file_size_exceeds_limit - foreign_return_address - inconsistent_page_dimensions - invalid_bank_account - invalid_bank_account_verification - invalid_check_international - invalid_country_covid - invalid_file - invalid_file_dimensions - invalid_file_download_time - invalid_file_url - invalid_image_dpi - invalid_international_feature - invalid_perforation_return_envelope - invalid_template_html - mail_use_type_can_not_be_null - merge_variable_required - merge_variable_whitespace - payment_method_unverified - pdf_encrypted - special_characters_restricted - unembedded_fonts - email_required - invalid_api_key - publishable_key_not_allowed - rate_limit_exceeded - unauthorized - unauthorized_token description: 'A pre-defined string identifying an error. Error codes fall into three categories: **GENERIC** * `bad_request` - 422: an invalid request was made. See error message for details. * `conflict` - 409/422: this operation would leave data in a conflicted state. * `feature_limit_reached` - 403: the account has reached its resource limit and requires upgrading to add more. * `internal_server_error` - 500: an error has occured on Lob''s servers. Please try request again. * `invalid` - 422: an invalid request was made. See error message for details. * `not_deletable` - 422: an attempt was made to delete a resource, but the resource cannot be deleted. * `not_found` - 404: the requested resource was not found. * `request_timeout` - 408: the request took too long. Please try again. * `service_unavailable` - 503: the Lob servers are temporarily unavailable. Please try agian. * `unrecognized_endpoint` - 404: the requested endpoint doesn''t exist. * `unsupported_lob_version` - 422: an unsupported Lob API version was requested. **ADVANCED** * `address_length_exceeds_limit` - 422: the sum of to.address_line1 and to.address_line2 cannot surpass 50 characters. * `bank_account_already_verified` - 422: the bank account has already been verified. * `bank_error` - 422: there''s an issue with the bank account. * `billing_address_required` - 403: in order to create a live mail piece, your account needs to set up a billing address. * `custom_envelope_inventory_depleted` - 422: custom envelope inventory is depleted, and more will need to be ordered. * `deleted_bank_account` - 404: checks cannot be created with a deleted bank account. * `failed_deliverability_strictness` - 422: the `to` address doesn''t meet strictness requirements. See Account Settings to configure strictness. * `file_pages_below_min` - 422: not enough pages. * `file_pages_exceed_max` - 422: too many pages. * `file_size_exceeds_limit` - 422: the file size is too large. See description for details. * `foreign_return_address` - 422: the `from` address must be a US address. * `inconsistent_page_dimensions` - 422: all pages of the input file must have the same dimensions. * `invalid_bank_account` - 422: the provided bank routing number is invalid. * `invalid_bank_account_verification` - 422: verification amounts do not match. * `invalid_check_international` - 422: checks cannot be sent internationally. * `invalid_country_covid` - 422: the postal service in the specified country is currently unable to process the request due to COVID-19 restrictions. * `invalid_file` - 422: the file is invalid. * `invalid_file_dimensions` - 422: file dimensions are incorrect for the selected mail type. * `invalid_file_download_time` - 422: file download from remote server took too long. * `invalid_file_url` - 422: the file URL when creating a resource is invalid. * `invalid_image_dpi` - 422: DPI must be at least 300. * `invalid_international_feature` - 422: the specified product cannot be sent to the destination. * `invalid_perforation_return_envelope` - 422: both `return_envelope` and `perforation` must be used together. * `invalid_template_html` - 422: the provided HTML is invalid. * `mail_use_type_can_not_be_null` - 422: use_type must be one of "marketing" or "operational". Alternatively, an admin can set the account default use type in Account Settings. * `merge_variable_required` - 422: a required merge variable is missing. * `merge_variable_whitespace` - 422: merge variable names cannot contain whitespace. * `payment_method_unverified` - 401: you must have a verified bank account or credit card to submit live requests. * `pdf_encrypted` - 422: an encrypted PDF was provided. * `special_characters_restricted` - 422: cannot use special characters for merge variable names. * `unembedded_fonts` - 422: the provided PDF contains non-standard unembedded fonts. See description for details. **AUTHENTICATION** * `email_required` - 401: account must have a verified email address before creating live resources. * `invalid_api_key` - 401/403: the API key is invalid. * `publishable_key_not_allowed` - 403: the requested operation needs a secret key, not a publishable key. See [API Keys](#section/API-Keys) for more information. * `rate_limit_exceeded` - 429: requests were sent too quickly and must be slowed down. * `unauthorized` - 401: the request isn''t authorized. * `unauthorized_token` - 401: token isn''t authorized. ' us_ver_id: type: string description: Unique identifier prefixed with `us_ver_`. pattern: ^us_ver_[a-zA-Z0-9_]+$ country_extended: type: string description: Must be a 2 letter country short-name code (ISO 3166). Does not accept `US`, `AS`, `PR`, `FM`, `GU`, `MH`, `MP`, `PW`, or `VI`. For these addresses, please use the US verification API. Also does not accept `PS`, which is not currently supported. enum: - AD - AE - AF - AG - AI - AL - AN - AO - AQ - AR - AT - AU - AW - AZ - BA - BB - BD - BE - BF - BG - BH - BI - BJ - BM - BN - BO - BQ - BR - BS - BT - BW - BY - BZ - CA - CD - CG - CH - CI - CK - CL - CM - CN - CO - CR - CS - CU - CV - CW - CY - CZ - DE - DJ - DK - DM - DO - DZ - EC - EE - EG - EH - ER - ES - ET - FI - FJ - FK - FO - FR - GA - GB - GD - GE - GH - GI - GL - GM - GN - GQ - GR - GS - GT - GW - GY - HK - HN - HR - HT - HU - ID - IE - IL - IN - IO - IQ - IR - IS - IT - JM - JO - JP - KE - KG - KH - KI - KM - KN - KP - KR - KW - KY - KZ - LA - LB - LC - LI - LK - LR - LS - LT - LU - LV - LY - MA - MC - MD - ME - MG - MK - ML - MM - MN - MO - MR - MS - MT - MU - MV - MW - MX - MY - MZ - NA - NE - NF - NG - NI - NL - 'NO' - NP - NR - NU - NZ - OM - PA - PE - PG - PH - PK - PL - PN - PT - PY - QA - RO - RS - RU - RW - SA - SB - SC - SD - SE - SG - SH - SI - SK - SL - SM - SN - SO - SR - SS - ST - SV - SX - SY - SZ - TC - TD - TG - TH - TJ - TK - TL - TM - TN - TO - TR - TT - TV - TW - TZ - UA - UG - UY - UZ - VA - VC - VE - VG - VN - VU - WS - YE - ZA - ZM - ZW lob_confidence_score: type: object description: Lob Confidence Score is a nested object that provides a numerical value between 0-100 of the likelihood that an address is deliverable based on Lobs mail delivery data to over half of US households. required: - score - level properties: score: type: number nullable: true format: float description: 'A numerical score between 0 and 100 that represents the percentage of mailpieces Lob has sent to this addresses that have been delivered successfully over the past 2 years. Will be `null` if no tracking data exists for this address. ' default: null minimum: 0 maximum: 100 level: type: string enum: - high - medium - low - '' description: "Indicates the likelihood that the address is a valid, mail-receiving address. Possible values are:\n - `high` Over 70% of mailpieces Lob has sent to this address were delivered successfully and recent mailings were also successful.\n - `medium` Between 40% and 70% of mailpieces Lob has sent to this address were delivered successfully.\n - `low` Less than 40% of mailpieces Lob has sent to this address were delivered successfully and recent mailings weren't successful.\n - `\"\"` No tracking data exists for this address or lob deliverability was unable to find a corresponding level of mail success.\n" intl_verification: allOf: - $ref: '#/components/schemas/intl_verification_base' - type: object properties: id: $ref: '#/components/schemas/intl_ver_id' last_line: type: string description: 'Combination of the following applicable `components`: * `city` * `state` * `zip_code` * `zip_code_plus_4` ' country: $ref: '#/components/schemas/country_short' coverage: type: string enum: - SUBBUILDING - HOUSENUMBER/BUILDING - STREET - LOCALITY - SPARSE description: 'The coverage level for the country. This represents the maximum level of accuracy an input address can be verified to. * `SUBBUILDING` - Coverage down to unit numbers. For example, in an apartment or a large building * `HOUSENUMBER/BUILDING` - Coverage down to house number. For example, the address where a house or building may be located * `STREET` - Coverage down to street. This means that we can verify that an street exists in a city, state, country * `LOCALITY` - Coverage down to city, state, or village or province. This means that we can verify that a city, village, province, or state exists in a country. Countries differ in how they define what is a province, state, city, village, etc. This attempts to group eveyrthing together. * `SPARSE` - Some addresses for this country exist in our databases ' deliverability: type: string enum: - deliverable - deliverable_missing_info - undeliverable - no_match description: 'Summarizes the deliverability of the `intl_verification` object. Possible values are: * `deliverable` The address is deliverable. * `deliverable_missing_info` The address is missing some information, but is most likely deliverable. * `undeliverable` The address is most likely not deliverable. Some components of the address (such as city or postal code) may have been found. * `no_match` This address is not deliverable. No matching street could be found within the city or postal code. ' status: type: string enum: - LV4 - LV3 - LV2 - LV1 - LF4 - LF3 - LF2 - LF1 - LM4 - LM3 - LM2 - LU1 description: 'The status level for the country. This represents the maximum level of accuracy an input address can be verified to. * `LV4` - Verified. The input data is correct. All input data was able to match in databases. * `LV3` - Verified. The input data is correct. All input data was able to match in databases after some or all elements were standarized. The input data may also be using outdated city, state, or country names. * `LV2` - Verified. The input data is correct although some input data is unverifiable due to incomplete data. * `LV1` - Verified. The input data is acceptable but in an attempt to standarize user input, errors were introduced. * `LF4` - Fixed. The input data is matched and fixed. (Example: Brighon, UK -> Brighton, UK) * `LF3` - Fixed. The input data is matched and fixed but some elements such as Subbuilding number and house number cannot be checked. * `LF2` - Fixed. The input data is matched but some elements such as Street cannot be checked. * `LF1` - Fixed. The input data is acceptable but in an attempt to standarize user input, errors were introduced. * `LM4` - Missing Info. The input data cannot be corrected completely. * `LM3` - Missing Info. The input data cannot be corrected completely and there were multiple matches found in databases. * `LM2` - Missing Info. The input data cannot be corrected completely and only some elements were found. * `LU1` - Unverified. The input data cannot be corrected or matched. ' components: $ref: '#/components/schemas/intl_components' object: type: string description: Value is resource type. enum: - intl_verification default: intl_verification multiple_components_list: type: object required: - addresses properties: addresses: type: array minItems: 1 maxItems: 20 items: $ref: '#/components/schemas/multiple_components' country_short: type: string description: The country of the address. Will be returned as a 2 letter country short-name code (ISO 3166). example: CA multiple_components_intl: allOf: - $ref: '#/components/schemas/intl_verification_base' - type: object required: - primary_line - country properties: city: $ref: '#/components/schemas/city' state: type: string description: The name of the state. postal_code: $ref: '#/components/schemas/postal_code' country: $ref: '#/components/schemas/country_extended' city_no_description: type: string maxLength: 200 dpv_footnote: type: string enum: - AA - A1 - BB - CC - N1 - F1 - G1 - U1 - M1 - M3 - P1 - P3 - R1 - R7 - RR example: AA state: type: string description: 'The ISO 3166-2 two letter code for the state. ' maxLength: 2 multiple_components: allOf: - anyOf: - title: US verification object with `city` and `state` required: - city - state - title: US verification object with `zip_code` required: - zip_code - type: object required: - primary_line properties: recipient: $ref: '#/components/schemas/recipient' primary_line: $ref: '#/components/schemas/primary_line_us' secondary_line: $ref: '#/components/schemas/secondary_line' urbanization: $ref: '#/components/schemas/urbanization' city: allOf: - $ref: '#/components/schemas/city_no_description' - type: string description: The name of the city. `city` and `state` are required if no `zip_code` is passed. state: type: string description: The ISO 3166-2 two letter code or subdivision name for the state. `city` and `state` are required if no `zip_code` is passed. maxLength: 50 zip_code: allOf: - description: Required if `city` and `state` are not passed in. If included, must be formatted as a US ZIP or ZIP+4 (e.g. `94107`, `941072282`, `94107-2282`). - $ref: '#/components/schemas/zip_code' secondary_line: type: string description: 'The secondary delivery line of the address. This field is typically empty but may contain information if `primary_line` is too long. ' maxLength: 200 zip_code_plus_4: type: string pattern: ^\d{4}$ intl_ver_id: type: string description: Unique identifier prefixed with `intl_ver_`. pattern: ^intl_ver_[a-zA-Z0-9]+$ urbanization: type: string description: 'Only present for addresses in Puerto Rico. An urbanization refers to an area, sector, or development within a city. See USPS documentation for clarification. ' maxLength: 200 intl_verifications: type: object required: - addresses - errors properties: addresses: type: array items: oneOf: - $ref: '#/components/schemas/intl_verification' - $ref: '#/components/schemas/error' errors: description: Indicates whether any errors occurred during the verification process. type: boolean deliverability_analysis: type: object description: A nested object containing a breakdown of the deliverability of an address. required: - dpv_confirmation - dpv_cmra - dpv_vacant - dpv_active - dpv_inactive_reason - dpv_throwback - dpv_non_delivery_day_flag - dpv_non_delivery_day_values - dpv_no_secure_location - dpv_door_not_accessible - dpv_footnotes - ews_match - lacs_indicator - lacs_return_code - suite_return_code properties: dpv_confirmation: type: string enum: - Y - S - D - N - '' description: "Result of Delivery Point Validation (DPV), which determines whether or not the address is deliverable by the USPS. Possible values are:\n* `Y` The address is deliverable by the USPS.\n* `S` The address is deliverable by removing the provided secondary unit designator. This information may be incorrect or unnecessary.\n* `D` The address is deliverable to the building's default address but is missing a secondary unit designator and/or number.\n There is a chance the mail will not reach the intended recipient.\n* `N` The address is not deliverable according to the USPS, but parts of the address are valid (such as the street and ZIP code).\n* `''` This address is not deliverable. No matching street could be found within the city or ZIP code.\n" example: Y dpv_cmra: type: string enum: - Y - N - '' description: 'Indicates whether or not the address is CMRA-authorized. Possible values are: * `Y` Address is CMRA-authorized. * `N` Address is not CMRA-authorized. * `''''` A DPV match is not made (`deliverability_analysis[dpv_confirmation]` is `N` or an empty string). ' example: N dpv_vacant: type: string enum: - Y - N - '' description: 'Indicates that an address was once deliverable, but has become vacant and is no longer receiving deliveries. Possible values are: * `Y` Address is vacant. * `N` Address is not vacant. * `''''` A DPV match is not made (`deliverability_analysis[dpv_confirmation]` is `N` or an empty string). ' example: N dpv_active: type: string enum: - Y - N - '' description: 'Corresponds to the USPS field `dpv_no_stat`. Indicates that an address has been vacated in the recent past, and is no longer receiving deliveries. If it''s been unoccupied for 90+ days, or temporarily vacant, this will be flagged. Possible values are: * `Y` Address is active. * `N` Address is not active. * `''''` A DPV match is not made (`deliverability_analysis[dpv_confirmation]` is `N` or an empty string). ' example: Y dpv_inactive_reason: type: string enum: - '01' - '02' - '03' - '04' - '05' - '06' - '' description: 'Indicates the reason why an address is vacant or no longer receiving deliveries. Possible values are: * `01` Address does not receive mail from the USPS directly, but is serviced by a drop address. * `02` Address not yet deliverable. * `03` A DPV match is not made (`deliverability_analysis[dpv_confirmation]` is `N` or an empty string). * `04` Address is a College, Military Zone, or other type. * `05` Address no longer receives deliveries. * `06` Address is missing required secondary information. * `''''` A DPV match is not made or the address is active. ' example: '06' dpv_throwback: type: string enum: - Y - N - '' description: 'Indicates a street address for which mail is delivered to a PO Box. Possible values are: * `Y` Address is a PO Box throwback delivery point. * `N` Address is not a PO Box throwback delivery point. * `''''` A DPV match is not made (`deliverability_analysis[dpv_confirmation]` is `N` or an empty string). ' example: N dpv_non_delivery_day_flag: type: string enum: - Y - N - '' description: 'Indicates whether deliveries are not performed on one or more days of the week at an address. Possible values are: * `Y` Mail delivery does not occur on some days of the week. * `N` Mail delivery occurs every day of the week. * `''''` A DPV match is not made (`deliverability_analysis[dpv_confirmation]` is `N` or an empty string). ' example: N dpv_non_delivery_day_values: type: string description: 'Indicates days of the week (starting on Sunday) deliveries are not performed at an address. For example: * `YNNNNNN` Mail delivery does not occur on Sunday''s. * `NYNNNYN` Mail delivery does not occur on Monday''s or Friday''s. * `''''` A DPV match is not made (`deliverability_analysis[dpv_confirmation]` is `N` or an empty string) or address receives mail every day of the week (`deliverability_analysis[dpv_non_delivery_day_flag]` is `N` or an empty string). ' example: YNNNNNN dpv_no_secure_location: type: string enum: - Y - N - '' description: 'Indicates packages to this address will not be left due to security concerns. Possible values are: * `Y` Address does not have a secure mailbox. * `N` Address has a secure mailbox. * `''''` A DPV match is not made (`deliverability_analysis[dpv_confirmation]` is `N` or an empty string). ' example: N dpv_door_not_accessible: type: string enum: - Y - N - '' description: 'Indicates the door of the address is not accessible for mail delivery. Possible values are: * `Y` Door is not accessible. * `N` Door is accessible. * `''''` A DPV match is not made (`deliverability_analysis[dpv_confirmation]` is `N` or an empty string). ' example: N dpv_footnotes: type: array description: 'An array of 2-character strings that gives more insight into how `deliverability_analysis[dpv_confirmation]` was determined. Will always include at least 1 string, and can include up to 3. For details, see [US Verification Details](#tag/US-Verification-Types). ' items: $ref: '#/components/schemas/dpv_footnote' example: - AA - BB ews_match: type: boolean description: 'Indicates whether or not an address has been flagged in the Early Warning System, meaning the address is under development and not yet ready to receive mail. However, it should become available in a few months. ' example: false lacs_indicator: type: string enum: - Y - N - '' description: 'Indicates whether this address has been converted by LACSLink. LACSLink corrects outdated addresses into their modern counterparts. Possible values are: * `Y` New address produced with a matching record in LACSLink. * `N` New address could not be produced with a matching record in LACSLink. * `''''` A DPV match is not made (`deliverability_analysis[dpv_confirmation]` is `N` or an empty string). ' example: '' lacs_return_code: type: string description: 'A code indicating how `deliverability_analysis[lacs_indicator]` was determined. Possible values are: * `A` A new address was produced because a match was found in LACSLink. * `92` A LACSLink record was matched after dropping secondary information. * `14` A match was found in LACSLink, but could not be converted to a deliverable address. * `00` A match was not found in LACSLink, and no new address was produced. * `''''` LACSLink was not attempted. ' example: '' suite_return_code: type: string enum: - A - '00' - '' description: 'A return code that indicates whether the address was matched and corrected by SuiteLink. SuiteLink attempts to provide secondary information to business addresses. Possible values are: * `A` A SuiteLink match was found and secondary information was added. * `00` A SuiteLink match could not be found and no secondary information was added. * `''''` SuiteLink lookup was not attempted. ' example: '' county: type: string description: County name of the address city. county_fips: type: string description: 'A 5-digit FIPS county code which uniquely identifies `components[county]`. It consists of a 2-digit state code and a 3-digit county code. ' pattern: \d{5} intl_verification_base: type: object properties: recipient: $ref: '#/components/schemas/recipient' primary_line: $ref: '#/components/schemas/primary_line' secondary_line: $ref: '#/components/schemas/secondary_line' failure_status_code: type: integer enum: - 401 - 403 - 404 - 413 - 422 - 429 - 500 description: "A conventional HTTP status code:\n * `401` - Authorization error with your API key or account\n * `403` - Forbidden error with your API key or account\n * `404` - The requested item does not exist\n * `413` - Payload too large\n * `422` - The query or body parameters did not pass validation\n * `429` - Too many requests have been sent with an API key in a given amount of time\n * `500` - An internal server error occurred, please contact support@lob.com\n" primary_line_us: type: string description: 'The primary delivery line (usually the street address) of the address. Combination of the following applicable `components`: * `primary_number` * `street_predirection` * `street_name` * `street_suffix` * `street_postdirection` * `secondary_designator` * `secondary_number` * `pmb_designator` * `pmb_number` ' maxLength: 200 primary_number: type: string description: The numeric or alphanumeric part of an address preceding the street name. Often the house, building, or PO Box number. postal_code: type: string description: The postal code. maxLength: 12 zip_code: type: string pattern: ^\d{5}((-)?\d{4})?$ city: allOf: - $ref: '#/components/schemas/city_no_description' - type: string description: The name of the city. us_components: type: object description: A nested object containing a breakdown of each component of an address. required: - primary_number - street_predirection - street_name - street_suffix - street_postdirection - secondary_designator - secondary_number - pmb_designator - pmb_number - extra_secondary_designator - extra_secondary_number - city - state - zip_code - zip_code_plus_4 - zip_code_type - delivery_point_barcode - address_type - record_type - default_building_address - county - county_fips - carrier_route - carrier_route_type - po_box_only_flag properties: primary_number: $ref: '#/components/schemas/primary_number' street_predirection: type: string enum: - N - S - E - W - NE - SW - SE - NW - '' description: 'Geographic direction preceding a street name (`N`, `S`, `E`, `W`, `NE`, `SW`, `SE`, `NW`). ' street_name: $ref: '#/components/schemas/street_name' street_suffix: type: string description: 'The standard USPS abbreviation for the street suffix (`ST`, `AVE`, `BLVD`, etc). ' street_postdirection: type: string enum: - N - S - E - W - NE - SW - SE - NW - '' description: 'Geographic direction following a street name (`N`, `S`, `E`, `W`, `NE`, `SW`, `SE`, `NW`). ' secondary_designator: type: string description: 'The standard USPS abbreviation describing the `components[secondary_number]` (`STE`, `APT`, `BLDG`, etc). ' secondary_number: type: string description: 'Number of the apartment/unit/etc. ' pmb_designator: type: string description: 'Designator of a CMRA-authorized private mailbox. ' pmb_number: type: string description: 'Number of a CMRA-authorized private mailbox. ' extra_secondary_designator: type: string description: 'An extra (often unnecessary) secondary designator provided with the input address. ' extra_secondary_number: type: string description: 'An extra (often unnecessary) secondary number provided with the input address. ' city: $ref: '#/components/schemas/city' state: $ref: '#/components/schemas/state' zip_code: type: string description: The 5-digit ZIP code pattern: ^\d{5}$ zip_code_plus_4: allOf: - description: The 4-digit ZIP add-on code - $ref: '#/components/schemas/zip_code_plus_4' zip_code_type: $ref: '#/components/schemas/zip_code_type' delivery_point_barcode: type: string description: 'A 12-digit identifier that uniquely identifies a delivery point (location where mail can be sent and received). It consists of the 5-digit ZIP code (`zip_code`), 4-digit ZIP+4 add-on (`zip_code_plus_4`), 2-digit delivery point, and 1-digit delivery point check digit. ' address_type: type: string enum: - residential - commercial - '' description: 'Uses USPS''s Residential Delivery Indicator (RDI) to identify whether an address is classified as residential or business. Possible values are: * `residential` The address is residential or a PO Box. * `commercial` The address is commercial. * `''''` Not enough information provided to be determined. ' record_type: type: string enum: - street - highrise - firm - po_box - rural_route - general_delivery - '' description: 'A description of the type of address. Populated if a DPV match is made (`deliverability_analysis[dpv_confirmation]` is `Y`, `S`, or `D`). For more detailed information about each record type, see [US Verification Details](#tag/US-Verification-Types). ' default_building_address: type: boolean description: 'Designates whether or not the address is the default address for a building containing multiple delivery points. ' county: $ref: '#/components/schemas/county' county_fips: $ref: '#/components/schemas/county_fips' carrier_route: type: string description: 'A 4-character code assigned to a mail delivery route within a ZIP code. ' carrier_route_type: type: string enum: - city_delivery - rural_route - highway_contract - po_box - general_delivery description: 'The type of `components[carrier_route]`. For more detailed information about each carrier route type, see [US Verification Details](#tag/US-Verification-Types). ' po_box_only_flag: type: string enum: - Y - N - '' description: 'Indicates the mailing facility for an address only supports PO Box deliveries and other forms of mail delivery are not available. ' latitude: type: number format: float description: 'A positive or negative decimal indicating the geographic latitude of the address, specifying the north-to-south position of a location. This should be used with `longitude` to pinpoint locations on a map. Will not be returned for undeliverable addresses or military addresses (state is `AA`, `AE`, or `AP`). ' nullable: true longitude: type: number format: float description: 'A positive or negative decimal indicating the geographic longitude of the address, specifying the north-to-south position of a location. This should be used with `latitude` to pinpoint locations on a map. Will not be returned for undeliverable addresses or military addresses (state is `AA`, `AE`, or `AP`). ' nullable: true recipient: type: string description: The intended recipient, typically a person's or firm's name. nullable: true maxLength: 500 street_name: type: string description: The name of the street. us_verification: type: object properties: id: $ref: '#/components/schemas/us_ver_id' recipient: $ref: '#/components/schemas/recipient' primary_line: $ref: '#/components/schemas/primary_line_us' secondary_line: $ref: '#/components/schemas/secondary_line' urbanization: $ref: '#/components/schemas/urbanization' last_line: type: string description: 'Combination of the following applicable `components`: * City (`city`) * State (`state`) * ZIP code (`zip_code`) * ZIP+4 (`zip_code_plus_4`) ' deliverability: type: string enum: - deliverable - deliverable_unnecessary_unit - deliverable_incorrect_unit - deliverable_missing_unit - undeliverable description: 'Summarizes the deliverability of the `us_verification` object. For full details, see the `deliverability_analysis` field. Possible values are: * `deliverable` The address is deliverable by the USPS. * `deliverable_unnecessary_unit` The address is deliverable, but the secondary unit information is unnecessary. * `deliverable_incorrect_unit` The address is deliverable to the building''s default address but the secondary unit provided may not exist. There is a chance the mail will not reach the intended recipient. * `deliverable_missing_unit` The address is deliverable to the building''s default address but is missing secondary unit information. There is a chance the mail will not reach the intended recipient. * `undeliverable` The address is not deliverable according to the USPS. ' valid_address: type: boolean enum: - true - false description: 'This field indicates whether an address was found in a more comprehensive address dataset that includes sources from the USPS, open source mapping data, and our proprietary mail delivery data. This field can be interpreted as a representation of whether an address is a real location or not. Additionally a valid address may contradict the deliverability field since an address can be a real valid location but the USPS may not deliver to that address. ' components: $ref: '#/components/schemas/us_components' deliverability_analysis: $ref: '#/components/schemas/deliverability_analysis' lob_confidence_score: $ref: '#/components/schemas/lob_confidence_score' object: type: string description: Value is resource type. enum: - us_verification default: us_verification zip_code_type: type: string enum: - standard - po_box - unique - military - '' description: 'A description of the ZIP code type. For more detailed information about each ZIP code type, see [US Verification Details](#tag/US-Verification-Types). ' intl_verifications_payload: type: object required: - addresses properties: addresses: type: array minItems: 1 maxItems: 20 items: $ref: '#/components/schemas/multiple_components_intl' headers: ratelimit-reset: description: 'The time at which the rate limit window resets in UTC epoch seconds ' schema: type: integer example: 1528749846 ratelimit-remaining: description: The number of requests remaining in the current window. schema: type: integer example: 100 ratelimit-limit: description: The rate limit for a given endpoint. schema: type: integer example: 150 responses: bulk_us_verifications: description: Returns a list of US verification objects. headers: ratelimit-limit: $ref: '#/components/headers/ratelimit-limit' ratelimit-remaining: $ref: '#/components/headers/ratelimit-remaining' ratelimit-reset: $ref: '#/components/headers/ratelimit-reset' content: application/json: schema: $ref: '#/components/schemas/us_verifications' example: addresses: - id: us_ver_c7cb63d68f8d6 recipient: LOB.COM primary_line: 210 KING ST secondary_line: '' urbanization: '' last_line: SAN FRANCISCO CA 94107-1702 deliverability: deliverable valid_address: true components: primary_number: '210' street_predirection: '' street_name: KING street_suffix: ST street_postdirection: '' secondary_designator: '' secondary_number: '' pmb_designator: '' pmb_number: '' extra_secondary_designator: '' extra_secondary_number: '' city: SAN FRANCISCO state: CA zip_code: '94107' zip_code_plus_4: '1702' zip_code_type: standard delivery_point_barcode: '941071728506' address_type: commercial record_type: street default_building_address: false county: SAN FRANCISCO county_fips: '06075' carrier_route: C032 carrier_route_type: city_delivery po_box_only_flag: N latitude: 37.77597542841264 longitude: -122.3929557343685 deliverability_analysis: dpv_confirmation: Y dpv_cmra: N dpv_vacant: N dpv_active: Y dpv_inactive_reason: '' dpv_throwback: N dpv_non_delivery_day_flag: N dpv_non_delivery_day_values: '' dpv_no_secure_location: N dpv_door_not_accessible: N dpv_footnotes: - AA - BB ews_match: false lacs_indicator: '' lacs_return_code: '' suite_return_code: '' lob_confidence_score: score: 100 level: high object: us_verification errors: false bulk_intl_verifications: description: Returns an array of international verification objects. headers: ratelimit-limit: $ref: '#/components/headers/ratelimit-limit' ratelimit-remaining: $ref: '#/components/headers/ratelimit-remaining' ratelimit-reset: $ref: '#/components/headers/ratelimit-reset' content: application/json: schema: $ref: '#/components/schemas/intl_verifications' example: addresses: - id: intl_ver_c7cb63d68f8d6 recipient: null primary_line: 370 WATER ST secondary_line: '' last_line: SUMMERSIDE PE C1N 1C4 country: CA coverage: SUBBUILDING deliverability: deliverable status: LV4 components: primary_number: '370' street_name: WATER ST city: SUMMERSIDE state: PE postal_code: C1N 1C4 object: intl_verification errors: false intl_verifications_error: description: Error content: application/json: schema: $ref: '#/components/schemas/error' example: error: code: invalid message: country is required status_code: 422 us_verifications_error: description: Error content: application/json: schema: $ref: '#/components/schemas/error' example: error: code: invalid message: primary_line is required or address is required status_code: 422 securitySchemes: basicAuth: type: http scheme: basic x-webhooks: events: post: summary: Events description: Information about an event operationId: event tags: - Events responses: '200': $ref: '#/components/responses/events' tracking_events: post: summary: Tracking Events description: Information about tracking events operationId: tracking_event tags: - Tracking Events responses: '200': $ref: '#/components/responses/tracking_events' x-tagGroups: - name: Overview tags: - Introduction - Authentication - Getting Started - SDKs and Tools - name: Address Book tags: - Addresses - National Change of Address - name: Print and Mail API tags: - Postcards - Self Mailers - Letters - Checks - Snap Packs - Booklets - Bank Accounts - Templates - Template Versions - Template Design - Manage Mail - name: Campaigns API (BETA) tags: - Campaigns - Creatives - Uploads - name: Informed Delivery Campaign API tags: - Informed Delivery Campaign - name: Address Verification API tags: - US Verifications - US Verification Types - US Autocompletions - Reverse Geocode Lookups - Zip Lookups - Identity Validation - Intl Verifications - name: Webhooks tags: - Webhooks - Events - Tracking Events - name: Special Features tags: - Billing Groups - Buckslips - Buckslip Orders - Cards - Card Orders - QR Codes - URL Shortener - name: Appendix tags: - Beta Program - Errors - Rate Limiting - Requests and Responses - Test and Live Environments - Versioning and Changelog