# People

> Keep every check you run on one person together: link checks with the Speedmap-Person header and read them back as one profile with what they agree on.

Verifying someone properly is rarely one check. You look up the phone number, pull the credit report, confirm the BVN, read the NIN, test the bank account, match the face and screen the name. Each of those is its own [verification](https://speedmap.io/docs/verifications).

A **person** is the folder that holds them. Create one, send its id on every check you run for that individual, and read the person back to get all the checks together: what was run, what each returned, and which facts the checks agree on.

Creating a person is free and runs no check. A person belongs to one mode, sandbox or live, like the key that created it.

## How it works

1. Create a person, optionally with your own `reference` (a pension number, a staff id, a customer id).
2. Run each check as usual and add the header `Speedmap-Person: per_…`. The result carries `person_id`.
3. Use what each check returns to make the next one: the name and date of birth from the phone lookup open the credit report; the NIN on the BVN record opens the NIN check.
4. Retrieve the person to read every check and the consolidated identity.

## Create a person

`POST /v1/people`

**Body parameters**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `reference` | string | No | Your own id for the person, up to 80 characters. Unique per account and mode; you can look the person up by it later. |
| `name` | string | No | A display name, up to 120 characters. You can leave it out and set it once a check has returned the name. |

_cURL_

```bash
curl -X POST "https://api.speedmap.io/v1/people" \
  -H "Authorization: Bearer sk_test_..." \
  -H "Content-Type: application/json" \
  -d '{
  "reference": "PEN-000482"
}'
```

_Node.js_

```javascript
const res = await fetch("https://api.speedmap.io/v1/people", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.SPEEDMAP_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "reference": "PEN-000482"
  }),
});

const person = await res.json();
if (!res.ok) throw new Error(person.error.message);
console.log(person);
```

_Python_

```python
import os, requests

res = requests.post(
    "https://api.speedmap.io/v1/people",
    headers={
        "Authorization": f"Bearer {os.environ['SPEEDMAP_API_KEY']}",
    },
    json={
        "reference": "PEN-000482"
    },
    timeout=30,
)
res.raise_for_status()
print(res.json())
```

**201 Created**

```json
{
  "id": "per_3f9c1a7b2e4d6f8a",
  "object": "person",
  "reference": "PEN-000482",
  "name": null,
  "mode": "sandbox",
  "checks_count": 0,
  "last_check_at": null,
  "created_at": "2026-12-03T09:41:07.512Z",
  "updated_at": "2026-12-03T09:41:07.512Z"
}
```

A `reference` that another person already uses returns `409 person_reference_in_use`.

## Link a check to a person

Add the `Speedmap-Person` header to any verification call. Nothing else about the request changes, and the price of the check is the same.

_cURL_

```bash
curl -X POST "https://api.speedmap.io/v1/verify/phone" \
  -H "Authorization: Bearer sk_test_..." \
  -H "Speedmap-Person: per_3f9c1a7b2e4d6f8a" \
  -H "Content-Type: application/json" \
  -d '{
  "phone": "08034567812",
  "reason": "pensionEnrollment",
  "consent": {
    "obtained": true
  }
}'
```

_Node.js_

```javascript
const res = await fetch("https://api.speedmap.io/v1/verify/phone", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.SPEEDMAP_API_KEY}`,
    "Speedmap-Person": "per_3f9c1a7b2e4d6f8a",
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "phone": "08034567812",
    "reason": "pensionEnrollment",
    "consent": {
      "obtained": true
    }
  }),
});

const verification = await res.json();
if (!res.ok) throw new Error(verification.error.message);
console.log(verification.status, verification.person_id);
```

_Python_

```python
import os, requests

