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

# Read a subscription's full destination

> Returns the full, unmasked delivery destination of one subscription of the authenticated tenant. The list and detail routes return only `endpoint_display`. Authorization checks the resource `subscriptions` and the action `post`, the same permission that creates a subscription. An absent, soft-deleted, or cross-tenant id returns the same uniform `404 not_found` as the detail route.



## OpenAPI

````yaml /es/openapi/v3-current/streaming-hub.yaml get /v1/subscriptions/{id}/endpoint
openapi: 3.1.0
info:
  title: Lerian Streaming Hub API
  version: 1.2.0
  contact:
    email: contact@lerian.studio
    name: Lerian Studio
    url: https://lerian.studio
  license:
    name: Lerian Studio General License
  description: >-
    The Streaming Hub control-plane API. Streaming Hub is Lerian's managed
    event-delivery edge: it consumes CloudEvents from the platform's internal
    streaming backbone and fans them out to a tenant's own external destinations
    — webhooks, Amazon SQS, RabbitMQ, Amazon EventBridge, or a pull inbox. This
    API lets a tenant browse the manifest-fed event catalog, create and manage
    delivery subscriptions, verify and rotate their credentials, read delivery
    health, and pull entitled events.


    An RFC 9457 `application/problem+json` error body carries `type`, `title`,
    and `status`. An error the hub raises adds `detail` and a stable
    low-cardinality `code` you can branch on; a request the framework rejects
    before the operation runs, such as a malformed or schema-invalid one,
    carries no `code`. In a `5xx`, `detail` is the static `"internal error"`.
    Mutating operations require an `X-Idempotency` header for at-most-once
    semantics; a replayed request returns the original response byte-for-byte
    with `X-Idempotency-Replayed: true`. The catalog and the pull events surface
    are tenant-scoped through the bearer JWT; the operational probe endpoints
    (`/healthz`, `/readyz`, `/version`, `/runtime`, `/metrics`) are
    unauthenticated. Streaming Hub is closed source under the Lerian Studio
    General License.
servers:
  - url: https://streaming-hub.sandbox.lerian.net
security:
  - BearerAuth: []
tags:
  - name: Catalog
    description: Browse the manifest-fed catalog of event types available for subscription.
  - name: Subscriptions
    description: >-
      Create, read, update, and delete delivery subscriptions, and drive the
      destination verification lifecycle (ping, verify, credential, delegated
      grant, secret rotation, health).
  - name: Event Delivery
    description: >-
      Pull entitled events for a pull-sink subscription
      (cursor-as-acknowledgment read).
  - name: Dashboard
    description: >-
      The read-only operational dashboard: a consistent snapshot of ingestion,
      push delivery, and pull eligibility, plus the paged list of subscriptions
      that need attention. It never consumes events and never returns a secret.
  - name: Admin
    description: Cross-tenant operator forensics. Requires an operator authorization scope.
  - name: Operational
    description: Unauthenticated liveness, readiness, build, runtime, and metrics probes.
paths:
  /v1/subscriptions/{id}/endpoint:
    get:
      tags:
        - Subscriptions
      summary: Read a subscription's full destination
      description: >-
        Returns the full, unmasked delivery destination of one subscription of
        the authenticated tenant. The list and detail routes return only
        `endpoint_display`. Authorization checks the resource `subscriptions`
        and the action `post`, the same permission that creates a subscription.
        An absent, soft-deleted, or cross-tenant id returns the same uniform
        `404 not_found` as the detail route.
      operationId: revealSubscriptionEndpoint
      parameters:
        - $ref: '#/components/parameters/SubscriptionId'
      responses:
        '200':
          description: The full destination.
          headers:
            Cache-Control:
              $ref: '#/components/headers/NoStore'
            X-RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EndpointResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/InternalError'
        '503':
          $ref: '#/components/responses/RateLimiterUnavailable'
      security:
        - BearerAuth: []
