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

# Trigger automation via webhook



## OpenAPI

````yaml https://portal.unicontrol.me/v1/openapi post /v1/automations/webhook/{webhook_id}
openapi: 3.1.0
info:
  title: Unicontrol API
  description: Welcome
  version: 1.0.0
servers:
  - url: http://0.0.0.0:3000
    description: Local Server
  - url: https://portal.test.flexhome.casa
    description: Development
  - url: https://portal.unicontrol.me
    description: Production
security:
  - bearerAuth: []
paths:
  /v1/automations/webhook/{webhook_id}:
    post:
      tags:
        - Automations
      summary: Trigger automation via webhook
      operationId: postV1AutomationsWebhookByWebhook_id
      parameters:
        - in: path
          name: webhook_id
          required: true
          schema:
            type: string
          description: ID único do webhook
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              description: Payload opcional enviado ao webhook
            example:
              sensor: temperature
              value: 23.5
      responses:
        '200':
          description: Webhook received
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
              example:
                message: Webhook received
        '404':
          description: Recurso não encontrado
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
              example:
                message: not found
      security: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````