Get Webhooks
curl --request GET \
--url https://testapi.kravata.co/api/webhooks/{clientId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://testapi.kravata.co/api/webhooks/{clientId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://testapi.kravata.co/api/webhooks/{clientId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));[
{
"id": "48899140-5567-4919-bc26-a0e93018c3ce",
"method": "POST",
"process": "ramp",
"status": true,
"url": "https://your-server.example.com/webhooks/kravata",
"userId": "20ec3cb9-497c-480f-9478-4d64c7b43064"
}
]Webhooks
Get Webhooks
With this endpoint, you can retrieve all the webhooks you’ve configured for your account. The response provides detailed information about each webhook, allowing you to verify their setup and ensure they’re active and correctly configured.
Request
| Field | Type | Required | Description |
|---|---|---|---|
| Authorization | Header | Yes | The access token is used to authenticate requests to other endpoints. It is valid for 5 minutes. |
| clientID | URL | Yes | Include your assigned ID in the URL, obtainable through the Get infoClient endpoint. |
Response
Upon a successful request, the server will respond with an array containing the following details for each registered webhook:
| Field | Description |
|---|---|
| Id | The unique identifier of the webhook. |
| method | The HTTP method used by the webhook (e.g., POST). |
| process | The process the webhook monitors (ramp, compliance or wallet_transfer). |
| status | Indicates whether the webhook is active (true) or inactive (false). |
| url | The destination URL where notifications are sent. |
| userId | The unique identifier of the user associated with the webhook. |
Note: Regularly review your webhook configurations to ensure they’re correctly set up and pointing to the right URLs.
GET
/
api
/
webhooks
/
{clientId}
Get Webhooks
curl --request GET \
--url https://testapi.kravata.co/api/webhooks/{clientId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://testapi.kravata.co/api/webhooks/{clientId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://testapi.kravata.co/api/webhooks/{clientId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));[
{
"id": "48899140-5567-4919-bc26-a0e93018c3ce",
"method": "POST",
"process": "ramp",
"status": true,
"url": "https://your-server.example.com/webhooks/kravata",
"userId": "20ec3cb9-497c-480f-9478-4d64c7b43064"
}
]
