LettrLabs Public API Documentation.
LettrLabs Public API Documentation (1.0.0)
https://docs.lettrlabs.com/_mock/lettrlabs_api_reference/
https://app.lettrlabs.com/api/
- Mock server
https://docs.lettrlabs.com/_mock/lettrlabs_api_reference/v1/integration-orders
https://app.lettrlabs.com/api/v1/integration-orders
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
https://docs.lettrlabs.com/_mock/lettrlabs_api_reference/v1/integration-orders \
-H 'X-API-KEY: YOUR_API_KEY_HERE'{ "profile": { "id": 0, "aadId": "1cbad290-069a-4527-be23-a0c144b5302d", "email": "string", "firstName": "string", "lastName": "string", "company": "string", "created": "2019-08-24T14:15:22Z", "shouldProcessQrCodes": true }, "payload": [ { … } ], "errors": [ "string" ], "hasErrors": true, "warnings": [ "string" ], "hasWarnings": true, "metadata": { "property1": {}, "property2": {} } }
The recipient to add.
Mailpiece Return Address First Name. Use this to override the template's return address. If using the override, must provide full return address through endpoint.
Mailpiece Return Address Last Name. Use this to override the template's return address. If using the override, must provide full return address through endpoint.
Mailpiece Return Address Organization. Use this to override the template's return address. If using the override, must provide full return address through endpoint.
Mailpiece Return Address Line 1. Use this to override the template's return address. If using the override, must provide full return address through endpoint.
Mailpiece Return Address Line 2. Use this to override the template's return address. If using the override, must provide full return address through endpoint.
Mailpiece Return Address City. Use this to override the template's return address. If using the override, must provide full return address through endpoint.
Mailpiece Return Address State. Use this to override the template's return address. If using the override, must provide full return address through endpoint.
Mailpiece Return Address Zip Code. Use this to override the template's return address. If using the override, must provide full return address through endpoint.
Mailpiece QR Code URL. Use this to override the template's QR code and provide a unique QR URL per recipient.
- Mock server
https://docs.lettrlabs.com/_mock/lettrlabs_api_reference/v1/integration-orders/{id}/recipients
https://app.lettrlabs.com/api/v1/integration-orders/{id}/recipients
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'https://docs.lettrlabs.com/_mock/lettrlabs_api_reference/v1/integration-orders/{id}/recipients' \
-H 'Content-Type: application/json' \
-H 'X-API-KEY: YOUR_API_KEY_HERE' \
-d '{
"id": 0,
"firstName": "string",
"lastName": "string",
"toOrganization": "string",
"address1": "string",
"address2": "string",
"city": "string",
"state": "string",
"zipCode": "string",
"country": "string",
"custom1": "string",
"custom2": "string",
"custom3": "string",
"custom4": "string",
"custom5": "string",
"custom6": "string",
"salutation": "string",
"birthDay": "2019-08-24T14:15:22Z",
"anniversary": "2019-08-24T14:15:22Z",
"returnTitle": "string",
"returnFirstName": "string",
"returnLastName": "string",
"returnOrganization": "string",
"returnAddress1": "string",
"returnAddress2": "string",
"returnCity": "string",
"returnState": "string",
"returnZip": "string",
"qrUrl": "string",
"fullAddress": "string"
}'{ "profile": { "id": 0, "aadId": "1cbad290-069a-4527-be23-a0c144b5302d", "email": "string", "firstName": "string", "lastName": "string", "company": "string", "created": "2019-08-24T14:15:22Z", "shouldProcessQrCodes": true }, "payload": { "id": 0, "name": "string", "createdDate": "2019-08-24T14:15:22Z", "updatedDate": "2019-08-24T14:15:22Z", "postageType": "string", "integrationOrderStatus": "string" }, "errors": [ "string" ], "hasErrors": true, "warnings": [ "string" ], "hasWarnings": true, "metadata": { "property1": {}, "property2": {} } }
Filters to be used when finding recipients around the provided coordinates.
- Mock server
https://docs.lettrlabs.com/_mock/lettrlabs_api_reference/v1/integration-orders/{id:int}:mail-by-proximity
https://app.lettrlabs.com/api/v1/integration-orders/{id:int}:mail-by-proximity
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'https://docs.lettrlabs.com/_mock/lettrlabs_api_reference/v1/integration-orders/{id:int}:mail-by-proximity' \
-H 'Content-Type: application/json' \
-H 'X-API-KEY: YOUR_API_KEY_HERE' \
-d '{
"name": "string",
"ownerOrRenterFilter": 0,
"propertyTypeFilter": 0,
"houseHoldIncomeFilter": {
"min": 0,
"max": 0
},
"lengthOfResidenceFilter": {
"min": 0,
"max": 0
},
"yearBuiltFilter": {
"min": 0,
"max": 0
},
"addresses": [
{
"address1": "string",
"address2": "string",
"city": "string",
"state": "string",
"zip": "string",
"desiredCount": 0
}
],
"multiUse": true
}'{ "profile": { "id": 0, "aadId": "1cbad290-069a-4527-be23-a0c144b5302d", "email": "string", "firstName": "string", "lastName": "string", "company": "string", "created": "2019-08-24T14:15:22Z", "shouldProcessQrCodes": true }, "payload": { "id": 0, "name": "string", "createdDate": "2019-08-24T14:15:22Z", "updatedDate": "2019-08-24T14:15:22Z", "postageType": "string", "integrationOrderStatus": "string" }, "errors": [ "string" ], "hasErrors": true, "warnings": [ "string" ], "hasWarnings": true, "metadata": { "property1": {}, "property2": {} } }