Requests
An API doc is one of two types, picked on New and kept for good: an API Playground, requests first, as in Postman, or OpenAPI docs, the spec first with Try it. Either can hold the other part: a Playground can Add a spec, and OpenAPI docs keep requests you save from Try it. A Playground opens on Requests, OpenAPI docs on the Reference; when a doc has both, Reference and Requests in the doc bar switch between them.
The tree
Section titled “The tree”Requests sit in folders. + adds a request or a folder, or imports. Drag to reorder or move into a folder; right-click for Rename, Duplicate and Delete. Search filters by name.
A request
Section titled “A request”Method and URL, then Params, Headers, Body, Auth, Settings and Scripts. A tab’s label counts its rows (“Headers 3”). Paste a curl into the URL box to fill the request from it.
- Params, headers and form bodies are tables: a tick to send a row or not, Key, Value and Description. Type in the empty row at the end to add one; Tab moves across, Enter moves down, and × on a row’s hover removes it. Description shows or hides that column. Bulk edit turns the table into
key: valuelines;//before a line keeps the row but doesn’t send it. - Query params and the URL stay in step: edit either and the other follows.
- Path variables:
:idor{id}in the URL gets its own row under Params, for its value. - Headers suggest common names as you type.
- Body: None, JSON, Form data, URL-encoded, Text, XML or GraphQL.
A folder’s auth is used by the requests inside it unless they set their own.
</> beside Send copies the request as curl; its arrow offers fetch and Python too.
Sending from the browser
Section titled “Sending from the browser”If you can edit the doc, Send works in the browser too. The request goes from your own browser, never through Dockito’s servers, and the response shows its status, headers, body, time and size. Your sends, their history and the runner’s results stay in this browser.
A browser can only read an answer when the API allows it (CORS). When it doesn’t, Dockito says so: “This API doesn’t let browsers read its answers.” Copy the request as curl and send it from a terminal. Other limits, said when they apply:
- http:// addresses are blocked from a secure page, except
localhoston your computer. A local address may need you to allow access when the browser asks. - Headers a browser won’t send, such as
Cookie,HostorUser-Agent, are left out, and the response names them. - Secrets are kept only in the desktop app. A request that needs one isn’t sent from the browser, and Dockito names the variable.
- Scripts, OAuth 2 tokens, cookies, proxies and certificates are the desktop app’s. The response says when a request’s scripts didn’t run.
People who can only view see the requests without Send.
Variables in a request
Section titled “Variables in a request”{{name}} in the URL, params, headers, body or auth is a variable. It shows blue when it has a value and red when it hasn’t. Point at it to see its value and where it comes from, and type a new one there: Shared for everyone, or This device for you only. Typing {{ lists the variables. When you send with a variable that has no value, Dockito says which one.
OAuth 2
Section titled “OAuth 2”Pick OAuth 2.0 in Auth, then the grant type: authorization code (with PKCE, as most apps want), client credentials or password. Fill in the auth and token URLs, the client ID and the scope; the client secret is a {{variable}} kept on your computer.
In the desktop app, Get new token opens your browser to sign in and hears back on this computer. The token is kept on your computer, never in the doc, and Auth shows when it expires, with Refresh and Clear. An expired token is refreshed before a send when it can be; for client credentials and password a new one is got by itself. The web shows and edits the settings; tokens are got in the desktop app.
dockito run uses the token from the desktop app on the same Mac, or one in an environment variable, and gets client credentials and password tokens by itself.
Live, with your team
Section titled “Live, with your team”Everyone with edit access works on the same requests at once: an edit shows for the others as it lands, and the tree shows who has which request open. Your AI’s edits land the same way. Each change goes into the doc’s History, and an earlier state can be restored.
In step with the spec
Section titled “In step with the spec”A request saved from the spec stays linked to its operation. When a new version of the spec changes that operation, the request is marked in the tree and says what changed. Update from spec brings it in line and keeps what you added that the spec doesn’t have; Dismiss leaves it as it is. A request that matches an operation but isn’t linked offers Link to it.
To add every operation the requests don’t have yet: Import → From this spec, pick tags, and add them in one change.