Skip to main content

HTTP Adapter

The HTTP adapter makes outbound HTTP requests to external APIs and web services, with built-in SSRF protection.

Operations

http:get — GET Request

{
"operation": "http:get",
"input": {
"url": "https://api.example.com/data",
"headers": { "Accept": "application/json" },
"queryParams": { "q": "test", "limit": 10 }
}
}

http:post — POST Request (and PUT, DELETE, PATCH)

{
"operation": "http:post",
"input": {
"url": "https://api.example.com/submit",
"method": "POST",
"headers": { "Content-Type": "application/json" },
"body": { "name": "Alice", "role": "analyst" }
}
}

The method parameter defaults to POST but can be set to PUT, DELETE, or PATCH.

Response Format

Both operations return:

{
"status": 200,
"body": "{\"result\": \"success\"}",
"headers": { "content-type": "application/json" }
}

The body is always a string — JSON responses must be parsed by the caller.

Input Reference

ParameterTypeRequiredDescription
urlstringYesFull URL (HTTP or HTTPS)
methodstringNoHTTP method (GET, POST, PUT, DELETE, PATCH)
headersobjectNoRequest headers as key-value pairs
queryParamsobjectNoQuery parameters (URL-encoded automatically)
bodyobjectNoRequest body (JSON-serialised automatically)

Timeouts

  • Connection timeout: 10 seconds
  • Request timeout: 30 seconds
  • No automatic retries

Security

The adapter includes SSRF (Server-Side Request Forgery) protection:

  • Blocks requests to private/internal network addresses (loopback, site-local, link-local) by default
  • Only HTTP and HTTPS schemes are permitted
  • Venue operators can configure allow lists for specific internal hosts
  • Grid Adapter — for invoking operations on other Covia venues (use Grid, not HTTP)
  • REST API — the venue's own HTTP API