Skip to content

Feature: Request sharing (generate shareable request links) #429

Description

@cedric05

Add a request-sharing feature to dothttp to generate shareable links for requests or collections. Links should be safe (no tokens/passwords by default), support optional included response snapshots, expiry/TTL, and a simple web viewer that shows the request and allows execution or import into the user's dothttp environment.

Goals:

  • Enable easy sharing of runnable requests with teammates and docs
  • Provide CLI and VSCode actions to generate and copy links
  • Provide server-side storage for links and optional analytics (views, executions)

Proposed Commands/UI:

  • CLI: dothttp users.http --share --request @name("Get User") --ttl 7d
  • VSCode: Right-click → Share Request (dialog with options: include response, TTL, private/public)
  • Web: https://dothttp.dev/share/{id} - display request, allow filling env vars and executing

Acceptance criteria:

  • CLI produces sharable link
  • Server stores minimal request metadata and enforces TTL
  • Web viewer renders request details and allows copy-as-curl
  • Shared links do not include Authorization tokens by default

Implementation notes:

  • Accept optional encryption for link payloads for private shares
  • Add analytics to measure usage

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationenhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions