> ## Documentation Index
> Fetch the complete documentation index at: https://docs.usecroma.com/llms.txt
> Use this file to discover all available pages before exploring further.

# DASCD Candidates for Bogotá posts

> Bogotá candidates for discretionary posts, with their CVs.

Before a district entity in Bogotá appoints someone to a discretionary post (libre nombramiento y remoción), the Departamento Administrativo del Servicio Civil Distrital (DASCD) publishes the candidate for citizen comment, under Decreto Distrital 189 de 2020: cédula, name, post, level, entity, the hoja de vida, the background certificates from the Personería, Contraloría, Policía and Procuraduría, and the post's manual de funciones. The DASCD shows each candidate for about a week; Croma keeps every one, with a byte-identical copy of each document and the hoja de vida's text.

Search by words in the hoja de vida, cédula, name, entity, level or date, then read a hoja de vida by the publication's id. Coverage starts in February 2024 and is complete from December 2026.

## Search the candidates

`POST /co/dascd/candidates-search/v1` [Dataset 1 credit](https://docs.usecroma.com/datasets.md)

One search over every candidate, by words in the hoja de vida, cédula, name, entity, level or date.

**Request**

| Field | Type | Notes |
| - | - | - |
| `query` | string | Optional words matched against the whole text of each hoja de vida, the candidate's name, the post and the entity, the best match first, e.g. `especialización en derecho administrativo`. A result need not contain every word. |
| `document_number` | string | Optional cédula of the candidate, with or without dots. |
| `name` | string | Optional words of the candidate's name, in any order, with or without accents. |
| `entity` | string | Optional words of the nominating entity's name, in any order, with or without accents, e.g. `Hacienda`, `Subred Sur` or `Acueducto`. |
| `level` | enum | Optional level of the post: `Directivo`, `Asesor` or `Profesional`. |
| `from_date` | string | Optional: only candidates published on or after this date, `yyyy-mm-dd`. |
| `to_date` | string | Optional: only candidates published on or before this date, `yyyy-mm-dd`. |
| `page` | integer | 1-based page number. Default `1`. |
| `per_page` | integer | Results per page (1-50). Default `10`. |

```bash theme={"dark"}
curl https://api.croma.run/co/dascd/candidates-search/v1 \
  -H "Authorization: Bearer $CROMA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "query": "derecho administrativo", "entity": "Hacienda" }'
```

**Response**

Returns `as_of` (how current the data is), the filters applied, `total` and `total_is_exact`, the paging fields (`page`, `per_page`, `total_pages`, `count`) and `results[]`, best match first (newest first without a `query`), one candidate each:

| Field | Notes |
| - | - |
| `id`, `filing_number` | The publication's number at the DASCD, e.g. `2661` (pass it to `candidate` for the hoja de vida's text), and its filing number (radicado), e.g. `1-2026-18625`. |
| `document_number`, `full_name` | The candidate's cédula and name, as published. |
| `position`, `position_id`, `position_title`, `position_code`, `position_grade`, `office` | The post as published, and its parts: number in the staff plan, title, code, grade and office. |
| `level`, `entity` | The post's level (`Directivo`, `Asesor`, `Profesional`) and the nominating district entity. |
| `published_at`, `publication_date`, `year` | When the DASCD published the candidate, in Bogotá time. |
| `documents[]` | Every document published with the candidate, the hoja de vida first: `kind` (`resume`, `background_personeria`, `background_contraloria`, `background_policia`, `background_corrective_measures`, `background_procuraduria`, `job_description`), `label`, `name`, `bytes`, `document_url` (Croma's copy), `source_document_url` and `viewer_url`. |
| `document_url`, `source_document_url` | Croma's copy of the hoja de vida, byte for byte as the DASCD published it, and the source's own link. Give a reader `document_url`: it keeps working after the source takes the publication down. |
| `text_status`, `text_length`, `pages` | `extracted` (Croma holds the hoja de vida's text), `no_text_layer` (a scan that could not be read) or `unavailable`, the text's length in characters and the document's pages. |
| `text_url`, `scanned` | The hoja de vida's whole text as one plain-text file, and whether some pages were recognized from scanned images. |
| `viewer_url` | Opens the hoja de vida in Croma Viewer, a page for signed-in Croma users that shows the PDF with the cited passages highlighted: add `&cite=<start>-<end>` once per passage, up to 12. |

With a `query`, each result also carries `matches[]`, the passages of the hoja de vida that answer the search, best first:

| Field | Notes |
| - | - |
| `matches[].text` | The passage of the hoja de vida, verbatim. |
| `matches[].start`, `matches[].end` | Where it stands in the text, in characters: pass `start` as `offset` to `candidate` to read on from there. |
| `matches[].scanned` | True when the text was recognized from a scanned image. |
| `matches[].viewer_url` | The hoja de vida opened in Croma Viewer on that passage, highlighted. |

## One candidate, with the hoja de vida's text

`POST /co/dascd/candidate/v1` [Dataset 1 credit](https://docs.usecroma.com/datasets.md)

A candidate by the publication's id, with the hoja de vida's text.

**Request**

| Field | Type | Notes |
| - | - | - |
| `candidate_id` | string | **Required.** The publication's id, the `id` of a search result, e.g. `2661`. |
| `offset` | integer | First character of the text to return. Pass the previous response's `next_offset` to read on. Default `0`. |
| `limit` | integer | How many characters of the text to return. Default `200000`. |

```bash theme={"dark"}
curl https://api.croma.run/co/dascd/candidate/v1 \
  -H "Authorization: Bearer $CROMA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "candidate_id": "2661" }'
```

**Response**

Returns `as_of`, `found`, `candidate_id` and `candidate`: every field of a search result plus `content`, a range of the hoja de vida's text:

| Field | Notes |
| - | - |
| `content.text`, `content.offset` | A range of the hoja de vida's text, and the character it starts at. |
| `content.total_length` | The length of the whole text. |
| `content.has_more`, `content.next_offset` | Whether the text continues, and the `offset` to send to read on. |

> [!NOTE]
>
> `content` is null when `text_status` is not `extracted`; `document_url` still gives the hoja de vida. An id Croma holds no candidate under returns `found: false` with HTTP 200, not an error.

> [card] [Full reference](https://docs.usecroma.com/api-reference/overview.md)
>
> Schemas, all response fields, and an interactive playground.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.