---
title: "Get the OpenAPI document"
method: GET
path: "/openapi.json"
tags: ["meta"]
---

# Get the OpenAPI document

`GET /openapi.json`

## Request

- Base URL: `https://vetnio.com/api/v2`
- URL: `https://vetnio.com/api/v2/openapi.json`
- Auth: HTTP bearer

Get the OpenAPI document for the Vetnio API.

## Query parameters

- `apiVersion` 'v2' | 'v1': Which API surface to describe: `v2` (current) or `v1` (legacy, same endpoints under `/api/v1`).

## Response `200`

Successful response

- unknown

## Other responses

- `400`: Invalid input data
- `401`: Authorization not provided
- `403`: Insufficient access
- `404`: Not found
- `500`: Internal server error

---

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