Skip to main content
GET
Get policy
Get saved policy source code.
See error examples and recovery steps. The complete OpenAPI contract includes every response schema.

Authorizations

Authorization
string
header
required

The server's token (MIRAGE_AUTH_TOKEN) or a JWT. A daemon in the default local mode with no token accepts requests without one.

Path Parameters

ref
string
required

Policy name, such as guard.py.

Response

200 - application/json

OK

name
string
required
source
string
required