---
search:
  tags:
    - merchantOnboarding
    - POST
seo:
  description: >-
    Reference for the POST
    /v1/merchant-accounts/{merchantAccountId}/device-links endpoint in the
    Vortex Payments API.
sidebar:
  label: POST /v1/merchant-accounts/{merchantAccountId}/device-links
  badge: POST
title: POST /v1/merchant-accounts/{merchantAccountId}/device-links
type: openapi-operation
---
`POST /v1/merchant-accounts/{merchantAccountId}/device-links`

**curl**

```bash
curl "https://api.vortex.nyc/v1/merchant-accounts/:merchantAccountId/device-links" \
  -X POST \
  -H "Authorization: Bearer $VORTEX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{...}'
```

**TypeScript**

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

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

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

- `environment` (string | null)
- `expiresAt` (string | null)

Request body example:

```json
{
  "environment": "sandbox",
  "expiresAt": "string"
}
```

**Responses**

- `201` — Success

Response example, 201:

```json
{
  "data": {
    "link": {
      "linkId": "string",
      "tokenHash": "string",
      "status": "active",
      "createdAt": "string",
      "expiresAt": "string",
      "revokedAt": "string"
    },
    "token": "string",
    "hostedDevicesUrl": "string"
  },
  "requestId": "string"
}
```
