Skip to main content
Use this endpoint to fetch a single roleplay training call by its identifier. You can look up a roleplay using either the Shilo-generated UUID or the call event ID associated with the session. This is useful for confirming that a roleplay has been processed or for retrieving its metadata before fetching analysis or transcript data.

Endpoint

Authentication

All requests require your API key in the x-api-key header.

Path Parameters

string
required
The unique identifier for the roleplay. Two formats are accepted:
  • {uuid} — The Shilo roleplay UUID (e.g., ee6f2136-b94a-4438-9335-3acf5b2a0d31)
  • call_event_id:{uuid} — The Shilo Call Event UUID associated with this roleplay session (e.g., call_event_id:ee6f2136-b94a-4438-9335-3acf5b2a0d31)

Response

A successful request returns HTTP 200 with the matching Roleplay object.
string
required
The Shilo UUID for this roleplay record.
string
required
Always "roleplay" for records returned by this endpoint.
string
required
The ISO-8601 timestamp indicating when this roleplay was created in Shilo.
number | null
The duration of the roleplay call in seconds. null if not yet available.
string | null
The Shilo UUID of the agent who completed this roleplay. null if no user is matched.
string | null
The external user ID for the agent, as provided by your integration. null if not provided.
string | null
The Shilo UUID of the contact associated with this roleplay. null if no contact is matched.
string | null
The external contact ID for the associated contact, as provided by your integration. null if not provided.

Error Responses

Example Request

By call event ID:

Example Response