> For the complete documentation index, see [llms.txt](https://placapi.gitbook.io/placapi-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://placapi.gitbook.io/placapi-docs/antecedentes-de-personas/nombre-por-documento.md).

# Nombre por documento

`POST https://placapi.com/api/cedula`

Nombre completo del titular de un documento de identidad. Devuelve el nombre ya partido en `partes`, para no tener que adivinar del lado del cliente dónde termina el nombre y empieza el apellido. Consulta DOS registros en cascada: primero el registro social del DNP —instantáneo, y de regalo trae `sexo`, `edad`, `municipio` y `departamento`—, y si la persona no figura ahí cae al certificado de la Procuraduría, que cubre a cualquiera con documento colombiano pero tarda más. `origen` dice cuál respondió, así se sabe por qué unos campos vienen vacíos. Es el primer paso de cualquier verificación: confirmar que el documento existe y a quién pertenece antes de gastar consultas en antecedentes o en el vehículo. **Un documento sin titular registrado responde 404 y NO cobra** — a diferencia de los antecedentes, donde "no registra" sí cobra: acá el producto es el nombre, y si no vino no se entregó nada. Cuesta 1 crédito. Costo: 1 crédito por consulta con datos.

## Parámetros

| Campo          | Tipo    | Obligatorio | Detalle                                                                                                                                                                                                                                                                                                                    |
| -------------- | ------- | ----------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `docType`      | string  | Sí          | Tipo de documento. La cobertura depende de cuál de los dos registros responda: el social maneja RC, TI, CC, CE, PA, PEP y PPT; el certificado maneja CC, CE, NIT, PPT y PEP. Un tipo que ninguno acepta responde 400 `tipo_documento_no_soportado` sin cobrar. Valores: `CC`, `CE`, `TI`, `RC`, `PA`, `NIT`, `PPT`, `PEP`. |
| `docNumber`    | string  | Sí          | Número de documento. Alias aceptado: `doc`.                                                                                                                                                                                                                                                                                |
| `primerNombre` | string  | No          | Primer nombre del titular. OPCIONAL: solo se usa si la consulta cae al certificado, donde ahorra un par de peticiones al resolver la pregunta de seguridad del portal. No cambia el resultado ni la caché.                                                                                                                 |
| `refresh`      | boolean | No          | Ignora la caché y vuelve a consultar la fuente oficial. Ojo: una consulta refrescada con datos siempre cobra (el hit de caché no).                                                                                                                                                                                         |

## Ejemplo

```bash
curl -X POST 'https://placapi.com/api/cedula' \
  -H 'x-api-key: pk_live_TU_CLAVE' \
  -H 'content-type: application/json' \
  -d '{"docType": "...", "docNumber": "..."}'
```

El esquema completo de la respuesta está en el [OpenAPI 3.1](https://placapi.com/openapi.json) y en la [referencia interactiva](https://placapi.github.io/reference.html).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://placapi.gitbook.io/placapi-docs/antecedentes-de-personas/nombre-por-documento.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
