cURL
MongoDB
Create
Create a MongoDB Connection.
POST
cURL
Documentation Index
Fetch the complete documentation index at: https://infisical-docs-self-host-infra.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Check out the configuration docs for MongoDB
Connections to learn how to obtain the
required credentials.
Body
application/json
The method used to authenticate with MongoDB.
Available options:
username-and-password The credentials used to connect with MongoDB.
The name of the MongoDB Connection to create. Must be slug-friendly.
Required string length:
1 - 64An optional description for the MongoDB Connection.
Maximum string length:
256The ID of the project to create the MongoDB Connection in.
Not supported for MongoDB Connections.
Available options:
false Not supported for MongoDB Connections.
Not supported for MongoDB Connections.
Available options:
false Not supported for MongoDB Connections.
Response
Default Response