πŸ† Certificate Generation

πŸŽ–οΈ Certificate Issuance

  • Certificates generated automatically after completing all required lessons

  • Stored as downloadable PDF files and accessible from the user profile

  • Include learner’s name, course title, completion date, and a unique verification code


πŸ”„ Backend Flow

  • Triggered by completion event: POST /courses/:courseId/certificate

  • Verification endpoint: GET /certificates/verify/:code to validate authenticity


πŸ“‘ Example API Request / Response

Generate Certificate

bashCopyEditcurl -X POST https://api.techtonic.com/courses/abc123/certificate \
-H "Authorization: Bearer YOUR_JWT_TOKEN"

Success Response:

jsonCopyEdit{
  "certificateUrl": "https://cdn.techtonic.com/certificates/jane_doe_js.pdf",
  "verificationCode": "ABC123XYZ"
}

Last updated