executeHttpRequest

View as Markdown

Execute an authenticated HTTP request via Atomicwork.

Executes a synchronous HTTP request to any URL, with authentication handled by Atomicwork. Use this for calling third-party APIs where you need credentials injected automatically. Returns the response status code and body.

Parameters

NameTypeRequiredDescription
urlstringYesThe target URL (e.g., ā€œhttps://api.example.com/webhookā€)
methodGET | POST | PUT | DELETE | PATCHYesHTTP method to use
headersobject[]NoHTTP headers as key-value pairs. Duplicate keys are supported —
query_paramsobject[]NoURL query parameters as key-value pairs
bodystringNoRequest body as a string (JSON string for POST/PUT/PATCH)
authobjectNoAuthentication credentials for the outbound request. Omit for no auth.