Create interaction
Create an interaction on a case. Use this to register an incoming message from a debtor or another party, for example a submitted contact form.
Authorizations
Authentication can be done by using a bearer token in the Authorization header. This is done using the following format Authorization: Bearer {token}.
Path Parameters
Id of the tenant
Body
New interaction body
- Debtor note
- Note
- Client note
- Email
- SMS
- Letter
- Digital post
- Phone call
- Auto call
- E-invoice
A new interaction. The shape of details depends on the type. For integrations registering messages from debtors or other parties, use the Debtor note variant.
The direction of the interaction. Use INCOMING for messages received from a debtor or another party.
INCOMING, OUTGOING The minimum role that can see the interaction. Use client if the interaction should be visible to the creditor but not the debtor.
alternative-contact, debtor, client, caseworker, admin, super-admin A message from a debtor or another party, for example a submitted contact form.
DEBTOR NOTE Free-form structured data about the message, for example the fields of a submitted form.
The state of the interaction. For INCOMING interactions use MAPPED when referenceId is set and UNMAPPED when the interaction could not be matched to a case (HANDLED and DELETED are set by caseworkers). PENDING, QUEUED, SENT and CANCELLED apply to OUTGOING interactions. Defaults to MAPPED/UNMAPPED for incoming interactions based on referenceId.
UNMAPPED, MAPPED, HANDLED, DELETED, PENDING, QUEUED, SENT, CANCELLED Id of the entity the interaction belongs to, typically a case id. Can be null if the interaction could not be matched to a case.
The type of the reference. Use case when referenceId is a case id.
debtor, case, tribunal-case, creditor, customer, collector, case-voucher, billing-voucher, billing, workflow, template, null The content of the interaction as HTML. The HTML is sanitized server side.
Files to attach to the interaction, as file ids or file objects. Files can be uploaded with the create file endpoint and must belong to the tenant.
Id of a file to attach
Time the interaction was created. Defaults to now.
Response
Successful operation
Id of the created interaction