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

# Create Alert

> Create a price alert.

Alerts trigger when market price crosses the specified threshold.
Unlike risk monitors, alerts don't require a position.

Parameters:
- market_id: Market to monitor
- side: Which price to monitor ('yes' or 'no')
- condition: Trigger condition ('above', 'below', 'crosses_above', 'crosses_below')
- threshold: Price threshold (0-1)
- webhook_url: Optional HTTPS URL to receive webhook notification



## OpenAPI

````yaml /openapi.json post /api/sdk/alerts
openapi: 3.1.0
info:
  title: Simmer API
  description: Agent-native trading infrastructure for prediction markets.
  version: 1.0.0
servers:
  - url: https://api.simmer.markets
security: []
paths:
  /api/sdk/alerts:
    post:
      tags:
        - sdk-alerts
      summary: Create Alert
      description: >-
        Create a price alert.


        Alerts trigger when market price crosses the specified threshold.

        Unlike risk monitors, alerts don't require a position.


        Parameters:

        - market_id: Market to monitor

        - side: Which price to monitor ('yes' or 'no')

        - condition: Trigger condition ('above', 'below', 'crosses_above',
        'crosses_below')

        - threshold: Price threshold (0-1)

        - webhook_url: Optional HTTPS URL to receive webhook notification
      operationId: api_create_alert_api_sdk_alerts_post
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateAlertRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AlertResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    CreateAlertRequest:
      properties:
        market_id:
          type: string
          title: Market Id
        side:
          type: string
          enum:
            - 'yes'
            - 'no'
          title: Side
        condition:
          type: string
          enum:
            - above
            - below
            - crosses_above
            - crosses_below
          title: Condition
        threshold:
          type: number
          maximum: 1
          minimum: 0
          title: Threshold
        webhook_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Webhook Url
      type: object
      required:
        - market_id
        - side
        - condition
        - threshold
      title: CreateAlertRequest
      description: Request to create a price alert.
    AlertResponse:
      properties:
        id:
          type: string
          title: Id
        market_id:
          type: string
          title: Market Id
        market_question:
          anyOf:
            - type: string
            - type: 'null'
          title: Market Question
        side:
          type: string
          title: Side
        condition:
          type: string
          title: Condition
        threshold:
          type: number
          title: Threshold
        webhook_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Webhook Url
        triggered_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Triggered At
        created_at:
          type: string
          title: Created At
      type: object
      required:
        - id
        - market_id
        - side
        - condition
        - threshold
        - created_at
      title: AlertResponse
      description: Response for a single alert.
    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

````