# User Registered for Exam Webhook

This event is triggered when a user is registered for an Exam.

* For users who are not present in the user group at the time of the exam scheduleing, this will trigger when they are added to the user group and their attempt is generated.&#x20;

To subscribe to this webhook, please set up a URL endpoint capable of receiving POST requests.

### Request Details

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

```typescript
interface UserRegisteredForExamWebhookBody {
{
 user: {
    id: string;
    name: string;
    email: string;
    customAttributes: Record<string, unknown>;
  };
  portal: { id: string };
  meta: { timestamp: string };
  exam: {
    {
  objectId: string;
  url: string;
  name: string;
    schedule: {
      openDate: string;
      closeDate: string;
    }
  },
  userGroup: {
    objectId: string;,
    name: string;
  }
}
}
```


---

# 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/user-registered-for-exam-webhook.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.
