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

# Create an event destination

> A webhook endpoint that receives signed thin events. The signing secret is returned in `webhook_endpoint.signing_secret` on create and rotate responses only (shown once); elsewhere it is null. Max 10 per account.



## OpenAPI

````yaml /openapi/v2.json post /event_destinations
openapi: 3.1.0
info:
  title: Redbark API
  version: 2026-10-01.wattle
  description: >-
    Everything a user can do in the dashboard, by API key. Send
    `Redbark-Version` on every request; see the conventions guide for ids,
    lists, errors and idempotency.
servers:
  - url: https://api.redbark.com/v2
security:
  - Bearer: []
    RedbarkVersion: []
tags:
  - name: Account
    description: The authenticated account, its plan and the key in use.
  - name: API keys
    description: Create, scope, rotate and revoke API keys.
  - name: Connections
    description: Linked banks and brokerages, and their lifecycle.
  - name: Consents
    description: Open Banking consents behind each connection.
  - name: Accounts
    description: Bank and brokerage accounts, live balances and details.
  - name: Transactions
    description: Transactions read live from the provider.
  - name: Holdings
    description: Brokerage positions.
  - name: Trades
    description: Brokerage trade history.
  - name: Categories
    description: The category taxonomy and provider categories.
  - name: Syncs
    description: Syncs from accounts to destinations.
  - name: Sync runs
    description: Individual sync executions.
  - name: Rules
    description: Rulesets and rules that transform transactions during a sync.
  - name: Destinations
    description: 'Where synced data lands: Sheets, Airtable, Notion, YNAB, webhooks.'
  - name: Link sessions
    description: Hosted flows that connect a bank or brokerage.
  - name: Destination links
    description: Hosted flows that authorise a destination.
  - name: Institutions
    description: Banks available to link.
  - name: Event destinations
    description: Endpoints that receive signed events.
  - name: Events
    description: What happened, and redelivery.
paths:
  /event_destinations:
    post:
      tags:
        - Event destinations
      summary: Create an event destination
      description: >-
        A webhook endpoint that receives signed thin events. The signing secret
        is returned in `webhook_endpoint.signing_secret` on create and rotate
        responses only (shown once); elsewhere it is null. Max 10 per account.
      operationId: create_event_destination
      parameters:
        - schema:
            anyOf:
              - type: string
              - type: array
                items:
                  type: string
            description: >-
              Related objects to expand inline. Repeat the parameter for more
              than one; see each resource for its includes.
          required: false
          description: >-
            Related objects to expand inline. Repeat the parameter for more than
            one; see each resource for its includes.
          name: include[]
          in: query
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateEventDestination'
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EventDestination'
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Key lacks a scope, plan lacks the feature, or IP not allowed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: No such resource
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: State conflict or Idempotency-Key conflict
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited; see Retry-After
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Internal error; quote request_id to support
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    CreateEventDestination:
      type: object
      properties:
        name:
          type: string
          minLength: 1
          maxLength: 100
        type:
          type: string
          enum:
            - webhook_endpoint
        webhook_endpoint:
          type: object
          properties:
            url:
              type: string
              format: uri
          required:
            - url
        enabled_events:
          type: array
          items:
            type: string
            minLength: 1
          minItems: 1
          description: Event types, families like "sync_run.*", or "*"
        event_payload:
          type: string
          enum:
            - thin
            - snapshot
        metadata:
          type: object
          additionalProperties:
            type:
              - string
              - 'null'
            maxLength: 500
          description: Up to 50 string pairs. Set a key to null to unset it.
      required:
        - name
        - webhook_endpoint
        - enabled_events
    EventDestination:
      type: object
      properties:
        id:
          type: string
          example: ed_5Rt7Uv9wXy1zAb3cDe5fGh
        object:
          type: string
          enum:
            - event_destination
        name:
          type: string
        type:
          type: string
          enum:
            - webhook_endpoint
        webhook_endpoint:
          type: object
          properties:
            url:
              type: string
            signing_secret:
              type:
                - string
                - 'null'
              description: Set on create and rotate responses, null elsewhere
          required:
            - url
            - signing_secret
        enabled_events:
          type: array
          items:
            type: string
        event_payload:
          type: string
          enum:
            - thin
            - snapshot
        status:
          type: string
          enum:
            - enabled
            - disabled
        status_details:
          type:
            - object
            - 'null'
          additionalProperties: {}
        metadata:
          type:
            - object
            - 'null'
          additionalProperties:
            type: string
            maxLength: 500
          description: Up to 50 string pairs. Set a key to null in an update to unset it.
        livemode:
          type: boolean
        created:
          type: string
          format: date-time
          example: '2026-08-21T09:30:00.000Z'
        updated:
          type: string
          format: date-time
          example: '2026-08-21T09:30:00.000Z'
      required:
        - id
        - object
        - name
        - type
        - webhook_endpoint
        - enabled_events
        - event_payload
        - status
        - status_details
        - metadata
        - livemode
        - created
        - updated
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            type:
              type: string
              enum:
                - invalid_request_error
                - authentication_error
                - permission_error
                - rate_limit_error
                - idempotency_error
                - upstream_error
                - api_error
            code:
              type: string
            message:
              type: string
            param:
              type:
                - string
                - 'null'
            doc_url:
              type: string
            request_id:
              type: string
          required:
            - type
            - code
            - message
            - param
            - doc_url
            - request_id
      required:
        - error
  securitySchemes:
    Bearer:
      type: http
      scheme: bearer
      bearerFormat: API key
      description: 'Authorization: Bearer rbk_live_...'
    RedbarkVersion:
      type: apiKey
      in: header
      name: Redbark-Version
      description: >-
        The API release your integration is built against, e.g.
        2026-10-01.wattle. Required on every request.

````