> ## Documentation Index
> Fetch the complete documentation index at: https://nango-wari-integration-config-credentials-api.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Mimecast - How do I link my account?

## Overview

To authenticate with Mimecast, you need:

1. **Client ID** – Your Mimecast API 2.0 application's Client ID
2. **Client Secret** – Your Mimecast API 2.0 application's Client Secret

This guide walks you through creating an API 2.0 application in Mimecast Cloud Gateway.

### Prerequisites:

* Admin access to your Mimecast Administration Console.
* Access to the Cloud Gateway section.

### Instructions:

#### Step 1: Create an API Application

1. Log in to your Mimecast Administration Console and navigate to **Administration** > **Services** > **Cloud Gateway** > **API and Platform Integrations** > **API 2.0 Applications**.
2. Click **Generate Keys**.

<img src="https://mintcdn.com/nango-wari-integration-config-credentials-api/kipYoneMriaWnwwA/integrations/all/mimecast/mimecast_generate_keys.png?fit=max&auto=format&n=kipYoneMriaWnwwA&q=85&s=f5bd9fe5ca01d0be3a94e60afe920118" width="521" height="467" data-path="integrations/all/mimecast/mimecast_generate_keys.png" />

3. Configure your application:
   * **Application Name**: Enter a descriptive name for your integration
   * **Application Description**: Provide details about what this integration will do
   * **Authentication Type**: Select **Client Credentials** (OAuth 2.0)
4. Select the appropriate **API permissions/scopes** that your integration requires based on the Mimecast APIs you plan to use.
5. Click **Create** or **Save** to register the application.

#### Step 2: Copy your credentials

1. After creating the application, the **Client ID** and **Client Secret** will be displayed.

<img src="https://mintcdn.com/nango-wari-integration-config-credentials-api/kipYoneMriaWnwwA/integrations/all/mimecast/mimecast_copy_keys.png?fit=max&auto=format&n=kipYoneMriaWnwwA&q=85&s=bba424b58d8b1bb8ee6518a90daffe03" width="852" height="303" data-path="integrations/all/mimecast/mimecast_copy_keys.png" />

<Note>
  Copy and securely store both values immediately in a credentials vault. The Client Secret is only displayed once during the registration/configuration process and cannot be retrieved later. If you lose the Client Secret, you will need to regenerate it or create a new application.
</Note>

#### Step 3: Enter credentials in the Connect UI

Once you have your **Client ID** and **Client Secret**:

1. Open the form where you need to authenticate with Mimecast.
2. Enter your **Client ID** and **Client Secret** in their respective fields.
3. Submit the form, and you should be successfully authenticated.

<img src="https://mintcdn.com/nango-wari-integration-config-credentials-api/kipYoneMriaWnwwA/integrations/all/mimecast/mimecast_connect_form.png?fit=max&auto=format&n=kipYoneMriaWnwwA&q=85&s=82558713298267eb78ad5dc14c29408a" width="838" height="1168" data-path="integrations/all/mimecast/mimecast_connect_form.png" />

You are now connected to Mimecast.

***

### Additional Information

* **Token Expiration**: Access tokens obtained through the Client Credentials flow have a Time To Live (TTL) of 30 minutes. Nango will automatically refresh the token when it expires.
* **Security Best Practices**: Store your Client ID and Client Secret securely. Never commit these credentials to source control or expose them in client-side code.
