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
| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Display name, unique in your organization |
type | string | Yes | What kind of app, e.g. razorpayx. Can't be changed later |
config | object | No | object: 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
| Status | Code | When |
|---|---|---|
| 400 | VALIDATION_ERROR | name or type is missing, or config isn't an object |
| 401 | UNAUTHORIZED | Missing, wrong or expired API credentials |
| 403 | FORBIDDEN | The key lacks integrations:create permission |
| 409 | CONFLICT | The 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.