MailOdds Email Validation API - SDK and CLI
Project description
mailodds
MailOdds provides email validation services to help maintain clean email lists and improve deliverability. The API performs multiple validation checks including format verification, domain validation, MX record checking, and disposable email detection.
Authentication
All API requests require authentication using a Bearer token. Include your API key in the Authorization header:
Authorization: Bearer YOUR_API_KEY
API keys can be created in the MailOdds dashboard.
Rate Limits
Rate limits vary by plan:
- Free: 10 requests/minute
- Starter: 60 requests/minute
- Pro: 300 requests/minute
- Business: 1000 requests/minute
- Enterprise: Custom limits
Response Format
All responses include:
schema_version: API schema version (currently "1.0")request_id: Unique request identifier for debugging
Error responses include:
error: Machine-readable error codemessage: Human-readable error description
This Python package is automatically generated by the OpenAPI Generator project:
- API version: 1.0.0
- Package version: 0.1.0
- Generator version: 7.19.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen For more information, please visit https://mailodds.com/contact
Requirements.
Python 3.9+
Installation & Usage
pip install
If the python package is hosted on a repository, you can install directly using:
pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
(you may need to run pip with root permission: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git)
Then import the package:
import mailodds
Setuptools
Install via Setuptools.
python setup.py install --user
(or sudo python setup.py install to install the package for all users)
Then import the package:
import mailodds
Tests
Execute pytest to run the tests.
Getting Started
Please follow the installation procedure and then run the following:
import mailodds
from mailodds.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.mailodds.com/v1
# See configuration.py for a list of all supported configuration parameters.
configuration = mailodds.Configuration(
host = "https://api.mailodds.com/v1"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure Bearer authorization: BearerAuth
configuration = mailodds.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with mailodds.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = mailodds.BulkValidationApi(api_client)
job_id = 'job_id_example' # str |
try:
# Cancel a job
api_response = api_instance.cancel_job(job_id)
print("The response of BulkValidationApi->cancel_job:\n")
pprint(api_response)
except ApiException as e:
print("Exception when calling BulkValidationApi->cancel_job: %s\n" % e)
Documentation for API Endpoints
All URIs are relative to https://api.mailodds.com/v1
| Class | Method | HTTP request | Description |
|---|---|---|---|
| BulkValidationApi | cancel_job | POST /v1/jobs/{job_id}/cancel | Cancel a job |
| BulkValidationApi | create_job | POST /v1/jobs | Create bulk validation job (JSON) |
| BulkValidationApi | create_job_from_s3 | POST /v1/jobs/upload/s3 | Create job from S3 upload |
| BulkValidationApi | create_job_upload | POST /v1/jobs/upload | Create bulk validation job (file upload) |
| BulkValidationApi | delete_job | DELETE /v1/jobs/{job_id} | Delete a job |
| BulkValidationApi | get_job | GET /v1/jobs/{job_id} | Get job status |
| BulkValidationApi | get_job_results | GET /v1/jobs/{job_id}/results | Get job results |
| BulkValidationApi | get_presigned_upload | POST /v1/jobs/upload/presigned | Get S3 presigned upload URL |
| BulkValidationApi | list_jobs | GET /v1/jobs | List validation jobs |
| EmailValidationApi | validate_email | POST /v1/validate | Validate single email |
| SuppressionListsApi | add_suppression | POST /v1/suppression | Add suppression entries |
| SuppressionListsApi | check_suppression | POST /v1/suppression/check | Check suppression status |
| SuppressionListsApi | get_suppression_stats | GET /v1/suppression/stats | Get suppression statistics |
| SuppressionListsApi | list_suppression | GET /v1/suppression | List suppression entries |
| SuppressionListsApi | remove_suppression | DELETE /v1/suppression | Remove suppression entries |
| SystemApi | get_telemetry_summary | GET /v1/telemetry/summary | Get validation telemetry |
| SystemApi | health_check | GET /health | Health check |
| ValidationPoliciesApi | add_policy_rule | POST /v1/policies/{policy_id}/rules | Add rule to policy |
| ValidationPoliciesApi | create_policy | POST /v1/policies | Create policy |
| ValidationPoliciesApi | create_policy_from_preset | POST /v1/policies/from-preset | Create policy from preset |
| ValidationPoliciesApi | delete_policy | DELETE /v1/policies/{policy_id} | Delete policy |
| ValidationPoliciesApi | delete_policy_rule | DELETE /v1/policies/{policy_id}/rules/{rule_id} | Delete rule |
| ValidationPoliciesApi | get_policy | GET /v1/policies/{policy_id} | Get policy |
| ValidationPoliciesApi | get_policy_presets | GET /v1/policies/presets | Get policy presets |
| ValidationPoliciesApi | list_policies | GET /v1/policies | List policies |
| ValidationPoliciesApi | test_policy | POST /v1/policies/test | Test policy evaluation |
| ValidationPoliciesApi | update_policy | PUT /v1/policies/{policy_id} | Update policy |
Documentation For Models
- AddPolicyRule201Response
- AddSuppressionRequest
- AddSuppressionRequestEntriesInner
- AddSuppressionResponse
- CheckSuppressionRequest
- CreateJobFromS3Request
- CreateJobRequest
- CreatePolicyFromPresetRequest
- CreatePolicyRequest
- DeleteJob200Response
- DeletePolicy200Response
- DeletePolicyRule200Response
- ErrorResponse
- GetPresignedUploadRequest
- HealthCheck200Response
- Job
- JobListResponse
- JobResponse
- JobSummary
- Pagination
- Policy
- PolicyListResponse
- PolicyListResponseLimits
- PolicyPresetsResponse
- PolicyPresetsResponsePresetsInner
- PolicyResponse
- PolicyRule
- PolicyRuleAction
- PolicyTestResponse
- PresignedUploadResponse
- PresignedUploadResponseUpload
- RemoveSuppression200Response
- RemoveSuppressionRequest
- ResultsResponse
- SuppressionCheckResponse
- SuppressionEntry
- SuppressionListResponse
- SuppressionStatsResponse
- SuppressionStatsResponseByType
- TelemetrySummary
- TelemetrySummaryRates
- TelemetrySummaryTopDomainsInner
- TelemetrySummaryTopReasonsInner
- TelemetrySummaryTotals
- TestPolicyRequest
- TestPolicyRequestTestResult
- UpdatePolicyRequest
- ValidateRequest
- ValidationResponse
- ValidationResponseSuppressionMatch
- ValidationResult
Documentation For Authorization
Authentication schemes defined for the API:
BearerAuth
- Type: Bearer authentication
Author
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mailodds-0.1.0.tar.gz.
File metadata
- Download URL: mailodds-0.1.0.tar.gz
- Upload date:
- Size: 60.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
68d69b22e81c7c0f06ad19271c8c3020c2ab7236d4b08293f7245f060150af65
|
|
| MD5 |
ef72c1bf6775f0d56bc0e328930bea5a
|
|
| BLAKE2b-256 |
150b35e9aa69bd037ecc9f8c10ad37cea7ffad244b9bfabf76abdd0256bdecbb
|
File details
Details for the file mailodds-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mailodds-0.1.0-py3-none-any.whl
- Upload date:
- Size: 139.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a63b368ffdda7b3d495607514231602cf4249288e0db91d8650f8939efd31c8e
|
|
| MD5 |
23d96a1d38a7596dcdfb0a794b97b26c
|
|
| BLAKE2b-256 |
1ddd4153d74c71fca28af4e227a6712f1933be748931a556b36ab192678cac1a
|