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

# First call in 5 minutes

> From zero to your first DoglyTdc Pay API response, straight to the point.

## What you'll need

* A key with the `read` and `products` scopes. Details in [Authentication](https://docs.doglytdc.dev/en/pay/authentication.md).
* A terminal with `curl`.

**1. Save your credentials**

```bash theme={null}
export DPAY_CLIENT_ID="dpk_..."
export DPAY_CLIENT_SECRET="..."
```

**2. List your products**

```bash theme={null}
curl https://ucsyxzpdbnuyehizezvb.supabase.co/functions/v1/doglytdc-pay/v1/products -u "$DPAY_CLIENT_ID:$DPAY_CLIENT_SECRET"
```

**3. Check the response**

```json theme={null}
{ "data": [ { "id": "…", "name": "…", "price_cents": 1990, "currency": "BRL", "status": "active" } ] }
```

> [!TIP]
>
> Received `200` with `data`? The integration works. The rest is choosing the data and actions.

## Common errors at this step

| Response | Cause | How to resolve |
| - | - | - |
| `401 unauthorized` | Incorrect `client_id`/`client_secret` or revoked key | Copy again or create another key |
| `403 insufficient_scope` | Missing `read` and `products` | Edit the key's scopes |
| `429 rate_limited` | Too many requests in 1 minute | Wait and retry (see [Rate limits](https://docs.doglytdc.dev/en/pay/concepts/rate-limits.md)) |

## Next steps

> [card] [Receive your first sale](https://docs.doglytdc.dev/en/pay/get-started/first-sale.md)

> [card] [Glossary](https://docs.doglytdc.dev/en/pay/concepts/glossary.md)


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