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

# Conventions

> Pagination, dates, errors and identifiers.

## Pagination

List endpoints are paginated with `limit` and `offset`:

| Parameter | Default | Maximum |
| - | - | - |
| `limit` | 50 | 500 |
| `offset` | 0 | — |

```json theme={null}
{
  "count": 1250,
  "next": "https://app.reinvented.education/api/clients/users/?limit=50&offset=50",
  "previous": null,
  "results": [ … ]
}
```

Follow `next` until it is `null` to read every page.

## Search, filters and ordering

* `search` does a case-insensitive partial match over the fields each endpoint lists.
* Filters are plain query parameters, such as `?is_client=true` or `?published=true`.
* Where supported, `ordering` sorts the results; prefix the field with `-` for descending order (`?ordering=-created`).

## Dates

Dates and datetimes use ISO 8601 (`2026-03-16` and `2026-03-16T14:52:06-05:00`). Datetimes in responses
carry their UTC offset (hackU's reference time zone is `America/Bogota`, UTC-5). When you send a datetime
filter, include the offset or `Z`; without one it is read in `America/Bogota` time.

## Identifiers

* `user_id` is the hackU id of a user: the `user_pk` returned when you create it, or the `id` in the user list.
* `route_id` and `module_id` are the ids returned by the course catalog (`/clients/routes/`).
* `pensum_id` is the id of one of your company's pensums: your account manager gives you the list, and `/clients/users/{user_id}/pensums/` returns the pensums of a user.
* `company_slug` is your company's `slug_name`, provided with your API key.

## Errors

hackU uses standard HTTP status codes:

| Status | Meaning |
| - | - |
| `200` / `201` | Success. `201` when something was created. |
| `400` | The request is invalid. The body says which field failed and why. |
| `403` | The API key is missing or invalid. |
| `404` | The resource does not exist or does not belong to your company. |
| `5xx` | Something failed on our side. Retry later with backoff; contact support if it persists. |

Validation errors map each field to a list of messages; errors that are not about one field use
`non_field_errors` or `detail`:

```json theme={null}
{
  "phone_number": ["Formato requerido: +999999999."],
  "non_field_errors": ["El usuario no pertenece a la compañía."]
}
```

> [!NOTE]
>
> Error messages are written for people and may come in Spanish. Base your code on the HTTP status
> and the field name, not on the message text.


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