Mediflo
REST APIWebhooks

Create a webhook endpoint

Returns the signing `secret` ONCE — store it before you close the response. The URL must be https and must resolve to a public address; private and link-local targets are rejected at save time. Default payload is core fields only; opt into PHI-bearing content blocks explicitly via `payloadConfig`. Limit: 20 endpoints per workspace. Required scope: `webhooks.manage`.

POST/webhook-endpoints

Authorization

ApiKeyAuth
AuthorizationBearer <token>

An external API key, sent as Authorization: Bearer mflo_…. Scopes are checked per route; see each operation’s description.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/webhook-endpoints" \  -H "Content-Type: application/json" \  -d '{    "url": "string",    "subscribedEvents": [      "*"    ]  }'
{  "data": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "url": "string",    "description": "string",    "subscribedEvents": [      "string"    ],    "payloadConfig": null,    "status": "ENABLED",    "consecutiveFailures": 0,    "lastSuccessAt": "string",    "lastFailureAt": "string",    "autoDisabledAt": "string",    "previousSecretExpiresAt": "string",    "createdAt": "string",    "updatedAt": "string",    "secret": "string"  }}