Send a notification to a party
POST/v1/notifications
Required States: Various based on notification type
This endpoint sends notifications across multiple channels (SMS, EMAIL, DEVICE) with support for:
- Marketing campaigns (MARKETING)
- Onboarding verifications (VERIFICATION)
- General party notifications (GENERAL)
Authentication & Context:
- Party and user identifiers are automatically extracted from the JWT token
- GENERAL notifications require a valid party session (partyId from JWT)
- All notifications require a valid user session (userId from JWT) for audit tracking
Message Types:
MARKETING: Can be sent to non-registered parties, requires template ID, supports schedulingVERIFICATION: Can be sent to non-registered parties, requires template ID, cannot be scheduledGENERAL: Requires authenticated party session, supports free text or templates, supports scheduling
Business Rules & Validation:
- Channel identifier must be in valid format: phone numbers in E.164 format (+61491570006), valid email addresses, or valid device IDs
- For test environments, SMS notifications are restricted to allow-listed phone numbers only
- VERIFICATION messages cannot be scheduled for future delivery
- MARKETING and VERIFICATION messages must include a templateId, GENERAL messages can use either templateId or free text messageContent
- Template variables are validated against the template requirements
- Scheduled delivery times must be in the future and in valid ISO 8601 format
Channel Specific Requirements:
- SMS: Phone numbers must be in E.164 format (e.g., +61491570006), allow-list restrictions apply in test environments
- EMAIL: Valid email address format required, delivery via configured email service
- DEVICE: Valid device ID/token required, push notification delivery via the push notification service
Template Processing:
- Templates are retrieved based on templateId, messageType, contactChannel, clientId, and brandId
- Template variables are substituted using {{variableName}} syntax
- Missing required template variables will cause validation failure
Request
Responses
- 201
- 400
- 401
- 403
- 404
- 422
- 500
- 503
Notification sent successfully
Schema validation failed (GEN000000) or Invalid contact channel (NOT000001) or Missing message content (NOT000004)
Missing or invalid authentication token (GEN001002) or Role unauthorized (GEN001006) or Tenant context could not be resolved (AUT001001)
External application access denied (AUT003001) or Party not in required status (PAR003001) or Channel identifier not in allow list (NOT003002)
Party not found (PAR004001) or Template or resource not found (GEN004001)
Missing required template variables (GEN000000) or Capability not configured for this tenant (CRT022003) or Policy has no rule matching the request facts (CRT022002)
Notification delivery service unavailable (NOT100004) or General internal server error (GEN100000) or Service error (GEN100001)
All connector targets are currently unhealthy (CRT103001)