Skip to main content

Prerequisites

Before you can use the SendLayer API, you’ll need to authorize your sending domain. This is an important step as it proves domain ownership and improves email deliverability. After authorizing your domain, you’ll need to create/retrieve your API key. An API key is used to authenticate API requests.

Installation

Run the command below to install the SendLayer SDK for your preferred programming language:

Sending an email

Once, you’ve installed the SDK, you can import it directly into your codebase and interact with the API. Here’s an example of how to send an email using the SendLayer API:
If you’re using the cURL option, make sure to replace <apiKey> with your SendLayer API key in the request header.
SendLayer API also allows you to send emails to multiple recipients, include BCC and CC addresses, attach files to your email messages.
See our guide to learn more about sending emails using SendLayer API.

SDK reference

SendLayer offers SDK libraries for popular programming languages that simplify the process of integrating with the API. We currently offer/support the following SDKs:

Node.js

Learn how to use the SendLayer’s Node.js SDK

Python

Learn how to use SendLayer’s Python SDK.

PHP

Learn how to use SendLayer’s PHP SDK.

Ruby

Learn how to use SendLayer’s Ruby SDK.

Go

Learn how to use SendLayer’s Go SDK.