---
search:
  tags:
    - webhooks
    - POST
seo:
  description: >-
    Reference for the POST /v1/webhook-endpoints endpoint in the Vortex Payments
    API.
sidebar:
  label: POST /v1/webhook-endpoints
  badge: POST
title: POST /v1/webhook-endpoints
type: openapi-operation
---
`POST /v1/webhook-endpoints`

**curl**

```bash
curl "https://api.vortex.nyc/v1/webhook-endpoints?environment=sandbox&merchantAccountId=..." \
  -X POST \
  -H "Authorization: Bearer $VORTEX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://app.example.com/vortex/webhooks","eventTypes":["invoice.paid"],"description":"Production consumer app webhook endpoint"}'
```

**TypeScript**

```ts
import { createWebhookEndpoint, createVortex } from "@vortex-api/vortex/2026-09";

const vortex = createVortex({ apiKey: process.env.VORTEX_API_KEY });
const { data } = await createWebhookEndpoint({
  client: vortex,
  query: { environment: "sandbox", merchantAccountId: "..." },
  body: {"url":"https://app.example.com/vortex/webhooks","eventTypes":["invoice.paid"],"description":"Production consumer app webhook endpoint"},
});
```

**Request body** (`application/json`, required)

- `environment` (string | null)
- `merchantAccountId` (string | null)
- `destinationUrl` (string, required)
- `subscribedEventTypes` (string[], required)
- `apiVersion` (string | null)
- `scope` (string | null)
- `description` (string | null)

Request body example:

```json
{
  "environment": "sandbox",
  "merchantAccountId": "string",
  "destinationUrl": "string",
  "subscribedEventTypes": [
    "string"
  ],
  "apiVersion": "2026-08",
  "scope": "platform",
  "description": "string"
}
```

**Responses**

- `201` — Success

Response example, 201:

```json
{
  "data": {
    "id": "string",
    "environment": "sandbox",
    "destinationUrl": "string",
    "status": "active",
    "scope": "platform",
    "subscribedEventTypes": [
      "string"
    ],
    "apiVersion": "string",
    "description": "string",
    "createdAt": "string",
    "updatedAt": "string",
    "secret": "string"
  },
  "requestId": "string"
}
```
