# MongoDB (prebuilt connector)

## Description

**MongoDB** is a flexible, scalable, cross-platform document database solution.

## API documentation

API documentation for **MongoDB** (used to build this connector) can be found via the link below:

{% embed url="<https://www.mongodb.com/docs/>" %}

## Authentication&#x20;

When adding connector instances for **MongoDB**, the following authentication methods are supported:

* [API key](#api-key-authentication)

### API key authentication

When a user chooses to [add a connector instance](https://doc.wearepatchworks.com/product-documentation/connectors-and-instances/working-with-instances/adding-an-instance) using **API key** authentication, the credentials below are prompted:

<table><thead><tr><th>Credential</th><th width="145" data-type="checkbox">Required?</th><th>Notes</th></tr></thead><tbody><tr><td><code>URL endpoint</code></td><td>true</td><td>Enter your MongoDB URL in without the https// prefix. For example:<br><code>eu-west-2.aws.data.mongodb-api.com/app/data-yfcws/endpoint/data/v1</code></td></tr><tr><td><code>data source</code></td><td>true</td><td>Enter your MongoDB data source. For example: <code>Cluster0</code></td></tr><tr><td><code>database</code></td><td>true</td><td>Enter your MongoDB database. For example: <code>sample_test</code></td></tr><tr><td><code>collection</code></td><td>true</td><td>Enter your MongoDB collection. For example: <code>listingsAndReviews</code></td></tr><tr><td><code>content type</code></td><td>true</td><td>Enter the required content type (typically <code>json</code>).</td></tr><tr><td><code>token</code></td><td>true</td><td> Enter your MongoDB API token.</td></tr></tbody></table>
