Site Qwality RUM Recording Rules API

Which RUM sessions record Analyze detail and replay: typed conditions, sampling, Auto rates and estimates.

GitHub OpenAPI

Operations 5

GET /rum/{app_id}/rules List the recording rules of a RUM application, in evaluation order. #
POST /rum/{app_id}/rules Create a recording rule (at most 50 per application). #
POST /rum/{app_id}/rules/preview Estimate a rule's sessions per month and quota share from the last 7 days. #
PUT /rum/{app_id}/rules/{rule_id} Update a recording rule: fields left out keep their value, the result is… #
DELETE /rum/{app_id}/rules/{rule_id} Delete a recording rule. The SDK config is published before this returns #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/siteqwality-com:siteqwality-com-rum-recording-rules-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

siteqwality-com-rum-recording-rules-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Siteqwality Com RUM Recording Rules API
  version: 0.1.0
  contact:
    name: Site Qwality Support
    url: https://siteqwality.com
    email: support@siteqwality.com
  license:
    name: Proprietary
  description: 'Operations tagged RUM Recording Rules across 2 of this provider''s published API definitions: siteqwality-com-openapi-openapi.json, siteqwality-com-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.siteqwality.com
  description: Production
tags:
- name: RUM Recording Rules
  description: 'Which RUM sessions record Analyze detail and replay: typed conditions, sampling, Auto rates and estimates.'
paths:
  /rum/{app_id}/rules:
    get:
      tags:
      - RUM Recording Rules
      summary: List the recording rules of a RUM application, in evaluation order.
      operationId: list_rum_recording_rules
      parameters:
      - name: app_id
        in: path
        description: RUM application identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: Recording rules
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/RumRecordingRule'
        '401':
          description: Missing or invalid authentication
        '404':
          description: Application not found
        '500':
          description: Internal server error
      security:
      - bearer_auth: []
    post:
      tags:
      - RUM Recording Rules
      summary: Create a recording rule (at most 50 per application).
      operationId: create_rum_recording_rule
      parameters:
      - name: app_id
        in: path
        description: RUM application identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateRumRecordingRuleRequest'
        required: true
      responses:
        '201':
          description: Rule created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RumRecordingRule'
        '400':
          description: Invalid rule
        '401':
          description: Missing or invalid authentication
        '404':
          description: Application not found
        '409':
          description: The application already has 50 rules
        '500':
          description: Internal server error
        '503':
          description: The SDK config could not be published; nothing was changed
      security:
      - bearer_auth: []
    servers:
    - url: https://api.siteqwality.com
      description: Production
  /rum/{app_id}/rules/preview:
    post:
      tags:
      - RUM Recording Rules
      summary: Estimate a rule's sessions per month and quota share from the last 7 days.
      operationId: preview_rum_recording_rule
      parameters:
      - name: app_id
        in: path
        description: RUM application identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateRumRecordingRuleRequest'
        required: true
      responses:
        '200':
          description: Estimate
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RumRulePreview'
        '400':
          description: Invalid rule
        '401':
          description: Missing or invalid authentication
        '404':
          description: Application not found
        '500':
          description: Internal server error
      security:
      - bearer_auth: []
    servers:
    - url: https://api.siteqwality.com
      description: Production
  /rum/{app_id}/rules/{rule_id}:
    put:
      tags:
      - RUM Recording Rules
      summary: 'Update a recording rule: fields left out keep their value, the result is…'
      operationId: update_rum_recording_rule
      parameters:
      - name: app_id
        in: path
        description: RUM application identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: rule_id
        in: path
        description: Recording rule identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateRumRecordingRuleRequest'
        required: true
      responses:
        '200':
          description: Rule updated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RumRecordingRule'
        '400':
          description: Invalid rule
        '401':
          description: Missing or invalid authentication
        '404':
          description: Application or rule not found
        '500':
          description: Internal server error
        '503':
          description: The SDK config could not be published; nothing was changed
      security:
      - bearer_auth: []
    delete:
      tags:
      - RUM Recording Rules
      summary: Delete a recording rule. The SDK config is published before this returns
      operationId: delete_rum_recording_rule
      parameters:
      - name: app_id
        in: path
        description: RUM application identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: rule_id
        in: path
        description: Recording rule identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '204':
          description: Rule deleted
        '401':
          description: Missing or invalid authentication
        '404':
          description: Application or rule not found
        '500':
          description: Internal server error
        '503':
          description: The SDK config could not be published; nothing was changed
      security:
      - bearer_auth: []
    servers:
    - url: https://api.siteqwality.com
      description: Production
