Smart full name autocomplete that combines first names and last names — like "John Smith" or "Sarah Jones" — without a title. This is a client-side SDK feature: there is no /v1/full-name endpoint on the server. The SDK calls the first-name and last-name endpoints in parallel and pairs each first name with a different surname. Use this for a single "Full name" field as recommended by the GOV.UK Design System.
SDK only (client-side)https://autocomplete.namedone.com1import { createClient } from "@namedone/autocomplete"23const nd = createClient("nd_...")4const { results } = await nd.fullNames("jo")1# Exchange your API key for a token2curl -X POST https://token.namedone.com/v1 \3 -H "Content-Type: application/json" \4 -d '{"apiKey":"nd_..."}'56# Query the full names endpoint7curl "https://autocomplete.namedone.comSDK only (client-side)?token=<jwt>"{ "results": [ { "id": "full-name-0", "text": "John Smith", } ], "query": "jo", "confidence": "low"}Sent as query string parameters on the HTTP request to the API.
| Parameter | Type | Default | Description |
|---|---|---|---|
| token | string | — | JWT obtained from the token API. Required for authentication. |
Passed to the SDK methods (e.g. firstNames(query, opts)). These are processed client-side and never sent to the API.
| Option | Type | Default | Description |
|---|---|---|---|
| limit | number | 10 | Maximum number of results (1–50). Applied client-side by the SDK. |
| simple | boolean | false | Simplify response: deduplicate by text and strip to {text, type}. |
Query: jo
{ "results": [ { "id": "full-name-0", "text": "John Smith" }, { "id": "full-name-1", "text": "Joseph Jones" }, { "id": "full-name-2", "text": "Jonathan Taylor" }, { "id": "full-name-3", "text": "Jordan Brown" }, { "id": "full-name-4", "text": "Joshua Williams" } ], "query": "jo", "confidence": "low"}Query: john s
{ "results": [ { "id": "full-name-0", "text": "John Smith" }, { "id": "full-name-1", "text": "John Stevens" }, { "id": "full-name-2", "text": "John Saunders" }, { "id": "full-name-3", "text": "John Scott" }, { "id": "full-name-4", "text": "John Simpson" } ], "query": "john s", "confidence": "low"}Query: sarah j
{ "results": [ { "id": "full-name-0", "text": "Sarah Jones" }, { "id": "full-name-1", "text": "Sarah Johnson" }, { "id": "full-name-2", "text": "Sarah Jenkins" }, { "id": "full-name-3", "text": "Sarah Jordan" } ], "query": "sarah j", "confidence": "low"}