components:
  parameters:
    SubscriptionId:
      name: id
      in: path
      required: true
      description: The unique identifier of the subscription (UUIDv7).
      schema:
        type: string
        format: uuid
  headers:
    NoStore:
      description: Always `private, no-store`. Do not cache this response.
      schema:
        type: string
        enum:
          - private, no-store
    RateLimitLimit:
      description: >-
        The requests this tenant may make in one window of this route's
        allowance.
      schema:
        type: integer
        examples:
          - 60
    RateLimitRemaining:
      description: The requests left in the current window. `0` on a refusal.
      schema:
        type: integer
        examples:
          - 59
    RateLimitReset:
      description: The Unix time, in seconds, at which the current window ends.
      schema:
        type: integer
        examples:
          - 1789499562
    RetryAfter:
      description: The whole seconds to wait before a retry. Always at least `1`.
      schema:
        type: string
        examples:
          - '1'
  schemas:
    EndpointResponse:
      type: object
      additionalProperties: false
      properties:
        endpoint:
          type: string
          description: >-
            The full delivery destination as stored: the webhook URL with its
            path and query, the queue URL with its account id, the exchange and
            routing key, the bus name, or the `pull://` value.
          examples:
            - https://hooks.example.com/ingest
      required:
        - endpoint
    Error:
      type: object
      description: >-
        RFC 9457 `application/problem+json` document. An error the hub raises
        carries `detail` and the stable `code` a client branches on; a request
        the framework rejects before the operation runs carries no `code`. In a
        `5xx`, `detail` is the static `"internal error"`.
      properties:
        type:
          type: string
          format: uri
          description: >-
            A stable, versioned URI identifying the problem type
            (`https://errors.lerian.studio/v1/<code>`), or `about:blank` for
            problems without a hub-assigned code.
          examples:
            - https://errors.lerian.studio/v1/not_found
        title:
          type: string
          description: A short human-readable summary — the HTTP status text.
          examples:
            - Not Found
        status:
          type: integer
          description: The HTTP status code, mirrored in the body.
          examples:
            - 404
        detail:
          type: string
          description: >-
            A caller-safe human explanation of this specific occurrence. For
            `5xx` responses this is always the static string `"internal error"`.
          examples:
            - subscription not found
        code:
          type: string
          description: >-
            The stable, low-cardinality, machine-readable token a client
            branches on (for example `not_found`, `unauthorized`,
            `idempotency_conflict`, `validation_error`). Absent when the
            framework rejects the request before the operation runs.
          examples:
            - not_found
      required:
        - type
        - title
        - status
    RateLimiterUnavailableError:
      type: object
      description: The flat error body of a `503` from the rate limiter.
      properties:
        code:
          type: integer
          description: The HTTP status, repeated in the body.
          examples:
            - 503
        title:
          type: string
          description: A stable machine-readable identifier.
          examples:
            - service_unavailable
        message:
          type: string
          description: A human-readable explanation.
          examples:
            - rate limiter temporarily unavailable
      required:
        - code
        - title
        - message
  responses:
    Unauthorized:
      description: >-
        Authentication failed, or there is no trusted tenant context. `code` is
        `unauthorized` (uniform body — no reason is leaked).
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Error'
    Forbidden:
      description: >-
        Access Manager denied the request ahead of the hub, with a plain-text
        body. On the `/v1` surface the hub itself can also answer `403` as
        `application/problem+json` with `code` `forbidden`: the delegated scope
        the request presents disagrees with the scope claim on the relayed
        token.
      content:
        text/plain:
          schema:
            type: string
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: >-
        The resource is absent, soft-deleted, or owned by another tenant — a
        uniform `code` of `not_found` (no existence oracle).
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Error'
    RateLimited:
      description: >-
        The tenant's allowance for this route is spent. `code` is
        `rate_limited`. Wait `Retry-After` seconds, then retry. Each tenant has
        three allowances: one for the catalog and the subscription list, detail,
        endpoint, health, and setup-artifacts reads; one for `GET /v1/events`;
        and one for the two dashboard routes.
      headers:
        Retry-After:
          $ref: '#/components/headers/RetryAfter'
        X-RateLimit-Limit:
          $ref: '#/components/headers/RateLimitLimit'
        X-RateLimit-Remaining:
          $ref: '#/components/headers/RateLimitRemaining'
        X-RateLimit-Reset:
          $ref: '#/components/headers/RateLimitReset'
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Error'
    InternalError:
      description: >-
        An infrastructure fault. `code` is `internal_error` and `detail` is
        scrubbed to the static `"internal error"` (the cause is logged, never
        returned).
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Error'
    RateLimiterUnavailable:
      description: >-
        The hub could not check the tenant's allowance because its rate-limit
        store is unreachable, and this deployment is set to refuse rather than
        to serve unmetered requests. This is a transient condition, not a quota:
        retry with backoff. A deployment set to fail open serves the request
        instead. The body is a flat JSON object, not a problem document.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/RateLimiterUnavailableError'
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        A bearer JWT issued by Access Manager. The `/v1` surface never reads a
        tenant from the body, path, or query. Machine callers obtain a token
        with the Access Manager client-credentials flow. The `/admin` surface
        authorizes against an operator scope and carries no tenant context.

````