# sendFile

Description: Send a file to a user.

Request example:

{
    "method" : "sendFile",
    "requestId" : "1",
    "fileId" : 260618251,
    "callId" : "820_1@some.server"
}

Response example:

{
    "method": "sendFile",
    "requestId" : "1",
    "sentFileRequestId": "88e75ca1-b758-4466-a2fe-d0e80b5cd6bd",
    "result": true
}

Parameter description:

  • fileId - Unique identifier of the file on the built-in http server that was previously uploaded and needs to be sent.

  • callId - unique user identifier (TrueConf ID) to whom the file should be sent. Applicability:

    • PeerId - supported. It's automatically converted to CallId inside the application and the command is executed with it.

    • CallId - supported. The command is executed for the specified identifier.

    • InstanceId - not supported.

  • sentFileRequestId — the identifier of a file request (available only if the command has been successfully executed)

  • requestId - unique request identifier. More details can be found here

See also: