Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API 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.
openapi: 3.2.0
info:
title: Truelist.io API documentation Retrieving results API
description: 'Welcome to Truelist''s api!
To get started, generate an api key. You''ll use the API key in an `Authorization` header in every request.
A note about rate limits: Each endpoint has a rate limit. If you exceed the rate limit, you''ll get a `429` error. The rate limit is 10 requests per second. This rate limit is specifically for API calls. The email validation rate limit is different and is based on your plan.'
contact:
name: API Support
email: hello@truelist.io
version: 0.2.2
servers:
- url: https://api.truelist.io
tags:
- name: Retrieving results
description: Endpoints used to retrieve the results of a batch validation.
paths:
/api/v1/email_addresses:
get:
tags:
- Retrieving results
summary: Retrieve email validation results
parameters:
- name: batch_uuid
in: path
required: false
description: The UUID of the batch to get emails from
schema:
type: string
format: uuid
- name: email_state
in: path
required: false
description: Get emails with a particular email_state
schema:
type: string
enum:
- ok
- risky
- invalid
- unknown
- name: email_sub_state
in: path
required: false
description: Get emails with a particular email_sub_state
schema:
type: string
enum:
- email_ok
- accept_all
- is_disposable
- is_role
- failed_mx_check
- failed_smtp_check
- failed_no_mailbox
- failed_greylisted
- failed_syntax_check
- name: email_address
in: path
required: false
description: Search for a particular email address
schema:
type: string
format: email
- name: page
in: path
required: false
description: The page number to retrieve. If not specified, the first page will be returned.
schema:
type: integer
- name: per_page
in: path
required: false
description: The number of emails to return per page. If not specified, 25 will be returned. The maximum is 100.
schema:
type: integer
security:
- truelist_auth: []
responses:
'200':
description: A successful response
content:
application/json:
schema:
$ref: '#/components/schemas/email_addresses'
'401':
description: User could not be found
content:
application/json:
schema:
$ref: '#/components/schemas/error'
operationId: getApiV1EmailAddresses
x-operation-id-source: derived
components:
schemas:
email_addresses:
type: object
properties:
email_addresses:
type: array
items:
$ref: '#/components/schemas/email'
email:
type: object
properties:
address:
type: string
format: email
description: The email address
domain:
type: string
description: The email address domain
canonical:
type: string
description: The canonical (or local) part of the email address
mx_record:
type: string
description: The the mx record that was found and used for validation
email_state:
type: string
enum:
- ok
- email_invalid
- risky
- unknown
- accept_all
description: A simple state that shows the verification result.
email_sub_state:
type: string
enum:
- email_ok
- accept_all
- is_disposable
- is_role
- failed_mx_check
- failed_smtp_check
- failed_spam_trap
- failed_no_mailbox
- failed_greylisted
- failed_syntax_check
- unknown_error
description: More details about the email's validation status.
verified_at:
type: date-time
format: email
example: 2021-01-01 00:00:00+00:00
description: The time the email was verified. If the email already exists in your account and has been validated before, and the email has been checked within your revalidation period, the email will not be revalidated.
error:
type: object
properties:
error:
type: string
description: Gives information about what went wrong with the request.
securitySchemes:
truelist_auth:
type: apiKey
in: header
name: Authorization
description: The user's bearer token sent via an Authorization header