---
search:
  tags:
    - paymentLinks
    - POST
seo:
  description: >-
    Reference for the POST /v1/pay-me/hosted-link endpoint in the Vortex
    Payments API.
sidebar:
  label: POST /v1/pay-me/hosted-link
  badge: POST
title: POST /v1/pay-me/hosted-link
type: openapi-operation
---
`POST /v1/pay-me/hosted-link`

**curl**

```bash
curl "https://api.vortex.nyc/v1/pay-me/hosted-link" \
  -X POST \
  -H "Authorization: Bearer $VORTEX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{...}'
```

**TypeScript**

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

const vortex = createVortex({ apiKey: process.env.VORTEX_API_KEY });
const { data } = await createPayMeLink({
  client: vortex,
  body: {...},
});
```

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

- `environment` (string | null)
- `merchantAccountId` (string | null)
- `amount` (number | null)
- `currency` (string, required)
- `label` (string | null)
- `expiresAt` (string | null)

Request body example:

```json
{
  "environment": "sandbox",
  "merchantAccountId": "string",
  "amount": 0,
  "currency": "string",
  "label": "string",
  "expiresAt": "string"
}
```

**Responses**

- `201` — Success

Response example, 201:

```json
{
  "data": {
    "link": {
      "linkId": "string",
      "tokenHash": "string",
      "amount": 0,
      "currency": "string",
      "label": "string",
      "status": "active",
      "createdAt": "string",
      "expiresAt": "string"
    },
    "token": "string",
    "hostedPayMeUrl": "string"
  },
  "requestId": "string"
}
```
