Connect an integration
create_integrationConnect an integration
Stores the credentials and settings for one third-party service and returns the new integration's identifier. The integration is created active, but connecting it does not by itself let an agent use it: it still has to be assigned to an agent or chatbot. config is a JSON string, not a nested object, so serialise it before sending; the keys it must contain are the ones listed under configFields for this type in GET /integrations/types. A config that contains the mask ******** anywhere is refused with 400 and error code masked_without_stored_value: the mask stands for a stored secret, and a new integration has none, so send the real values. Keys inside config that only the server writes (the connection keys and toolPermissions) are dropped before the integration is stored. Nothing is contacted at creation time, so a wrong credential is only noticed later: call the test endpoint afterwards to confirm the connection works. A WhatsApp integration whose phone number is already connected in an active integration of another account is refused with 409 and error code conflict. A Genesys Cloud integration (type genesys_cloud) follows its own rules.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"body": "<body>"
},
"name": "create_integration"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | The service to connect, a name to recognise it by, an optional description, and `config`: a JSON string holding the fields that type requires. |