# 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:

```typescript
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.&#x20;


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://academy.synap.ac/doc/integrations/webhooks/attempt-certificate-generated.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
