Skip to content

SmsGetMyProfiles

GET sms/providerProfile/available/me

Returns the profiles the current manager can send from, each with the templates available for it. This is what fills the send dialog: profile picker plus template picker in one request.

An INDIVIDUAL profile appears only if the manager has a sender identity linked to it. Filtering here rather than in the UI is what keeps a manager from picking a profile that would fail at send time.

Access Control

Allowed roles: admin, leader, manager. The manager is taken from the session.

Request

GET request
GET https://{broker_domain}/sms/providerProfile/available/me
Authorization: <JWT_TOKEN>
{
  "command": "SmsGetMyProfiles",
  "extID": "1",
  "data": {}
}
const res = await platform.SmsGetMyProfiles({});

Request Data

This method takes no parameters.

Response Data

The method answers with a rows envelope, like every other list of this module: the platform gateway passes through an object and rejects a bare array as INVALID_MOLECULER_RESPONSE. The list is not paged — it is a picker feed, so it carries everything available at once. Templates without a profile of their own are available to every profile, so they appear in each entry.

{
  "rows": [
    {
      "id": 3,
      "name": "Twilio main",
      "description": null,
      "mode": "COMMON",
      "deliveryUpdateBy": "WEBHOOK",
      "isDefault": true,
      "providerName": "twilio",
      "icon": "8f2a1c",
      "capabilities": { "polling": true, "webhook": true, "balance": true, "unicode": true },
      "templates": [
        { "id": 4, "profileId": null, "name": "Deposit confirmed", "language": "EN", "text": "{{name}}, your deposit of {{amount}} is confirmed" }
      ]
    },
    {
      "id": 5,
      "name": "Infobip personal",
      "mode": "INDIVIDUAL",
      "deliveryUpdateBy": "REQUEST",
      "isDefault": false,
      "providerName": "infobip",
      "agentId": 12,
      "agentExternalIdentifier": "ScaleTradeJohn",
      "templates": []
    }
  ]
}

Errors

Code Error Description
401 PERMISSION_DENIED No manager session