SenderIds
Marsol API provides robust functionality for managing Sender IDs. A Sender ID is a unique identifier used to indicate the sender of an SMS message. This feature is particularly useful for branding purposes, as it allows recipients to easily recognize the sender of the message.
GET /public/senderIds HTTP/1.1
Host: api.marsol.ly
x-auth-token: YOUR_API_KEY
Accept: */*
[
{
"id": "text",
"name": "text",
"private": true,
"createdAt": "2025-12-06T02:49:25.480Z",
"available": true,
"operationPreference": 1,
"carrierPreference": [
"text"
],
"isDefault": true
}
]Endpoint: /public/senderIds
Method: GET
This endpoint retrieves a list of all sender IDs available to the user.
Request Parameters: None
GET /public/senderIds HTTP/1.1
Host: api.marsol.ly
x-auth-token: your_api_token_here
Content-Type: application/jsonSecurity: Requires authentication token (x-auth-token).
Response:
id(string): The uniqeu identifier of the sender.name(string): The name of the sender.private(boolean): Indicates if the sender is available for public use or available for specific accounts.createdAt(string, date-time): The timestamp when the sender was created.available(boolean): Indicates if the sender is available or out of service.operationPreference(number): Refers to the types of operations a virtual number supports, which can be:2forSMS,4forflash calls, and8forvoice messages. Note: A combination of these values indicates support for multiple operations. For example,6(2+4) means the virtual number supportsSMSandflash call, while14(2+4+8) meansSMS,flash call, andvoice callare all supported.carrierPreference(array, array of strings): The supported networks of which the sender will be communicating with (LIBYANA, ALMADAR, null) with null indicating that it can communicate with both.isDefault(boolean): Indicates if the sender is the default sender for the account.
[
{
"id": "string",
"name": "string",
"private": true,
"createdAt": "2024-08-12T12:11:46.222Z",
"available": true,
"operationPreference": 0,
"carrierPreference": [
"string"
],
"isDefault": true
}
]GET /public/senderId/{senderId} HTTP/1.1
Host: api.marsol.ly
x-auth-token: YOUR_API_KEY
Accept: */*
{
"id": "text",
"name": "text",
"private": true,
"createdAt": "2025-12-06T02:49:25.480Z",
"available": true,
"operationPreference": 1,
"carrierPreference": [
"text"
],
"isDefault": true
}Endpoint: /public/senderId/{senderId}
Method: GET
This endpoint retrieves the details of a specific sender ID.
Request Parameters:
senderId(string, path): The unique identifier of the sender ID to retrieve.
Security: Requires authentication token (x-auth-token).
HTTP Request:
GET /public/senderId/{senderId} HTTP/1.1
Host: api.marsol.ly
x-auth-token: your_api_token_here
Content-Type: application/jsonResponse: The response will include the details of the sender ID, including:
id(string): The uniqeu identifier of the sender.name(string): The name of the sender.private(boolean): Indicates if the sender is available for public use or available for specific accounts.createdAt(string, date-time): The timestamp when the sender was created.available(boolean): Indicates if the sender is available or out of service.operationPreference(number): Refers to the types of operations a virtual number supports, which can be:2forSMS,4forflash calls, and8forvoice messages. Note: A combination of these values indicates support for multiple operations. For example,6(2+4) means the virtual number supportsSMSandflash call, while14(2+4+8) meansSMS,flash call, andvoice callare all supported.carrierPreference(array, array of strings): The supported networks of which the sender will be communicating with (LIBYANA, ALMADAR, null) with null indicating that it can communicate with both.isDefault(boolean): Indicates if the sender is the default sender for the account.
{
"id": "string",
"name": "string",
"private": true,
"createdAt": "2024-08-08T11:57:26.365Z",
"available": true,
"operationPreference": 0,
"carrierPreference": [
"string"
],
"isDefault": true
}PUT /public/senderId/{senderId} HTTP/1.1
Host: api.marsol.ly
x-auth-token: YOUR_API_KEY
Accept: */*
{
"id": "text",
"name": "text",
"private": true,
"createdAt": "2025-12-06T02:49:25.480Z",
"available": true,
"operationPreference": 1,
"carrierPreference": [
"text"
],
"isDefault": true
}Endpoint: /public/senderId/{senderId}
Method: PUT
This endpoint sets a specific sender ID as the default sender ID.
Request Parameters:
senderId(string, path): The unique identifier of the sender ID to set as default.
Security: Requires authentication token (x-auth-token).
HTTP Request:
PUT /public/senderId/{senderId} HTTP/1.1
Host: api.marsol.ly
x-auth-token: your_api_token_here
Content-Type: application/jsonResponse: The response will include the details of the updated sender ID.
id(string): The uniqeu identifier of the sender.name(string): The name of the sender.private(boolean): Indicates if the sender is available for public use or available for specific accounts.createdAt(string, date-time): The timestamp when the sender was created.available(boolean): Indicates if the sender is available or out of service.operationPreference(number): Refers to the types of operations a virtual number supports, which can be:2forSMS,4forflash calls, and8forvoice messages. Note: A combination of these values indicates support for multiple operations. For example,6(2+4) means the virtual number supportsSMSandflash call, while14(2+4+8) meansSMS,flash call, andvoice callare all supported.carrierPreference(array, array of strings): The supported networks of which the sender will be communicating with (LIBYANA, ALMADAR, null) with null indicating that it can communicate with both.isDefault(boolean): Indicates if the sender is the default sender for the account.
{
"id": "string",
"name": "string",
"private": true,
"createdAt": "2024-08-08T11:59:49.092Z",
"available": true,
"operationPreference": 0,
"carrierPreference": [
"string"
],
"isDefault": true
}Last updated