---
title: "Pre-validate a MAC address."
method: GET
path: "/v2/partition/{partitionId}/account/{accountId}/deviceline/{deviceId}/swap/prevalidate"
tags: ["Account Device Line"]
---

# Pre-validate a MAC address.

`GET /v2/partition/{partitionId}/account/{accountId}/deviceline/{deviceId}/swap/prevalidate`

## Request

- Base URL: `https://api.alianza.com`
- URL: `https://api.alianza.com/v2/partition/{partitionId}/account/{accountId}/deviceline/{deviceId}/swap/prevalidate`
- Auth: API key in header `X-AUTH-TOKEN`
- TypeScript: <https://skmtc.dev/alianza/apis/alianza-public-api/docs/v2/partition/:partitionId/account/:accountId/deviceline/:deviceId/swap/prevalidate/get.ts> (a function with typed inputs; its response is checked against the schema)

Use to validate a certain MAC address for duplicates before swapping a device. <span hidden>See more about <a href="accountDeviceLine.html">Account Device Lines</a>.</span>

## Path parameters

- `accountId` string, required
- `deviceId` string, required
- `partitionId` string, required

## Query parameters

- `macaddress` string, required

## Response `200`

Successful operation

- boolean

## Other responses

- `400`: Invalid request parameters
- `401`: Unauthorized
- `404`: Not found

---

[API](https://skmtc.dev/alianza/apis/alianza-public-api.md) - [All operations](https://skmtc.dev/alianza/apis/alianza-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/alianza/apis/alianza-public-api/revisions/7223246c352c?raw)
