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

# Send a team event

> Normalizes the event and dispatches active team automations whose provider, event type, connection, and filters match.



## OpenAPI

````yaml /openapi/v1.json post /teams/{teamSlug}/webhooks/events
openapi: 3.1.0
info:
  title: Felan API
  description: >-
    Team-scoped access to Felan sessions, integrations, environments,
    environment variables, automations, and inbound events.
  version: 1.0.0
  contact:
    name: Felan Support
    url: https://felan.ai
servers:
  - url: https://app.felan.ai/api/v1
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Teams
  - name: Integrations
  - name: Environments
  - name: Environment Variables
  - name: Automations
  - name: Sessions
  - name: Events
  - name: OpenAPI
paths:
  /teams/{teamSlug}/webhooks/events:
    post:
      tags:
        - Events
      summary: Send a team event
      description: >-
        Normalizes the event and dispatches active team automations whose
        provider, event type, connection, and filters match.
      operationId: sendTeamEvent
      parameters:
        - $ref: '#/components/parameters/TeamSlug'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InboundEventInput'
      responses:
        '200':
          description: Event processed
          content:
            application/json:
              schema:
                type: object
                required:
                  - data
                properties:
                  data:
                    $ref: '#/components/schemas/InboundEventResult'
        '400':
          description: event_type is missing
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/InternalError'
components:
  parameters:
    TeamSlug:
      name: teamSlug
      in: path
      required: true
      description: Felan team slug shown in dashboard URLs and Team Settings
      schema:
        type: string
        minLength: 1
  schemas:
    InboundEventInput:
      type: object
      required:
        - event_type
      properties:
        event_type:
          type: string
          example: deployment.completed
        provider:
          type: string
          default: generic
        connection_id:
          type: string
        id:
          type: string
          description: Generated when omitted
        source:
          type: string
          description: Defaults to provider://teamId
        subject:
          type: string
        time:
          type: string
          format: date-time
        metadata:
          type: object
          additionalProperties: true
        data:
          type: object
          additionalProperties: true
      additionalProperties: true
    InboundEventResult:
      type: object
      required:
        - accepted
        - dispatched
      properties:
        accepted:
          type: boolean
        dispatched:
          type: array
          items:
            $ref: '#/components/schemas/AutomationDispatch'
        reason:
          type: string
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
              examples:
                - VALIDATION_ERROR
                - UNAUTHORIZED
                - NOT_FOUND
                - EXECUTION_DENIED
                - CONFLICT
                - RATE_LIMITED
                - SESSION_START_FAILED
                - SESSION_PUBLISH_FAILED
                - MESSAGE_PUBLISH_FAILED
                - INTERNAL_ERROR
            message:
              type: string
    AutomationDispatch:
      type: object
      required:
        - automationId
        - idempotencyKey
        - triggerIds
      properties:
        automationId:
          type: string
          format: uuid
        idempotencyKey:
          type: string
        triggerIds:
          type: array
          items:
            type: string
            format: uuid
  responses:
    Unauthorized:
      description: Missing or invalid team API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: Resource missing or outside the authenticated team
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    RateLimited:
      description: Team API key rate limit exceeded
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    InternalError:
      description: The server could not complete the request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Team API key. Current keys retain the bzy_team_ compatibility prefix.

````