Skip to content

MailerGetMyProfiles

GET mailer/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, and a paused or disabled profile does not appear at all — filtering here 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}/mailer/providerProfile/available/me
Authorization: <JWT_TOKEN>
{
  "command": "MailerGetMyProfiles",
  "extID": "1",
  "data": {}
}
const res = await platform.MailerGetMyProfiles({});

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": "Postmark transactional",
      "mode": "COMMON",
      "deliveryUpdateBy": "WEBHOOK",
      "isDefault": true,
      "providerName": "postmark",
      "fromEmail": "[email protected]",
      "kind": "TRANSACTIONAL",
      "capabilities": { "sendEmail": true, "webhook": true, "domainCheck": true },
      "templates": [
        { "id": 4, "profileId": null, "name": "Deposit confirmed", "language": "EN", "subject": "{{name}}, your deposit is confirmed" }
      ]
    }
  ]
}

Errors

Code Error Description
401 PERMISSION_DENIED No manager session