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

# Referência da API

> Consulte ambientes, autenticação e grupos de endpoints da Onbeef Connect API.

A Onbeef Connect API usa HTTPS e JSON. Os endpoints de recursos usam o prefixo `/v1/`.

## URLs base

<CardGroup cols={2}>
  <Card title="Sandbox" icon="flask" href="/environments/sandbox">
    `https://api.dev.connect.onbeefapp.com.br`
  </Card>

  <Card title="Produção" icon="rocket" href="/environments/production">
    `https://api.connect.onbeefapp.com.br`
  </Card>
</CardGroup>

## Autenticação

Obtenha um token em `POST /oauth/token` e envie-o nos endpoints protegidos:

```http theme={null}
Authorization: Bearer <access_token>
```

Requisições com corpo JSON devem incluir:

```http theme={null}
Content-Type: application/json
```

## Endpoints

<CardGroup cols={2}>
  <Card title="Autenticação" icon="key" href="/api-reference/auth/token">
    Obtenha o token de acesso.
  </Card>

  <Card title="Merchant" icon="store" href="/api-reference/merchant/get-merchant">
    Consulte a loja e sincronize o catálogo.
  </Card>

  <Card title="Pedidos" icon="bag-shopping" href="/api-reference/orders/get-events">
    Consulte eventos e atualize pedidos.
  </Card>

  <Card title="Logística" icon="truck" href="/api-reference/logistics/order-event-notification">
    Envie eventos e valide entregas.
  </Card>
</CardGroup>

<Card title="Erros da API" icon="triangle-exclamation" href="/api-reference/errors">
  Consulte os códigos e o formato das respostas de erro.
</Card>
