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

# Imports clients to a portal using SSNs with secret-based authentication. This is an anonymous endpoint for external integrations.



## OpenAPI

````yaml https://raw.githubusercontent.com/FooBarBizarre/docs/refs/heads/main/api-reference/openapi.json post /portals/import-clients
openapi: 3.0.1
info:
  title: Maia Backend API
  version: v1
servers: []
security: []
paths:
  /portals/import-clients:
    post:
      tags:
        - Portal
      summary: >-
        Imports clients to a portal using SSNs with secret-based authentication.
        This is an anonymous endpoint for external integrations.
      requestBody:
        description: The request containing SSNs, portal ID, and authentication secret.
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ImportClientsRequest'
          text/json:
            schema:
              $ref: '#/components/schemas/ImportClientsRequest'
          application/*+json:
            schema:
              $ref: '#/components/schemas/ImportClientsRequest'
      responses:
        '200':
          description: Clients imported successfully.
        '400':
          description: Invalid portal ID or empty SSNs list.
        '404':
          description: Invalid authentication secret.
components:
  schemas:
    ImportClientsRequest:
      type: object
      properties:
        ssNs:
          type: array
          items:
            type: string
          nullable: true
        portalId:
          type: integer
          format: int32
        secret:
          type: string
          nullable: true
      additionalProperties: false

````