Developer Tooling

Official Client SDKs & Drop-In Libraries

Production-ready client libraries for TypeScript / Node.js, Python, Go, and PHP with built-in retries, typing, and zero runtime dependencies.

1. TypeScript / Node.js SDK

bash
npm install @bouncelayer/sdk
typescript
import { BounceLayer } from "@bouncelayer/sdk";

const client = new BounceLayer({
  apiKey: process.env.BOUNCELAYER_API_KEY!,
});

const result = await client.verify("alex@company.com");

if (result.isValid) {
  console.log("Safe to send! Confidence:", result.confidenceScore);
  console.log("SMTP Response:", result.smtpResponseCode); // 250 OK
} else {
  console.warn("Risky or invalid:", result.statusReason);
}

2. Python SDK

bash
pip install bouncelayer
python
from bouncelayer import BounceLayer

client = BounceLayer(api_key="bl_live_your_api_key_here")

result = client.verify("alex@company.com")

if result.is_valid:
    print(f"Deliverable mailbox: {result.confidence_score}% (250 OK)")
else:
    print(f"Drop lead: {result.status_reason}")

3. Go (Golang) SDK

bash
go get github.com/bouncelayer/bouncelayer-go
go
package main

import (
	"context"
	"fmt"
	"github.com/bouncelayer/bouncelayer-go"
)

func main() {
	client := bouncelayer.NewClient("bl_live_your_api_key_here")
	result, err := client.Verify(context.Background(), "alex@company.com")
	if err != nil {
		panic(err)
	}

	fmt.Printf("Status: %s, Valid: %t
", result.Status, result.IsValid)
}

4. PHP SDK (Composer)

bash
composer require bouncelayer/bouncelayer-php
php
<?php
require 'vendor/autoload.php';

use BounceLayer\Client;

$client = new Client(['api_key' => 'bl_live_your_api_key_here']);
$result = $client->verify('alex@company.com');

if ($result->isValid()) {
    echo "Deliverable! Score: " . $result->confidenceScore;
}