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

# API reference

> Every endpoint of the Eloout API, generated from the OpenAPI contract.

The endpoint pages in this section are generated from the Eloout OpenAPI 3.1 contract,
version 1.1.1. [Download the contract](https://docs.eloout.com/openapi.json).

## Base URL

```text theme={null}
https://app.eloout.com/api/v1
```

Authenticate every request with `Authorization: Bearer <your API key>`. See
[Authentication](https://docs.eloout.com/authentication.md).

## Endpoints

| Group | Endpoints | Permissions |
| - | - | - |
| Account | `GET /me` | None |
| Catalog | Pipelines and opportunity custom fields | `pipelines:read`, `custom-fields:read` |
| Opportunities | List, read, update, upsert by external ID, batch upsert | `opportunities:read`, `opportunities:write` |
| Lists | List metadata | `lists:read` |
| Records | Read records, upsert by external ID, change stage | `records:read`, `records:write` |
| Webhooks | Subscriptions and their deliveries | `webhooks:read`, `webhooks:write` |

Each endpoint page names the one permission it needs.

## Conventions

* **Responses**: `{"ok": true, "data": ...}` on success, `{"ok": false, "error": ...}` on error.
  See [Errors and rate limits](https://docs.eloout.com/errors.md).
* **Pagination**: list endpoints take `limit` and `cursor`, and return `nextCursor`, which is
  `null` on the last page.
* **External IDs**: you can upsert opportunities and records by the ID they have in your own
  system, with `PUT /opportunities/external/{source}/{externalId}` and
  `PUT /lists/{listId}/records/external/{externalId}`. Records can also be read that way
  (`GET /lists/{listId}/records/external/{externalId}`); to find an opportunity by external ID,
  list opportunities with `filter[externalId]` (and `filter[source]`). Updating an opportunity
  with `PATCH /opportunities/{id}` takes its Eloout ID.
* **Retries and dry runs**: writes that list `Idempotency-Key` replay their stored answer to a
  retry of the same request for 24 hours, and writes that list `dryRun` can be planned without
  changing anything. See [Errors and rate limits](https://docs.eloout.com/errors.md#retrying-writes).

## Changelog

* **1.1.1**: descriptions corrected to match the server, with no change in behaviour.
  `X-RateLimit-Reset` is the number of seconds until the window resets, not a Unix time; the
  `X-RateLimit-*` headers come only on answers to an authenticated key; `Idempotency-Key` is
  1–255 printable ASCII characters without spaces, and answers of 500 and above are not stored.
* **1.1.0**: every operation requires a permission per resource. `lists:write` is retired in
  favour of `records:write`; record endpoints need `records:read` or `records:write` instead of
  `lists:read` or `lists:write`. `GET /me` reports the key's effective permissions and the
  `legacy` flag, and no longer returns the key prefix. Keys created earlier were migrated to
  explicit permissions matching their previous access.
* **1.0.0**: first published contract of `/api/v1`: opportunities, pipelines, custom fields,
  lists, records and webhooks.


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