# Onboarding

Adding the Sendlane channel requires you to add an API token and configure a custom integration for the site to which you're adding the channel.

### Video Guide

{% embed url="<https://www.loom.com/edit/c611c795a65740d885037e4ec196a1df>" %}

### Generating the API Access Token

It is recommended to generate a unique API access token for each integration, so you'll need to create an API token for Blotout for your account. This token will be used to authenticate API calls from Blotout to Sendlane.

To do this, log in to your Sendlane account and visit the [API page](https://app.sendlane.com/api). Here, you can create an API token by clicking on the **(+) API token** button. Enter any descriptive name (e.g., "Blotout") for the token, and Sendlane will generate a token for you. Be sure to copy and store this token for the marketing channel step later; this is the only opportunity to copy it after creating it.

<figure><img src="/files/QjZYkQmPNNruejGeNdU4" alt=""><figcaption></figcaption></figure>

### Creating an Integration Token for Your Site

An integration is specific to a shop or website — you'll need to create a Sendlane Custom Integration for your property for Blotout to be able to attribute events to that particular property. The token generated in this step will attribute events to the property attached to this specific integration.

To create a new Custom Integration, go to [the Integrations page](https://app.sendlane.com/integrations) and click the **Sendlane Custom Integration** box and select **Configure**. Afterwards, click the **"Create New Custom Integration" button and complete** the form. Click **Continue**.

<figure><img src="/files/5PPE3rdARV3VogckVlqQ" alt=""><figcaption></figcaption></figure>

After creating the integration, click the **gear icon** and copy the **Token** presented in the dialog.

<figure><img src="/files/ZN7pPs4AImWPeJjN7TIZ" alt=""><figcaption></figcaption></figure>

### Setting Access Tokens in the Channel Form

Once you have the two tokens, you can fill them out in the channel form and click **Save & Deploy**.

<figure><img src="/files/HCuE9CBo7oyQOdjhx2zb" alt=""><figcaption></figcaption></figure>

After setting up the two required tokens, you'll also need to set up custom events before Sendlane will accept them.

### Setting up Custom Event Names

Before Sendlane can receive events from Blotout, you will need to set up custom event names in your account that match the list below. Click the **globe button (WWW)** to open the Custom Events page and create custom events.

<figure><img src="/files/FqRsvjzDOgieEud52djy" alt=""><figcaption></figcaption></figure>

You will need to create each of the following events in order to start receiving them inside Sendlane:

* `page-view`
* `view-content`
* `add-to-cart`
* `initiate-checkout`
* `add-shipping-info`
* `add-payment-info`
* `purchase`
* `subscribe`
* `search`
* `lead`


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.edgetag.io/channels/sendlane/onboarding.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
