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-internal-token: <x-internal-token>' \
  --data '
{
  "memberId": "mem_abc123",
  "organizationId": "org_abc123"
}
'
{
  "sent": true,
  "reason": "training_not_complete"
}

Headers

x-internal-token
string
required

Internal API token for service-to-service calls

Body

application/json
memberId
string
required

The member ID who completed training

Example:

"mem_abc123"

organizationId
string
required

The organization ID

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"