Renders a formatted API request block displaying the HTTP method badge, URL endpoint, headers, and body.
| Surface | Note |
|---|---|
| meet-stage | Layout shifts or responsive styling can clip wide URL strings. |
| googlechat | Strips method badges and colors, rendering as basic raw markdown text. |
| Complex inline structures and method badge background colors drop out. |
| Field | Type | |
|---|---|---|
| method | string: GET | POST | PUT | DELETE | PATCH. The HTTP verb. | required |
| url | string. The fully qualified or relative API endpoint route. | required |
| headers | object. Key-value pairs detailing required HTTP headers. | required |
| body | string. Optional request payload, typically stringified JSON. | optional |
{
"type": "http_request_block",
"method": "GET",
"url": 1,
"headers": [
"Name",
"Value",
"Status"
]
}
{
"identifier": "urn:air:a2uicatalog.ai:atom:http_request_block",
"displayName": "Http Request Block",
"type": "application/vnd.a2ui.atom+json",
"url": "https://a2uicatalog.ai/atoms/http_request_block",
"capabilities": [
"web",
"apps-script-web"
],
"description": "Renders a formatted API request block displaying the HTTP method badge, URL endpoint, headers, and body.",
"representativeQueries": [
"show a document REST API endpoints with HTTP methods, headers, and payloads",
"renders a formatted api request block displaying the http method badge, url endpoint, headers, and b",
"render a http request block"
]
}
The renderer is open source. Deploy your own instance in 4 commands — you own the URL, no dependency on the demo endpoint.
git clone https://github.com/a2uicatalog/a2ui
cd apps-script-surface/gas-schema-renderer
clasp push && clasp deploy
Full deploy guide →