# 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 file identifier on the built-in HTTP server that was previously uploaded and needs to be sent

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

    • PeerId - supported. Inside the application, it is automatically converted to CallId and the command is then 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 - a unique request identifier. You can learn more about it here.

See also: