# `unauthorized`: Send a valid API credential

The request did not carry a valid API key, session, or internal credential.

## What happened

A missing, revoked, malformed, or misplaced key produces `401 unauthorized`. API keys are accepted in either `x-api-key` or `Authorization: Bearer`; creating an account or key is not an API operation.

## Do this next

Create or copy a key at `https://cardog.app/login?next=/account/api`, store it in `CARDOG_API_KEY`, and resend the original request with one accepted header.

## Corrected request

```bash

curl "https://api.cardog.app/v2/vin/2T3R1RFV7MW180266" \
  -H "x-api-key: $CARDOG_API_KEY" \
  -H "Cardog-Version: 2026-10-26"

```
