---
search:
  tags:
    - Tenants
    - GET
seo:
  description: >-
    Returns an OpenAPI 3.1 document that describes how to call the tenant's…
    Reference for the GET /_luna/tenants/{tenant}/openapi.json endpoint in the
    Luna API.
sidebar:
  label: Get a tenant's OpenAPI document
  badge: GET
title: Get a tenant's OpenAPI document
type: openapi-operation
---
Returns an OpenAPI 3.1 document that describes how to call the tenant's lunas over HTTP. Luna generates it from the deployed version each time, so it always matches what is running. It has one operation for each handler a client can call, with the argument and return types the handler declares, one for each stream, the upload and download of each bucket, and one for each HTTP route, on the tenant's route host. A tenant with nothing deployed gets a document with no paths. The call starts no worker, so it costs no compute.

`GET /_luna/tenants/{tenant}/openapi.json`

**Responses**

- `200` — The tenant's OpenAPI document.
- `default` — The request failed. The status says how and \`error.message\` says why.

Response example, 200:

```json
{}
```
