Overview
SendLayer API provides a playground for developers to interact with various endpoints and send API requests. With the API, you can send emails, create and manage webhooks. Additionally, you can retrieve and monitor events related to your SendLayer account.Getting Started
Before you can use the SendLayer API, you’ll need to authorize your domain. Domain verification is an important steps and it helps 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: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.See our guide to learn more about sending emails using SendLayer API.