Privicore
  1. Policy
Privicore
  • Privicore API
  • Utility
    • Utility
    • Check server health
      GET
    • Request command id status
      GET
  • Profile
    • Profile Model and Authentication Workflow
    • Register new profile
      POST
    • Authenticate
      POST
    • Retrieve profile id
      GET
    • Change password
      POST
    • Generate qr token for authorization
      POST
    • Reauthorize authorization token
      POST
    • Revoke authorization token
      POST
    • Retrieve token expiry
      POST
  • OAuth Application
    • OAuth Application Management
    • Register OAuth Application
      POST
    • Retrieve OAuth app configuration
      POST
    • Request OAuth app authorization code
      GET
    • Retrieve OAuth app authorization code
      POST
    • Obtain OAuth app access token
      POST
    • OAuth application list
      GET
    • Retrieve OAuth application scope
      GET
    • Refresh OAuth app access token
      POST
  • Public key
    • Public and Private Key Management
    • Generate your private and public keys
    • Register public key
    • Retrieve public key
    • Retrieve CAB public key
  • Data Token
    • Data Token Management
    • Reserve token space
    • Retrieve temporary data token
    • Exchange data for token
    • Upstream file via stream auth
    • Request data via token
    • Download data
    • Configure information security risk meta
    • Configure file meta
    • List data tokens
    • Update data token
    • Delete data
  • Device
    • Device Management
    • Request unique identifier (i.e. Register new device)
    • Retrieve unique identifier
    • Retrieve profile devices
    • Configure device meta
    • Approve device
    • Reject device
    • Retrieve device configuration
    • Remove device
  • Storage
    • Storage Device Management
    • Register storage device
    • List storage devices
    • Synchronize device
    • Remove storage
  • Verified authenticator
    • Authenticator and Voting Management
    • Register authenticator
    • List verified authenticators
    • Retrieve voting strategy
    • Set quorum size
    • Set quorum strategy
    • Set voting time limit
    • Set maximum voting attempts
    • Remove authenticator
    • Register voting configuration
    • Update voting configuration
    • List voting configurations
    • Retrieve voting configuration
  • Policy
    • Policy Management
    • List policy templates
      GET
    • Register policy
      POST
    • List active policies
      GET
    • List inactive policies
      GET
    • Activate policy
      POST
    • Deactivate policy
      POST
    • Delete policy
      POST
    • List registered policies
      GET
    • Retrieve registered policy
      GET
  • Voting
    • Voting Operations
    • Create voting
    • Check pool status
  • Websockets
    • WebSocket Integration
    • Establishing Connection
    • Join Channel
    • Leave Channel
    • Command Status Messages
    • Data Download Messages
  • Schemas
    • Response
      • CommandAccepted
      • Unauthorized
      • ValidationErrors
    • Schemas
    • profileId
    • deviceIdentifier
    • directoryId
    • directoryName
    • directoryShortName
    • givenName
    • familyName
    • createdAt
    • meta
  1. Policy

List policy templates

GET
/policy/list-policy-templates

Overview#

Retrieve available policy templates that can be used as starting points for creating new policies.

List Policy Templates#

Endpoint: GET /policy/list-policy-templates
Authentication: Required (Authorization token obtained from the step)

Response Structure#

Each template includes:
FieldDescription
template-identifierUnique identifier for the template
nameTemplate name
descriptionDescription of the policy's purpose and behavior
eventsAvailable events that can trigger this policy, with event identifiers and names
configurationConfiguration parameters that can be customized during registration
votingAttributesAttributes used for voting when the policy triggers
Example Template Structure:
{
  "template-identifier-example": {
    "name": "template_name_example",
    "description": "template_description_example",
    "events": {
      "event-identifier-example": {
        "event-name-example": "Retrieve data"
      }
    },
    "configuration": ["string"],
    "votingAttributes": ["string"]
  }
}

Use Case#

Use this endpoint to browse policy templates provided by Privicore. Templates define:
Available Events: Which system operations can trigger the policy (login, data retrieval, account changes, etc.)
Configuration Parameters: Customizable settings that control policy behavior
Voting Attributes: Which attributes are evaluated when creating voting polls
When registering a policy from a template:
1.
Use the template identifier as policyTemplateId
2.
Select event identifiers from the template's events to populate applyingEventIds
3.
Provide values for configuration parameters defined in the template
4.
The policy will use the voting attributes specified by the template
Templates are read-only and provided by Privicore
Event identifiers from templates are used when registering policies
Configuration arrays show which parameters can be customized
Voting attributes determine how authorization workflows are constructed
New templates may be added by Privicore over time

Request

Authorization
API Key
Add parameter in header
X-DPT-AUTHORIZATION
Example:
X-DPT-AUTHORIZATION: ********************
or
Header Params

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://sandbox.privicore.com:9009/policy/list-policy-templates' \
--header 'X-DPT-AUTHORIZATION: <api-key>'

Responses

🟢200Success
application/json
OK
Body

Example
{
    "template-identifier-example": {
        "name": "template_name_example",
        "description": "template_description_example",
        "events": {
            "event-identifier-example": {
                "event-name-example": "Retrieve data"
            }
        },
        "configuration": [
            "string"
        ],
        "votingAttributes": [
            "string"
        ]
    }
}
Modified at 2025-12-31 11:32:13
Previous
Policy Management
Next
Register policy
Built with