Skip to main content

Documentation Index

Fetch the complete documentation index at: https://momentic.ai/docs/llms.txt

Use this file to discover all available pages before exploring further.

Runs server-side without going through the browser. Combine with saveAs to feed the response into later steps.

Parameters

ParameterTypeRequiredDescription
urlstringYesRequest URL.
methodstringNoHTTP method. Defaults to GET.
headersRecord<string, string>NoRequest headers.
paramsRecord<string, string>NoQuery parameters.
bodyunknownNoRequest body.
contentTypestringNoOverride the body content type.
timeoutnumberNoMaximum time in milliseconds.
saveAsstringNoName of the variable to write this step’s return value to.
retriesnumberNoNumber of times to retry the step on failure before failing the test.
skippedbooleanNoSkip this step at execution time.
commentstringNoFree-form annotation kept with the step.

Shorthand

URL as a single string. Defaults to GET.
- request: https://postman-echo.com/get

Examples

- request:
    url: https://postman-echo.com/get
    headers:
      test-header: header {{ env.TEST_VALUE }}
    params:
      test-param: param {{ env.TEST_VALUE }}
    saveAs: GET_REQUEST
- request:
    url: https://postman-echo.com/post
    method: POST
    headers:
      test-header: header {{ env.TEST_VALUE }}
    params:
      test-param: param {{ env.TEST_VALUE }}
    body:
      payload: "{{ env.TEST_VALUE }}"
    saveAs: POST_REQUEST