Skip to main content

parlo-sdk

The Parlo API sends transactional email and manages the sending domains it authenticates from. Marketing campaigns (audiences, templates, broadcasts) are designed and sent from the Parlo dashboard, not this API — the API is transactional-only at launch.

All requests authenticate with a company API key as an HTTP bearer token: Authorization: Bearer parlo_live_xxx. Errors return a JSON body of the shape { \"message\": string, \"code\": string }.

This Python package is automatically generated by the OpenAPI Generator project:

  • API version: 1.1.0
  • Package version: 1.0.0
  • Generator version: 7.24.0-SNAPSHOT
  • Build package: org.openapitools.codegen.languages.PythonClientCodegen For more information, please visit https://getparlo.io

Requirements.

Python 3.10+

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 parlo_sdk

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 parlo_sdk

Tests

Execute pytest to run the tests.

Getting Started

Please follow the installation procedure and then run the following:

import parlo_sdk
from parlo_sdk.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://api.getparlo.io/v1
# See configuration.py for a list of all supported configuration parameters.
configuration = parlo_sdk.Configuration(
    host = "https://api.getparlo.io/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 = parlo_sdk.Configuration(
    access_token = os.environ["BEARER_TOKEN"]
)


# Enter a context with an instance of the API client
with parlo_sdk.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = parlo_sdk.DomainsApi(api_client)
    create_domain_request = {"name":"yourdomain.com"} # CreateDomainRequest | 

    try:
        # Add a sending domain
        api_response = api_instance.create_domain(create_domain_request)
        print("The response of DomainsApi->create_domain:\n")
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling DomainsApi->create_domain: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to https://api.getparlo.io/v1

Class Method HTTP request Description
DomainsApi create_domain POST /domains Add a sending domain
DomainsApi delete_domain DELETE /domains/{id} Remove a domain
DomainsApi get_domain GET /domains/{id} Retrieve a domain
DomainsApi list_domains GET /domains List sending domains
DomainsApi verify_domain POST /domains/{id}/verify Re-check a domain's DNS
EmailsApi get_email GET /emails/{id} Retrieve an email
EmailsApi list_emails GET /emails List transactional emails
EmailsApi send_email POST /emails Send a transactional email

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

bearerAuth

  • Type: Bearer authentication

Author

Release files for parlo-sdk 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for parlo-sdk 1.1.0
File Size Uploaded
parlo_sdk-1.1.0.tar.gz 38.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for parlo-sdk 1.1.0
File Interpreter ABI Platform
parlo_sdk-1.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 103.3 kB

Release files / parlo_sdk-1.1.0.tar.gz

Download URL parlo_sdk-1.1.0.tar.gz
Size 38.7 kB
Tags Source
SHA-256 checksum
How to use checksums
97c47a71772c38cf5ee815a87216f9d260acbce72214e41a0014c29d77163cbe
BLAKE2b-256 checksum
How to use checksums
c5b4ee8a3ce7ae2036da52489d53f66f8bf601a4aa004965a403d2b6b2f3e100
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Release files / parlo_sdk-1.1.0-py3-none-any.whl

Download URL parlo_sdk-1.1.0-py3-none-any.whl
Size 64.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cb23b733b3086b07ed2b57996d7b7a559d2202fc8626efeb7dbbae549ffc8609
BLAKE2b-256 checksum
How to use checksums
aa0d245ad3121d7daa2f0d7841cd32cbf079d0a0576a9b9721c6b6da01694908
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page