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

# Get a rule

> By ID or key. `definition` is the newest version; `live_definition` is what is running now, which differs while an edit waits for a person.



## OpenAPI

````yaml /api-reference/openapi.json get /v1/rules/{id}
openapi: 3.1.0
info:
  title: Lurk API
  version: 1.0.0
  description: Events in, rules decide, units change, receipts out.
servers:
  - url: https://api.getlurk.com
security: []
tags:
  - name: events
    description: Send what your users do. Lurk runs your live rules on each event.
    x-group: Events
    x-displayName: Events
  - name: units
    description: What people collect and hold, and their balances.
    x-group: Units
    x-displayName: Units
  - name: rules
    description: What Lurk does when an event comes in. A person takes a rule live.
    x-group: Rules
    x-displayName: Rules
  - name: activity
    description: A receipt for every change, with why it happened.
    x-group: Receipts
    x-displayName: Receipts
  - name: users
    description: The people your events are about.
    x-group: People
    x-displayName: People
  - name: webhook_endpoints
    description: Where Lurk sends signed notices of what changed.
    x-group: Webhooks
    x-displayName: Webhooks
  - name: known_values
    description: The properties of your own events whose values Lurk remembers.
    x-group: Known values
    x-displayName: Known values
  - name: feedback
    description: Tell the Lurk team about a bug, a gap or an idea.
    x-group: Feedback
    x-displayName: Feedback
  - name: annotations
    description: >-
      Short notes on a day of the project, such as a release or a campaign
      start.
    x-group: Annotations
    x-displayName: Annotations
  - name: trusted_issuers
    description: The sign-in providers a project trusts for its app's users.
    x-group: Trusted issuers
    x-displayName: Trusted issuers
  - name: client_events
    description: The events a signed-in device may send, and their caps.
    x-group: Client events
    x-displayName: Client events
  - name: issuer_identities
    description: Which person each sign-in subject is bound to.
    x-group: Issuer identities
    x-displayName: Issuer identities
  - name: proposals
    description: Changes an agent or Lurky asks for and a person approves or declines.
    x-group: Proposals
    x-displayName: Proposals
  - name: holds
    description: Changes a rule parked for a person to give or refuse.
    x-group: Holds
    x-displayName: Holds
  - name: audiences
    description: The groups of people that rules can read.
    x-group: Audiences
    x-displayName: Audiences
  - name: budgets
    description: What each live rule's budgets have given in the window they are in now.
    x-group: Budgets
    x-displayName: Budgets
  - name: templates
    description: Kits that add units and rules to a project in one go.
    x-group: Templates
    x-displayName: Templates
  - name: views
    description: Saved questions about a project, with their answers.
    x-group: Views
    x-displayName: Views
  - name: integrations
    description: Every way events reach Lurk or state leaves it, and the state of each.
    x-group: Integrations
    x-displayName: Integrations
  - name: projects
    description: Where units, rules and events live. An organization can have several.
    x-group: Projects
    x-displayName: Projects
  - name: clocks
    description: A test project's clock, which can be moved to try schedules and expiries.
    x-group: Clocks
    x-displayName: Clocks
