Introduction

The Policy pro api I used for accessing your policies that you created

on Privacy Pro, please see the guides on how to get an access key.


We also provide open-source components for some major App and web frameworks.

Base URL

https://polciy-pro.vercel.app/api

UI Components

Flutter

React Native

Details on React native UI Component

IOS / Swift

Details on IOS/Swift component

React

Details on react component

Android/Kotlin

Details on android UI component

VueJS Component

Details on VueJS component

Content Object Types

Content Object - JSON

Details on how the JSON content object is stored

Content Object - HTML

Details on how the html content object is structured.

Content Object - Markdown

Details on how the content object is formatted in Markdown

Get Policy

GETpolicies/{policyId}

Retrieve a policy by its id, you can also specify the type of of response you want the policy content to be returned as. By default it will return a JSON Response.


URL Parameters



Example Request

{
  "type": "json",
  "access_token": "someaccesstoken"
}

Example Response

{
  "id": 1,
  "policy_name": "Example Policy",
  "policy_versions": [
    {
      "content": {
        "intro": [
          "Paragraph 1",
          "Paragraph 2",
          "Paragraph 3"
        ],
        "items": [
          {
            "items": [],
            "title": "Introduction",
            "content": null
          }
        ]
      },
      "version_code": 1
    }
  ]
}
Powered by Docbloc