curl --request POST \
--url http://localhost:3333/v1/training/send-completion-email \
--header 'Content-Type: application/json' \
--header 'x-internal-token: <x-internal-token>' \
--data '
{
"memberId": "mem_abc123",
"organizationId": "org_abc123"
}
'{
"sent": true,
"reason": "training_not_complete"
}Checks if the member has completed all training videos. If so, sends an email with the training certificate attached.
curl --request POST \
--url http://localhost:3333/v1/training/send-completion-email \
--header 'Content-Type: application/json' \
--header 'x-internal-token: <x-internal-token>' \
--data '
{
"memberId": "mem_abc123",
"organizationId": "org_abc123"
}
'{
"sent": true,
"reason": "training_not_complete"
}Internal API token for service-to-service calls
Was this page helpful?