---
title: "Test Api Request"
method: POST
path: "/api/v1/utils/test-api"
tags: ["utils"]
---

# Test Api Request

`POST /api/v1/utils/test-api`

## Request

- Base URL: `https://api.komos.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.komos.ai/api/v1/utils/test-api`
- Auth: none declared

Execute a test API request from the builder.

This endpoint proxies requests to external APIs for testing purposes.
It's used by the API node editor to validate configurations.

Security measures:
- Only GET/POST methods allowed
- Only ports 80/443 allowed
- Blocks private IPs, localhost, metadata endpoints
- Validates IPs after DNS resolution (prevents DNS rebinding)
- Validates each redirect target
- Limits redirect depth, response size, timeout

## Headers

- `Authorization` string, nullable
- `X-Org-Id` string, nullable

## Request body

- TestApiRequest: Request payload for testing an API call from the builder.
  - `method` 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE'
  - `url` string, required
  - `authorization` string, nullable
  - `body` string, nullable
  - `timeout_ms` integer

## Response `200`

Successful Response

- TestApiResponse: Response from a test API call.
  - `success` boolean, required
  - `status_code` integer, nullable
  - `response_body` unknown
  - `error` string, nullable
  - `elapsed_ms` integer, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/komos/apis/komos-backend.md) · [All operations](https://skmtc.dev/komos/apis/komos-backend/llms.txt) · [OpenAPI document](https://skmtc.dev/komos/apis/komos-backend/revisions/f10e153fab38?raw)
