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

# Public link से simulation साझा करें

> Executed Tenderly simulation को link वाले किसी भी व्यक्ति के लिए देखने योग्य बनाएँ, public URL कॉपी करें, और dashboard या API से public access बंद करें।

Simulation साझा करने से उसका result पेज (call trace, events, state changes, fund flow, और gas profile) एक public URL के माध्यम से देखा जा सकता है। देखने वालों को Tenderly account की आवश्यकता नहीं होती। ऐसा [Simulator](/simulator-ui/overview) setup साझा करने के लिए जिसे प्राप्तकर्ता स्वयं चलाए, इसके बजाय [draft link](/simulator-ui/draft-links) का उपयोग करें।

## Dashboard से simulation साझा करें

<Steps>
  <Step title="Simulation खोलें">
    **Simulator** में, list से कोई simulation खोलें, या एक नया simulation चलाएँ।
  </Step>

  <Step title="Share menu खोलें">
    **Simulation** title के बगल में **Share** पर क्लिक करें। जब तक simulation private है, **Share** पर एक lock icon दिखता है।
  </Step>

  <Step title="Public access सक्षम करें">
    **Enable public access** चालू करें, फिर **Copy URL** पर क्लिक करें।

    <Frame caption="Public access सक्षम होने के साथ Share Simulation menu।">
      <img src="https://mintcdn.com/tenderly/PzoXOFG6RNM2SCxQ/images/simulator-ui/share-simulation-popover.webp?fit=max&auto=format&n=PzoXOFG6RNM2SCxQ&q=85&s=29213150c5f432e97a4be6c0af9dfce3" alt="Simulation title के बगल वाले Share button से खुला Share Simulation menu, जिसमें Enable public access toggle चालू है और एक Copy URL button है" width="640" height="230" data-path="images/simulator-ui/share-simulation-popover.webp" />
    </Frame>
  </Step>
</Steps>

कॉपी किया गया URL `https://www.tdly.co/shared/simulation/<simulation-id>` रूप का होता है और `https://dashboard.tenderly.co/shared/simulation/<simulation-id>` पर redirect करता है। Signed-out viewers को **SIMULATION** label के तहत पूरा result पेज दिखता है।

<Frame caption="Sign in किए बिना खोला गया एक shared simulation।">
  <img src="https://mintcdn.com/tenderly/PzoXOFG6RNM2SCxQ/images/simulator-ui/share-simulation-public-view.webp?fit=max&auto=format&n=PzoXOFG6RNM2SCxQ&q=85&s=66a6f22f791d57346640c7065491265b" alt="Signed out स्थिति में खोला गया shared simulation पेज, जिसके top bar में Log in / Register है, एक SIMULATION label, 0xe2e2...e2e2 से WETH deposit के transaction details, और call trace है" width="1600" height="720" data-path="images/simulator-ui/share-simulation-public-view.webp" />
</Frame>

## Simulation साझा करना बंद करें

**Share** पर क्लिक करें और **Enable public access** बंद करें। इसके बाद link खोलने वाले किसी भी व्यक्ति को "Sorry, you don't have access to this page." दिखता है।

## API से simulation साझा करें

[Enable simulation sharing](/api-reference/simulator/enable-simulation-sharing) और [Disable simulation sharing](/api-reference/simulator/disable-simulation-sharing) endpoints से public access सक्षम और अक्षम करें। दोनों path में simulation ID लेते हैं, इनमें कोई request body नहीं होती, और सफल होने पर `204 No Content` लौटाते हैं।

```bash title="share-simulation.sh" theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
curl -X POST \
  "https://api.tenderly.co/api/v1/account/$TENDERLY_ACCOUNT_SLUG/project/$TENDERLY_PROJECT_SLUG/simulations/$SIMULATION_ID/share" \
  -H "X-Access-Key: $TENDERLY_ACCESS_KEY"
```

साझा करना बंद करने के लिए, वही request `/unshare` path पर भेजें। Public URL `https://www.tdly.co/shared/simulation/$SIMULATION_ID` है।


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