components:
  schemas:
    FrustrationType:
      type: string
      enum:
      - rage_click
      - dead_click
      - error_click
    RumRulePreview:
      type: object
      description: What a rule would record, from the last 7 days of sessions (`POST .../rules/preview`).
      required:
      - window_days
      - sessions_in_window
      - matching_sessions_in_window
      - sample_rate
      - estimated_sessions_per_month
      - quota_product
      - monthly_quota
      - approximate
      - not_evaluated
      properties:
        window_days:
          type: integer
          format: int32
          minimum: 0
        sessions_in_window:
          type: integer
          format: int64
          description: Sessions the application had in the window.
          minimum: 0
        matching_sessions_in_window:
          type: integer
          format: int64
          description: Of those, sessions the conditions and gates would match, before sampling.
          minimum: 0
        sample_rate:
          type: number
          format: double
          description: 'The sample rate applied: the configured rate, or the current Auto rate.'
        estimated_sessions_per_month:
          type: integer
          format: int64
          description: Matching sessions scaled to a 30-day month, after sampling.
          minimum: 0
        quota_product:
          type: string
          description: '`session_replay` for Replay rules, `rum_analyze` for Analyze rules.'
        monthly_quota:
          type: integer
          format: int64
          description: The account's monthly quota for that product.
        quota_share:
          type:
          - number
          - 'null'
          format: double
          description: '`estimated_sessions_per_month / monthly_quota`; null when there is no quota.'
        approximate:
          type: boolean
          description: 'True when part of the rule could not be evaluated exactly from stored sessions; the

            estimate is then an upper bound.'
        not_evaluated:
          type: array
          items:
            type: string
          description: Condition kinds and gates counted as always true.
    RumRecordingRule:
      type: object
      description: A recording rule.
      required:
      - id
      - application_id
      - name
      - capture
      - enabled
      - sample_rate
      - auto_sample
      - conditions
      - min_duration_ms
      - require_interaction
      - position
      - created_at
      - updated_at
      properties:
        id:
          type: string
          format: uuid
        application_id:
          type: string
          format: uuid
        name:
          type: string
        capture:
          $ref: '#/components/schemas/RuleCapture'
        enabled:
          type: boolean
        sample_rate:
          type: number
          format: double
          description: The configured rate, 0.00001 to 1. For an Auto rule, the most Auto may set.
        auto_sample:
          type: boolean
          description: 'Auto: the rate follows the replay quota, recomputed hourly (Replay rules only).'
        effective_sample_rate:
          type:
          - number
          - 'null'
          format: double
          description: 'The rate the SDK uses when the sampling tick has set one: the Auto rate, or a lowered

            rate for an error rule when errored sessions alone would exhaust the replay quota.'
        effective_rate_at:
          type:
          - string
          - 'null'
          format: date-time
        conditions:
          type: array
          items:
            $ref: '#/components/schemas/RuleCondition'
          description: All must hold. Empty means every session.
        min_duration_ms:
          type: integer
          format: int32
          description: Sampled recordings upload only once the session is this old. Error conditions bypass it.
        require_interaction:
          type: boolean
          description: Sampled recordings upload only after a user interaction. Error conditions bypass it.
        position:
          type: integer
          format: int32
        created_by_user_id:
          type:
          - string
          - 'null'
          format: uuid
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
    CreateRumRecordingRuleRequest:
      type: object
      description: Body of `POST /rum/{app_id}/rules` and of a preview.
      required:
      - capture
      properties:
        name:
          type:
          - string
          - 'null'
          description: 1 to 255 characters. Optional for a preview.
        capture:
          $ref: '#/components/schemas/RuleCapture'
        enabled:
          type: boolean
        sample_rate:
          type: number
          format: double
          description: Default 1.
        auto_sample:
          type: boolean
        conditions:
          type: array
          items:
            $ref: '#/components/schemas/RuleCondition'
        min_duration_ms:
          type:
          - integer
          - 'null'
          format: int32
          description: Default 3000 for Replay rules, 0 for Analyze rules.
        require_interaction:
          type:
          - boolean
          - 'null'
          description: Default true for Replay rules, false for Analyze rules.
        position:
          type:
          - integer
          - 'null'
          format: int32
          description: 'Default: after the last rule.'
      additionalProperties: false
    RuleCondition:
      oneOf:
      - type: object
        description: 'The page URL, checked on each view. `regex` values use the common subset of the

          Rust and JavaScript syntaxes, at most 256 characters, with no nested quantifiers.'
        required:
        - op
        - value
        - kind
        properties:
          op:
            $ref: '#/components/schemas/UrlOp'
          value:
            type: string
          kind:
            type: string
            enum:
            - url
      - type: object
        description: A custom event (`addAction`) with this name.
        required:
        - name
        - kind
        properties:
          name:
            type: string
          kind:
            type: string
            enum:
            - event
      - type: object
        description: A non-ignored error, optionally narrowed by type, message fragment or handling.
        required:
        - kind
        properties:
          error_type:
            type:
            - string
            - 'null'
          message_contains:
            type:
            - string
            - 'null'
          unhandled_only:
            type: boolean
          kind:
            type: string
            enum:
            - error
      - type: object
        description: A failed request of this class, optionally to a URL containing `url_contains`.
        required:
        - status_class
        - kind
        properties:
          status_class:
            $ref: '#/components/schemas/StatusClass'
          url_contains:
            type:
            - string
            - 'null'
          kind:
            type: string
            enum:
            - network_error
      - type: object
        description: A frustration signal.
        required:
        - type
        - kind
        properties:
          type:
            $ref: '#/components/schemas/FrustrationType'
          kind:
            type: string
            enum:
            - frustration
      - type: object
        description: A final vital above `gt` (milliseconds for LCP and INP, unitless for CLS).
        required:
        - metric
        - gt
        - kind
        properties:
          metric:
            $ref: '#/components/schemas/VitalMetric'
          gt:
            type: number
            format: double
          kind:
            type: string
            enum:
            - vital
      - type: object
        description: '`setUser` was called with an id. A struct variant so unknown fields are refused.'
        required:
        - kind
        properties:
          kind:
            type: string
            enum:
            - identified
      - type: object
        description: A global attribute or user trait equals `value`.
        required:
        - key
        - value
        - kind
        properties:
          key:
            type: string
          value:
            type: string
          kind:
            type: string
            enum:
            - attribute
      - type: object
        description: The device class at init.
        required:
        - class
        - kind
        properties:
          class:
            $ref: '#/components/schemas/DeviceClass'
          kind:
            type: string
            enum:
            - device
      - type: object
        description: The release passed at init.
        required:
        - op
        - value
        - kind
        properties:
          op:
            $ref: '#/components/schemas/ReleaseOp'
          value:
            type: string
          kind:
            type: string
            enum:
            - release
      - type: object
        description: The environment passed at init.
        required:
        - value
        - kind
        properties:
          value:
            type: string
          kind:
            type: string
            enum:
            - env
      description: One condition of a rule. A rule matches when all of its conditions hold.
    UrlOp:
      type: string
      enum:
      - contains
      - starts_with
      - regex
    VitalMetric:
      type: string
      enum:
      - lcp
      - inp
      - cls
    StatusClass:
      type: string
      enum:
      - 4xx
      - 5xx
      - network
    UpdateRumRecordingRuleRequest:
      type: object
      description: 'Body of `PUT /rum/{app_id}/rules/{rule_id}`. Every field is optional: one left out keeps

        its stored value, and the result is validated as a whole.'
      properties:
        name:
          type:
          - string
          - 'null'
        capture:
          oneOf:
          - $ref: '#/components/schemas/RuleCapture'
          - type: 'null'
        enabled:
          type:
          - boolean
          - 'null'
        sample_rate:
          type:
          - number
          - 'null'
          format: double
        auto_sample:
          type:
          - boolean
          - 'null'
        conditions:
          type:
          - array
          - 'null'
          items:
            $ref: '#/components/schemas/RuleCondition'
          description: Replaces the whole list when given.
        min_duration_ms:
          type:
          - integer
          - 'null'
          format: int32
        require_interaction:
          type:
          - boolean
          - 'null'
        position:
          type:
          - integer
          - 'null'
          format: int32
      additionalProperties: false
    RuleCapture:
      type: string
      description: What a matching session records. Replay implies Analyze.
      enum:
      - analyze
      - replay
    ReleaseOp:
      type: string
      enum:
      - eq
      - starts_with
    DeviceClass:
      type: string
      enum:
      - desktop
      - mobile
  securitySchemes:
    bearer_auth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: 'Generate an API key in account settings and pass it as `Authorization: Bearer <KEY>`.'
x-refined-from:
- siteqwality-com-openapi-openapi.json
- siteqwality-com-openapi.json