Generate training certificate
POST
/v1/training/generate-certificate
const url = 'https://api.varman.io/v1/training/generate-certificate';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/generate-certificate \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <X-API-Key>' \ --data '{ "memberId": "mem_abc123", "organizationId": "org_abc123" }'Generate a training completion certificate that can be shared with auditors or attached as workforce security evidence.
Authorizations
Section titled “Authorizations”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”PDF certificate file
Training not complete or member not found