Skip to main content

Endpoint API

Calls an API endpoint registered in the workspace API Manager. Reuses the configuration (auth, headers) defined in the catalog.

Parameters

ParameterTypeRequiredVariableDescription
endpointIdtextYesYesSelected API endpoint identifier from the catalog.
endpointPathtextNoNoEndpoint path (e.g. /api/queries/nodes). Auto-filled on selection.
methodchoice (GET, POST, PUT, PATCH, DELETE)YesNoHTTP method for the request.
categorytextNoNoEndpoint category (queries, commands, health, etc.).
descriptiontextNoNoEndpoint description.
apiKeyConfigobjectNoNoAPI key configuration for authentication.
requestBodydynamic valueNoYesRequest body (for POST, PUT, PATCH methods). Can be a literal or a variable.
headersarrayNoNoHTTP request headers (dynamic key/value pairs).
queryParamsarrayNoNoURL query parameters (dynamic key/value pairs).
pathParamsarrayNoNoPath parameters auto-extracted from :param patterns in the URL.
timeoutnumberNoNoRequest timeout in milliseconds.
retryOnErrorbooleanNoNoAutomatically retry the request on error. (Default: false)
maxRetriesnumberNoNoMaximum number of retry attempts on error. (Default: 1, min 1, max 10)

Parameters marked Variable = Yes accept the {{blockName.field}} syntax.

Output

Output variable : apiEndpointResult

{
"success": false,
"statusCode": 0,
"headers": {},
"body": "...",
"rawBody": "...",
"responseTimeMs": 0,
"contentLength": 0,
"endpoint": {}
}

Example

Call a pre-configured endpoint.

Input :

{"endpointId": "ep-crm-leads"}

Output :

{"success": true, "statusCode": 200, "headers": {"content-type": "application/json"}, "body": [{"id": 1, "name": "Acme"}], "rawBody": "[{\"id\":1,\"name\":\"Acme\"}]", "responseTimeMs": 245, "contentLength": 32, "endpoint": {"id": "ep-crm-leads", "name": "CRM Leads"}}
Tip

Prefer this block over http_request for frequently used APIs: authentication configuration is centralized in the API Manager.