---
title: "How do I connect my application to Sendkit over SMTP or through the API?"
description: "Create your API key and find your credentials so that your application sends its emails through Sendkit."
url: https://help.sarbacane.com/en/articles/499-how-do-i-connect-my-application-to-sendkit-over-smtp-or-through-the-api
collection: "Transactional emails"
updated: 2026-12-01
language: en
alternates: [fr, es]
---

# How do I connect my application to Sendkit over SMTP or through the API?

Create your API key and find your credentials so that your application sends its emails through Sendkit.

Your application (website, software, CRM, printer) sends its emails through Sarbacane Sendkit, either over SMTP or through the API. In both cases, it needs an API key: you create it in two clicks on the API Keys page, and it works right away.

## Prerequisites

-   A Sendkit account with available credits.
    
-   A validated sending domain (see [How do I configure my domain name for Sendkit?](https://help.sarbacane.com/en/articles/391.md)).
    

## Steps

1.  In the left bar, click the **API Keys** icon (key).
    
2.  Click **Create an API key**. The key works as soon as it is created.
    
3.  To send over SMTP, enter in your application the identifier shown on the **User** line, and one of your API keys as the password.
    
    **Note**: the SMTP host and ports are shown on the same page, in the **SMTP credentials** block.
    
4.  To send through the API, click **API documentation**: it describes the calls and gives integration examples.
    

## Expected result

Your first emails appear in **Activities** (pie chart icon in the left bar), with their status.

## Troubleshooting

### My application receives a 401 error

Your Sendkit credit balance is at zero. To top it up, open your Sarbacane account: at the top right, click your avatar, then **Profile & preferences**. In the left menu, click **Home** to see your balance and the top-up options. If no top-up is offered, contact your account manager. Sending resumes once credits have been added.

### My sends are rejected with error 535 right after purchase

After you buy a license, your account is placed under moderation. Write to aide-sendkit@sarbacane.com to have it lifted.

### My email with an attachment does not appear in Activities

The request probably exceeds the 2 MB limit, encoded attachments included. In that case, the API still replies that the request was accepted (code 200), but the email is rejected before sending and leaves no trace. Reduce the size of the attachments, or replace them with a download link.

## Related articles

-   [How do I get started with Sendkit?](https://help.sarbacane.com/en/articles/392.md)
    
-   [How do I configure my domain name for Sendkit?](https://help.sarbacane.com/en/articles/391.md)
    
-   [How do I send an email with a Sendkit template via the API?](https://help.sarbacane.com/en/articles/438.md)
