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 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 plain array, not a rows envelope: it is a picker feed, not a paged list. Templates without a profile of their own are available to every profile, so they appear in each entry.
[
{
"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 |