# Account Created

**Webhook:** `AccountCreated`

Triggered when a new trading account is successfully created a user. This webhook delivers detailed information about the user, the selected program, and the newly provisioned trading account. It is commonly used to synchronize account data with third-party systems, CRMs, or internal dashboard.

```json
{
  "webhookType"          : "AccountCreated",
  "testMode"             : false,
  "userId"               : "<user_id>",
  "userFirstname"        : "<user_firstname>",
  "userLastname"         : "<user_lastname>",
  "userEmail"            : "<user_email>",
  "userPhone"            : "<user_phone>",
  "userAddressLine"      : "<user_addressline>",
  "userCity"             : "<user_city>",
  "userZipCode"          : "<user_zipcode>",
  "userCountryCode"      : "<user_country>",
  "programId"            : "<program_id>",
  "programName"          : "<program_name>",
  "accountId"            : "<account_id>",
  "accountLogin"         : "<account_login>",
  "accountPassword"      : "<account_password>",
  "accountPlatform"      : "<account_platform>",
  "accountAddons"        : "{<account_addons>}"
}
```

## Payload Structure

| Field             | Type    | Description                                                                                                           |
| ----------------- | ------- | --------------------------------------------------------------------------------------------------------------------- |
| `webhookType`     | String  | Type of webhook event. In this case, `AccountCreated` indicates that a new trading account has been created.          |
| `testMode`        | Boolean | Flag to indicate whether this payload is a test `true` or live `false`. Currently, only `false` is supported.         |
| `userId`          | String  | Unique identifier for the user within YourPropFirm SaaS platform.                                                     |
| `userFirstname`   | String  | First name of the user.                                                                                               |
| `userLastname`    | String  | Last name of the user.                                                                                                |
| `userEmail`       | String  | Email address of the user, also the user unique identifier for authentication.                                        |
| `userPhone`       | String  | Phone number of the user.                                                                                             |
| `userAddressLine` | String  | Street address or primary address line of the user.                                                                   |
| `userCity`        | String  | City associated with the user’s address.                                                                              |
| `userZipCode`     | String  | Zip or postal code of the user’s address.                                                                             |
| `userCountryCode` | String  | ISO 3166-1 alpha-2 country code (e.g., `US`, `SG`, `GB`) of the user’s address.                                       |
| `programId`       | String  | Unique identifier for the trading program or plan the user enrolled in.                                               |
| `programName`     | String  | Display name of the trading program of the user joined.                                                               |
| `accountId`       | String  | Internal ID used to reference the created trading account.                                                            |
| `accountLogin`    | String  | Login ID or number for accessing the trading account on the platform.                                                 |
| `accountPassword` | String  | Password for logging into the trading platform account.                                                               |
| `accountPlatform` | String  | The trading platform used (e.g., `MT4`, `MT5`, `cTrader`, `DXTrade`, `Sirix`, `MatchTrade`, `TradeLocker`, `Rithmic`) |
| `accountAddons`   | String  | Optional features or upgrades applied to the account, often provided in a JSON format.                                |
