> ## Documentation Index
> Fetch the complete documentation index at: https://prismeai-legacy.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Post v2contacts

> Retrieve some public contact. Normal users can only search specific email/ids



## OpenAPI

````yaml /api-reference/swagger.yml post /v2/contacts
openapi: 3.0.0
info:
  version: 1.0.0
  title: Prisme.ai APIs
  description: Prisme.ai APIs specifications
  termsOfService: https://www.prisme.ai/mentions-legales
  contact:
    name: Prisme.ai Support Team
    email: support@prisme.ai
    url: https://www.prisme.ai
  license:
    name: Apache 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0.html
servers:
  - url: https://api.eda.prisme.ai
  - url: http://localhost:3001
security:
  - BearerAuth: []
  - WorkspaceApiKeyAuth: []
  - BearerAuth: []
    WorkspaceApiKeyAuth: []
paths:
  /v2/contacts:
    post:
      tags:
        - API Gateway
      description: >-
        Retrieve some public contact. Normal users can only search specific
        email/ids
      operationId: findContacts
      parameters:
        - name: page
          in: query
          description: Page number
          schema:
            type: number
        - name: limit
          in: query
          description: Page size
          required: false
          schema:
            type: number
      requestBody:
        required: true
        content:
          application/json:
            schema:
              additionalProperties: false
              properties:
                email:
                  type: string
                text:
                  type: string
                  description: Search in both email & id
                ids:
                  type: array
                  items:
                    type: string
                firstName:
                  type: string
                  pattern: "^[0-9A-Za-zÀ-ÖØ-öø-ÿ ,.'-\_]{1,60}$"
                lastName:
                  type: string
                  pattern: "^[0-9A-Za-zÀ-ÖØ-öø-ÿ ,.'-\_]{1,60}$"
                authProvider:
                  type: string
                status:
                  type: string
                  enum:
                    - pending
                    - validated
                    - deactivated
                platformRole:
                  type: string
                groups:
                  type: array
                  items:
                    type: string
      responses:
        '200':
          description: Success Response
          content:
            application/json:
              schema:
                type: object
                required:
                  - contacts
                properties:
                  size:
                    type: number
                    description: Total number of matching contacts
                  contacts:
                    type: array
                    items:
                      $ref: '#/components/schemas/Contact'
        '403':
          description: Bad permissions
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ForbiddenError'
        '404':
          description: Object not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ObjectNotFoundError'
components:
  schemas:
    Contact:
      allOf:
        - required:
            - firstName
          type: object
          properties:
            firstName:
              type: string
              description: Name
            lastName:
              type: string
              description: Name
            language:
              type: string
            photo:
              type: string
              description: Profile picture URL
            status:
              type: string
              enum:
                - pending
                - validated
                - deactivated
            meta:
              type: object
            groups:
              type: array
              items:
                type: string
        - $ref: '#/components/schemas/Object'
    ForbiddenError:
      type: object
      properties:
        error:
          type: string
          example: ForbiddenError
        message:
          type: string
          example: Forbidden
    ObjectNotFoundError:
      type: object
      properties:
        error:
          type: string
          example: ObjectNotFound
        message:
          type: string
    Object:
      type: object
      properties:
        id:
          type: string
          description: Unique id
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
    WorkspaceApiKeyAuth:
      type: apiKey
      in: header
      name: x-prismeai-api-key

````