Skip to content
Luna
Esc
↑↓navigate↵open⌘Jpreview

Get a tenant's OpenAPI document

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
Authorization
AuthorizationBearer token · headerrequired

An account key (la_…), an API key (lt_…) or a session token (ls_…). The scopes listed are the permissions the operation needs.

Scopes:data:read
Path parameters
tenantstringrequired

The tenant, by its full name.

Responses
200

The tenant's OpenAPI document.

object
default

The request failed. The status says how and error.message says why.

errorErrorDetailrequired
Show properties
codestring | null

A code for programs to branch on, when the error has one.

messagestringrequired

What went wrong, in a sentence a person can read.

Try it
Server
Authorization
Parameters
Request
curl -X GET 'https://luna.example.com/_luna/tenants/string/openapi.json' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Accept: application/json'
Response
{}

Was this page helpful?