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

# API collection

> Load detection and authentication requests into Postman, Insomnia, or Bruno.

Each collection includes detection and authentication requests from the OpenAPI
specification, and each one
arrives with the authentication already wired: the credential variables, a
bearer token on every request, and a token request that stores its own answer.

<CardGroup cols={3}>
  <Card title="Postman" icon="paper-plane" href="/document-verification/api-reference/trelent-document-verification.postman.zip" arrow="true" cta="Download">
    Collection v2.1
  </Card>

  <Card title="Insomnia" icon="moon" href="/document-verification/api-reference/trelent-document-verification.insomnia.zip" arrow="true" cta="Download">
    Insomnia YAML v5
  </Card>

  <Card title="Bruno" icon="bowl-food" href="/document-verification/api-reference/trelent-document-verification.bruno.zip" arrow="true" cta="Download">
    Bruno collection folder
  </Card>
</CardGroup>

Each download is a zip. Unzip it first.

## Import it

<Tabs>
  <Tab title="Postman">
    **Import → File**, and choose
    `trelent-document-verification.postman.json`.

    Open the collection, go to **Variables**, and set `client_id` and
    `client_secret`. Set `baseUrl` to the base URL Trelent gave you. Leave `access_token`
    empty.

    Send **Authentication → Get an access token** first. A post-response script
    stores the token in the `access_token` collection variable, and every other
    request inherits it as a bearer token.
  </Tab>

  <Tab title="Insomnia">
    **Import → File**, and choose
    `trelent-document-verification.insomnia.yaml`. Insomnia imports the YAML
    file, not the zip.

    Open the base environment and set `client_id` and `client_secret`. Set `base_url` to the base URL Trelent
    gave you. Leave `access_token` empty.

    Send **Authentication → Get an access token** first. An after-response script
    stores the token in the `access_token` environment variable, and every other
    request inherits it as a bearer token.
  </Tab>

  <Tab title="Bruno">
    **Import Collection**, and choose the zip. Bruno unpacks the collection
    folder itself.

    On an older Bruno that cannot read a zip, unzip it and use **Open
    Collection** on the folder instead.

    Open the **Production** environment and set `client_id` and `client_secret`;
    both are marked secret, so Bruno keeps them out of the collection files.
    Set `baseUrl` to the base URL Trelent gave you.

    Send **Authentication → Get an access token** first. A post-response script
    stores the token in the `access_token` environment variable, and every other
    request inherits it as a bearer token.
  </Tab>
</Tabs>

<Note>
  Tokens expire. Send **Get an access token** again when requests start to
  answer `401`.
</Note>

The token request asks for `DocumentVerification:*`. Change the `scope` field
if your client holds a narrower set — see
[Authentication](/document-verification/authentication).
