Create Integration

POST /api/v1/integrations

Registers an app. Set config.object to the slug of the object its records link to, then pull.

CLI: fob-mdm integrations create

Request Body

FieldTypeRequiredDescription
namestringYesDisplay name, unique in your organization
typestringYesWhat kind of app, e.g. razorpayx. Can't be changed later
configobjectNoobject: the object slug its records link to. sample_records: the app's records, each with a tp_id (its id in the app) and values keyed by field key

Example Request

curl -X POST "https://mdm.finopsbricks.com/api/v1/integrations" \
  -H "api-key: $MDM_API_KEY" \
  -H "api-secret: $MDM_API_SECRET" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Payments",
    "type": "razorpayx",
    "config": {
      "object": "vendor",
      "sample_records": [
        {
          "tp_id": "cont_8f2k",
          "name": "ACME SUPPLIES",
          "gstin": "29ABCDE1234F1Z5",
          "bank_ifsc": "HDFC0009999"
        }
      ]
    }
  }'

Response

201 Created

{
  "data": {
    "id": 5,
    "name": "Payments",
    "type": "razorpayx",
    "config": {
      "object": "vendor",
      "sample_records": [
        {
          "tp_id": "cont_8f2k",
          "name": "ACME SUPPLIES",
          "gstin": "29ABCDE1234F1Z5",
          "bank_ifsc": "HDFC0009999"
        }
      ]
    },
    "created_at": "2026-11-26T07:20:08.000Z",
    "updated_at": "2026-11-26T07:20:08.000Z"
  }
}

Errors

StatusCodeWhen
400VALIDATION_ERRORname or type is missing, or config isn't an object
401UNAUTHORIZEDMissing, wrong or expired API credentials
403FORBIDDENThe key lacks integrations:create permission
409CONFLICTThe name is taken; details.id is the existing integration

See Errors for the envelope.

Using an AI agent? Give it the raw Markdown of this page, or the docs index.