API referenceManagement API
Authorization
GET
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.
header
x-pontive-instance-id<token>Instance ID for the request
OK
application/json- response
dsl?stringDSL is the human-readable OpenFGA DSL.
json?stringJSON is the api.openfga.dev JSON model (importable into the OpenFGA playground).
curl -X GET 'https://api.us.pontive.com/v1/authz/model/preview'Example Response
{ "dsl": "string", "json": "string"}POST
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.
header
x-pontive-instance-id<token>Instance ID for the request
OK
application/json- response
authorization_model_id?stringAuthorizationModelID is the id of the newly written OpenFGA model.
curl -X POST 'https://api.us.pontive.com/v1/authz/model/regenerate'Example Response
{ "authorization_model_id": "string"}