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

# Post webhook



## OpenAPI

````yaml openapi.json post /webhook
openapi: 3.0.0
info:
  description: Generated by encore
  title: API for ledger-api-vq7i
  version: '1'
  x-logo:
    altText: Encore logo
    backgroundColor: '#EEEEE1'
    url: https://encore.dev/assets/branding/logo/logo-black.png
servers:
  - description: Encore local dev environment
    url: http://localhost:4000
  - description: ' local dev environment'
    url: https://staging-ledger-api-vq7i.encr.app
security: []
paths:
  /webhook:
    post:
      operationId: POST:webhook.webhook
      parameters:
        - allowEmptyValue: true
          explode: true
          in: header
          name: api_key
          required: true
          schema:
            type: string
          style: simple
      requestBody:
        content:
          application/json:
            schema:
              properties:
                flowId:
                  type: string
                projectId:
                  type: number
                values:
                  additionalProperties:
                    type: string
                  type: object
              required:
                - flowId
                - projectId
                - values
              type: object
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  message:
                    type: string
                  success:
                    type: boolean
                required:
                  - success
                  - message
                type: object
          description: Success response
        default:
          $ref: '#/components/responses/APIError'
components:
  responses:
    APIError:
      content:
        application/json:
          schema:
            externalDocs:
              url: https://pkg.go.dev/encore.dev/beta/errs#Error
            properties:
              code:
                description: Error code
                example: not_found
                externalDocs:
                  url: https://pkg.go.dev/encore.dev/beta/errs#ErrCode
                type: string
              details:
                description: Error details
                type: object
              message:
                description: Error message
                type: string
            title: APIError
            type: object
      description: Error response

````