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

# List Client Portals

> List Client Portals, newest first, optionally for one client or job.

**Required scope:** `client_portals:read`



## OpenAPI

````yaml https://api.ropes.ai/api/docs/openapi.json get /api/public/client-portals
openapi: 3.0.0
info:
  title: Ropes Public API
  version: 1.0.0
  description: >-
    Public API for Ropes. Authenticate using your API key in the x-api-key
    header.
servers:
  - url: https://api.ropes.ai
    description: Production server
  - url: http://localhost:3001
    description: Local development server
security: []
paths:
  /api/public/client-portals:
    get:
      tags:
        - Client Portals
      summary: List Client Portals
      description: |-
        List Client Portals, newest first, optionally for one client or job.

        **Required scope:** `client_portals:read`
      parameters:
        - schema:
            type: integer
            minimum: 1
            default: 1
            description: 'Page number (default: 1)'
          required: false
          description: 'Page number (default: 1)'
          name: page
          in: query
        - schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 50
            description: 'Items per page (default: 50, max: 100)'
          required: false
          description: 'Items per page (default: 50, max: 100)'
          name: pageSize
          in: query
        - schema:
            type: string
            description: Only this client’s portals
          required: false
          description: Only this client’s portals
          name: clientId
          in: query
        - schema:
            type: string
            description: Only portals for this job
          required: false
          description: Only portals for this job
          name: jobId
          in: query
      responses:
        '200':
          description: Client Portals
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ClientPortalsResponse'
        '401':
          description: Unauthorized - Invalid or missing API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: Forbidden - API key is missing the required scope
        '429':
          description: >-
            Rate limit exceeded - contact support@ropes.ai for further
            assistance.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    ClientPortalsResponse:
      type: object
      properties:
        portals:
          type: array
          items:
            $ref: '#/components/schemas/ClientPortal'
        pagination:
          $ref: '#/components/schemas/Pagination'
      required:
        - portals
        - pagination
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
          description: Error message
        message:
          type: string
          description: Error message (alternative field)
    ClientPortal:
      type: object
      properties:
        id:
          type: string
          format: uuid
          description: Unique identifier for the portal
        name:
          type: string
        url:
          type: string
          description: Link the hiring manager opens; they sign in with their invited email
        status:
          type: string
          description: active or draft
        clientId:
          type: string
          nullable: true
          format: uuid
        jobId:
          type: string
          nullable: true
          format: uuid
          description: >-
            The portal's job. Portals created through the API have one job;
            older portals with several report the first.
        problemId:
          type: string
          nullable: true
          description: The job's problem; candidates' results for it can show
        jobCount:
          type: number
          description: Number of jobs on the portal
        ownerEmail:
          type: string
          nullable: true
        candidateCount:
          type: number
        reviewerCount:
          type: number
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
      required:
        - id
        - name
        - url
        - status
        - clientId
        - jobId
        - problemId
        - jobCount
        - ownerEmail
        - candidateCount
        - reviewerCount
        - createdAt
        - updatedAt
    Pagination:
      type: object
      properties:
        page:
          type: number
          description: Current page number
        pageSize:
          type: number
          description: Number of items per page
        totalItems:
          type: number
          description: Total number of items matching the query
        totalPages:
          type: number
          description: Total number of pages
      required:
        - page
        - pageSize
        - totalItems
        - totalPages
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        Each key carries scopes chosen when it is created: `candidates:read`,
        `candidates:write`, `assessments:read`, `assessments:write`,
        `problems:read`, `problems:write`, `results:read`, `id_checks:read`,
        `id_checks:write`, `jobs:read`, `jobs:write`, `client_portals:read`,
        `client_portals:write`. Keys created before scopes existed have full
        access. A request with a key that lacks an operation's scope returns 403
        naming the missing scope.

````

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