# Constant Contact API Authentication

#   


## Authentication Method

Constant Contact is connected to n8n through:

```
OAuth2 Authorization Code
```

The Constant Contact application is created through the Constant Contact Developer Portal.

The application provides:

- Client ID / API Key
- Client Secret
- Redirect URI configuration

## n8n OAuth Configuration

The Constant Contact OAuth credential in n8n uses the application created in Constant Contact.

The n8n callback URL must be entered exactly in the Constant Contact application's Redirect URI configuration.

A mismatch will cause errors similar to:

```
The 'redirect_uri' parameter must be a Login redirect URI
```

The protocol, hostname, path, and trailing slash must match exactly.

## Access Tokens

Constant Contact access tokens should not be manually stored in workflow nodes.

n8n manages:

- the OAuth access token,
- token refresh,
- and ongoing authorization.

The old workflow configuration variable:

```
CC_ACCESS_TOKEN
```

is therefore no longer required.

Constant Contact HTTP Request nodes should use the stored n8n OAuth2 credential.

<div contenteditable="false" id="bkmrk--1">---

</div>