Sender IDs
The names your messages come from, with their registration on each network.
The sender ID object
| Field | Type | Description |
|---|---|---|
id | string | The sender ID's id. |
object | string | Always sender_id. |
name | string | What recipients see as the sender. |
status | string | approved: it can send. suspended: it was approved, and has been stopped by SemaLink or the networks. One of pending, approved, rejected, suspended, withdrawn. |
country | string or null | |
networks | array of objects | |
networks | string | |
networks | string | Its registration on that network: not_started, submitted, approved, rejected, suspended or released. |
networks | boolean | Whether the sender ID needs this network before it is approved. |
created_at | string |
Example
json
{
"id": "snd_1f0c3a4b5c6d4e7f8a9b0c1d2e3f4a5b",
"object": "sender_id",
"name": "GREENHILL",
"status": "approved",
"country": "KE",
"networks": [
{
"network": "safaricom",
"status": "approved",
"required": true
},
{
"network": "airtel_ke",
"status": "approved",
"required": true
}
],
"created_at": "2026-12-01T07:30:00.000Z"
}1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
List sender IDs
GET
/v1/sender-idsScope: sender_ids:readThe organisation's sender IDs, the newest first, each with its registration on each network.
Returns
200 OK The sender IDs. A list of sender ID objects.
Errors
Like any request, it can answer invalid_api_key key_revoked key_expired scope_missing ip_not_allowed browser_requests_not_allowed api_blocked account_suspended rate_limited internal_error request_timeout.
Request
bash
curl https://api.semalink.africa/v1/sender-ids \
-H "Authorization: Bearer $SEMALINK_API_KEY"1
2
2
js
const response = await fetch('https://api.semalink.africa/v1/sender-ids', {
headers: {
Authorization: `Bearer ${process.env.SEMALINK_API_KEY}`,
},
});
const page = await response.json();
console.log(response.status, page);1
2
3
4
5
6
7
8
2
3
4
5
6
7
8
python
import os
import requests
response = requests.get(
"https://api.semalink.africa/v1/sender-ids",
headers={
"Authorization": f"Bearer {os.environ['SEMALINK_API_KEY']}",
},
timeout=30,
)
page = response.json()
print(response.status_code, page)1
2
3
4
5
6
7
8
9
10
11
12
13
14
2
3
4
5
6
7
8
9
10
11
12
13
14
php
<?php
$ch = curl_init('https://api.semalink.africa/v1/sender-ids');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('SEMALINK_API_KEY'),
],
]);
$page = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
print_r($page);1
2
3
4
5
6
7
8
9
10
11
12
13
14
2
3
4
5
6
7
8
9
10
11
12
13
14
Response
json
{
"object": "list",
"data": [
{
"id": "snd_1f0c3a4b5c6d4e7f8a9b0c1d2e3f4a5b",
"object": "sender_id",
"name": "GREENHILL",
"status": "approved",
"country": "KE",
"networks": [
{
"network": "safaricom",
"status": "approved",
"required": true
},
{
"network": "airtel_ke",
"status": "approved",
"required": true
}
],
"created_at": "2026-12-01T07:30:00.000Z"
}
],
"has_more": false,
"next_cursor": null
}1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
json
{
"error": {
"type": "authentication_error",
"code": "invalid_api_key",
"message": "This API key isn't one we know. Check it was copied whole, or make a new one in Developer > API keys.",
"doc_url": "https://docs.semalink.africa/errors#invalid_api_key",
"request_id": "req_5f1d0c2e8a9b4c3d9e7f6a5b4c3d2e1f"
}
}1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
json
{
"error": {
"type": "permission_error",
"code": "scope_missing",
"message": "This API key doesn't have the sender_ids:read scope this request needs.",
"doc_url": "https://docs.semalink.africa/errors#scope_missing",
"request_id": "req_5f1d0c2e8a9b4c3d9e7f6a5b4c3d2e1f"
}
}1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9