Skip to content

Send course completion emails

POST
/v1/training/courses/{courseId}/completion-email
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.

courseId
required
string

Course id, e.g. phishing-basics or tcc_…

Media typeapplication/json
object
memberId
required

The member ID who completed training

string

Example

mem_abc123
organizationId

Organization ID (deprecated — use auth context)

string

Example

org_abc123

Whether the emails were sent