SendLetter Addresses API
Checking an address before you send to it.
Checking an address before you send to it.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/sendletter-eu:sendletter-eu-addresses-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: SendLetter Addresses API
version: 1.3.0
description: 'Post a real letter from one HTTP call. Text, a document or a finished PDF goes in with an address, a printed and franked letter comes out, and the status arrives on a webhook.
All money is integer cents in euro. Amounts named `priceCents` exclude VAT; `totalCents` includes it and is the amount charged.
**Test mode.** A key beginning `sk_test_` renders, prices and tracks a letter exactly as a live key would, walks it through submitted, printed, posted and delivered, and fires every callback along the way. Nothing is printed, nothing is posted, and the wallet is not touched. Build and demonstrate an integration entirely on a test key.
**Retries.** Send an `idempotencyKey` on anything that creates a letter. A repeated call with the same key returns the original letter instead of posting a second one.
**Tracing.** Every API response carries `X-Request-Id`; API error bodies repeat it as `requestId`. You may supply a safe `X-Request-Id` yourself. Quote that value to support for one request, and the letter `id` to follow an order across later payment and provider webhooks.
**Cost controls.** New keys start with `letters:read letters:quote letters:draft letters:send` and configurable per-letter, UTC-day and UTC-month ceilings. A refused ceiling moves no wallet money and posts nothing. Add `account:read` or `webhooks:write` only when needed.'
contact:
name: Twilper
url: https://sendletter.eu
license:
name: CC0-1.0
identifier: CC0-1.0
termsOfService: https://sendletter.eu/nl/terms
servers:
- url: https://sendletter.eu
security:
- bearerAuth: []
tags:
- name: Addresses
description: Checking an address before you send to it.
paths:
/api/v1/addresses/validate:
post:
operationId: validateAddress
tags:
- Addresses
summary: Check an address before sending to it
description: 'Answers 200 whether or not the address is usable: `valid: false` with the reasons is the successful outcome of asking. Use it to check a spreadsheet row or a customer record before committing to a send.'
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- address
properties:
address:
$ref: '#/components/schemas/Address'
responses:
'200':
description: The verdict, with the address as it would be printed
content:
application/json:
schema:
type: object
properties:
valid:
type: boolean
supported:
type: boolean
description: Whether we carry to that country at all.
normalised:
$ref: '#/components/schemas/Address'
lines:
type: array
items:
type: string
description: Exactly as they would appear in the envelope window.
problems:
type: array
items:
type: object
properties:
field:
type: string
code:
type: string
enum:
- required
- postal_format
- unsupported_country
- unprintable_characters
message:
type: string
maxSheets:
type: integer
description: How many sheets one envelope holds for this destination.
'401':
description: Missing, malformed or revoked API key
headers:
X-Request-Id:
description: Identifier for tracing this request in support and operational logs.
schema:
type: string
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: The credential does not carry the permission this operation requires.
headers:
X-Request-Id:
description: Identifier for tracing this request in support and operational logs.
schema:
type: string
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: Rate limited. Read Retry-After for the number of seconds to wait. Reads allow 300 and writes 120 requests per minute per key. Paid sends can also be refused when the credential's daily or monthly spending ceiling is reached.
headers:
X-Request-Id:
description: Identifier for tracing this request in support and operational logs.
schema:
type: string
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/api/v1/addresses:
get:
operationId: listAddresses
tags:
- Addresses
summary: The saved addresses on this account
description: Filter with `?kind=sender` or `?kind=recipient`. The default for each kind sorts first. Needs `account:read`.
parameters:
- name: kind
in: query
schema:
type: string
enum:
- sender
- recipient
responses:
'200':
description: The address book
content:
application/json:
schema:
type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/SavedAddress'
'401':
description: Missing, malformed or revoked API key
headers:
X-Request-Id:
description: Identifier for tracing this request in support and operational logs.
schema:
type: string
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: The credential does not carry the permission this operation requires.
headers:
X-Request-Id:
description: Identifier for tracing this request in support and operational logs.
schema:
type: string
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: Rate limited. Read Retry-After for the number of seconds to wait. Reads allow 300 and writes 120 requests per minute per key. Paid sends can also be refused when the credential's daily or monthly spending ceiling is reached.
headers:
X-Request-Id:
description: Identifier for tracing this request in support and operational logs.
schema:
type: string
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
post:
operationId: saveAddress
tags:
- Addresses
summary: Save an address for reuse
description: 'The address is normalised but not refused: a book entry is not a letter yet, and the send call validates properly. Setting `isDefault` clears the flag from the other addresses of that kind. Needs `letters:write`.'
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- label
- address
properties:
label:
type: string
maxLength: 60
kind:
type: string
enum:
- sender
- recipient
default: recipient
address:
$ref: '#/components/schemas/Address'
isDefault:
type: boolean
default: false
responses:
'201':
description: Saved
content:
application/json:
schema:
$ref: '#/components/schemas/SavedAddress'
'401':
description: Missing, malformed or revoked API key
headers:
X-Request-Id:
description: Identifier for tracing this request in support and operational logs.
schema:
type: string
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: The credential does not carry the permission this operation requires.
headers:
X-Request-Id:
description: Identifier for tracing this request in support and operational logs.
schema:
type: string
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: Rate limited. Read Retry-After for the number of seconds to wait. Reads allow 300 and writes 120 requests per minute per key. Paid sends can also be refused when the credential's daily or monthly spending ceiling is reached.
headers:
X-Request-Id:
description: Identifier for tracing this request in support and operational logs.
schema:
type: string
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/api/v1/addresses/{id}:
delete:
operationId: deleteAddress
tags:
- Addresses
summary: Remove a saved address
parameters:
- name: id
in: path
required: true
schema:
type: string
responses:
'200':
description: Removed
content:
application/json:
schema:
type: object
properties:
deleted:
type: boolean
id:
type: string
'401':
description: Missing, malformed or revoked API key
headers:
X-Request-Id:
description: Identifier for tracing this request in support and operational logs.
schema:
type: string
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: The credential does not carry the permission this operation requires.
headers:
X-Request-Id:
description: Identifier for tracing this request in support and operational logs.
schema:
type: string
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: No such address on this account
headers:
X-Request-Id:
description: Identifier for tracing this request in support and operational logs.
schema:
type: string
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: Rate limited. Read Retry-After for the number of seconds to wait. Reads allow 300 and writes 120 requests per minute per key. Paid sends can also be refused when the credential's daily or monthly spending ceiling is reached.
headers:
X-Request-Id:
description: Identifier for tracing this request in support and operational logs.
schema:
type: string
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
components:
schemas:
SavedAddress:
type: object
properties:
id:
type: string
label:
type: string
description: What the customer calls it.
kind:
type: string
enum:
- sender
- recipient
address:
$ref: '#/components/schemas/Address'
isDefault:
type: boolean
description: At most one per kind. Setting it clears the flag from the others.
usedAt:
type:
- string
- 'null'
format: date-time
Address:
type: object
required:
- name
- street
- number
- postalCode
- city
- country
properties:
company:
type: string
description: Optional. Printed above the name.
name:
type: string
street:
type: string
number:
type: string
description: House number, kept separate for countries that put it first.
addition:
type: string
description: Optional. Suffix, floor, or care-of line.
postalCode:
type: string
description: Normalised per country. 1234AB becomes 1234 AB.
city:
type: string
province:
type: string
description: Required in Italy and Spain, ignored elsewhere.
country:
type: string
minLength: 2
maxLength: 2
enum:
- NL
- DE
- BE
- AT
- FR
- ES
- IT
- LU
- GB
- IE
- PT
- CH
- PL
- DK
- SE
- 'NO'
- HU
- SI
- BG
- HR
- ZA
- FI
- EE
- LT
- TR
- MX
- KR
- RO
- SG
- CN
- CZ
- SK
- GR
- IS
- LV
- US
- CA
- JP
- BR
- IL
- IN
Error:
type: object
required:
- error
- requestId
properties:
error:
type: object
properties:
code:
type: string
message:
type: string
details: {}
requestId:
type: string
description: Also returned as X-Request-Id. Include it when reporting a failed API call.
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: 'An API key from the account area, sent as `Authorization: Bearer <key>`. Keys beginning `sk_test_` run the whole lifecycle without printing, posting or charging anything; keys beginning `sk_live_` post real letters and spend real credit.'