Skip to content

Notifications API

Maintained by: Aether365 Team Audience: Developers Scope: Notification settings API endpoints

Manage email and Teams notification settings for the authenticated tenant.

Get Notification Settings

GET /tenants/me/notifications

Example Request

bash
curl https://api.aether365.io/tenants/me/notifications \
  -H "Authorization: Bearer <token>"

Example Response

json
{
  "success": true,
  "data": {
    "emailOnComplete": true,
    "emailOnFail": true,
    "teamsWebhookUrl": "https://outlook.office.com/webhook/...",
    "teamsOnComplete": true,
    "teamsOnFail": true
  }
}

Response Fields

FieldTypeDescription
emailOnCompletebooleanSend email when a scan completes successfully
emailOnFailbooleanSend email when a scan fails
teamsWebhookUrlstring or nullMicrosoft Teams incoming webhook URL
teamsOnCompletebooleanPost to Teams when a scan completes
teamsOnFailbooleanPost to Teams when a scan fails

Update Notification Settings

Updates notification settings. Only the fields you include are changed.

PATCH /tenants/me/notifications

Request Body

All fields are optional. Include only the fields you want to change.

json
{
  "emailOnComplete": true,
  "emailOnFail": true,
  "teamsWebhookUrl": "https://outlook.office.com/webhook/...",
  "teamsOnComplete": true,
  "teamsOnFail": false
}

Example: Enable Teams notifications

bash
curl -X PATCH https://api.aether365.io/tenants/me/notifications \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "teamsWebhookUrl": "https://outlook.office.com/webhook/your-webhook-url",
    "teamsOnComplete": true,
    "teamsOnFail": true
  }'

Example: Disable all email notifications

bash
curl -X PATCH https://api.aether365.io/tenants/me/notifications \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "emailOnComplete": false,
    "emailOnFail": false
  }'

Example Response

json
{
  "success": true,
  "data": {
    "emailOnComplete": false,
    "emailOnFail": false,
    "teamsWebhookUrl": "https://outlook.office.com/webhook/...",
    "teamsOnComplete": true,
    "teamsOnFail": true
  }
}

Errors

CodeHTTPDescription
AUTH_INSUFFICIENT_SCOPE403Insufficient permissions for this action
VALIDATION_ERROR400Invalid webhook URL format
Was this page helpful?