POST
/
integrations
Create a new integration
curl --request POST \
  --url https://api.matia.io/v1/integrations \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "destinationId": "<string>",
  "destinationSchema": "<string>",
  "replicationFrequency": "<string>",
  "onSchemaUpdate": "<string>",
  "enabled": true,
  "sourceConfig": {
    "type": "postgres",
    "name": "<string>",
    "authMethod": "<string>",
    "connection": {
      "username": "<string>",
      "password": "<string>",
      "hostname": "<string>",
      "port": 123,
      "database": "<string>",
      "slot": "<string>",
      "publication": "<string>"
    },
    "connectionType": "<string>",
    "owners": [
      "<string>"
    ]
  },
  "sourceSettings": {
    "max_clients": 123,
    "incremental_mode": "<string>"
  }
}'
{
  "code": "<string>",
  "message": "<string>",
  "data": {
    "id": "<string>"
  },
  "id": 123
}
This endpoint allows you to create a new integration between a source and destination. The integration configuration varies based on the connector type you’re using.

Connector-Specific Configuration

Select your connector type to see its specific configuration requirements:

Authorizations

x-api-key
string
header
required

Body

application/json

Response

Integration created successfully

The response is of type object.