---
title: "Awkward names for a sign-up form's name field | Proxy Mail QA"
description: "Developer docs for Proxy Mail QA: the MCP server for coding agents, the REST API for test suites, and the Chrome extension."
url: https://proxymail.qa/docs/reference/operations/namevariants
---

# Awkward names for a sign-up form's name field

GET

/v1/variants/names

```js
const url = 'https://api.proxymail.qa/v1/variants/names?field=first_name';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```sh
curl --request GET \
  --url 'https://api.proxymail.qa/v1/variants/names?field=first_name' \
  --header 'Authorization: Bearer <token>'
```

Values for testing what a form does with a name: accept (a real person’s name: apostrophes, hyphens, accents, other scripts such as Chinese, Arabic or Thai, one letter, exactly the maximum), reject (over the maximum, empty, only spaces), store\_as\_text (HTML, a script tag, a SQL injection, a template expression: to be stored and shown exactly as typed, never run) and decide (digits, symbols, emoji, spaces around, a zero-width space, composed and decomposed accents, and 64, 128 and 255 characters when no maximum is given: apps differ, so note what the app did). See <https://proxymail.qa/docs/unusual-names-and-passwords>.

## Authorizations

- **[apiKey](https://proxymail.qa/docs/reference.html#apikey)**

## Parameters

### Query Parameters

**field**

string

default: first\_name

Allowed values: first\_name last\_name full\_name display\_name

Which field the values are for.

**max\_length**

integer

\>= 1 <= 1000

The field’s maximum length, when it has one: adds a value exactly that long and one over it.

## Responses

### 200

The variants

Media typeapplication/json

### object

**field**

string

**max\_length**

integer

nullable

**accept**

Array<object>

### object

**tests**

What the value checks, e.g. “A hyphen”.

string

**value**

What to type into the field, exactly.

string

**reject**

Array<object>

### object

**tests**

What the value checks, e.g. “A hyphen”.

string

**value**

What to type into the field, exactly.

string

**store\_as\_text**

Array<object>

### object

**tests**

What the value checks, e.g. “A hyphen”.

string

**value**

What to type into the field, exactly.

string

**decide**

Array<object>

### object

**tests**

What the value checks, e.g. “A hyphen”.

string

**value**

What to type into the field, exactly.

string

#### Example generated

```json
{
  "field": "example",
  "max_length": 1,
  "accept": [
    {
      "tests": "example",
      "value": "example"
    }
  ],
  "reject": [
    {
      "tests": "example",
      "value": "example"
    }
  ],
  "store_as_text": [
    {
      "tests": "example",
      "value": "example"
    }
  ],
  "decide": [
    {
      "tests": "example",
      "value": "example"
    }
  ]
}
```

### 400

An error

Media typeapplication/json

### object

**error**

string

**message**

string

#### Example generated

```json
{
  "error": "example",
  "message": "example"
}
```

[Previous Unusual versions of the address, for testing sign-up forms](https://proxymail.qa/docs/reference/operations/getvariants.html) [Next Awkward passwords for a sign-up form's password field](https://proxymail.qa/docs/reference/operations/passwordvariants.html)

- [English ](https://proxymail.qa/docs/reference/operations/namevariants)
- [DeutschStartseite](https://proxymail.qa/de)
- [EspañolPágina de inicio](https://proxymail.qa/es)
- [FrançaisPage d’accueil](https://proxymail.qa/fr)
- [日本語トップページ](https://proxymail.qa/jp)
- [简体中文首页](https://proxymail.qa/zh-cn)
