Skip to content
Vegha Docs

HTTP & REST Requests

HTTP is the default request type in Vegha. An HTTP request has a method, a URL, and a set of tabs for everything else you need to configure.

Choose the verb from the method selector at the start of the URL bar:

MethodTypical use
GETRetrieve a resource
POSTCreate a resource
PUTReplace a resource
PATCHPartially update a resource
DELETERemove a resource
HEADRetrieve headers only
OPTIONSDiscover supported operations

Type the endpoint into the URL bar. You can use {{variable}} interpolation anywhere in the URL — for example {{baseUrl}}/users/{{userId}}. Press Ctrl+Enter (⌘+Enter on macOS) to send the request, and Ctrl+S to save it.

Each request has tabs for Params, Authorization, Headers, Body, Pre-request, Tests, and Docs.

The Params tab lists query string parameters as key/value pairs. Parameters you add here are appended to the URL; editing the query string in the URL bar keeps the table in sync.

The Headers tab holds request headers as key/value pairs. Headers inherited from the folder or collection also apply — see Collection settings for precedence.

The Body tab is where you set the request payload. Available body types:

TypeDescription
JSONStructured JSON with syntax highlighting
form-url-encodedapplication/x-www-form-urlencoded key/value pairs
multipart form-dataKey/value pairs plus file uploads
rawPlain raw text
XMLXML document with syntax highlighting

For multipart form-data, you can attach files alongside text fields, which makes it suitable for file-upload endpoints.

Select an auth method on the Authorization tab. Vegha supports API Key, Bearer, Basic, Digest, NTLM, OAuth1, OAuth2, AWS SigV4, WSSE, and mTLS. See Authentication.

The Pre-request tab runs sandboxed JavaScript before the request is sent; the Tests tab runs assertions after the response arrives. See Scripting.

Each request can define its own retry count and timeout. If a request fails or exceeds the timeout, Vegha retries it up to the configured number of attempts before reporting a failure.

Vegha keeps a cookie jar, so cookies set by a response are stored and sent automatically on subsequent requests to the same host. Redirects are followed automatically. The connection timeline and full response details are covered in Responses.

You can export any request as ready-to-run code — curl, Node fetch, Python requests, Go, C#, or Java — to share or embed elsewhere.