Attempt Certificate Generated

This event is triggered when a user has a certificate generated or regenerated by Synap

Request Details

The request will POST a JSON payload that conforms to the following Typescript interface:

interface AttemptCertificateGenerated {
  user: {
    id: string;
    name: string;
    email: string;
    customAttributes: {
      role: string | null;
      country: string | null;
    };
  };
  portal: {
    id: string;
  };
  meta: {
    timestamp: string; 
    eventName: 'attemptCertificate.generated';
  };
  id: string;
  exam: {
    id: string;
  };
  attempt: {
    id: string;
    grade: {
      label: string;
      minScore: number;
      isPass: boolean;
    };
  };
}

This should contain all of the information you need for most common use cases. You can also use this in conjunction with our APIs to fetch more data if needed.

Last updated

Was this helpful?