paths:
  /v1/rules/{id}:
    get:
      tags:
        - rules
      summary: Get a rule
      description: >-
        By ID or key. `definition` is the newest version; `live_definition` is
        what is running now, which differs while an edit waits for a person.
      operationId: rules.get
      parameters:
        - schema:
            type: string
            description: A rule_… ID or the rule's key
            examples:
              - order-points
          required: true
          description: A rule_… ID or the rule's key
          name: id
          in: path
        - schema:
            type: string
            description: W3C Trace Context; joins your trace to ours
          required: false
          description: W3C Trace Context; joins your trace to ours
          name: traceparent
          in: header
      responses:
        '200':
          description: Get a rule
          headers:
            Request-Id:
              schema:
                type: string
                description: Quote this when you contact support
              required: true
              description: Quote this when you contact support
            traceparent:
              schema:
                type: string
                description: W3C Trace Context for this call, in the caller's trace
              required: true
              description: W3C Trace Context for this call, in the caller's trace
            RateLimit:
              schema:
                type: string
                description: The tightest limit now, e.g. `"ingest-key";r=5999;t=42`
              required: true
              description: The tightest limit now, e.g. `"ingest-key";r=5999;t=42`
            RateLimit-Policy:
              schema:
                type: string
                description: Its quota and window, e.g. `"ingest-key";q=6000;w=60`
              required: true
              description: Its quota and window, e.g. `"ingest-key";q=6000;w=60`
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RuleDetail'
        '404':
          description: >-
            - `not_found`: Check the ID or key, and that you are in the right
            project. Each project is separate.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: >-
            - `validation_failed`: Nothing was changed. Fix what the message
            says is wrong (the field is named in `param` when there is one) and
            send the request again.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Too many requests. Wait `Retry-After` seconds.
          headers:
            Request-Id:
              schema:
                type: string
                description: Quote this when you contact support
              required: true
              description: Quote this when you contact support
            traceparent:
              schema:
                type: string
                description: W3C Trace Context for this call, in the caller's trace
              required: true
              description: W3C Trace Context for this call, in the caller's trace
            RateLimit:
              schema:
                type: string
                description: The tightest limit now, e.g. `"ingest-key";r=5999;t=42`
              required: true
              description: The tightest limit now, e.g. `"ingest-key";r=5999;t=42`
            RateLimit-Policy:
              schema:
                type: string
                description: Its quota and window, e.g. `"ingest-key";q=6000;w=60`
              required: true
              description: Its quota and window, e.g. `"ingest-key";q=6000;w=60`
            Retry-After:
              schema:
                type: string
                description: Seconds to wait
              required: true
              description: Seconds to wait
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        default:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - bearerAuth: []
components:
  schemas:
    RuleDetail:
      type: object
      properties:
        id:
          type: string
          description: A rule ID, starting with `rule_`.
        key:
          type: string
          pattern: ^[a-z][a-z0-9-]{0,63}$
          description: >-
            The rule's key, which other rules and Activity call it by: lowercase
            letters, digits and dashes, starting with a letter, up to 64
            characters
        name:
          type: string
          description: What people call the rule, 1 to 80 characters
        status:
          type: string
          enum:
            - draft
            - live
            - paused
          description: >-
            draft: saved, never taken live. live: running. paused: stopped, and
            runs again when resumed
        version:
          type: integer
          exclusiveMinimum: 0
          description: The newest version
        live_version:
          type:
            - integer
            - 'null'
          exclusiveMinimum: 0
          description: The version running now; null if the rule has never been live
        definition:
          type: object
          properties:
            when:
              $ref: '#/components/schemas/RuleWhen'
            if:
              type: array
              items:
                $ref: '#/components/schemas/StoredCondition'
              maxItems: 20
              default: []
              description: Conditions that must all hold, up to 20. Leave out for none
            limit:
              type: array
              items:
                $ref: '#/components/schemas/Limit'
              maxItems: 5
              default: []
              description: >-
                How often the rule may apply to one person, up to 5. Leave out
                for no limit
            do:
              type: array
              items:
                $ref: '#/components/schemas/Action'
              maxItems: 10
              description: >-
                What the rule changes: units. Needs at least one action unless
                the rule has `effects`, which are not available yet
            budget:
              type: array
              items:
                $ref: '#/components/schemas/RuleBudget'
              maxItems: 5
              description: >-
                Caps on what the rule gives everyone, not one person (limit does
                that). Leave out for none
            modify:
              type: array
              items:
                $ref: '#/components/schemas/StoredModifier'
              maxItems: 5
              description: >-
                Changes to what the rule gives, for some people, in order: VIPs
                get double. Leave out for none
            effects:
              type: array
              items:
                $ref: '#/components/schemas/RuleEffect'
              maxItems: 3
              description: >-
                Not available yet. What the rule would do in a chat platform
                besides changing units: post in a channel or message the person.
                A key or agent that saves a rule with `effects` gets
                `approval_required`. Leave out for none
          required:
            - when
            - do
          additionalProperties: false
          description: >-
            What the newest version does: when it starts, the conditions, limits
            and changes
        units:
          type: array
          items:
            type: string
            pattern: ^[a-z][a-z0-9_-]{0,63}$
          description: The units its actions change
        created_at:
          type: string
          format: date-time
          description: 'When it was created: UTC, ISO 8601'
        updated_at:
          type: string
          format: date-time
          description: 'When it last changed: UTC, ISO 8601'
        live_definition:
          type:
            - object
            - 'null'
          properties:
            when:
              $ref: '#/components/schemas/RuleWhen'
            if:
              type: array
              items:
                $ref: '#/components/schemas/StoredCondition'
              maxItems: 20
              default: []
              description: Conditions that must all hold, up to 20. Leave out for none
            limit:
              type: array
              items:
                $ref: '#/components/schemas/Limit'
              maxItems: 5
              default: []
              description: >-
                How often the rule may apply to one person, up to 5. Leave out
                for no limit
            do:
              type: array
              items:
                $ref: '#/components/schemas/Action'
              maxItems: 10
              description: >-
                What the rule changes: units. Needs at least one action unless
                the rule has `effects`, which are not available yet
            budget:
              type: array
              items:
                $ref: '#/components/schemas/RuleBudget'
              maxItems: 5
              description: >-
                Caps on what the rule gives everyone, not one person (limit does
                that). Leave out for none
            modify:
              type: array
              items:
                $ref: '#/components/schemas/StoredModifier'
              maxItems: 5
              description: >-
                Changes to what the rule gives, for some people, in order: VIPs
                get double. Leave out for none
            effects:
              type: array
              items:
                $ref: '#/components/schemas/RuleEffect'
              maxItems: 3
              description: >-
                Not available yet. What the rule would do in a chat platform
                besides changing units: post in a channel or message the person.
                A key or agent that saves a rule with `effects` gets
                `approval_required`. Leave out for none
          required:
            - when
            - do
          additionalProperties: false
          description: >-
            What is running now; null if the rule has never been live. Differs
            from `definition` while an edit waits
      required:
        - id
        - key
        - name
        - status
        - version
        - live_version
        - definition
        - units
        - created_at
        - updated_at
        - live_definition
      examples:
        - id: rule_01m2z44880ev18z457tkgkpp00
          key: order-points
          name: Points for orders
          status: live
          version: 2
          live_version: 1
          definition:
            when:
              event: order.paid
            if:
              - property:
                  name: currency
                  equals: USD
            limit:
              - max: 3
                per: day
                by: user
            do:
              - unit: points
                add:
                  from: total_cents
                  per: 100
          units:
            - points
          created_at: '2026-09-20T10:00:00.000Z'
          updated_at: '2026-11-06T15:30:00.000Z'
          live_definition:
            when:
              event: order.paid
            if:
              - property:
                  name: currency
                  equals: USD
            limit:
              - max: 5
                per: day
                by: user
            do:
              - unit: points
                add:
                  from: total_cents
                  per: 100
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            status:
              type: integer
            code:
              type: string
              enum:
                - invalid_json
                - invalid_key
                - forbidden
                - approval_required
                - not_found
                - idempotency_conflict
                - conflict
                - unblock_clock_reversed
                - insufficient_balance
                - reference_used
                - validation_failed
                - rate_limited
                - internal
                - unavailable
            message:
              type: string
            param:
              type: string
            next_step:
              type: string
              description: >-
                What to do about this kind of error, in one sentence. Always
                sent by current servers
            request_id:
              type: string
            doc_url:
              type: string
              format: uri
          required:
            - status
            - code
            - message
            - request_id
            - doc_url
      required:
        - error
    RuleWhen:
      anyOf:
        - type: object
          properties:
            event:
              type: string
              maxLength: 100
              pattern: ^[a-z][a-z0-9_]*(\.[a-z][a-z0-9_]*)+$
              description: >-
                An event's name: lowercase words joined by dots, thing first,
                such as `checkin.scanned`
          required:
            - event
          additionalProperties: false
        - type: object
          properties:
            schedule:
              $ref: '#/components/schemas/Schedule'
          required:
            - schedule
          additionalProperties: false
        - type: object
          properties:
            unit:
              type: string
              pattern: ^[a-z][a-z0-9_-]{0,63}$
              description: The unit whose balance is watched
            reaches:
              type: integer
              exclusiveMinimum: 0
              maximum: 1000000000
              description: >-
                Fires when a change takes the balance from below this to this or
                more
          required:
            - unit
            - reaches
          additionalProperties: false
        - type: object
          properties:
            unit:
              type: string
              pattern: ^[a-z][a-z0-9_-]{0,63}$
              description: The unit whose balance is watched
            every:
              type: integer
              exclusiveMinimum: 0
              maximum: 1000000000
              description: >-
                Fires each time a change takes the balance up across a multiple
                of this: every 100 XP. A change that crosses several multiples
                fires it once for each, up to 10
          required:
            - unit
            - every
          additionalProperties: false
      description: >-
        What starts the rule: an event, a schedule, or a unit's balance reaching
        a number or crossing multiples of it. Give one
    StoredCondition:
      anyOf:
        - type: object
          properties:
            audience:
              type: string
              minLength: 1
              description: >-
                The person must be in the audience with this key. The audience
                must exist
          required:
            - audience
          additionalProperties: false
        - type: object
          properties:
            time:
              type: object
              properties:
                between:
                  type: array
                  prefixItems:
                    - type: string
                      pattern: ^([01]\d|2[0-3]):[0-5]\d$
                    - type: string
                      pattern: ^([01]\d|2[0-3]):[0-5]\d$
                  description: >-
                    Start and end as 24-hour HH:MM, read in the person's time
                    zone. The start counts, the end does not; 22:00 to 02:00
                    runs past midnight
              required:
                - between
              additionalProperties: false
              description: The event must happen at a time of day in a window
          required:
            - time
          additionalProperties: false
        - type: object
          properties:
            property:
              type: object
              properties:
                name:
                  type: string
                  minLength: 1
                  maxLength: 64
                  description: 'The event property to read, by its flat name: channel'
                equals:
                  anyOf:
                    - type: string
                    - type: number
                    - type: boolean
                  description: >-
                    The value it must match exactly, with the same type: text,
                    number or true/false
              required:
                - name
                - equals
              additionalProperties: false
              description: An event property must have an exact value
          required:
            - property
          additionalProperties: false
        - type: object
          properties:
            property_range:
              type: object
              properties:
                name:
                  type: string
                  minLength: 1
                  maxLength: 64
                  description: >-
                    The event property to read, by its flat name: messages,
                    minutes, total_cents
                gte:
                  type: number
                  description: >-
                    The property must be a number that is at least this: gte 5
                    on messages is five or more
                lte:
                  type: number
                  description: >-
                    The property must be a number that is at most this. With
                    gte, it must be in between, both ends included
              required:
                - name
              additionalProperties: false
              description: >-
                An event property must be a number in a range. A missing or
                non-number property never passes
          required:
            - property_range
          additionalProperties: false
        - type: object
          properties:
            balance:
              type: object
              properties:
                unit:
                  type: string
                  pattern: ^[a-z][a-z0-9_-]{0,63}$
                  description: The unit whose balance is read
                gte:
                  type: integer
                  description: The person must hold at least this much of the unit
              required:
                - unit
                - gte
              additionalProperties: false
              description: The person's balance of a unit must be at least a number
          required:
            - balance
          additionalProperties: false
        - type: object
          properties:
            source:
              type: string
              enum:
                - trusted
                - platform
                - onchain
                - any
              description: >-
                Whose word this rule takes. trusted: your server, an agent or a
                person in Lurk. platform: trusted and chat platform events (chat
                is not available yet). onchain: only Lurk's on-chain
                observations (not available yet). any: all sources; devices and
                on-chain observations are not available yet. Web identification
                never qualifies rewards
          required:
            - source
          additionalProperties: false
        - type: object
          properties:
            held_for:
              type: object
              properties:
                activation:
                  type: string
                  pattern: ^oac_[0-7][0-9a-hjkmnp-tv-z]{25}$
                  description: >-
                    The on-chain activation whose contract must be held; a
                    display-only activation may be used
                days:
                  type: integer
                  minimum: 1
                  maximum: 3650
                  description: >-
                    Whole days of continuous holding, 1 to 3650; each day is
                    exactly 86,400 seconds, ending at the scan's finalized
                    horizon
                min:
                  type: string
                  pattern: ^[1-9][0-9]*$
                  description: >-
                    Minimum held throughout: a positive decimal integer in
                    smallest token units, or an NFT count across the person's
                    counting wallets. Omit to use the activation's minimum
              required:
                - activation
                - days
              additionalProperties: false
              description: >-
                Continuous holding for an activation; no history before a wallet
                link becomes effective is counted
          required:
            - held_for
          additionalProperties: false
      description: >-
        One IF clause. It has exactly one key, and every clause in a list must
        hold
    Limit:
      type: object
      properties:
        max:
          type: integer
          exclusiveMinimum: 0
          description: How many times the rule may apply to one person in the window
        per:
          type: string
          enum:
            - day
            - week
            - month
            - ever
          description: 'The window, in the person''s time zone. ever: it never resets'
        by:
          type: string
          enum:
            - user
          default: user
          description: What the limit counts per. Only user, the default
      required:
        - max
        - per
      additionalProperties: false
      description: >-
        At most this many times per person in a window; past it the rule is
        skipped
    Action:
      anyOf:
        - type: object
          properties:
            unit:
              type: string
              pattern: ^[a-z][a-z0-9_-]{0,63}$
              description: The unit to change
            add:
              anyOf:
                - type: integer
                  exclusiveMinimum: 0
                - $ref: '#/components/schemas/AmountFrom'
              description: >-
                How much to give: a whole number, or one read from an event
                property
            hold_over:
              type: integer
              exclusiveMinimum: 0
              description: >-
                If this action changes more than this, all of the rule's changes
                wait for a person to give or refuse them (a hold)
          required:
            - unit
            - add
          additionalProperties: false
        - type: object
          properties:
            unit:
              type: string
              pattern: ^[a-z][a-z0-9_-]{0,63}$
              description: The unit to change
            remove:
              anyOf:
                - type: integer
                  exclusiveMinimum: 0
                - $ref: '#/components/schemas/AmountFrom'
              description: >-
                How much to take: a whole number, or one read from an event
                property
            hold_over:
              type: integer
              exclusiveMinimum: 0
              description: >-
                If this action changes more than this, all of the rule's changes
                wait for a person to give or refuse them (a hold)
          required:
            - unit
            - remove
          additionalProperties: false
        - type: object
          properties:
            unit:
              type: string
              pattern: ^[a-z][a-z0-9_-]{0,63}$
              description: The unit to change
            reset:
              type: boolean
              enum:
                - true
              description: >-
                Back to 0: takes what the person holds of the unit, all of it,
                as one change (or gives it back to 0 from below). The unit must
                allow it (`resets`); it works for a unit that only goes up, like
                a season's XP
            hold_over:
              type: integer
              exclusiveMinimum: 0
              description: >-
                If this action changes more than this, all of the rule's changes
                wait for a person to give or refuse them (a hold)
          required:
            - unit
            - reset
          additionalProperties: false
        - type: object
          properties:
            unit:
              type: string
              pattern: ^[a-z][a-z0-9_-]{0,63}$
              description: The unit to change
            streak:
              type: string
              enum:
                - extend
                - reset
              description: >-
                extend: count today in the streak (1 after a missed day). reset:
                back to 0 if a whole day was missed
            hold_over:
              type: integer
              exclusiveMinimum: 0
              description: >-
                If this action changes more than this, all of the rule's changes
                wait for a person to give or refuse them (a hold)
          required:
            - unit
            - streak
          additionalProperties: false
      description: One change to a unit. It has exactly one of add, remove, reset or streak
    RuleBudget:
      type: object
      properties:
        unit:
          type: string
          pattern: ^[a-z][a-z0-9_-]{0,63}$
          description: The unit the cap counts
        max:
          type: integer
          exclusiveMinimum: 0
          description: The most the rule may give of this unit in one window
        per:
          type: string
          enum:
            - day
            - week
            - month
          description: The window, in the project's time zone
      required:
        - unit
        - max
        - per
      additionalProperties: false
      description: A cap on what the rule gives everyone in a window
    StoredModifier:
      anyOf:
        - type: object
          properties:
            if:
              type: array
              items:
                $ref: '#/components/schemas/StoredCondition'
              minItems: 1
              maxItems: 5
              description: 'Who it applies to: every clause must hold for the person'
            unit:
              type: string
              pattern: ^[a-z][a-z0-9_-]{0,63}$
              description: >-
                Only the amount of this unit. Leave out for every unit the rule
                adds
            times:
              type: integer
              minimum: 2
              maximum: 100
              description: 'Multiplies what the rule gives: 2 is double'
          required:
            - if
            - times
          additionalProperties: false
        - type: object
          properties:
            if:
              type: array
              items:
                $ref: '#/components/schemas/StoredCondition'
              minItems: 1
              maxItems: 5
              description: 'Who it applies to: every clause must hold for the person'
            unit:
              type: string
              pattern: ^[a-z][a-z0-9_-]{0,63}$
              description: >-
                Only the amount of this unit. Leave out for every unit the rule
                adds
            bonus:
              type: integer
              exclusiveMinimum: 0
              maximum: 1000000000
              description: Adds this much more to what the rule gives
          required:
            - if
            - bonus
          additionalProperties: false
    RuleEffect:
      anyOf:
        - type: object
          properties:
            post:
              $ref: '#/components/schemas/PostEffect'
          required:
            - post
          additionalProperties: false
        - type: object
          properties:
            dm:
              $ref: '#/components/schemas/DmEffect'
          required:
            - dm
          additionalProperties: false
    Schedule:
      type: object
      properties:
        every:
          type: string
          enum:
            - day
            - week
            - month
          description: How often it comes round
        at:
          type: string
          pattern: ^([01]\d|2[0-3]):[0-5]\d$
          description: 'The time of day in the project''s time zone: 09:00'
        'on':
          anyOf:
            - type: string
              enum:
                - mon
                - tue
                - wed
                - thu
                - fri
                - sat
                - sun
            - type: integer
              minimum: 1
              maximum: 28
          description: >-
            For every week, the day (mon to sun); for every month, the day of
            the month (1 to 28). Leave out for every day
      required:
        - every
        - at
      additionalProperties: false
      description: >-
        Starts the rule on the clock, in the project's time zone, for each
        person it covers
    AmountFrom:
      type: object
      properties:
        from:
          type: string
          minLength: 1
          maxLength: 64
          description: 'The event property to read, by its flat name: total_cents'
        per:
          type: integer
          exclusiveMinimum: 0
          maximum: 1000000000
          description: >-
            Divide by this and round down. 100 turns cents into whole dollars.
            Default 1
        max:
          type: integer
          exclusiveMinimum: 0
          description: Never more than this
      required:
        - from
      additionalProperties: false
    PostEffect:
      type: object
      properties:
        community:
          type: string
          pattern: ^intg_[0-7][0-9a-hjkmnp-tv-z]{25}$
          description: >-
            The community to act in: the intg_… ID of a Discord server, Slack
            workspace or Telegram group connected to this project
            (Integrations). It must belong to this project
        channel:
          type: string
          pattern: ^[A-Za-z0-9_.:-]{1,64}$
          description: >-
            The channel's own ID on the platform (Discord and Slack channel ID;
            for a Telegram group, the group's chat ID). Lurky must be allowed to
            post there
        channel_name:
          type: string
          minLength: 1
          maxLength: 80
          pattern: ^[^\u0000-\u001f<>@]*$
          description: >-
            The channel's name as people read it (general), shown in words and
            previews. Only a label: posting uses `channel`
        text:
          type: string
          minLength: 1
          maxLength: 500
          description: >-
            What to say, up to 500 characters of plain text: no mentions, no
            markup. Placeholders: {count} is how many times the rule fired in
            the batch (a digest of 12 firings says 12), {rule} is the rule's
            name. "{count} people earned today's bonus"
        every:
          type: string
          enum:
            - hour
            - day
          default: hour
          description: >-
            A rule never posts once per event: it posts at most once an hour (or
            a day) a digest of everything that fired in that time. Default hour
        max_per_day:
          type: integer
          minimum: 1
          maximum: 24
          description: >-
            The most posts this effect makes in a day (the project's time zone).
            Default 24 for hour and 1 for day. Past it the firings are skipped,
            never queued for tomorrow
      required:
        - community
        - channel
        - text
      additionalProperties: false
      description: >-
        Not available yet. Posts a digest line in a channel of a connected
        community
    DmEffect:
      type: object
      properties:
        community:
          type: string
          pattern: ^intg_[0-7][0-9a-hjkmnp-tv-z]{25}$
          description: >-
            The community to act in: the intg_… ID of a Discord server, Slack
            workspace or Telegram group connected to this project
            (Integrations). It must belong to this project
        text:
          type: string
          minLength: 1
          maxLength: 500
          description: >-
            What to say to the person the event is about, up to 500 characters
            of plain text: no mentions, no markup. Placeholder: {rule} is the
            rule's name
      required:
        - community
        - text
      additionalProperties: false
      description: Not available yet. Messages the person the event is about
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        A project key (Developers → API keys). Keep it on your server, not in an
        app.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.