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

# Update a webhook endpoint

> Changes the URL, the label, the events or the on/off state of one of the workspace's own endpoints. An endpoint made by an integration (`source: subscription`) is not found here: the integration changes it.

Turning an endpoint off needs only API access (Basic and above). Every other change needs the Business plan or above.

A new URL must meet the same rules as at creation. Changing it clears the endpoint's failure history and cancels the deliveries still waiting for the old address: nothing queued for the old URL is sent to the new one. Removing an event cancels its waiting deliveries; adding one delivers only events created from then on. Turning an endpoint back on replays nothing.



## OpenAPI

````yaml /openapi.json patch /v1/webhooks/{id}
openapi: 3.1.0
info:
  title: Lora API
  version: 1.0.0
  description: >-
    Lora REST API for managing workspace shortcuts, folders, tags, webhook
    endpoints, and QR codes.


    ## Versioning

    All stable endpoints are prefixed with `/v1/`. Breaking changes ship under a
    new path prefix (for example `/v2/`).

    Non-breaking additions (new optional fields, new endpoints) may land in the
    current version.

    Deprecated endpoints are announced in the [developer
    docs](https://uselora.dev/essentials/versioning) before removal.


    ## Authentication

    Send `Authorization: Bearer <api_key>` on every request except `GET /v1/qr`,
    which also accepts anonymous callers. API keys are workspace-scoped and
    carry named scopes (for example `shortcuts.write`); each scoped operation's
    `security` requirement lists the one scope it needs (`GET /v1/qr` needs
    none), so request a key with only those.


    ## Errors

    4xx and 5xx responses use a typed JSON envelope: `{ error, code?, requestId,
    traceId?, fieldErrors?, required_scope?, current_plan?, required_capability?
    }`.

    See components `ErrorResponse`, `ErrorWithFieldErrors`,
    `PaymentRequiredError`, `ForbiddenError`, `PayloadTooLargeError`, and
    `InternalError`.


    ## Rate limits

    Successful responses include `RateLimit-Limit`, `RateLimit-Remaining`, and
    `RateLimit-Reset` (IETF RateLimit fields).

    429 responses include `Retry-After` (seconds). Authenticated callers are
    bucketed per API key; anonymous QR endpoints are bucketed per IP.


    ## Discovery

    - OpenAPI spec: `GET https://api.uselora.com/openapi.json` (also `GET
    https://api.uselora.com/`)

    - RFC 9727 catalog: `GET https://www.uselora.com/.well-known/api-catalog`

    - MCP manifest: `GET https://www.uselora.com/.well-known/mcp` (server card
    at `/.well-known/mcp/server-card.json`)

    - MCP Streamable HTTP endpoint: `POST https://api.uselora.com/mcp`
servers:
  - url: https://api.uselora.com
    description: Production
security:
  - bearerAuth: []
paths:
  /v1/webhooks/{id}:
    patch:
      tags:
        - Webhooks
      summary: Update a webhook endpoint
      description: >-
        Changes the URL, the label, the events or the on/off state of one of the
        workspace's own endpoints. An endpoint made by an integration (`source:
        subscription`) is not found here: the integration changes it.


        Turning an endpoint off needs only API access (Basic and above). Every
        other change needs the Business plan or above.


        A new URL must meet the same rules as at creation. Changing it clears
        the endpoint's failure history and cancels the deliveries still waiting
        for the old address: nothing queued for the old URL is sent to the new
        one. Removing an event cancels its waiting deliveries; adding one
        delivers only events created from then on. Turning an endpoint back on
        replays nothing.
      operationId: updateWebhookEndpoint
      parameters:
        - description: The endpoint's unique ID, `wh_` and a UUID.
          in: path
          name: id
          required: true
          schema:
            example: wh_0198f2a4-7c1b-7d3e-9a52-3f6b1c2d4e5f
            pattern: ^wh_[0-9a-f-]{36}$
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateWebhookEndpointRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookEndpoint'
          description: The endpoint after the change.
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookUrlRefusedError'
          description: >-
            The body failed validation or was not valid JSON, no field was sent,
            or Lora refused the new URL (`url_not_allowed`; `reason` says which
            rule).
          headers:
            X-Lora-Request-Id:
              description: >-
                Request correlation identifier. Matches the `requestId` field in
                the JSON error body.
              schema:
                type: string
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: >-
            Missing, malformed, unknown or revoked API key. A key that was
            disabled by a downgrade answers with `apikey_disabled`.
          headers:
            X-Lora-Request-Id:
              description: >-
                Request correlation identifier. Matches the `requestId` field in
                the JSON error body.
              schema:
                type: string
        '402':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaymentRequiredError'
          description: >-
            The workspace plan does not include webhooks
            (`plan_requires_upgrade`: Business and above) for any change except
            turning the endpoint off.
          headers:
            X-Lora-Request-Id:
              description: >-
                Request correlation identifier. Matches the `requestId` field in
                the JSON error body.
              schema:
                type: string
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ForbiddenError'
          description: >-
            The key lacks the required scope (`insufficient_scope`, with
            `required_scope`), its owner is no longer an owner or admin of the
            workspace (`insufficient_role`), or its owner is no longer a member
            of the workspace (`no_permission`).
          headers:
            X-Lora-Request-Id:
              description: >-
                Request correlation identifier. Matches the `requestId` field in
                the JSON error body.
              schema:
                type: string
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Lora found no endpoint in this workspace.
          headers:
            X-Lora-Request-Id:
              description: >-
                Request correlation identifier. Matches the `requestId` field in
                the JSON error body.
              schema:
                type: string
        '409':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: The new URL is already an endpoint of the workspace (`url_in_use`).
          headers:
            X-Lora-Request-Id:
              description: >-
                Request correlation identifier. Matches the `requestId` field in
                the JSON error body.
              schema:
                type: string
        '413':
          description: >-
            The request body exceeded the size limit. The body is rejected
            before being parsed, so no partial write occurred; retrying with a
            smaller payload will succeed.
          headers:
            X-Lora-Request-Id:
              description: >-
                Request correlation identifier. Matches the `requestId` field in
                the JSON error body.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PayloadTooLargeError'
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Rate limit exceeded. Wait `Retry-After` seconds before retrying.
          headers:
            Retry-After:
              description: Seconds until the rate-limit window resets.
              schema:
                type: integer
                minimum: 1
            X-Lora-Request-Id:
              description: >-
                Request correlation identifier. Matches the `requestId` field in
                the JSON error body.
              schema:
                type: string
        '500':
          description: >-
            An unexpected failure on the server. The body is `{ error:
            <message>, code: "internal_error", requestId: <id> }`, plus
            `traceId` when available. Retry idempotent operations with
            exponential backoff. A write may already have applied; reconcile its
            state before retrying.
          headers:
            X-Lora-Request-Id:
              description: >-
                Request correlation identifier. Matches the `requestId` field in
                the JSON error body.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalError'
      security:
        - bearerAuth:
            - webhooks.write
components:
  schemas:
    UpdateWebhookEndpointRequest:
      type: object
      properties:
        description:
          type:
            - string
            - 'null'
          maxLength: 200
          description: >-
            A label for the endpoint, up to 200 characters. It appears in the
            emails Lora sends about the endpoint.
          examples:
            - Sync to the intranet
        enabled:
          description: >-
            Turn the endpoint on or off. Turning it on needs the Business plan;
            it replays nothing that happened while it was off.
          type: boolean
        events:
          minItems: 1
          maxItems: 3
          type: array
          items:
            $ref: '#/components/schemas/WebhookEventName'
          description: >-
            The events the endpoint receives. An endpoint gets only events
            created after it was created, or after the event was added to this
            list: nothing is sent for the past.
        url:
          description: >-
            A new URL, held to the same rules as at creation. Changing it clears
            the failure counters and cancels the deliveries still waiting for
            the old address: nothing queued for the old URL is sent to the new
            one.
          type: string
          minLength: 1
          maxLength: 2048
          examples:
            - https://example.com/hooks/lora
      additionalProperties: false
      description: Fields to change on a webhook endpoint.
    WebhookEndpoint:
      type: object
      properties:
        createdAt:
          type: string
          format: date-time
          pattern: >-
            ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
          description: ISO 8601 creation time.
        description:
          description: The endpoint's label, or null when it has none.
          type:
            - string
            - 'null'
        disabledReason:
          description: >-
            Why the endpoint is off, or null while it is on. `manual`: someone
            turned it off. `gone`: the receiver answered 410 Gone. `failing`:
            for five days no delivery succeeded, and at least five deliveries
            ran out of retries.
          type:
            - string
            - 'null'
          enum:
            - manual
            - gone
            - failing
            - null
        enabled:
          type: boolean
          description: >-
            Whether events are delivered. Turning an endpoint off cancels the
            deliveries still waiting for it.
        events:
          type: array
          items:
            $ref: '#/components/schemas/WebhookEventName'
          description: The events the endpoint receives.
        id:
          type: string
          pattern: ^wh_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
          description: The endpoint's unique ID.
          examples:
            - wh_0198f2a4-7c1b-7d3e-9a52-3f6b1c2d4e5f
        previousSecretExpiresAt:
          description: >-
            While a rotated secret still signs next to the new one, when it
            stops, ISO 8601; otherwise null.
          type:
            - string
            - 'null'
          format: date-time
          pattern: >-
            ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
        source:
          type: string
          enum:
            - api
            - subscription
          description: >-
            `api`: created with an API key. `subscription`: made by an
            integration such as Zapier, which owns it. You can read it here;
            only the integration changes or deletes it.
        updatedAt:
          type: string
          format: date-time
          pattern: >-
            ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
          description: ISO 8601 time of the last change.
        url:
          type: string
          description: >-
            The URL that receives events. For an endpoint an integration made
            (`source: subscription`), only the host is shown.
      required:
        - createdAt
        - description
        - disabledReason
        - enabled
        - events
        - id
        - previousSecretExpiresAt
        - source
        - updatedAt
        - url
      additionalProperties: false
      description: >-
        A webhook endpoint. Its signing secret is never part of it: it is
        returned once, when the endpoint is created or its secret rotated.
    WebhookUrlRefusedError:
      type: object
      properties:
        error:
          type: string
        code:
          type: string
        fieldErrors:
          type: object
          propertyNames:
            type: string
          additionalProperties:
            type: array
            items:
              type: string
        requestId:
          type: string
          description: >-
            Correlation identifier for support/debugging. Equals the
            `X-Lora-Request-Id` response header.
        traceId:
          description: >-
            Trace identifier when available for this request. 32-character
            lowercase hex string.
          type: string
          pattern: ^[0-9a-f]{32}$
        reason:
          description: >-
            Set when `code` is `url_not_allowed`: the rule that refused the URL.
            `not_a_url`: not a valid URL. `scheme`: not https. `userinfo`: the
            URL contains a username or password. `ip_literal`: the host is an IP
            address. `host`: the host is a local name or has no domain. `port`:
            the port is neither 443 nor 8443. `dns`: the host name does not
            resolve. `private_address`: the host name resolves to a private,
            loopback or link-local address.
          enum:
            - not_a_url
            - scheme
            - userinfo
            - ip_literal
            - host
            - port
            - dns
            - private_address
          type: string
      required:
        - error
        - requestId
      additionalProperties: false
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
        code:
          type: string
        requestId:
          type: string
          description: >-
            Correlation identifier for support/debugging. Equals the
            `X-Lora-Request-Id` response header.
        traceId:
          description: >-
            Trace identifier when available for this request. 32-character
            lowercase hex string.
          type: string
          pattern: ^[0-9a-f]{32}$
      required:
        - error
        - requestId
      additionalProperties: false
    PaymentRequiredError:
      type: object
      properties:
        error:
          type: string
        code:
          type: string
          enum:
            - plan_requires_upgrade
            - quota_exceeded
        requestId:
          type: string
          description: >-
            Correlation identifier for support/debugging. Equals the
            `X-Lora-Request-Id` response header.
        traceId:
          description: >-
            Trace identifier when available for this request. 32-character
            lowercase hex string.
          type: string
          pattern: ^[0-9a-f]{32}$
        current_plan:
          description: The workspace plan when the response includes it.
          type: string
        required_capability:
          description: The required plan capability when the response includes it.
          type: string
      required:
        - error
        - code
        - requestId
      additionalProperties: false
    ForbiddenError:
      type: object
      properties:
        error:
          type: string
        code:
          type: string
        requestId:
          type: string
          description: >-
            Correlation identifier for support/debugging. Equals the
            `X-Lora-Request-Id` response header.
        traceId:
          description: >-
            Trace identifier when available for this request. 32-character
            lowercase hex string.
          type: string
          pattern: ^[0-9a-f]{32}$
        required_scope:
          description: >-
            Set when `code` is `insufficient_scope`. The exact scope name the
            route required, e.g. `shortcuts.write`.
          type: string
      required:
        - error
        - requestId
      additionalProperties: false
    PayloadTooLargeError:
      type: object
      properties:
        error:
          type: string
        code:
          type: string
          const: payload_too_large
        requestId:
          type: string
          description: >-
            Correlation identifier for support/debugging. Equals the
            `X-Lora-Request-Id` response header.
        traceId:
          description: >-
            Trace identifier when available for this request. 32-character
            lowercase hex string.
          type: string
          pattern: ^[0-9a-f]{32}$
      required:
        - error
        - code
        - requestId
      additionalProperties: false
    InternalError:
      type: object
      properties:
        error:
          type: string
        code:
          type: string
          const: internal_error
        requestId:
          type: string
          description: >-
            Correlation identifier for support/debugging. Equals the
            `X-Lora-Request-Id` response header.
        traceId:
          description: >-
            Trace identifier when available for this request. 32-character
            lowercase hex string.
          type: string
          pattern: ^[0-9a-f]{32}$
      required:
        - error
        - code
        - requestId
      additionalProperties: false
    WebhookEventName:
      type: string
      enum:
        - shortcut.created
        - shortcut.updated
        - shortcut.deleted
      description: >-
        An event type. `shortcut.created`: a visible shortcut was inserted, or a
        shortcut became visible to the workspace. `shortcut.updated`: a shortcut
        was updated. `shortcut.deleted`: a shortcut was removed, or left
        workspace visibility (made private or unlisted).
      examples:
        - shortcut.created
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Workspace API key (`lora_sk_…`) sent as `Authorization: Bearer
        <api_key>`. Each scoped operation names the scope it requires in its
        `security` requirement, for example `shortcuts.write`; a key without it
        receives `403` with `code: insufficient_scope`. `GET /v1/qr` also
        accepts anonymous requests and requires no scope.

````

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