New-mail push (BRM-API)

The mail server tells BRM-API about new mail so it can send push notifications. Needs X-Mail-Hook-Key.

MethodPathSummary
POST/v1/maildelivery/newTell Bramble about new mail (mail server only)

#Tell Bramble about new mail (mail server only)

POST/v1/maildelivery/new
Address
https://<your-org>.brambleit.cloud/api/v1/maildelivery/new
Requires
None: public, or protected by a token in the address or body.

Request body JSON

NameTypeDescription
userany
messagesarray of any

Response 200

FieldTypeDescription
okboolean
sentinteger
Example response
JSON
{
  "ok": true,
  "sent": 1
}

Errors

StatusMessage
400user is required
401Unauthorized

Example request

Bash
curl -X POST 'https://<your-org>.brambleit.cloud/api/v1/maildelivery/new' \
  -H "X-API-Key: $BRAMBLE_KEY" \
  -H "Content-Type: application/json" \
  -d '{"user":"…","messages":[]}'