> ## Documentation Index
> Fetch the complete documentation index at: https://docs.triplesession.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List roleplay personas

> Lists the personas the company's members can practise with, newest first: the company's own (`is_custom`) and the shared library. Each difficulty level of a character is its own persona; levels of one character share `persona_group_id`. Archived personas are left out unless `include_archived=true`. Personas belong to the company, so `workspace_id` returns 400. Requires `roleplays.read`.



## OpenAPI

````yaml /public-v2.json get /roleplay-personas
openapi: 3.0.3
info:
  title: Triple Session Public API
  version: 2.0.0
  license:
    name: Proprietary
    url: https://triplesession.com/terms-of-service
  description: |
    Public API v2 exposes Triple Session data through stable REST endpoints.
    Requests are authenticated with a public API key sent as a bearer token.
    The API key determines the maximum accessible resource scope.

    Every successful response wraps its result in `data`. Lists add a
    `pagination` object with `page`, `limit`, `total_count` and `total_pages`.
    Errors are `{ "error": { "message": "..." } }`.
    A value that does not exist is `null`, never an empty string.
    Calls marked private are never returned: they are left out of lists and
    answer 404 on detail endpoints.

    Rate limits: each API key may make 120 requests per minute and 3,600 per
    hour. All keys of a company together may make 300 per minute and 9,000 per
    hour. A request over either limit gets a 429 with `Retry-After`.

    Successful responses and 429 responses carry rate-limit headers. Other
    errors (401, 403, 400, 404, 500) may not. `X-RateLimit-Limit`,
    `X-RateLimit-Remaining`, `X-RateLimit-Reset` and
    `X-RateLimit-Active-Window` describe one window: on a successful response,
    the window with the fewest requests remaining; on a 429, the exhausted
    window with the longest wait. Each window also has its own set:
    `X-RateLimit-Minute-*`, `X-RateLimit-Hour-*`,
    `X-RateLimit-Company-Minute-*` and `X-RateLimit-Company-Hour-*`.
servers:
  - url: https://app.triplesession.com/api/public/v2
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Calls
    description: Call report data and artifacts.
  - name: Scorecards
    description: Scorecards and their rubrics.
  - name: Workspaces
    description: The company's workspaces and their members.
  - name: Users
    description: The company's people, with their company role and status.
  - name: Roleplays
    description: Roleplay sessions and the personas members practise with.
  - name: CRM
    description: >-
      The company's CRM objects (deals, companies, contacts, leads), as Pulse
      shows them.
paths:
  /roleplay-personas:
    get:
      tags:
        - Roleplays
      summary: List roleplay personas
      description: >-
        Lists the personas the company's members can practise with, newest
        first: the company's own (`is_custom`) and the shared library. Each
        difficulty level of a character is its own persona; levels of one
        character share `persona_group_id`. Archived personas are left out
        unless `include_archived=true`. Personas belong to the company, so
        `workspace_id` returns 400. Requires `roleplays.read`.
      operationId: listRoleplayPersonas
      parameters:
        - $ref: '#/components/parameters/Page'
        - $ref: '#/components/parameters/Limit'
        - $ref: '#/components/parameters/PersonaSearch'
        - $ref: '#/components/parameters/IncludeArchivedPersonas'
      responses:
        '200':
          description: Roleplay personas.
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/XRateLimitLimit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/XRateLimitRemaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/XRateLimitReset'
            X-RateLimit-Active-Window:
              $ref: '#/components/headers/XRateLimitActiveWindow'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RoleplayPersonasListResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/InternalServerError'
