# Test your API key

> Checks that your API key is accepted. Returns a success message and no product data, and does not count against your quota. The request body is not evaluated.

`POST https://api.amzconnect.io/v1/test/product`

## Authentication

Include an `Authorization` header with the value `Bearer {YOUR_API_KEY}`. You can retrieve your API key from your dashboard.

## Example request

```bash
curl --request POST \
  --url https://api.amzconnect.io/v1/test/product \
  --header 'Authorization: Bearer YOUR_API_KEY'
```

## Responses

### `200`

The API key is valid.

```json
{
  "code": "200",
  "message": "Success!"
}
```

### `403`

The API key is missing, unknown or expired.

Example `invalid_key`:

```json
{
  "code": "invalid_key",
  "message": "Invalid API Key provided."
}
```

Example `expired_key`:

```json
{
  "code": "expired_key",
  "message": "API Key has expired."
}
```

### `404`

The test could not be completed on the server side. Your API key is not the cause; try again later.

```json
{
  "code": "error_fetching_product",
  "message": "Error fetching product."
}
```

---

Source: https://amzconnect.io/docs/api/reference/operations/gettestproduct/
