Send request
Send an HTTP request and return status, headers and body (parsed as JSON when possible).
Command in the REST Web Service toolkit · id ooa.rest/request · 43 inputs (1 required), 5 outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Address (URL) | String | Yes | Absolute URL, or a path such as /invoices/42 when base_url (or a connection) gives the address. It may come from the vault; then only its scheme and host are logged (G6). | |
| Method | String | No | GET | HTTP method. |
| Query | Dictionary | No | Query parameters, URL-encoded automatically. | |
| Headers | Dictionary | No | Request headers. | |
| JSON | Any | No | JSON body (sets Content-Type). | |
| Form | Dictionary | No | Form fields (application/x-www-form-urlencoded). | |
| Body | String | No | Raw text body; it may also come from the vault as a whole (G6). | |
| Basic user | String | No | Basic auth user name. | |
| Basic password | Credential | No | Basic auth password from the vault. | |
| Bearer token | Credential | No | Bearer token from the vault. | |
| Timeout (seconds) | Number | No | 60 | Response timeout. |
| Fail on error | Boolean | No | true | Raise REST.HTTP_ERROR on 4xx/5xx. |
| Content type | String | No | Content-Type of a text or file body, e.g. application/xml, text/plain or application/pdf. | |
| Allow untrusted certificates | Boolean | No | false | Accept any server certificate (self-signed or expired); for test systems only. |
| Proxy | String | No | Proxy server as host:port; the runner's settings when empty. | |
| Proxy user | String | No | Proxy user name, when the proxy needs a sign-in. | |
| Proxy password | Credential | No | Proxy password from the vault. | |
| Client certificate | File | No | Client certificate (.p12 or .pfx) for servers that require mutual TLS. | |
| Client certificate password | Credential | No | Password of the client certificate file. | |
| Accept cookies | Boolean | No | false | Keep cookies the server sets and send them back on later requests of this run. |
| Follow redirects | Boolean | No | true | Follow redirects (3xx) automatically. |
| Multipart | Dictionary | No | Multipart form (multipart/form-data): field name to text, or to {"file": path, "content_type": type} for a file part. | |
| Body file | File | No | File sent as the raw body, byte for byte; content_type gives its type. | |
| Windows sign-in | String | No | Windows sign-in (NTLM or Kerberos) for intranet sites, SharePoint on premises, IIS and Exchange: current_user signs in as the runner's Windows account (Windows runners); user_password uses basic_user (DOMAIN\user) and basic_password. | |
| OAuth token address (URL) | String | No | OAuth 2.0 token endpoint; the request is sent with a token fetched there (kept for the run and renewed before it expires). | |
| OAuth client ID | String | No | OAuth 2.0 client (application) id. | |
| OAuth client secret | Credential | No | OAuth 2.0 client secret from the vault; needed for client credentials, optional with a refresh token. | |
| OAuth refresh token | Credential | No | Refresh token from the vault: signs in with the refresh-token grant instead of client credentials. A new refresh token from the server is used for the rest of the run and returned as refresh_token. | |
| OAuth scope | String | No | Scopes to ask for, separated by spaces. | |
| OAuth audience | String | No | Audience sent to the token endpoint (some providers, e.g. Auth0, need it). | |
| OAuth resource | String | No | Resource sent to the token endpoint (e.g. Microsoft Entra v1 and AD FS). | |
| OAuth client sign-in | String | No | basic | How the client id and secret reach the token endpoint: basic (HTTP Basic header, the OAuth standard) or body (form fields client_id and client_secret). |
| OAuth 1.0a consumer key | String | No | OAuth 1.0a consumer key: the request is signed (RFC 5849). | |
| OAuth 1.0a consumer secret | Credential | No | OAuth 1.0a consumer secret from the vault. | |
| OAuth 1.0a token | Credential | No | OAuth 1.0a access token from the vault; empty for a consumer-only (two-legged) request. | |
| OAuth 1.0a token secret | Credential | No | OAuth 1.0a token secret from the vault. | |
| OAuth 1.0a signature method | String | No | HMAC-SHA1 | OAuth 1.0a signature method. |
| Windows user name | String | No | Windows (NTLM) user name for intranet sites, IIS, SharePoint on premises and Exchange. | |
| Windows domain | String | No | Windows domain of the NTLM user; empty when the user name already has it (DOMAIN\user or user@domain). | |
| Windows password | Credential | No | Windows password of the NTLM user, from the vault. | |
| Endpoint address | String | No | Address the URL is relative to, so the URL can be a path such as /invoices/42; a saved connection usually gives it. | |
| Trust certificate | File | No | Certificate of a private certificate authority (.cer, .crt or .pem) to trust as well as the usual ones, so a company server's certificate is still checked without insecure_tls (G6). | |
| Replace in body | Dictionary | No | Placeholders in the text body filled just before sending: name to a Credential (or text); every {{name}} in body becomes the value, which stays masked in the log (G6). |
Outputs
| Output | Type | What it is |
|---|---|---|
| status | Number | HTTP status code. |
| body | String | Response text. |
| json | Any | Parsed JSON body, or empty. |
| headers | Dictionary | Response headers. |
| refresh_token | Credential | With an OAuth 2.0 refresh token: the newest refresh token (the server may issue a new one); save it to the vault for the next run. Empty otherwise. |