components:
  parameters:
    Page:
      name: page
      in: query
      required: false
      description: Page number.
      schema:
        type: integer
        minimum: 1
        default: 1
    Limit:
      name: limit
      in: query
      required: false
      description: Number of items to return.
      schema:
        type: integer
        minimum: 1
        maximum: 100
        default: 50
    PersonaSearch:
      name: search
      in: query
      required: false
      description: >-
        Words the persona's name or role contains. Each word must match, so
        `Dana Reyes` finds the persona of that name.
      schema:
        type: string
        minLength: 1
        maxLength: 200
    IncludeArchivedPersonas:
      name: include_archived
      in: query
      required: false
      description: Also return archived personas.
      schema:
        type: boolean
        default: false
  headers:
    XRateLimitLimit:
      description: Limit for the active rate limit window.
      schema:
        type: integer
    XRateLimitRemaining:
      description: Requests remaining in the active rate limit window.
      schema:
        type: integer
    XRateLimitReset:
      description: Unix timestamp when the active rate limit window resets.
      schema:
        type: integer
    XRateLimitActiveWindow:
      description: >-
        The window the main headers describe. On a successful response, the one
        with the fewest requests remaining; on a 429, the exhausted one with the
        longest wait. The `company-` windows count every key of the company.
      schema:
        type: string
        enum:
          - minute
          - hour
          - company-minute
          - company-hour
    RetryAfter:
      description: Seconds until the request may be retried.
      schema:
        type: integer
  schemas:
    RoleplayPersonasListResponse:
      type: object
      required:
        - data
        - pagination
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/RoleplayPersona'
        pagination:
          $ref: '#/components/schemas/Pagination'
      additionalProperties: false
    RoleplayPersona:
      type: object
      required:
        - id
        - persona_group_id
        - name
        - role
        - call_type
        - difficulty
        - language
        - scorecard_id
        - is_custom
        - is_archived
        - created_at
        - updated_at
      properties:
        id:
          type: string
          format: uuid
        persona_group_id:
          description: >-
            Shared by the difficulty levels of one character, or null for a
            persona with one level.
          type: string
          format: uuid
          nullable: true
        name:
          description: The persona's full name.
          type: string
        role:
          description: The persona's job title, such as `Head of Procurement`.
          type: string
          nullable: true
        call_type:
          description: The kind of call the persona is for, such as `Cold call`.
          type: string
          nullable: true
        difficulty:
          description: The persona's difficulty level, such as `easy`, `medium` or `hard`.
          type: string
          nullable: true
        language:
          description: The language the persona speaks.
          type: string
          nullable: true
        scorecard_id:
          description: The scorecard that scores sessions with this persona by default.
          type: string
          format: uuid
          nullable: true
        is_custom:
          description: >-
            True for a persona the company created; false for the shared
            library.
          type: boolean
        is_archived:
          description: True when the persona can no longer be picked for new sessions.
          type: boolean
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
      additionalProperties: false
    Pagination:
      type: object
      required:
        - page
        - limit
        - total_count
        - total_pages
      properties:
        page:
          type: integer
          minimum: 1
        limit:
          description: The page size that was applied.
          type: integer
          minimum: 1
        total_count:
          type: integer
          minimum: 0
        total_pages:
          type: integer
          minimum: 0
      additionalProperties: false
    ErrorResponse:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - message
          properties:
            message:
              type: string
      additionalProperties: false
  responses:
    BadRequest:
      description: >-
        Invalid or unknown path or query parameter. Unknown query parameters are
        rejected, so a misspelt filter never returns unfiltered data.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    Unauthorized:
      description: Missing, unknown, expired or revoked API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    Forbidden:
      description: >-
        The API key is valid but lacks the required scope, or the workspace is
        outside the key's access.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    RateLimited:
      description: >-
        Rate limit exceeded, for this API key or for the company as a whole. The
        message says which.
      headers:
        Retry-After:
          $ref: '#/components/headers/RetryAfter'
        X-RateLimit-Limit:
          $ref: '#/components/headers/XRateLimitLimit'
        X-RateLimit-Remaining:
          $ref: '#/components/headers/XRateLimitRemaining'
        X-RateLimit-Reset:
          $ref: '#/components/headers/XRateLimitReset'
        X-RateLimit-Active-Window:
          $ref: '#/components/headers/XRateLimitActiveWindow'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    InternalServerError:
      description: Unexpected server error.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API key
      description: Use a public API key with the endpoint's required scope.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.