Skip to Content
Docs
API referenceManagement API

Authorization

GET
/authz/model/preview

Generate a read-only preview of the instance's OpenFGA authorization (FGA) model from the current registry (resource types, roles, permissions and inheritance), without writing it. Returns the OpenFGA DSL and JSON.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Response Body

OK

application/json
  1. response
dsl?string

DSL is the human-readable OpenFGA DSL.

json?string

JSON is the api.openfga.dev JSON model (importable into the OpenFGA playground).

Example Request
curl -X GET 'https://api.us.pontive.com/v1/authz/model/preview'
Example Response
{  "dsl": "string",  "json": "string"}
POST
/authz/model/regenerate

Regenerate the instance's OpenFGA authorization (FGA) model from the current registry and write it to the instance's existing store; relationship tuples are kept. Registry changes do this automatically — use it after a platform upgrade that changes how the model is generated.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Response Body

OK

application/json
  1. response
authorization_model_id?string

AuthorizationModelID is the id of the newly written OpenFGA model.

Example Request
curl -X POST 'https://api.us.pontive.com/v1/authz/model/regenerate'
Example Response
{  "authorization_model_id": "string"}