---
title: "API reference"
description: "Start here for the TRUSTIVAN HTTP API: the conventions every request follows, then a page per endpoint generated from the OpenAPI description."
---

Everything a person does in the console is an HTTP request to `/api/v1`, and a
pipeline holding an API key with the right scopes can make the same requests.
Read the conventions once; the endpoint pages under **Endpoints** in the
sidebar are generated from [`openapi.yaml`](https://docs.trustivan.com/openapi.yaml),
which a Go test keeps in step with the routes the server registers.

<Columns cols={2}>
  <Card title="Overview" icon="book-open" href="/api-reference/overview">
    Base path, the two credentials and the contract the API keeps with a pipeline.
  </Card>
  <Card title="Authentication" icon="key-round" href="/api-reference/authentication">
    API keys and browser sessions, and the lifecycle a machine key follows.
  </Card>
  <Card title="Scopes" icon="shield-check" href="/api-reference/scopes">
    What a key may be granted, and which permissions no machine may hold.
  </Card>
  <Card title="Pagination" icon="list-ordered" href="/api-reference/pagination">
    Cursors, the two orderings, and why a machine enumerates with `order=recent`.
  </Card>
  <Card title="Idempotency" icon="repeat" href="/api-reference/idempotency">
    How `Idempotency-Key` makes a retried scan or bulk update safe.
  </Card>
  <Card title="Errors and limits" icon="triangle-alert" href="/api-reference/errors">
    The error envelope, each status code, the rate limiter and every limit.
  </Card>
</Columns>

For the routes most integrations use, grouped with the scope each needs, see
[Endpoints](/api-reference/endpoints).
