Home → API Documentation → Interactions → api/InsertInteraction
12.2. api/InsertInteraction
This API call creates a regular interaction for an existing company and links any selected contacts. Use api/ReturnInteractionFields to obtain field identifiers, required fields and available option values.
Parameters To Submit
All parameters are required and cannot be empty.
| Parameter | Parameter Help |
| Fields | A JSON array of objects with FieldGUID and FieldValue, encoded as a string. |
| API key |
Include each FieldGUID once. Company is required. Supply values for other active fields marked IsMandatory. Include the contact GUID to display the interaction on that contact’s record.
Field Value Formats
|
Field |
FieldGUID |
Example FieldValue |
Notes |
|
Company |
C8E6852E |
"COMPANY_GUID" |
An existing active company GUID. |
|
Contact(s) |
VA98BFBB |
["CONTACT_GUID"] |
One or more existing active contact GUIDs. |
|
Service(s) |
NEDC3D22 |
["81"] |
Service option values. |
|
Categories |
J4498C1D |
["2"] |
Category option values. |
|
Method |
F48F1888 |
"2" |
One method option value. |
|
Outcome |
K146A7F2 |
"46" |
One outcome option value. |
|
Date Occurred |
G26E533C |
"2026-10-21T14:35:00" |
Accepts ISO format or the CRM date format. Defaults to the server’s current date and time. |
|
Duration |
IB480644 |
"5" |
A non-negative whole number of minutes. Defaults to zero. |
|
Notes |
J43BF714 |
"2FA code sent" |
Plain text. |
For a field that allows multiple values, supply an array of strings. A single value may also be supplied as a string. Use the option values returned by your own CRM.
Return Response
On success, ResponseType is "JSONString". Parse ResponseMessage to obtain the GUID of the newly created interaction.
{
"ResponseCode": "200",
"ResponseType": "JSONString",
"ResponseMessage": "{\"InteractionGUID\":\"INTERACTION_GUID\"}"
}
The example shows the envelope after decoding the outer JSON string. If the call fails, ResponseCode is "500", ResponseType is "Error" and ResponseMessage explains the failure. Check the envelope even when the HTTP status is 200 OK.
