POST
/
connections
from mixpeek import Mixpeek

mixpeek = Mixpeek('API_KEY')

mixpeek.connections.create(
    alias="my-mongo-test",
    engine="mongodb",
    details={
        "host": "your_host_address",
        "database": "your_database_name",
        "username": "your_username",
        "password": "your_password"
    }
)

The Create Connection endpoint allows you to establish connections to various data sources like MongoDB, S3, etc. This is crucial for applications that need to interact with external databases or storage services.

All connection information is encrypted using AES in CBC mode with a 128-bit key using SHA256 for HMAC. Learn more

Supported connection integrations

Request

alias
string
required

A friendly name for the connection

engine
string
required

The type of service (e.g., mongodb, s3)

details
object
required

The connection details specific to the engine type

See further examples in the Connection integrations
from mixpeek import Mixpeek

mixpeek = Mixpeek('API_KEY')

mixpeek.connections.create(
    alias="my-mongo-test",
    engine="mongodb",
    details={
        "host": "your_host_address",
        "database": "your_database_name",
        "username": "your_username",
        "password": "your_password"
    }
)