- Creates a webhook endpoint
POST {{baseURL}}/v2/webhooks/endpoints
This endpoint creates a new webhook endpoint.
New endpoints default to Active on creation. Only Active endpoints are eligible for real event dispatch.
This endpoint does not require a specific API token. Either a merchant or partner API token can be used.
See Also:
To list all of available webhooks, see GET /v2/webhooks/endpoints.
To retrieve a specified webhook, see GET /v2/webhooks/endpoints/{{endpointId}}.
To update a webhook, see PATCH /v2/webhooks/endpoints/{{endpointId}}.
To delete a webhook, see DELETE /v2/webhooks/endpoints/{{endpointId}}
Specifies the display name for the webhook.
This is a free-form name that is convenient to recognize.
Example: Peppared Street Cafe's Reconciliation
Specifies the HTTPS callback URL that receives webhook events.
The URL must use HTTPS.
Example: https://example.com/webhooks/pepparedstreetcafe
Specifies the event types to subscribe to.
At least one event type is required. Duplicates are not allowed. The ping event type cannot be subscribed to.
Example:
[ "transaction.card.captured", "transaction.card.refunded" ]
[ "transaction.card.captured", "transaction.card.refunded" ]
- Sandbox environmenthttps://sandbox.api.flute.com/v2/webhooks/endpoints
- Production environmenthttps://api.flute.com/v2/webhooks/endpoints
This example shows every request field.
The endpointName, endpointUrl, and eventTypes fields are all required.
POST /v2/webhooks/endpoints HTTP/1.1
Host: sandbox.api.flute.com
Authorization: Bearer <API_TOKEN_HERE>
Accept: application/json
Content-Type: application/json
{
"endpointName": "Peppared Street Cafe's Reconciliation",
"endpointUrl": "https://example.com/webhooks/pepparedstreetcafe",
"eventTypes": [
"transaction.card.captured",
"transaction.card.refunded",
"transaction.card.voided"
]
}Indicates the webhook endpoint identifier.
Example: 9ab3d9e0-1f2a-4b3c-4d5e-6f7a8b9c0d36
Indicates the display name for the webhook.
This is a free-form name that is convenient to recognize.
Example: Peppared Street Cafe's Reconciliation
Indicates the HTTPS callback URL that receives webhook events.
Example: https://example.com/webhooks/pepparedstreetcafe
Indicates the endpoint status.
Valid values are:
| Value | Description |
|---|---|
| Active | The webhook endpoint is enabled and available for use. |
| Inactive | The webhook endpoint is disabled and not available for use. It still exists but will not send event notifications. It may be re-activated. In contrast, a deleted webhook has been removed entirely and cannot be re-activated. A new webhook must be created. |
Example: Active
Indicates the HMAC signing secret used to verify webhook payloads.
This value is returned only on creation and is never shown again.
Indicates the event types the webhook is subscribed to.
Example:
[ "transaction.card.captured", "transaction.card.refunded" ]
[ "transaction.card.captured", "transaction.card.refunded" ]
This example shows every response field.
The hmacSecret field is returned only in this response.
{ "endpointId": "9ab3d9e0-1f2a-4b3c-8d5e-6f7a8b9c0d36", "endpointName": "Peppared Street Cafe's Reconciliation", "endpointUrl": "https://example.com/webhooks/pepparedstreetcafe", "endpointStatus": "Active", "hmacSecret": "3f7c9a2e5b1d8046c2e9a7b3f5d10428a6c1e3b5d7f9024681bce13579adf02e", "eventTypes": [ "transaction.card.captured", "transaction.ach.cleared", "settlement.batch.completed", "invoice.paid" ], "createdOn": "2026-10-21T14:28:40Z" }