Get Account
curl --request GET \
--url https://b2b.usetapp.xyz/v1/sender/me \
--header 'API-Key: <api-key>'import requests
url = "https://b2b.usetapp.xyz/v1/sender/me"
headers = {"API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'API-Key': '<api-key>'}};
fetch('https://b2b.usetapp.xyz/v1/sender/me', 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://b2b.usetapp.xyz/v1/sender/me",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"API-Key: <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"
"net/http"
"io"
)
func main() {
url := "https://b2b.usetapp.xyz/v1/sender/me"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://b2b.usetapp.xyz/v1/sender/me")
.header("API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://b2b.usetapp.xyz/v1/sender/me")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"status": "success",
"message": "Sender profile retrieved",
"data": {
"id": "e7c194a0-3c4c-48c4-8235-4ba7dc94fa40",
"email": "you@example.com",
"first_name": "Jane",
"last_name": "Doe",
"webhook_url": "https://your-app.com/hooks/rails",
"domain_whitelist": ["https://your-app.com"],
"is_active": true
}
}
API Reference
Get Account
Retrieve your sender profile — status, webhook URL, and domain whitelist.
GET
/
v1
/
sender
/
me
Get Account
curl --request GET \
--url https://b2b.usetapp.xyz/v1/sender/me \
--header 'API-Key: <api-key>'import requests
url = "https://b2b.usetapp.xyz/v1/sender/me"
headers = {"API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'API-Key': '<api-key>'}};
fetch('https://b2b.usetapp.xyz/v1/sender/me', 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://b2b.usetapp.xyz/v1/sender/me",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"API-Key: <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"
"net/http"
"io"
)
func main() {
url := "https://b2b.usetapp.xyz/v1/sender/me"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://b2b.usetapp.xyz/v1/sender/me")
.header("API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://b2b.usetapp.xyz/v1/sender/me")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"status": "success",
"message": "Sender profile retrieved",
"data": {
"id": "e7c194a0-3c4c-48c4-8235-4ba7dc94fa40",
"email": "you@example.com",
"first_name": "Jane",
"last_name": "Doe",
"webhook_url": "https://your-app.com/hooks/rails",
"domain_whitelist": ["https://your-app.com"],
"is_active": true
}
}
Returns the authenticated sender’s profile. Useful to confirm your API key,
active status, and current webhook configuration.
Header Parameters
string
required
Unique API key issued manually through Telegram.
Response
string
Response state (
success).object
{
"status": "success",
"message": "Sender profile retrieved",
"data": {
"id": "e7c194a0-3c4c-48c4-8235-4ba7dc94fa40",
"email": "you@example.com",
"first_name": "Jane",
"last_name": "Doe",
"webhook_url": "https://your-app.com/hooks/rails",
"domain_whitelist": ["https://your-app.com"],
"is_active": true
}
}