API Overview

Piranya provides two API styles over the same underlying data model and permission system:

Both APIs are dynamic and reflect enabled modules/features on each site.

Which API to choose

Detailed docs:

Shared semantics

Both APIs share:

Authentication

Use the Authorization HTTP header:

Request elevation

Requests run in an elevation context. The following values are ordered from least elevated to most elevated:

If the authenticated user has access to multiple accounts/departments, scoping can be provided through:

Discovery and compatibility

Because schemas are dynamic, always inspect the target site:

Compatibility note: