Skip to main content
POST
Send the customer one email that tells them their lab results are ready. The email goes to the email of the home kit order’s profile. The email uses generic partner branding: the name and the logo of the profile’s primary profile group. It is in German when the profile language is de, and in English for all other languages. Set with_reports to true to attach the lab reports of the kit. The email attaches every report that the customer can see in the app. Set it to false to send only the notice. Add note to show a personal note in the email, at most 1000 characters. Every attached report is a PDF encrypted with AES-256. The password is the date_of_birth of the profile as 8 digits, DDMMYYYY, without dots: a customer born on 1 February 1985 types 01021985. The email tells the customer this format, but never the birthdate itself. Each call sends one email. Calls are not deduplicated: if you call the endpoint twice, the customer gets two emails. The email is not sent when:
  • No lab report has arrived yet.
  • The profile has no email address, or only a placeholder @aniva.email address.
  • The profile has turned off transactional emails. To turn them on again, set transactional_emails_enabled to true with Update Profile.
  • with_reports is true and the profile has no date_of_birth. Set it with Update Profile, or send with with_reports: false.
  • The order is one of the demo home kit orders. A demo order has no customer to email.
Requires the results_view scope plus the home_kit_orders_view or home_kit_orders_manage scope.

Request

Path parameters

string
required
Unique identifier (UUID) of the home kit order whose results to email.

Body parameters

boolean
required
true attaches the lab reports as password-protected PDF files. false sends only the notice that the results are ready.
string
A personal note that the email shows below the notice. At most 1000 characters.

Response

On success, the API returns 200 OK.
string
required
The address the email went to: the email of the profile.
integer
required
The number of lab reports attached. 0 when with_reports is false.
string
required
When the email was sent, as a UTC instant (ISO 8601 with Z suffix).

Error responses

An error body has error, a human-readable message, and reason, a stable code. Validation errors and a missing results_view scope have no reason.