# Connecting Sendgrid to Email Services

## Go to API Keys Section

Login to your Sendgrid account and navigate to "Settings" on the left navigation bar, and then select "API Keys".

<figure><img src="https://3379043218-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhRoDQv6gyGL2CyFV4Oob%2Fuploads%2F7xDRVcKeS4Ofqh9EEeRs%2Fspaces_SpDxRsrRdNpxcuWtIMiA_uploads_git-blob-3989403e89d370c636d19784cecdff81480ba6da_1.%20Go%20to%20settings%20-%20API%20Keys.png?alt=media&#x26;token=909454a0-c07d-4cad-aa7a-4f3aeccf5e8e" alt=""><figcaption></figcaption></figure>

### Click Create API Key.

<figure><img src="https://3379043218-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhRoDQv6gyGL2CyFV4Oob%2Fuploads%2FVzUaHgmCJhCG5LYWZPr2%2Fspaces_SpDxRsrRdNpxcuWtIMiA_uploads_git-blob-0dc1ca23fd8c7a72402c2eea630935e74d06013d_2.%20Create%20API%20Key.png?alt=media&#x26;token=574ddab2-0333-42d1-b81d-d5b897eb3837" alt=""><figcaption></figcaption></figure>

### Setting up API Key

1. Give your API key a name.
2. elect Full Access, Restricted Access, or Billing Access. If you're selecting Restricted Access, or Billing Access, select the specific permissions to give each category. For more information, see API key permissions.
3. Click Create & View.

<figure><img src="https://3379043218-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhRoDQv6gyGL2CyFV4Oob%2Fuploads%2FZZ5m8ryXB6tAAreN1Ic4%2Fspaces_SpDxRsrRdNpxcuWtIMiA_uploads_git-blob-4a65f512cd5f08f642831f5950789e984d2586ac_3.%20Add%20API%20Key%20Details.png?alt=media&#x26;token=876e092a-f0d0-4658-9160-9fb02eec19b2" alt=""><figcaption></figcaption></figure>

### Copy API Key.

This API Key will need to be used as a Password for the sendgrid connection. Click on the code and it will automatically copy the entire code. Copy your API key somewhere safe. For security reasons, do not put it directly in your code, or commit it somewhere public.

<figure><img src="https://3379043218-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhRoDQv6gyGL2CyFV4Oob%2Fuploads%2FsnzWUqyO7cFtIFyvRR5y%2Fspaces_SpDxRsrRdNpxcuWtIMiA_uploads_git-blob-e2c8c091989a821af8b8e70492e4841073398fac_4.1%20API%20Key%20Created.png?alt=media&#x26;token=e73f2b30-ba30-4aac-b62f-58172292dfbc" alt=""><figcaption></figcaption></figure>

### Setting up Sendgrid inside of the CRM

Now that you have copied the api code from sendgrid account, go back to to the email services area of the CRM settings section. There you can click on "Add service" option for next steps.

<figure><img src="https://3379043218-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhRoDQv6gyGL2CyFV4Oob%2Fuploads%2FVYFXnytLJrV1GkqjUVZN%2Fspaces_SpDxRsrRdNpxcuWtIMiA_uploads_git-blob-d4f9293311fe9e811c14227eb396c3b6dbde9669_5.%20Add%20Service.png?alt=media&#x26;token=3ed087c3-ec9d-4cc9-9009-ce3ec973303e" alt=""><figcaption></figcaption></figure>

### Click on SMTP provider option and select Sendgrid from the dropdown menu.

<figure><img src="https://3379043218-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhRoDQv6gyGL2CyFV4Oob%2Fuploads%2FBrtTkc5H23HL8T6TvJqT%2Fspaces_SpDxRsrRdNpxcuWtIMiA_uploads_git-blob-b4ce59575d2e52caf090830eeaf13bf12f269818_6.%20Select%20Sendgrid%20from%20the%20Dropdown%20(1).png?alt=media&#x26;token=594cd969-5838-43a0-80b2-6f86acefe2df" alt=""><figcaption></figcaption></figure>

### Configuring SMTP settings

1. Select Sendgrid from the dropdown menu.
2. add username as "apikey"
3. Add the email address which you wish to setup with the CRM location.
4. Paste the API Key copied from the sendgrid account.
5. Save the settings.

<figure><img src="https://3379043218-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhRoDQv6gyGL2CyFV4Oob%2Fuploads%2FhqLCZ9hJZjZtZBfrPaEc%2Fspaces_SpDxRsrRdNpxcuWtIMiA_uploads_git-blob-6352bf5b7e8fbf19111c9c49b212ba511efa494b_8.%20Setup%20Sendgrid%20all%20steps.png?alt=media&#x26;token=4fb3ab2f-5b0c-4339-a176-8d799f0fd150" alt=""><figcaption></figcaption></figure>

### Sendgrid Connected

This is how your screen will look like after you have succesfully connected your sendgrid account with your CRM. Remember to select Sendgrid as a default provider.

<figure><img src="https://3379043218-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhRoDQv6gyGL2CyFV4Oob%2Fuploads%2FDYQDhl2zqXq1ncKrtltv%2Fspaces_SpDxRsrRdNpxcuWtIMiA_uploads_git-blob-3490ea1b76ed2af5599f9a557b4a16ea2fe606f1_7.%20Sendgrid%20Connection%20Successful.png?alt=media&#x26;token=f3a439ea-761f-4306-91ce-f1676427a2d0" alt=""><figcaption></figcaption></figure>
