Send course completion emails
POST
/v1/training/courses/{courseId}/completion-email
const url = 'https://api.varman.io/v1/training/courses/example/completion-email';const options = { method: 'POST', headers: {'X-API-Key': '<X-API-Key>', 'Content-Type': 'application/json'}, body: '{"memberId":"mem_abc123","organizationId":"org_abc123"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.varman.io/v1/training/courses/example/completion-email \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <X-API-Key>' \ --data '{ "memberId": "mem_abc123", "organizationId": "org_abc123" }'Emails the member a confirmation with the course certificate attached and tells owners and admins. Sends nothing when the course is not completed.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”courseId
required
string
Course id, e.g. phishing-basics or tcc_…
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
memberId
required
The member ID who completed training
string
Example
mem_abc123organizationId
Organization ID (deprecated — use auth context)
string
Example
org_abc123Responses
Section titled “Responses”Whether the emails were sent