Skip to main content
POST
/
sender
Create sender
curl --request POST \
  --url https://api.sendx.io/api/v1/rest/sender \
  --header 'Content-Type: application/json' \
  --header 'X-Team-ApiKey: <api-key>' \
  --data '
{
  "name": "John Smith",
  "email": "john@example.com"
}
'
import requests

url = "https://api.sendx.io/api/v1/rest/sender"

payload = {
"name": "John Smith",
"email": "john@example.com"
}
headers = {
"X-Team-ApiKey": "<api-key>",
"Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'POST',
headers: {'X-Team-ApiKey': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: 'John Smith', email: 'john@example.com'})
};

fetch('https://api.sendx.io/api/v1/rest/sender', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://api.sendx.io/api/v1/rest/sender",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'John Smith',
'email' => 'john@example.com'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Team-ApiKey: <api-key>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"strings"
"net/http"
"io"
)

func main() {

url := "https://api.sendx.io/api/v1/rest/sender"

payload := strings.NewReader("{\n \"name\": \"John Smith\",\n \"email\": \"john@example.com\"\n}")

req, _ := http.NewRequest("POST", url, payload)

req.Header.Add("X-Team-ApiKey", "<api-key>")
req.Header.Add("Content-Type", "application/json")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.post("https://api.sendx.io/api/v1/rest/sender")
.header("X-Team-ApiKey", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"John Smith\",\n \"email\": \"john@example.com\"\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.sendx.io/api/v1/rest/sender")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["X-Team-ApiKey"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"John Smith\",\n \"email\": \"john@example.com\"\n}"

response = http.request(request)
puts response.read_body
{
  "name": "John Smith",
  "email": "john@example.com"
}
🎯 Key Features:
  • Add new sender addresses
  • Verify domain ownership before adding senders
  • Configure sender names
📋 Verification Process for domain ownership:
  1. Create sender with name and email
  2. Verification email sent automatically
  3. Click verification link in email
  4. Sender marked as verified and ready to use
🔒 Domain Authentication: For better deliverability, authenticate your domain:
  • Add SPF records
  • Configure DKIM signing
  • Set up DMARC policy
  • Complete domain verification in SendX settings
💡 Best Practices:
  • Use real email addresses you have access to
  • Maintain consistent sender names for brand recognition
  • Regularly check and update inactive senders
  • Use role-based addresses sparingly (info@, support@)
⚡ Pro Tips:
  • Create department-specific senders (sales@, support@, newsletter@)
  • Personal senders often have better engagement
  • Test sender reputation regularly

Authorizations

X-Team-ApiKey
string
header
required

Team API key for authentication. Find your API key in SendX Settings → Team API Key.

Example:

X-Team-ApiKey: your_team_api_key_here

Body

application/json
name
string
required

Sender display name

Example:

"John Smith"

email
string<email>
required

Sender email address (must be verified)

Example:

"john@example.com"

Response

✅ Sender created successfully

id
string

Unique sender identifier with sender_ prefix

Pattern: ^sender_[a-zA-Z0-9]{22}$
Example:

"sender_4vK3WFhMgvOwUNyaL4QxCD"

name
string

Sender display name

Example:

"John Smith"

email
string<email>

Sender email address

Example:

"john@example.com"

isWhitelisted
boolean

Sender whitelist status

Example:

true