๐ง Create webhook
Code samples
POST /api/v1/trx/webhooks
Creates a new webhook for the authenticated user
Body parameter
{
"coin": "TRX",
"webhook_url": "https://example.com/webhook",
"addresses": [
"TLWKepDBC8RZjAhtWyNqASyzgyVyHUuS7o"
],
"is_active": true
}
๐ ๏ธ Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| body | body | WebhookCreateRequest | true | none |
Example responses
201 Response
{
"data": {
"id": 1,
"user_id": 10,
"coin": "TRX",
"webhook_url": "https://example.com/webhook",
"addresses": [
"TLWKepDBC8RZjAhtWyNqASyzgyVyHUuS7o"
],
"is_active": true,
"created_at": "2025-09-16T12:00:00Z",
"updated_at": "2025-09-16T12:00:00Z"
}
}
๐ Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 201 | Created | Created | Inline |
| 400 | Bad Request | Bad request (validation failed) | None |
๐ Response Schema
Status Code 201
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| ยป data | Webhook | false | none | none |
| ยปยป id | integer | false | none | none |
| ยปยป user_id | integer | false | none | none |
| ยปยป coin | string | false | none | none |
| ยปยป webhook_url | string(uri) | false | none | none |
| ยปยป addresses | [string] | false | none | none |
| ยปยป is_active | boolean | false | none | none |
| ยปยป created_at | string(date-time) | false | none | none |
| ยปยป updated_at | string(date-time) | false | none | none |
Enumerated Values
| Property | Value |
|---|---|
| coin | TRX |