Skip to main content
Use this endpoint to retrieve a paginated list of roleplay training calls from your Shilo account. Roleplays are practice sessions where your agents interact with AI-simulated leads to sharpen their sales skills. You can filter results by user, contact, scenario stage, or source, and navigate large result sets with cursor-based pagination. Roleplays are returned separately from standard call recordings — use the /api/v1/calls endpoint for non-roleplay recordings.

Endpoint

Authentication

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

Query Parameters

number
default:"50"
The maximum number of roleplay records to return per page. Accepted values are between 1 and 100.
string
An opaque pagination cursor returned in the previous response’s pagination.next_cursor field. Pass this value to retrieve the next page of results. Omit to start from the beginning.
string
default:"asc"
The sort order for results, based on created_date. Accepted values are asc (oldest first) or desc (newest first).
string
Return only roleplays created on or after this date and time. Must be an ISO-8601 formatted string (e.g., 2030-01-01T00:00:00Z).
string
Return only roleplays created on or before this date and time. Must be an ISO-8601 formatted string (e.g., 2030-12-31T23:59:59Z).
string
Filter roleplays by the source they were generated from.
string
Filter roleplays by the associated agent. Accepts a prefix-qualified identifier in one of three formats:
  • id:{uuid} — Shilo user UUID
  • external_user_id:{value} — your external user ID
  • {uuid} — bare Shilo user UUID (shorthand)
string
Filter roleplays by the associated contact. Accepts a prefix-qualified identifier in one of three formats:
  • id:{uuid} — Shilo contact UUID
  • external_contact_id:{value} — your external contact ID
  • {uuid} — bare Shilo contact UUID (shorthand)
string
Filter roleplays by the pipeline stage associated with the scenario (e.g., prospecting, discovery, closing).

Response

A successful request returns HTTP 200 with a RoleplaysResponseDto object.
Roleplay[]
An array of Roleplay objects matching the query filters.
object
required
Metadata for paginating through additional results.
Roleplays are returned separately from regular call recordings. Use the /api/v1/calls endpoint to list non-roleplay call recordings.

Error Responses

Example Request

Example Response