The single source of truth for the Truelist email validation API.
This repository contains the OpenAPI 3.1 specification that describes every endpoint, schema, and error response. Use it to generate client SDKs, render interactive documentation, or validate API changes in CI.
| Resource | URL |
|---|---|
| API Docs | truelist.io/docs/api |
| Interactive Docs | Swagger UI |
| Base URL | https://api.truelist.io |
| Method | Path | Description |
|---|---|---|
POST |
/api/v1/verify_inline?email={email} |
Inline email validation (single, synchronous) |
POST |
/api/v1/verify |
Batch email verification (list upload, async) |
GET |
/me |
Account info, API keys, and plan details |
All endpoints use Bearer token authentication:
Authorization: Bearer YOUR_API_KEY
email_state |
Meaning |
|---|---|
ok |
The email address is deliverable |
email_invalid |
The email address is not deliverable |
risky |
The address may be deliverable but carries risk |
unknown |
Deliverability could not be determined |
accept_all |
The mail server accepts all addresses |
email_sub_state |
Meaning |
|---|---|
email_ok |
Passed all checks |
is_disposable |
Disposable / temporary email provider |
is_role |
Role-based address (e.g. info@, admin@) |
unknown_error |
Could not be determined |
failed_smtp_check |
SMTP check failed |
Render the spec with Redocly or Swagger UI.
Redocly (recommended):
npx @redocly/cli preview-docs openapi.yamlSwagger UI via Docker:
docker run -p 8080:8080 \
-e SWAGGER_JSON=/spec/openapi.yaml \
-v "$(pwd):/spec" \
swaggerapi/swagger-uiThen open http://localhost:8080.
# With Redocly CLI
npx @redocly/cli lint openapi.yaml
# With Spectral
npx @stoplight/spectral-cli lint openapi.yamlBoth linters are run automatically in CI on every push (see .github/workflows/validate.yml).
Use OpenAPI Generator to produce typed clients in any language:
# TypeScript (fetch)
npx @openapitools/openapi-generator-cli generate \
-i openapi.yaml \
-g typescript-fetch \
-o clients/typescript
# Python
npx @openapitools/openapi-generator-cli generate \
-i openapi.yaml \
-g python \
-o clients/python
# Ruby
npx @openapitools/openapi-generator-cli generate \
-i openapi.yaml \
-g ruby \
-o clients/rubySee the full list of generators at openapi-generator.tech/docs/generators.
The examples/ directory contains ready-to-use samples:
curl.sh— curl commands for every endpointpostman.json— Postman collection you can import directly
truelist-openapi/
├── openapi.yaml # OpenAPI 3.1 spec (source of truth)
├── openapi.json # JSON version of the spec
├── README.md
├── LICENSE
├── .gitignore
├── examples/
│ ├── curl.sh
│ └── postman.json
└── .github/
└── workflows/
└── validate.yml # CI: lint the spec on every push
This specification is released under the MIT License.