Skip to content

Commit

Permalink
safe to send
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielraeder committed Jun 12, 2024
1 parent 22dd5bb commit 9fe1b1a
Show file tree
Hide file tree
Showing 3 changed files with 78 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: Sync API definition to ReadMe
on:
push:
paths:
- 'openAPI/newapi.yml'
- 'openAPI/safeToSend.yml'

jobs:
sync-readme-api-definition:
Expand All @@ -19,4 +19,4 @@ jobs:
# Docs: https://docs.github.com/actions/using-workflows/workflow-syntax-for-github-actions#example-using-versioned-actions
uses: readmeio/rdme@v8
with:
rdme: openapi ./openAPI/newapi.yml --key=${{ secrets.README_API_KEY_2 }} --id=${{ secrets.DEFINITION_ID_NEW_API }}
rdme: openapi ./openAPI/safeToSend.yml --key=${{ secrets.README_API_KEY_2 }} --id=${{ secrets.SAFETOSEND_ID }}
6 changes: 3 additions & 3 deletions openAPI/newapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ paths:
summary: Intelligence
operationId: intelligence
tags:
- Intelligence API
- Demographics Append
description: >-
Retrieve information about an email address.
parameters:
Expand Down Expand Up @@ -239,9 +239,9 @@ paths:
summary: Bulk Intelligence
operationId: bulk-intelligence
tags:
- Intelligence API
- Demographics Append
description: >-
Submit a list of email addresses to Intelligence API.
Submit a list of email addresses.
parameters:
- in: query
name: api_key
Expand Down
73 changes: 73 additions & 0 deletions openAPI/safeToSend.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
openapi: 3.0.0
info:
title: SafeToSend Email Verification
description: >-
AtData API's help you improve the quality and depth of your customer data by
enabling you to quickly and securely verify and enhance email addresses.
version: 1.0.0
servers:
- url: https://api.atdata.com
paths:
/v5/ev:
get:
summary: SafeToSend
operationId: safe-to-send
tags:
- SafeToSend Email Verification
description: >-
The SafeToSend API verifies email addresses to filter out invalid and
high risk email addresses which results in higher open rates, clicks and
conversions.
parameters:
- in: query
name: api_key
required: true
schema:
type: string
description: Your AtData API key
- in: query
name: email
required: true
schema:
type: string
description: The email address to be validated
example: sales@atdata.com
responses:
'200':
description: SafeToSend email
content:
application/json:
schema:
type: object
properties:
safe_to_send:
type: object
properties:
domain_type:
type: string
description: An optional field, domain_type indicates the type of the domain including, “disposable”, “freeisp”, etc.
status_code:
type: integer
description: A range from 5-999 will always be returned and describes the detailed results of the validation within the "status" categorization.
address:
type: string
description: The email address you queried with in a standardized format.
role_account:
type: boolean
description: An optional field, role_account is returned if the email address is identified as the role related email account. A role account is an email address for a business job role or a group of people in a company such as sales, info, support, marketing or customer service (e.g. info@abc.com). Because role accounts are not intended for a single person, commercial emails are usually flagged as spam. For improved deliverability, we recommend only sending transactional emails to role accounts.
status:
type: string
description: A string describing the category of the email validation result.
email_corrections:
type: array
description: An optional field, if your API key is configured for corrections, and the input address has a syntax or spelling error, we may suggest one or more corrected forms of the address. The returned value is a JSON array of possible corrected email addresses.
engagement_score:
type: integer
description: Engagement Score -- which is free for SafeToSend subscription customers -- provides a simple 0-10 score representing the relative engagement behavior of a specific email address, helping marketers to better segment and qualify subscribers to improve deliverability, response, and core metrics.
example:
safe_to_send:
domain_type: biz
status_code: 50
address: sales@atdata.com
role_account: true
status: safetosend

0 comments on commit 9fe1b1a

Please sign in to comment.