Skip to content

HTTP GET

Type: http-get  ·  Package: HTTP Activities v1.0.0  ·  Output: ZoanHttpResponse

Sends a GET request to read/query data from an API or web service. It is the most common request: obtain a record, list elements, download data. Does not send body; all the information goes in the URL (including query parameters like ?estado=activo).

Makes the request to url (with optional headers and authentication) and returns ZoanHttpResponse. If the response body is JSON, it is automatically converted to a dictionary/list. Remember: if the server responds with an error code, the activity fails — see error handling.

ParameterEditorDescription
urlexpressionThe URL of the request. Supports expressions (e.g. = "https://api.com/clientes/" + id).
ParameterEditorDescription
headersJSONDictionary of extra headers (name → value). See headers.
authorizationJSONAuthentication: bearer, basic or apikey. See authentication.

Returns a ZoanHttpResponse with .StatusCode, .Ok, .Body and .Headers.

Query a client by its id, authenticating with a secure token:

HTTP GET
url = = "https://api.erp.com/clientes/" + clienteId
authorization = { "type": "bearer", "token": = credential("api-erp").ToPlainText() }
→ output: resp
Set Variable name = nombreCliente value = = resp.Body["nombre"]
Log message = = "Cliente: " + nombreCliente