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

# Create Webhook

> Register a webhook for real-time event notifications.



## OpenAPI

````yaml POST /v1/webhooks
openapi: 3.1.0
info:
  title: Rekko AI — Prediction Market Intelligence
  description: >-
    The brain for prediction market trading. Deep AI research, Bayesian causal
    decomposition, portfolio-aware strategy signals, cross-platform arbitrage,
    and execution guidance — all in one API. Covers Kalshi, Polymarket,
    Robinhood, and Coinbase. Clean flat JSON designed for developers and
    autonomous trading agents.
  contact:
    name: Rekko AI
    url: https://rekko.ai/
  license:
    name: Proprietary
  version: 1.0.0
servers:
  - url: https://api.rekko.ai
security: []
tags:
  - name: Markets
    description: Prediction market listings, history, resolution, and execution guidance
  - name: Insights
    description: AI-powered research insights with causal decomposition
  - name: Strategy
    description: >-
      Actionable trading signals with Kelly-derived position sizing and causal
      decomposition
  - name: Portfolio
    description: Portfolio-aware strategy, correlation analysis, and hedge recommendations
  - name: Arbitrage
    description: Cross-platform arbitrage detection (Kalshi vs Polymarket vs Robinhood)
  - name: Analytics
    description: Calibration metrics, sentiment, and performance tracking
  - name: Streaming
    description: Real-time SSE event stream and webhooks
  - name: Consensus
    description: Agent trade aggregation and crowd probability
paths:
  /v1/webhooks:
    post:
      tags:
        - Streaming
      summary: Register a webhook
      description: Register a webhook for real-time event notifications.
      operationId: /v1/webhooks/create
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WebhookRegistration'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookInfo'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    WebhookRegistration:
      properties:
        url:
          type: string
          title: Url
          description: HTTPS URL to receive webhook POST requests
        events:
          items:
            type: string
          type: array
          title: Events
          description: 'Event types: ''price_shift'', ''whale_alert'', ''analysis_complete'''
        secret:
          type: string
          title: Secret
          description: HMAC-SHA256 secret for payload verification
          default: ''
      type: object
      required:
        - url
        - events
      title: WebhookRegistration
      description: Request to register a webhook.
      example:
        events:
          - whale_alert
          - analysis_complete
        secret: whsec_abc123def456
        url: https://my-agent.example.com/webhooks/rekko
    WebhookInfo:
      properties:
        webhook_id:
          type: string
          title: Webhook Id
          description: Unique webhook identifier
        url:
          type: string
          title: Url
          description: Destination URL
        events:
          items:
            type: string
          type: array
          title: Events
          description: Subscribed event types
        enabled:
          type: boolean
          title: Enabled
          description: Whether active
          default: true
        failure_count:
          type: integer
          title: Failure Count
          description: Consecutive delivery failures
          default: 0
        created_at:
          type: string
          format: date-time
          title: Created At
          description: When registered
      type: object
      required:
        - webhook_id
        - url
        - events
        - created_at
      title: WebhookInfo
      description: Registered webhook details.
      example:
        created_at: '2026-03-20T10:00:00Z'
        enabled: true
        events:
          - whale_alert
          - analysis_complete
        failure_count: 0
        url: https://my-agent.example.com/webhooks/rekko
        webhook_id: wh-f47ac10b58cc
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````