res = requests.post(
    "https://api.speedmap.io/v1/verify/phone",
    headers={
        "Authorization": f"Bearer {os.environ['SPEEDMAP_API_KEY']}",
        "Speedmap-Person": "per_3f9c1a7b2e4d6f8a",
    },
    json={"phone": "08034567812", "reason": "pensionEnrollment", "consent": {"obtained": True}},
    timeout=30,
)
res.raise_for_status()
verification = res.json()
print(verification["status"], verification["person_id"])
```

The response is the usual verification object with `"person_id": "per_3f9c1a7b2e4d6f8a"`. The header works on every `/v1/verify/*` endpoint and on `/v1/screen`.

| Code | Meaning |
| --- | --- |
| `400 invalid_person` | The header is not a person id (`per_` followed by 16 characters). |
| `404 person_not_found` | No person with that id exists in this mode. The check is not run and nothing is charged. |

### Add a check afterwards

A check that was run without the header can be added later, and removed again. A check belongs to one person at a time; adding one that is already on another person returns `409 check_belongs_to_another_person`.

`POST /v1/people/{id}/checks`

_cURL_

```bash
curl -X POST "https://api.speedmap.io/v1/people/per_3f9c1a7b2e4d6f8a/checks" \
  -H "Authorization: Bearer sk_test_..." \
  -H "Content-Type: application/json" \
  -d '{
  "reference_id": "spm_a7bd5d24fe62881e9ecffcb8"
}'
```

_Node.js_

```javascript
const res = await fetch("https://api.speedmap.io/v1/people/per_3f9c1a7b2e4d6f8a/checks", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.SPEEDMAP_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "reference_id": "spm_a7bd5d24fe62881e9ecffcb8"
  }),
});

const person = await res.json();
if (!res.ok) throw new Error(person.error.message);
console.log(person);
```

_Python_

```python
import os, requests

res = requests.post(
    "https://api.speedmap.io/v1/people/per_3f9c1a7b2e4d6f8a/checks",
    headers={
        "Authorization": f"Bearer {os.environ['SPEEDMAP_API_KEY']}",
    },
    json={
        "reference_id": "spm_a7bd5d24fe62881e9ecffcb8"
    },
    timeout=30,
)
res.raise_for_status()
print(res.json())
```

`DELETE /v1/people/{id}/checks/{reference_id}`

Removing a check from a person does not delete it: it stays in your verification history.

## Retrieve a person

`GET /v1/people/{id}`

_cURL_

```bash
curl "https://api.speedmap.io/v1/people/per_3f9c1a7b2e4d6f8a" \
  -H "Authorization: Bearer sk_test_..."
```

_Node.js_

```javascript
const res = await fetch("https://api.speedmap.io/v1/people/per_3f9c1a7b2e4d6f8a", {
  method: "GET",
  headers: {
    Authorization: `Bearer ${process.env.SPEEDMAP_API_KEY}`,
  },
});

const person = await res.json();
if (!res.ok) throw new Error(person.error.message);
console.log(person);
```

_Python_

```python
import os, requests

res = requests.get(
    "https://api.speedmap.io/v1/people/per_3f9c1a7b2e4d6f8a",
    headers={
        "Authorization": f"Bearer {os.environ['SPEEDMAP_API_KEY']}",
    },
    timeout=30,
)
res.raise_for_status()
print(res.json())
```

**200 OK, full tier**

```json
{
  "id": "per_3f9c1a7b2e4d6f8a",
  "object": "person",
  "reference": "PEN-000482",
  "name": "Folasade Abimbola Adeyemi",
  "mode": "sandbox",
  "checks_count": 8,
  "last_check_at": "2026-12-03T09:46:44.468Z",
  "created_at": "2026-12-03T09:41:07.512Z",
  "updated_at": "2026-12-03T09:41:07.512Z",
  "counts": {
    "checks": 8,
    "verified": 8,
    "not_found": 0,
    "failed": 0,
    "pending": 0
  },
  "products": [
    "aml",
    "face",
    "account",
    "nin",
    "bvn",
    "credit_report_premium",
    "phone"
  ],
  "first_check_at": "2026-12-03T09:41:07.512Z",
  "has_records": true,
  "checks": [
    {
      "reference_id": "spm_1740b77546833baddeb828cf",
      "object": "verification",
      "product": "aml",
      "method": "aml_screen_person",
      "status": "verified",
      "match": null,
      "person_id": "per_3f9c1a7b2e4d6f8a",
      "created_at": "2026-12-03T09:46:44.468Z",
      "…": "the same verification object every check returns"
    },
    "… 7 more"
  ],
  "identity": [
    {
      "field": "name",
      "value": "FOLASADE ABIMBOLA ADEYEMI",
      "confirmed_by": [
        {
          "product": "phone",
          "reference_id": "spm_a7bd5d24fe62881e9ecffcb8",
          "checked_at": "2026-12-03T09:41:07.512Z"
        },
        {
          "product": "credit_report_premium",
          "reference_id": "spm_59ce3b785b723d0540c82f54",
          "checked_at": "2026-12-03T09:42:10.036Z"
        },
        {
          "product": "bvn",
          "reference_id": "spm_94bb39e3dfc771bb0ce5ec14",
          "checked_at": "2026-12-03T09:44:31.453Z"
        },
        {
          "product": "nin",
          "reference_id": "spm_9c001c61d7a5829fe0429d9e",
          "checked_at": "2026-12-03T09:45:02.462Z"
        },
        {
          "product": "account",
          "reference_id": "spm_f9db9f8ba421d9848f787b7b",
          "checked_at": "2026-12-03T09:45:40.464Z"
        }
      ],
      "conflicts": []
    },
    {
      "field": "date_of_birth",
      "value": "1958-06-12",
      "confirmed_by": [
        {
          "product": "phone",
          "reference_id": "spm_a7bd5d24fe62881e9ecffcb8",
          "checked_at": "2026-12-03T09:41:07.512Z"
        },
        {
          "product": "credit_report_premium",
          "reference_id": "spm_59ce3b785b723d0540c82f54",
          "checked_at": "2026-12-03T09:42:10.036Z"
        },
        {
          "product": "bvn",
          "reference_id": "spm_94bb39e3dfc771bb0ce5ec14",
          "checked_at": "2026-12-03T09:44:31.453Z"
        },
        {
          "product": "nin",
          "reference_id": "spm_9c001c61d7a5829fe0429d9e",
          "checked_at": "2026-12-03T09:45:02.462Z"
        }
      ],
      "conflicts": []
    },
    {
      "field": "gender",
      "value": "female",
      "confirmed_by": [
        {
          "product": "credit_report_premium",
          "reference_id": "spm_59ce3b785b723d0540c82f54",
          "checked_at": "2026-12-03T09:42:10.036Z"
        },
        {
          "product": "bvn",
          "reference_id": "spm_94bb39e3dfc771bb0ce5ec14",
          "checked_at": "2026-12-03T09:44:31.453Z"
        }
      ],
      "conflicts": []
    },
    {
      "field": "phone",
      "value": "08034567812",
      "confirmed_by": [
        {
          "product": "phone",
          "reference_id": "spm_a7bd5d24fe62881e9ecffcb8",
          "checked_at": "2026-12-03T09:41:07.512Z"
        },
        {
          "product": "bvn",
          "reference_id": "spm_94bb39e3dfc771bb0ce5ec14",
          "checked_at": "2026-12-03T09:44:31.453Z"
        }
      ],
      "conflicts": []
    },
    {
      "field": "bvn",
      "value": "22222222227",
      "confirmed_by": [
        {
          "product": "bvn",
          "reference_id": "spm_94bb39e3dfc771bb0ce5ec14",
          "checked_at": "2026-12-03T09:44:31.453Z"
        },
        {
          "product": "face",
          "reference_id": "spm_f5f7961b7d71b409a141232f",
          "checked_at": "2026-12-03T09:46:18.466Z"
        }
      ],
      "conflicts": []
    },
    {
      "field": "nin",
      "value": "61234567890",
      "confirmed_by": [
        {
          "product": "bvn",
          "reference_id": "spm_94bb39e3dfc771bb0ce5ec14",
          "checked_at": "2026-12-03T09:44:31.453Z"
        },
        {
          "product": "nin",
          "reference_id": "spm_9c001c61d7a5829fe0429d9e",
          "checked_at": "2026-12-03T09:45:02.462Z"
        }
      ],
      "conflicts": []
    },
    {
      "field": "account_number",
      "value": "5678901234",
      "detail": {
        "bank_code": "011",
        "bank_name": "First Bank of Nigeria",
        "account_name": "FOLASADE ABIMBOLA ADEYEMI"
      },
      "confirmed_by": [
        {
          "product": "account",
          "reference_id": "spm_f9db9f8ba421d9848f787b7b",
          "checked_at": "2026-12-03T09:45:40.464Z"
        }
      ],
      "conflicts": []
    },
    {
      "field": "liveness",
      "value": "passed",
      "detail": {
        "confidence": 0.752
      },
      "confirmed_by": [
        {
          "product": "face",
          "reference_id": "spm_f5f7961b7d71b409a141232f",
          "checked_at": "2026-12-03T09:46:18.466Z"
        }
      ],
      "conflicts": []
    },
    {
      "field": "face_match",
      "value": "passed",
      "detail": {
        "confidence": 0.92
      },
      "confirmed_by": [
        {
          "product": "face",
          "reference_id": "spm_f5f7961b7d71b409a141232f",
          "checked_at": "2026-12-03T09:46:18.466Z"
        }
      ],
      "conflicts": []
    },
    {
      "field": "sanctions",
      "value": "clear",
      "detail": {
        "hit_count": 0,
        "screened_lists": [
          "ng",
          "pep"
        ]
      },
      "confirmed_by": [
        {
          "product": "aml",
          "reference_id": "spm_1740b77546833baddeb828cf",
          "checked_at": "2026-12-03T09:46:44.468Z"
        }
      ],
      "conflicts": []
    }
  ],
  "photo": {
    "product": "nin",
    "reference_id": "spm_9c001c61d7a5829fe0429d9e",
    "checked_at": "2026-12-03T09:45:02.462Z",
    "image": "/9j/2wBDAAcHBwcHBwgJCQgLDAsM…"
  },
  "records": [
    {
      "reference_id": "spm_f9db9f8ba421d9848f787b7b",
      "product": "account",
      "method": "account_name_enquiry",
      "checked_at": "2026-12-03T09:45:40.464Z",
      "data": {
        "account_number": "5678901234",
        "bank_code": "011",
        "bank_name": "First Bank of Nigeria",
        "account_name": "FOLASADE ABIMBOLA ADEYEMI",
        "bvn_linked": true,
        "name_match": true
      }
    },
    "… one per verified check"
  ]
}
```

**Response**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `counts` | object | No | How many checks the person has, by status: `checks`, `verified`, `not_found`, `failed`, `pending`. |
| `products` | string[] | No | The products checked for this person. |
| `checks` | object[] | No | Every check, newest first, each the same [verification object](https://speedmap.io/docs/verifications) the check returned. |
| `has_records` | boolean | No | Whether any verified check holds a record. |
| `identity` | object[] | No | Full tier. One entry per fact the verified checks established, in this order: `name`, `date_of_birth`, `gender`, `phone`, `email`, `bvn`, `nin`, `account_number`, `liveness`, `face_match`, `sanctions`. |
| `identity[].confirmed_by` | object[] | No | The checks that returned this value: `product`, `reference_id`, `checked_at`. |
| `identity[].conflicts` | object[] | No | Checks that returned a different value for the same fact, each with the value it returned. Empty when every check agrees. |
| `photo` | object | No | Full tier. The most recent photograph a check returned, base64 encoded, with the check it came from. |
| `records` | object[] | No | Full tier. The record each verified check returned, as `data`. |

> **What your tier receives:** `identity`, `photo` and `records` are returned to full-tier accounts on the REST API, following the same rule as `data` on a single check. Assertion-tier accounts receive the person, `counts`, `products` and `checks`. See [Response shaping](https://speedmap.io/docs/response-shaping).

### Reading `identity`

`identity` answers the question the separate checks cannot: do they describe the same person? A name confirmed by the phone lookup, the credit report, the BVN, the NIN and the bank account is one name, five times. A date of birth that the NIN returns differently from the BVN appears under `conflicts`, with both checks named, so your reviewer sees it without opening each result.

Speedmap reports what the checks returned. The decision stays yours.

## List and find people

`GET /v1/people`

_cURL_

```bash
curl "https://api.speedmap.io/v1/people?reference=PEN-000482" \
  -H "Authorization: Bearer sk_test_..."
```

_Node.js_

```javascript
const res = await fetch("https://api.speedmap.io/v1/people?reference=PEN-000482", {
  method: "GET",
  headers: {
    Authorization: `Bearer ${process.env.SPEEDMAP_API_KEY}`,
  },
});

const people = await res.json();
if (!res.ok) throw new Error(people.error.message);
console.log(people);
```

_Python_

```python
import os, requests

res = requests.get(
    "https://api.speedmap.io/v1/people",
    headers={
        "Authorization": f"Bearer {os.environ['SPEEDMAP_API_KEY']}",
    },
    params={
        "reference": "PEN-000482"
    },
    timeout=30,
)
res.raise_for_status()
print(res.json())
```

Pass `reference` to find the person with your own id. Lists take `limit` (up to 100, default 50) and the `before` cursor. See [Pagination](https://speedmap.io/docs/pagination).

## Update and delete

`PATCH /v1/people/{id}`

_cURL_

```bash
curl -X PATCH "https://api.speedmap.io/v1/people/per_3f9c1a7b2e4d6f8a" \
  -H "Authorization: Bearer sk_test_..." \
  -H "Content-Type: application/json" \
  -d '{
  "name": "Folasade Abimbola Adeyemi"
}'
```

_Node.js_

```javascript
const res = await fetch("https://api.speedmap.io/v1/people/per_3f9c1a7b2e4d6f8a", {
  method: "PATCH",
  headers: {
    Authorization: `Bearer ${process.env.SPEEDMAP_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "name": "Folasade Abimbola Adeyemi"
  }),
});

const person = await res.json();
if (!res.ok) throw new Error(person.error.message);
console.log(person);
```

_Python_

```python
import os, requests

res = requests.patch(
    "https://api.speedmap.io/v1/people/per_3f9c1a7b2e4d6f8a",
    headers={
        "Authorization": f"Bearer {os.environ['SPEEDMAP_API_KEY']}",
    },
    json={
        "name": "Folasade Abimbola Adeyemi"
    },
    timeout=30,
)
res.raise_for_status()
print(res.json())
```

`DELETE /v1/people/{id}`

Deleting a person removes the folder only. Their checks stay in your verification history, no longer tied to anyone, and the response tells you how many with `checks_untied`.

## In the dashboard

**People** in the dashboard lists every person. A profile shows the checks, what they agree on, and the next checks that can be opened with what is already known. Each result in the playground offers the same step: pick the next check and its form opens with the values carried over. Opening a person's records is limited to roles that can reveal, and every opening is written to your audit log.

> **Try the whole file in the sandbox:** The sandbox has a test person who passes every check: phone `08034567812`, BVN `22222222227`, NIN `61234567890`, account `5678901234` at bank `011`, date of birth `1958-06-12`. See [Sandbox](https://speedmap.io/docs/sandbox) for the full set of test values.

---

Source: https://speedmap.io/docs/people
