# Get Hook Parameters

**Endpoint**

`GET/v2/hook/get`

**Link**

{% embed url="<https://stagep.tst-apidmndelss.com/openapi/v2.html#/operations/Hook_GetParameters>" %}

### **Request**

#### **Headers**

| Key      | Value              | Required |
| -------- | ------------------ | -------- |
| `Accept` | `application/json` | Yes      |

*Note: No authorization required for this endpoint.*

***

### **Response (200 OK)**

Returns the current webhook configuration settings.

#### **Response Fields**

| Field                    | Type      | Description                                                       | Example                                 |
| ------------------------ | --------- | ----------------------------------------------------------------- | --------------------------------------- |
| **`enabled`**            | `boolean` | **Webhook feature status**. `true` = active, `false` = disabled.  | `true`                                  |
| **`hookUrl`**            | `string`  | **URL where webhook notifications are sent**.                     | `"https://api.yourdomain.com/webhooks"` |
| **`jwtSecret`**          | `string`  | **Secret key for JWT verification** of incoming webhook requests. | `"your-jwt-secret-key-123"`             |
| **`hookCustomer`**       | `boolean` | **Customer events**: Notifications for customer-related changes.  | `true`                                  |
| **`hookOperation`**      | `boolean` | **Operation events**: Notifications for transaction operations.   | `true`                                  |
| **`hookDepositAccount`** | `boolean` | **Deposit account events**: Notifications for account changes.    | `false`                                 |
| **`hookCounterparty`**   | `boolean` | **Counterparty events**: Notifications for counterparty changes.  | `true`                                  |

**Example Response:**

json

```
{
  "enabled": true,
  "hookUrl": "https://api.yourdomain.com/webhooks/payments",
  "jwtSecret": "sec_5f3d8e2a789bcd1234567890",
  "hookCustomer": true,
  "hookOperation": true,
  "hookDepositAccount": false,
  "hookCounterparty": true
}
```

***

### **Examples**

#### **Request**

bash

```
curl -X GET 'https://stagep.tst-apidmndelss.com/v2/hook/get' \
  -H 'Accept: application/json'
```

#### **Response with All Features Disabled**

json

```
{
  "enabled": false,
  "hookUrl": "",
  "jwtSecret": "",
  "hookCustomer": false,
  "hookOperation": false,
  "hookDepositAccount": false,
  "hookCounterparty": false
}
```

***

### **Event Types Explained**

* **`hookCustomer`**: Customer creation, updates, status changes
* **`hookOperation`**: Payment processing, transfers, transactions
* **`hookDepositAccount`**: Account balance changes, account updates
* **`hookCounterparty`**: Counterparty/bank details changes

***

### **Notes**

* **Security**: The `jwtSecret` is used to verify incoming webhook requests. Keep it secure.
* **URL Requirements**: The `hookUrl` must be HTTPS for production environments.
* **Enablement**: All event types require `enabled: true` to function.
* **Retry Mechanism**: Webhooks typically include retry logic for failed deliveries.

**Webhook Payload Example:**

json

```
{
  "event": "customer.updated",
  "data": {
    "cuid": "DqCsgSE-4e95-ViYbNI",
    "status": "ACCEPTED"
  },
  "timestamp": "2024-05-21T10:30:00Z"
}
```


---

# 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://docs.delos.financial/hooks/get-hook-parameters.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.
