πŸ”Top Line APIs

Policy API Documentation & DMRV Aliases

Summary

Policy authors can define clean, human-readable API endpoint aliases for their policies, giving each integration point a simple, descriptive name instead of a raw internal URL. These aliases, along with descriptions, can be configured directly in the policy editor and are published as browsable documentation, making it easier for external systems and third-party developers to integrate with a policy's API.


1. Configuring API Documentation

1.1. Open the Configuration Dialog

  1. Open any policy in Draft status in the Policy Configurator.

  2. Click the API button in the top toolbar.

1.2. Add Endpoints

  1. Click + Add Endpoint.

  2. Fill in the fields for each row:

Field
Description

Block

Select a block from the dropdown list

Method

Choose BOTH, GET or POST

Name

Short name (auto-filled from block name)

Description

What the endpoint does

Alias

URL-friendly identifier, e.g. new-device, create-application

Preview URL

Read-only: /api/v1/dmrv/{policyId}/{alias}

1.3. Validation Rules

  • Alias: only a-z, 0-9, - allowed

  • Block and Alias must be unique

  • Block and Alias are required

Errors appear below the corresponding row.

1.4. Save

  1. Click Save in the modal to apply changes locally.

  2. Click Save in the toolbar to persist the policy to the database.

Note: URL generation (both technical and DMRV) happens server-side on policy save.


2. Viewing Documentation

  1. Go to Policies β†’ Manage Policies.

  2. Click the Documentation button (book icon) on a policy row.

  1. The dialog shows all configured endpoints:

Column
Description

Name

Endpoint name

Description

User-provided description

Method

BOTH (blue), GET (green) or POST (orange)

URL

Technical URL to block by tag

Alias URL

External DMRV URL

Query Params

The endpoint parameters

Copy

Copies Alias URL to clipboard


3. Using the DMRV Proxy

3.1. Endpoint

3.2. How It Works

3.3. Method Routing

Request Method
Internal Call
Equivalent Standard Endpoint

GET

getBlockByTagName

GET /api/v1/policies/:id/tag/:tag

POST

setBlockDataByTag

POST /api/v1/policies/:id/tag/:tag/blocks

3.4. Authentication

Standard Bearer token. Required permissions: POLICIES_POLICY_EXECUTE, POLICIES_POLICY_MANAGE.

3.5. Response Codes

Code
Meaning

200

Success

401

Unauthorized

404

Policy not found or alias not configured for this method

503

Block Unavailable (block exists but not accessible in current policy state)

3.6. Example

Request:

Response:


4. API Reference

GET /api/v1/policies/:policyId/about

Returns the configured documentation entries.

Response example:

Last updated