# Try it

> Fill a call to any operation from the spec, copy it as cURL, fetch or Python, and save it to the doc's requests.

Every operation in an API doc has **Try it**. It opens the call filled from the spec: the path, query and header parameters, a body from the spec's example (or its required fields), the server and the auth the operation needs. Change anything; your edits stay while the page is open.

## Server and auth, set once

The bar at the top of Try it shows the server and the auth. Pick a server, or type your own (a staging or `localhost` URL), and it's used for every operation of the doc. The auth works the same way: set the key or token once.

Keys and tokens stay on your device. They never go into the doc, its History, or what your AI reads.

## Sending

The Dockito desktop app sends the call from your computer, so it reaches `localhost` and your VPN too, and checks the response against the spec.

In the browser, **Send** works when you can edit the doc and the API lets browsers read its answers (CORS). When it doesn't, Dockito says so; copy the call and run it yourself: **Copy as** cURL, `fetch` or Python, with keys as environment variables (`$BOOKINGS_API_KEY`). Secret keys are kept only in the desktop app, so a call that needs one isn't sent from the browser. [More on sending from the browser](/help/api-docs/requests#sending-from-the-browser).

Requests never go through Dockito's servers.

## Save to the doc's requests

**Save** (⌘S, or Ctrl+S) puts the call as you edited it into the doc's [requests](/help/api-docs/requests), in the folder named after the operation's tag. The first save starts the requests. A key you typed stays on your device; the saved request names it (`{{bearerAuth}}`).
