> ## 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.

# Invite Portal Reviewer

> Invite a hiring manager to a Client Portal. They open the portal link and sign in with this email. An email outside the client's domain is still invited; domainMatchesClient is false.

**Required scope:** `client_portals:write`



## OpenAPI

````yaml https://api.ropes.ai/api/docs/openapi.json post /api/public/client-portals/{portalId}/reviewers
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/{portalId}/reviewers:
    post:
      tags:
        - Client Portals
      summary: Invite Portal Reviewer
      description: >-
        Invite a hiring manager to a Client Portal. They open the portal link
        and sign in with this email. An email outside the client's domain is
        still invited; domainMatchesClient is false.


        **Required scope:** `client_portals:write`
      parameters:
        - schema:
            type: string
            description: The Client Portal identifier
          required: true
          description: The Client Portal identifier
          name: portalId
          in: path
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AddPortalReviewerRequest'
      responses:
        '201':
          description: Reviewer invited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PortalReviewerResponse'
        '400':
          description: Invalid email
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '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
        '404':
          description: Client Portal not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '409':
          description: This email already has access
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '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:
    AddPortalReviewerRequest:
      type: object
      properties:
        email:
          type: string
          maxLength: 320
          format: email
          description: Hiring manager email
        sendEmail:
          type: boolean
          default: true
          description: Email them the portal link (default true)
      required:
        - email
      additionalProperties: false
    PortalReviewerResponse:
      type: object
      properties:
        reviewer:
          $ref: '#/components/schemas/PortalReviewer'
        emailSent:
          type: boolean
        domainMatchesClient:
          type: boolean
          description: >-
            false when the email's domain differs from the client's domain
            (still invited)
      required:
        - reviewer
        - emailSent
        - domainMatchesClient
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
          description: Error message
        message:
          type: string
          description: Error message (alternative field)
    PortalReviewer:
      type: object
      properties:
        email:
          type: string
          description: Hiring manager email
        invitedAt:
          type: string
          format: date-time
      required:
        - email
        - invitedAt
  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.