---
title: "What the address agreed to | Proxy Mail QA"
description: "Developer docs for Proxy Mail QA: the MCP server for coding agents, the REST API for test suites, and the Chrome extension."
url: https://proxymail.qa/docs/reference/operations/getconsent
---

# What the address agreed to

GET

/v1/addresses/{address}/consent

```js
const url = 'https://api.proxymail.qa/v1/addresses/k7f2x9ab12cd%40mailclub.dev/consent';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```sh
curl --request GET \
  --url https://api.proxymail.qa/v1/addresses/k7f2x9ab12cd%40mailclub.dev/consent \
  --header 'Authorization: Bearer <token>'
```

In Labs: answers 403 until the key’s creator switches on Marketing and offer emails in Account settings → Labs.

## Authorizations

- **[apiKey](https://proxymail.qa/docs/reference.html#apikey)**

## Parameters

### Path Parameters

**address**

required

string format: email

The test address, URL-encoded. A variant also works: capitals, or a +tag (k7f2x9ab12cd+o’[brien@mailclub.dev](mailto:brien@mailclub.dev)). It acts on the plain address; waiting on a +tag variant, or listing its messages, only finds mail sent to that variant.

#### Example 

```plaintext
k7f2x9ab12cd@mailclub.dev
```

## Responses

### 200

Its consent

Media typeapplication/json

### object

**address**

string

**marketing**

string | null

Allowed values: opted\_in declined

**prechecked**

boolean | null

**at**

string | null format: date-time

**double\_opt\_in**

string | null

Allowed values: confirmed pending

**double\_opt\_in\_at**

string | null format: date-time

**via**

string | null

Allowed values: form app extension agent api

**country**

The persona’s country, which decides the rules.

string | null

#### Example 

```json
{
  "marketing": "opted_in",
  "double_opt_in": "confirmed",
  "via": "form"
}
```

### 404

An error

Media typeapplication/json

### object

**error**

string

**message**

string

#### Example generated

```json
{
  "error": "example",
  "message": "example"
}
```

[Previous Check a series of emails](https://proxymail.qa/docs/reference/operations/checksequence.html) [Next Record what the address agreed to](https://proxymail.qa/docs/reference/operations/recordconsent.html)

- [English ](https://proxymail.qa/docs/reference/operations/getconsent)
- [DeutschStartseite](https://proxymail.qa/de)
- [EspañolPágina de inicio](https://proxymail.qa/es)
- [FrançaisPage d’accueil](https://proxymail.qa/fr)
- [日本語トップページ](https://proxymail.qa/jp)
- [简体中文首页](https://proxymail.qa/zh-cn)
