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

# Ingest end user data from a CRM webhook in the background

> Accepts the webhook and replies straight away, then creates or updates the end user and saves the deal's
files in the background. Use it for CRMs whose deals carry many files, where saving them would outlast the
CRM's webhook timeout.




## OpenAPI

````yaml https://app.herondata.io/swagger post /api/ingestion/crm/{crm_integration_heron_id}/async
openapi: 3.0.0
info:
  contact:
    email: support@herondata.io
    name: Support
  title: Heron Data API
  version: '2021-07-19'
servers:
  - description: Production
    url: https://app.herondata.io
security:
  - ApiKeyAuth:
      - key_XXX
externalDocs:
  description: Read Tutorial
  url: https://docs.herondata.io/
paths:
  /api/ingestion/crm/{crm_integration_heron_id}/async:
    post:
      tags:
        - Ingestion
      summary: Ingest end user data from a CRM webhook in the background
      description: >
        Accepts the webhook and replies straight away, then creates or updates
        the end user and saves the deal's

        files in the background. Use it for CRMs whose deals carry many files,
        where saving them would outlast the

        CRM's webhook timeout.
      parameters:
        - description: Heron ID of the CRM integration
          in: path
          name: crm_integration_heron_id
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CrmWebhook'
        required: true
      responses:
        '202':
          description: Webhook accepted
        '404':
          description: CRM integration not found
      security:
        - ApiKeyAuth: []
components:
  schemas:
    CrmWebhook:
      additionalProperties: true
      properties:
        start_workflow:
          default: false
          description: >-
            When true, the deal's details start the workflow if no files are
            saved. Saved files start the workflow themselves.
          type: boolean
      type: object
  securitySchemes:
    ApiKeyAuth:
      in: header
      name: x-api-key
      type: apiKey

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.