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

# Webhook Input

> Accept programmatic data input via webhook.

For automated systems to push data into the platform.



## OpenAPI

````yaml /openapi.json post /v1/projects/{project_id}/data/webhook
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}/data/webhook:
    post:
      tags:
        - data-input
      summary: Webhook Input
      description: |-
        Accept programmatic data input via webhook.

        For automated systems to push data into the platform.
      operationId: webhook_input_v1_projects__project_id__data_webhook_post
      parameters:
        - name: project_id
          in: path
          required: true
          schema:
            type: string
            title: Project Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WebhookRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DataInputResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    WebhookRequest:
      properties:
        source_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Source Name
          description: Name/description of the data source
        metadata:
          additionalProperties: true
          type: object
          title: Metadata
          description: Additional metadata
        data:
          title: Data
          description: The data payload
        source:
          anyOf:
            - type: string
            - type: 'null'
          title: Source
          description: Source identifier
      type: object
      required:
        - data
      title: WebhookRequest
      description: Request from a programmatic webhook.
    DataInputResponse:
      properties:
        input_id:
          type: string
          title: Input Id
          description: Unique identifier for this input
        input_type:
          type: string
          title: Input Type
          description: Type of input (file, url, paste, webhook)
        source_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Source Name
          description: Name of the data source
        detected_format:
          anyOf:
            - type: string
            - type: 'null'
          title: Detected Format
          description: Detected format (if available)
        size_bytes:
          type: integer
          title: Size Bytes
          description: Size of the input in bytes
        preview:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Preview
          description: Preview of the data
        status:
          type: string
          title: Status
          description: Processing status
          default: pending
        created_at:
          type: string
          format: date-time
          title: Created At
      type: object
      required:
        - input_id
        - input_type
        - size_bytes
      title: DataInputResponse
      description: Response after data input is accepted.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    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

````