cURL
curl --request GET \ --url https://api.sandbox.metriport.com/settings/webhook \ --header 'x-api-key: <api-key>'
import { MetriportMedicalApi } from "@metriport/api-sdk"; const metriportClient = new MetriportMedicalApi("YOUR_API_KEY"); const response = await metriportClient.getWebhookStatus();
Gets the status of communication with your app’s webhook.
{ "webhookEnabled": false, "webhookStatusDetail": "Request failed with status code 404", "webhookRequestsProcessing": 0, "webhookRequestsFailed": 3 }