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 combines the results. 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", "type": "full-name" } ], "query": "jo"}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", "type": "full-name" }, { "id": "full-name-1", "text": "Jones", "type": "full-name" }, { "id": "full-name-2", "text": "Joseph", "type": "full-name" }, { "id": "full-name-3", "text": "Jordan", "type": "full-name" }, { "id": "full-name-4", "text": "Jonathan", "type": "full-name" } ], "query": "jo"}Query: john s
{ "results": [ { "id": "full-name-0", "text": "John Smith", "type": "full-name" }, { "id": "full-name-1", "text": "John Stevens", "type": "full-name" }, { "id": "full-name-2", "text": "John Saunders", "type": "full-name" }, { "id": "full-name-3", "text": "John Scott", "type": "full-name" }, { "id": "full-name-4", "text": "John Simpson", "type": "full-name" } ], "query": "john s"}Query: sarah j
{ "results": [ { "id": "full-name-0", "text": "Sarah Jones", "type": "full-name" }, { "id": "full-name-1", "text": "Sarah Johnson", "type": "full-name" }, { "id": "full-name-2", "text": "Sarah Jenkins", "type": "full-name" }, { "id": "full-name-3", "text": "Sarah Jordan", "type": "full-name" } ], "query": "sarah j"}