Skip to main content
POST
/
v1
/
training
/
send-completion-email
Send training completion email with certificate
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"
}

Authorizations

X-API-Key
string
header
required

API key for authentication

Body

application/json
memberId
string
required

The member ID who completed training

Example:

"mem_abc123"

organizationId
string

Organization ID (deprecated — use auth context)

Example:

"org_abc123"

Response

200 - application/json

Email sent or reason why it was not sent

sent
boolean
required

Whether the email was sent

Example:

true

reason
string

Reason if email was not sent

Example:

"training_not_complete"