---
title: "Lint the OpenAPI document at a URL"
method: POST
path: "/v1/lint/url"
tags: ["Linting"]
---

# Lint the OpenAPI document at a URL

`POST /v1/lint/url`

## Request

- Base URL: `https://api.skmtc.dev`
- URL: `https://api.skmtc.dev/v1/lint/url`
- Auth: none declared

Lint the OpenAPI document at a URL. The URL is fetched as an import fetches
one: `https` only, no private host, each redirect checked, at most 60 MiB.
The query and the answers are those of `lintDocument`, and also:

- 422 for a URL refused as above, one that cannot be reached, or one that
answers a status other than 429 or 5xx.
- 503 with `Retry-After` for a host that answers 429 or 5xx, or does not
answer in time, and when the service cannot read its stored copy of the
document.

## Query parameters

- `rule` string
- `offset` integer
- `limit` integer

## Request body

- LintDocumentAtUrlRequest: The address of a document to lint.
  - `url` string, required: An `https` URL of an OpenAPI document, in JSON or YAML.

## Response `200`

The request has succeeded.

- LintReport: What the linter found. The counts are of the whole document, whatever the query. Rules with errors come first, then the rules with the most problems.
  - `counts` LintCounts, required: How many problems the document has of each severity.
    - `error` integer, required
    - `warn` integer, required
    - `info` integer, required
    - `hint` integer, required
  - `rules` LintRule[], required
    - `code` string, required: The name of the rule, as `operation-operationId`.
    - `severity` 'error' | 'warn' | 'info' | 'hint', required: How serious a problem is, as Spectral says it.
    - `count` integer, required: How many problems the rule has in the document.
    - `problems` LintProblem[], required: A page of the problems, in the order of the document.
      - `message` string, required
      - `path` string[], required: The keys from the root of the document to the value the problem is in.
      - `line` integer, required: The line the problem starts on, from 1.
      - `character` integer, required: The character on the line the problem starts at, in UTF-16 code units, from 1.

## Other responses

- `400`: Binds a concrete HTTP `Status` to the shared `ApiError` body.
- `403`: Binds a concrete HTTP `Status` to the shared `ApiError` body.
- `413`: Binds a concrete HTTP `Status` to the shared `ApiError` body.
- `422`: Binds a concrete HTTP `Status` to the shared `ApiError` body.
- `429`: Binds a concrete HTTP `Status` to the shared `ApiError` body.
- `503`: 503 - the service cannot answer this request now.

## Changes

- **2026-11-29** `7dfef83950e3`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/skmtc/apis/skmtc-api/changes/v1/lint/url/post.md)

---

[API](https://skmtc.dev/skmtc/apis/skmtc-api.md) - [All operations](https://skmtc.dev/skmtc/apis/skmtc-api/llms.txt) - [OpenAPI document](https://skmtc.dev/skmtc/apis/skmtc-api/revisions/7dfef83950e3?raw)
