Authorization: Bearer ********************{
"externalId": "crm-main",
"name": "CRM 主系统",
"credentialId": "cred_example",
"metadata": {
"owner": "sales"
},
"source": {
"type": "openapiUrl",
"url": "https://specs.example.com/crm.yaml"
}
}curl --location '/v1/integrations/import' \
--header 'Idempotency-Key;' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"externalId": "crm-main",
"name": "CRM 主系统",
"credentialId": "cred_example",
"metadata": {
"owner": "sales"
},
"source": {
"type": "openapiUrl",
"url": "https://specs.example.com/crm.yaml"
}
}'{
"id": "int_example",
"externalId": "crm-main",
"name": "CRM 主系统",
"status": "active",
"metadata": {
"owner": "sales"
},
"version": {
"id": "intv_example",
"revision": 1,
"status": "draft",
"sourceKind": "openapiUrl",
"sourceHash": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"importReport": {
"imported": 1,
"skipped": 0
},
"credentialId": "cred_example",
"testedAt": null,
"publishedAt": null,
"failureCode": null,
"testReport": {},
"createdAt": "2026-09-27T08:00:00.000Z",
"updatedAt": "2026-09-27T08:00:00.000Z"
},
"createdAt": "2026-09-27T08:00:00.000Z",
"updatedAt": "2026-09-27T08:00:00.000Z",
"disabledAt": null,
"tools": [
{
"id": "tool_example",
"externalId": "getCustomer",
"name": "getCustomer",
"status": "active",
"version": {
"id": "toolv_example",
"revision": 1,
"status": "draft",
"manifest": {
"version": 1,
"sourceOperationId": "getCustomer",
"namespace": "crm",
"name": "getCustomer",
"description": "查询客户",
"inputSchema": {
"type": "object",
"properties": {
"id": {
"type": "string"
}
},
"required": [
"id"
],
"additionalProperties": false
},
"outputSchema": {
"type": "object"
},
"http": {
"method": "GET",
"origin": "https://crm.example.com",
"pathTemplate": "/customers/{id}",
"parameters": [
{
"argument": "id",
"location": "path",
"target": "id",
"required": true
}
]
},
"risk": {
"level": "low",
"actionClass": "read",
"facts": {
"httpMethod": "GET",
"matchedTerms": [],
"externallyCommitting": false,
"destructive": false,
"financial": false,
"requiresExplicitAuthorization": false
}
},
"timeoutMs": 10000,
"retryClass": "safeRead"
},
"riskLevel": "low",
"actionClass": "read",
"publishedAt": null,
"createdAt": "2026-09-27T08:00:00.000Z",
"updatedAt": "2026-09-27T08:00:00.000Z"
}
}
]
}