GET /users/:userId
Wavy Node calls this endpoint to retrieve information about a specific user. The :userId parameter is the user’s ID in your system.
Your endpoint should return a JSON object with the following structure:
Response fields
Response fields
| Field | Type | Description |
|---|---|---|
givenName | string | The individual’s given name(s) |
maternalSurname | string | Maternal surname |
paternalSurname | string | Paternal surname |
birthdate | string | Date of birth in YYYY-MM-DD format (ISO 8601) |
nationality | string | ISO 3166-1 alpha-2 country code |
phoneNumber.countryCode | string | Phone country code |
phoneNumber.phoneNumber | number | Phone number |
email | string | Email address |
address | object | Physical address |
mexico | object | Fields required for Mexican legislation reports (optional) |
The
mexico object is only needed if you have Mexican compliance enabled in your dashboard.POST /webhook
Wavy Node sends real-time notifications to this endpoint. The request body contains:
| Field | Type | Description |
|---|---|---|
type | string | notification or error |
data | object or string | The notification payload or error message |
Notification payload
Whentype is notification, the data object contains transaction and compliance details:
Notification data fields
Notification data fields
| Field | Type | Description |
|---|---|---|
id | number | Notification ID |
projectId | number | Project ID |
chainId | number | Chain ID where the transaction occurred |
address.id | number | Address ID |
address.userId | string | User ID in your system |
address.address | string | Wallet address |
address.description | string | Address description |
txHash | string | Transaction hash |
timestamp | string | Transaction timestamp (ISO 8601) |
amount.value | number | Amount in the token’s smallest unit |
amount.usd | number | Amount in USD |
token.name | string | Token name |
token.symbol | string | Token symbol |
token.decimals | number | Token decimals |
token.address | string | Token contract address (null for native tokens) |
inflictedLaws | array | Laws inflicted by the transaction |
inflictedLaws[].name | string | Law name |
inflictedLaws[].description | string | Law description |
inflictedLaws[].source | string | Law source |
inflictedLaws[].risk | string | warn or illegal |
inflictedLaws[].country | string | Country name |
inflictedLaws[].countryCode | string | ISO country code |
Error payload
Whentype is error, the data field is a string containing the error message.