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

# Add Contact

> Add a contact to a project.

Creates or finds a Person in the knowledge graph (Neo4j) and creates
a CONTACT_FOR relationship to the project. The Person may also be
linked to a Company based on email domain.



## OpenAPI

````yaml /openapi.json post /v1/projects/{project_id}/contacts
openapi: 3.1.0
info:
  title: Ontora API
  description: >-
    Ontora's public API. Covers interview campaigns, transcripts, synthesis
    reports, graph queries, webhooks, and workspace management. 


    **Authentication**: endpoints accept either a Clerk JWT (`Authorization:
    Bearer <token>`) or a workspace API key (`X-API-Key: ont_...`). Workspace
    keys are managed via `/v1/api-keys`.
  version: 0.1.0
servers: []
security:
  - ClerkJWT: []
  - WorkspaceApiKey: []
tags:
  - name: interviews
    description: Campaign CRUD, lifecycle, contacts, question sets.
  - name: campaign-insights
    description: Synthesis outputs — cartography, roadmap, personas, conversations.
  - name: interview-query
    description: Graph RAG query over campaign data.
  - name: interview-export
    description: Markdown / ZIP exports of transcripts and reports.
  - name: api-keys
    description: Manage workspace-scoped API keys for programmatic access.
  - name: webhook-endpoints
    description: Outbound webhook endpoints for automation.
  - name: booking
    description: Public self-scheduling endpoints for interview participants.
  - name: workspaces
    description: Workspace and membership management.
  - name: vaults
    description: Context vault management.
paths:
  /v1/projects/{project_id}/contacts:
    post:
      tags:
        - projects
      summary: Add Contact
      description: |-
        Add a contact to a project.

        Creates or finds a Person in the knowledge graph (Neo4j) and creates
        a CONTACT_FOR relationship to the project. The Person may also be
        linked to a Company based on email domain.
      operationId: add_contact_v1_projects__project_id__contacts_post
      parameters:
        - name: project_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Project Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/app__api__projects__ContactCreate'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/app__api__projects__ContactOut'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    app__api__projects__ContactCreate:
      properties:
        email:
          type: string
          format: email
          title: Email
        name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
        role:
          anyOf:
            - type: string
            - type: 'null'
          title: Role
        company:
          anyOf:
            - type: string
            - type: 'null'
          title: Company
        priority:
          type: integer
          title: Priority
          default: 0
        notes:
          anyOf:
            - type: string
            - type: 'null'
          title: Notes
      type: object
      required:
        - email
      title: ContactCreate
    app__api__projects__ContactOut:
      properties:
        key:
          type: string
          title: Key
        email:
          type: string
          title: Email
        name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
        role:
          anyOf:
            - type: string
            - type: 'null'
          title: Role
        priority:
          anyOf:
            - type: integer
            - type: 'null'
          title: Priority
        notes:
          anyOf:
            - type: string
            - type: 'null'
          title: Notes
        last_contacted_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Last Contacted At
        created_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Created At
        company:
          anyOf:
            - $ref: '#/components/schemas/ContactCompany'
            - type: 'null'
      type: object
      required:
        - key
        - email
        - name
        - role
        - priority
        - notes
        - last_contacted_at
        - created_at
        - company
      title: ContactOut
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ContactCompany:
      properties:
        name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
        domain:
          anyOf:
            - type: string
            - type: 'null'
          title: Domain
      type: object
      required:
        - name
        - domain
      title: ContactCompany
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    ClerkJWT:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Clerk-issued RS256 JWT.
    WorkspaceApiKey:
      type: apiKey
      in: header
      name: X-API-Key
      description: 'Workspace-scoped API key (prefix: `ont_`).'
    HTTPBearer:
      type: http
      scheme: bearer

````