TANSS icon

TANSS

Interact with the TANSS API

Actions208

Call → Create / Import Call

AI-generated

Summary

Creates or imports a call in TANSS. Either provide a raw call JSON payload via callJson, or construct the call using the fields in createCallFields. Requires a valid API token from the TANSS web interface.

Inputs

  • apiToken (required) — API token obtained from the TANSS web interface (must be generated in TANSS).
  • callJson — If provided (valid JSON), this object will be posted as-is. Otherwise the fields below / collection are used to build the payload. Default empty string.
  • createCallFields — Collection of fields used to build the call payload when callJson is not provided. Includes date (unix timestamp), fromPhoneNumber, toPhoneNumber, direction, callId, telephoneSystemId, company/employee IDs, connectionEstablished, durationTotal/durationCall, group, numberIdentifyState, and phone participants (via phoneParticipantsJson or phoneParticipants collection).

Output shape

The operation returns the created/imported call data from the TANSS API. Specific return fields are not detailed in the provided source; refer to TANSS API documentation for exact shape.

If callJson is supplied, all other fields are ignored and the JSON object is posted directly. Direction defaults to INTERNAL if not specified. Phone participants can be provided as a JSON string (phoneParticipantsJson) or via the fixedCollection phoneParticipants (each participant has idString and employeeId).

Discussion