Latest Legacy

Retrieve a PHLO run

API Endpoint

GET https://phlorunner.plivo.com/v1/phlo/{phlo_id}/runs/{run_id}

Arguments

URL Params

phlo_idstring

Unique identifier for the PHLO.

run_idstring

Unique identifier for the PHLO run.

call_uuidsArray of UUIDs

List of calls triggered in the PHLO run.

message_uuidsArray of UUIDs

List of messages triggered in the PHLO run.

recording_idsArray of IDs

List of recordings created in the PHLO run.

Payload

No arguments need to be passed.

Returns

Returns a PHLO Run object.

Response

HTTP Status Code: 200

{
    "api_id": "36989807-a76f-4555-84d1-9dfdccca7a80",
    "phlo_id": "e564a84a-7910-4447-b16f-65c541dd552c",
    "run_id": "b7df01fd-1cb0-404e-a0d1-21e69a610e84",
    "call_uuids": ["11e4f82c-069c-49f9-9fcb-54c6633e2cdb"],
    "message_uuids": [],
    "recording_ids": []
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import com.plivo.api.Plivo;

import com.plivo.api.exceptions.PlivoRestException;
import com.plivo.api.models.phlo.Phlo;
import com.plivo.api.models.phlo.PhloRunGetterResponse;

public class Example
{
    private static final String authId = "<auth_id>";
    private static final String authToken = "<auth_token>";
    
    public static void main (String args[]) {
        Plivo.init(authId, authToken);

        try {
            PhloRunGetterResponse resp = Phlo.phloRunGetter("<phlo_id>", "<run_id>").get();
            System.out.println(resp);

        } catch (IOException | PlivoRestException e) {
            e.printStackTrace();
        }
    }
}