Retrieve a Participant Details

    Use the Participant API to add a participant to an ongoing Multiparty Call or to start a new Multiparty Call and add the participant to the new MPC.

    API Endpoint

    GET https://api.plivo.com/v1/Account/{auth_id}/MultiPartyCall/name_{mpc_name}/Participant/{Member Id}/

    Arguments

    No arguments need to be passed.

    Returns

    Returns the details of the specific ongoing Multiparty Call Participant.

    Note:Returns a null value if the MPC has ended or the participant is no longer active in (has exited from) the MPC.

    Response

    HTTP Status Code: 200

    {
      "api_id": "3eecec6d-45cf-11eb-9014-0242ac110003",
      "billed_amount": null,
      "billed_duration": null,
      "call_uuid": "dd473c48-34a6-4d67-a033-af590b41c23f",
      "coach_mode": false,
      "duration": null,
      "end_mpc_on_exit": false,
      "exit_cause": null,
      "exit_time": null,
      "hold": false,
      "join_time": "2020-12-24 10:01:56+00:00",
      "member_id": "355",
      "mpc_uuid": "4e9ae3f1-a29c-4524-a1b4-4758922e589b",
      "mute": false,
      "resource_uri": "/v1/Account/MAOTE1OWE0MDK0MTLHYW/MultiPartyCall/name_test_mpc_1/Participant/355/",
      "role": "agent",
      "start_mpc_on_enter": true
    }
    

    Example Request

    1
    2
    3
    4
    5
    6
    
    import plivo
    
    client = plivo.RestClient(auth_id="your_auth_id", auth_token="your_auth_token")
    
    response = client.multi_party_calls.get_participant(participant_id=member_id, uuid=uuid)
    print(response)
    
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    
    var plivo = require('plivo');
    
    (function main() {
        'use strict';
    
        var client = new plivo.Client("<auth_id>","<auth_token>");
        client.multiPartyCalls.getParticipant(2132, '7503f05f-2d6e-4ab3-b9e6-3b0d81ae9087', null).then(function (response) {
            console.log(response);
        }, function (err) {
            console.error(err);
        });
    })();