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

# Receive a system webhook

> The generic entry point for CRM, ERP and help desk, with a versioned mapping and source authentication.



## OpenAPI

````yaml openapi/en/cell.json POST /v1/ingest/webhook/{source_id}
openapi: 3.1.0
info:
  title: Niadra data API
  version: '1'
  description: >-
    Writing, context, history, objects, identity, privacy and governance of one
    space. Every space has a stable address, with the space and the region in
    its name.
servers:
  - url: https://{space}.{region}.api.niadra.com
    variables:
      space:
        default: acme-prod
        description: The space, which comes in the source key.
      region:
        default: us-east-1
        description: The region of the space, which also comes in the key.
security: []
paths:
  /v1/ingest/webhook/{source_id}:
    post:
      tags:
        - ingest
      summary: Receive a system webhook
      description: >-
        Authenticated by the source's mapping (bearer, HMAC, URL token or mTLS),
        not by a source key.


        **Authentication.** Authentication declared in the mapping of the
        source: bearer, HMAC signature, URL token or mTLS. No source key.
      operationId: webhook_v1_ingest_webhook__source_id__post
      parameters:
        - in: path
          name: source_id
          required: true
          schema:
            format: uuid
            title: Source Id
            type: string
          description: The source configured for this system.
          example: 0192f7a1-5b10-7c3a-8e21-4d2f8a4c0e0b
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BatchResponse'
              example:
                accepted: 1
                duplicates: 0
                errors: []
          description: >-
            The payload after the mapping of the source, as a batch result:
            accepted, duplicates and one error per rejected item. The raw
            payload is stored in every case.
        '422':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: The request does not match the contract.
      security: []
components:
  schemas:
    BatchResponse:
      additionalProperties: false
      properties:
        accepted:
          title: Accepted
          type: integer
        duplicates:
          title: Duplicates
          type: integer
          description: Items whose idempotency key was already stored.
        errors:
          items:
            $ref: '#/components/schemas/ItemError'
          title: Errors
          type: array
      required:
        - accepted
        - duplicates
        - errors
      title: BatchResponse
      type: object
    Problem:
      additionalProperties: false
      description: RFC 9457 problem details; `code` comes from the versioned error catalog.
      properties:
        code:
          title: Code
          type: string
        detail:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Detail
        request_id:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Request Id
        status:
          title: Status
          type: integer
        title:
          title: Title
          type: string
        type:
          default: about:blank
          title: Type
          type: string
      required:
        - title
        - status
        - code
      title: Problem
      type: object
    ItemError:
      additionalProperties: false
      properties:
        code:
          title: Code
          type: string
        detail:
          anyOf:
            - type: string
            - type: 'null'
          title: Detail
        index:
          title: Index
          type: integer
          description: Position of the item in `items`.
      required:
        - index
        - code
      title: ItemError
      type: object

````