curl --request POST \
--url http://localhost:3333/v1/training/send-completion-email \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--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-API-Key: <api-key>' \
--data '
{
"memberId": "mem_abc123",
"organizationId": "org_abc123"
}
'{
"sent": true,
"reason": "training_not_complete"
}API key for authentication
Was this page helpful?