---
search:
  tags:
    - PublicOpenApi
    - GET
seo:
  description: >-
    Returns this OpenAPI 3.1 document, byte for byte the same file published at…
    Reference for the GET /openapi.json endpoint in the varsafe API.
sidebar:
  label: Get this OpenAPI document
  badge: GET
title: Get this OpenAPI document
type: openapi-operation
---
Returns this OpenAPI 3.1 document, byte for byte the same file published at https://varsafe.dev/openapi.json. Needs no credential and may be cached for five minutes.

`GET /openapi.json`

**Responses**

- `200` — This OpenAPI 3.1 document, byte for byte as published at varsafe.dev.
- `400` — The request failed validation. \`field\` names the offending input.
- `404` — The resource does not exist, or is not visible to this credential.
- `429` — Rate limited. Retry after the interval named in the response.
- `500` — Unexpected server error. The body never carries internal detail.

Response example, 200:

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "string",
    "version": "string",
    "property1": null,
    "property2": null
  },
  "paths": {
    "property1": null,
    "property2": null
  },
  "property1": null,
  "property2": null
}
```
