---
search:
  tags:
    - billing
    - POST
seo:
  description: >-
    Register a vortex-listen CLI endpoint — returns the endpoint's whsec_…
    Reference for the POST /v1/cli/listen/register endpoint in the Vortex
    Payments API.
sidebar:
  label: >-
    Register a `vortex-listen` CLI endpoint — returns the endpoint's whsec_
    signing secret once
  badge: POST
title: >-
  Register a `vortex-listen` CLI endpoint — returns the endpoint's whsec_
  signing secret once
type: openapi-operation
---
`POST /v1/cli/listen/register`

**curl**

```bash
curl "https://api.vortex.nyc/v1/cli/listen/register?environment=sandbox&merchantAccountId=..." \
  -X POST \
  -H "Authorization: Bearer $VORTEX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

**TypeScript**

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

const vortex = createVortex({ apiKey: process.env.VORTEX_API_KEY });
const { data } = await registerCliListenEndpoint({
  client: vortex,
  query: { environment: "sandbox", merchantAccountId: "..." },
  body: {},
});
```

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

- `merchantAccountId` (string) — Required when the API key's org owns multiple sandbox merchant accounts; resolvable from the query parameter of the same name.

Request body example:

```json
{}
```

**Responses**

- `201` — Created
- `400` — Bad request, including malformed JSON
- `401` — Missing or invalid API key
- `409` — Conflict, including idempotency body drift
- `422` — Validation failed
- `429` — API key rate limit exceeded
- `default` — Error

Response example, 201:

```json
{
  "data": {
    "endpointId": "string",
    "environment": "sandbox",
    "merchantAccountId": "string",
    "apiVersion": "string",
    "secret": "string"
  },
  "requestId": "string"
}
```
