---
title: "Preview Spec"
method: POST
path: "/v1/openapi-connections/preview-spec"
tags: ["v1", "protected", "openapi-connections"]
---

# Preview Spec

`POST /v1/openapi-connections/preview-spec`

Fetch/parse an OpenAPI spec and return metadata + tools without creating a connection.

The service dependency ensures authentication is enforced.

## Request body

- SpecPreviewRequest
  - `spec_content` object, nullable
  - `spec_url` string, nullable

## Response `200`

Successful Response

- SpecPreviewResponse
  - `base_url` string, nullable
  - `description` string, nullable
  - `title` string, nullable
  - `tools` object[]
  - `version` string, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/agentarea/apis/agentarea-api.md) · [All operations](https://skmtc.net/agentarea/apis/agentarea-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/agentarea/agentarea-api/revisions/082e677c141c/schema)
