Piranya provides two API styles over the same underlying data model and permission system:
/PiranyaPlatform/Data/{type}.{format})/PiranyaPlatform/Rest/v1/resources/{type})Both APIs are dynamic and reflect enabled modules/features on each site.
json, csv, pdf, xml).Detailed docs:
Both APIs share:
Authorization with Basic or Bearer)mode / elevation)Use the Authorization HTTP header:
Basic (username/password)Bearer (access token)Requests run in an elevation context. The following values are ordered from least elevated to most elevated:
PublicUnauthenticatedUser (must be logged in)Client (registered user/account acting as client/customer)ClientDepartment (deprecated, use Client)ProviderDepartmentReaderDepartmentOwnerDepartmentAdminIf the authenticated user has access to multiple accounts/departments, scoping can be provided through:
Authorization-Account / for_account_idAuthorization-Department / for_department_idBecause schemas are dynamic, always inspect the target site:
/PiranyaPlatform/Rest/v1/openapi.json (or filtered type-specific OpenAPI)Compatibility note: