---
search:
  tags:
    - billing
    - GET
seo:
  description: >-
    Long-poll the next due delivery for a listen endpoint — 204 when the
    deadline… Reference for the GET /v1/cli/listen/next endpoint in the Vortex
    Payments API.
sidebar:
  label: >-
    Long-poll the next due delivery for a listen endpoint — 204 when the
    deadline passes
  badge: GET
title: >-
  Long-poll the next due delivery for a listen endpoint — 204 when the deadline
  passes
type: openapi-operation
---
`GET /v1/cli/listen/next`

**curl**

```bash
curl "https://api.vortex.nyc/v1/cli/listen/next?environment=sandbox&endpointId=...&timeoutMs=25000" \
  -X GET \
  -H "Authorization: Bearer $VORTEX_API_KEY" \
```

**TypeScript**

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

const vortex = createVortex({ apiKey: process.env.VORTEX_API_KEY });
const { data } = await cliListenNext({
  client: vortex,
  query: { environment: "sandbox", endpointId: "...", timeoutMs: 25000 },
});
```

**Responses**

- `200` — Success
- `204` — No content — success with an empty body
- `400` — Bad request, including malformed JSON
- `401` — Missing or invalid API key
- `404` — Route or scoped resource was not found
- `409` — Conflict, including idempotency body drift
- `422` — Validation failed
- `429` — API key rate limit exceeded
- `default` — Error

Response example, 200:

```json
{
  "data": {
    "deliveryId": "string",
    "eventType": "string",
    "attempt": 0,
    "body": "string",
    "headers": {
      "property1": "string",
      "property2": "string"
    }
  },
  "requestId": "string"
}
```
