Upload Call Log Attachment


Add a log attachment to the call-log. For example: the tracing of the caller’s app or the relevant information from the business server log.

Resource

POST /communication/<ID>/log_attachment

Where ID is either the CallLog object ID or the Xelion call id.

If the call id is provided then Xelion selects the first call log that is owned by the user.

Parameters

None

headers

Name Description Example

Content-Type

The mime content type.

Content-Type: text/plain

Content-Disposition

The file name, as defined in RFC 2183.

Content-Disposition: attachment; filename=image.jpg;

Content-Length

The attachment size in bytes.

Content-Length: 1024

Payload

The attachment contents.

Response

The created attachment.

Context

Authorization

User

Errors

Example

Request
POST https://xelion.nl/api/v1/master/communications/123/log_attachments
Headers
Content-Type: text/plain
Content-Disposition: attachment; filename=ios_tracing.txt
Payload
2025-11-16 13:22:51.9620,debug,"report call ended: Call[C7F3] to 01098765432",,,/Modules/Application/XelionBackend/Sources/XelionBackend/webphone/Call Kit/CallKitAdapter.swift.reportCallEnded(call:reason:)
2025-11-16 13:22:51.9620,debug,"webphone fires ended(call: Call[C7F3] to 01098765432)",,,/Modules/Application/XelionBackend/Sources/XelionBackend/webphone/Webphone.swift.fire(event:)
2025-11-16 13:22:51.9620,debug,"webphone removing Call[C7F3] to 01098765432",,,/Modules/Application/XelionBackend/Sources/XelionBackend/webphone/Webphone.swift.removeCall(_:)
2025-11-16 13:22:51.9620,debug,"webphone fires stateChanged(call: Call[C7F3] to 01098765432, state: disconnected)",,,/Modules/Application/XelionBackend/Sources/XelionBackend/webphone/Webphone.swift.fire(event:)
2025-11-16 13:22:51.9620,debug,"webphone received call event: stateChanged(call: Call[C7F3] to 01098765432, state: disconnected)",,,/Modules/Application/XelionBackend/Sources/XelionBackend/webphone/Webphone.swift.onCallEvent(_:)
2025-11-16 13:22:51.9610,debug,"call Call[C7F3] to 01098765432: Call[C7F3] to 01098765432: state changed active -> disconnected",,,/Modules/Application/XelionBackend/Sources/XelionBackend/webphone/call/WebCall.swift.state
..
Response
{
    "object": {
        "originalLocation": "ios_tracing.txt",
        "mimeType": "text/plain",
        "size": 1060,
        "commonName": "ios_tracing.txt",
        "oid": "31415926",
        "objectType": "Attachment"
    }
}