8 Service APIs
This section provides a reference for APIs that should be implemented by this Building Block.
8.1 Government to person (G2P)
8.1.1 Sending emails
8.1.1.1 Sending single emails one by one
Sample user story
API endpoint
8.1.1.2 Sending multiple (batch) emails at once
Sample user story
API endpoint
When sending batch emails, recipients information is passed in base64 format. Sender information and email content must be the same for all recipients.
Authorizations
Query parameters
Header parameters
apiKeystringRequired
Body
stringOptional
Responses
200
Request successfully accepted
application/json
405
Invalid input
post
/send/email/batch8.2 Person to Government (P2G)
8.2.1 Responding to emails
Sample user story
API endpoint
An optional custom service to provide an endpoint for client-specific functionality to accept replied emails, etc
post
This service may reside on both Messaging BB's and client's side. If used, a matching OpenAPI spec must be provided by the service provider, describing the expected input when making request to the endpoint.
Authorizations
Query parameters
Header parameters
apiKeystringRequired
requestUidstringRequired
Responses
200
Request successfully accepted
405
Invalid input
post
/callback/emailNo content
8.2.2 Reading the status of emails
Sample user story
API endpoint
Get status of sent emails. Use both "apiKey" and "requestUid" in your request.
Authorizations
Query parameters
Header parameters
apiKeystringRequired
requestUidstringRequired
Responses
200
Request successfully accepted
application/json
405
Invalid input
get
/status/emailStatus of emails
Last updated
Was this helpful?