Skip to content

Creates a webhook endpoint

Request

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}}

Security
Bearer
Bodyapplication/jsonrequired

endpointNamestring, <= 255 charactersrequired

Specifies the display name for the webhook.

This is a free-form name that is convenient to recognize.

Example: Peppared Street Cafe's Reconciliation

Example:"Peppared Street Cafe's Reconciliation"
endpointUrlstring, <= 2048 charactersrequired

Specifies the HTTPS callback URL that receives webhook events.

The URL must use HTTPS.

Example: https://example.com/webhooks/pepparedstreetcafe

Example:"https://example.com/webhooks/pepparedstreetcafe"
eventTypesArray of stringsrequired

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" ]

Example:
[ "transaction.card.captured", "transaction.card.refunded" ]

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"
  ]
}

Responses

OK

Bodyapplication/json
endpointIdstring, (UUID)

Indicates the webhook endpoint identifier.

Example: 9ab3d9e0-1f2a-4b3c-4d5e-6f7a8b9c0d36

Example:"9ab3d9e0-1f2a-4b3c-4d5e-6f7a8b9c0d36"
endpointNamestring or null, <= 255 characters

Indicates the display name for the webhook.

This is a free-form name that is convenient to recognize.

Example: Peppared Street Cafe's Reconciliation

Example:"Peppared Street Cafe's Reconciliation"
endpointUrlstring or null, <= 2048 characters

Indicates the HTTPS callback URL that receives webhook events.

Example: https://example.com/webhooks/pepparedstreetcafe

Example:"https://example.com/webhooks/pepparedstreetcafe"
endpointStatusstring or null, <= 8 characters

Indicates the endpoint status.

Valid values are:

ValueDescription
ActiveThe webhook endpoint is enabled and available for use.
InactiveThe 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

Enum:"Active""Inactive"
Example:"Active"
hmacSecretstring or null, <= 64 characters

Indicates the HMAC signing secret used to verify webhook payloads.

This value is returned only on creation and is never shown again.

eventTypesArray of strings

Indicates the event types the webhook is subscribed to.

Example:
[ "transaction.card.captured", "transaction.card.refunded" ]

Example:
[ "transaction.card.captured", "transaction.card.refunded" ]
createdOnstring, (ISO 8601 date-time)

Indicates the date-time (in an ISO 8601 UTC date-time format) the webhook was created on.

Example: 2026-01-15T10:30:56.264Z

Example:"2026-01-15T10:30:56.264Z"
Response

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" }